diff --git a/.all-contributorsrc b/.all-contributorsrc
deleted file mode 100644
index 15cddfd4f..000000000
--- a/.all-contributorsrc
+++ /dev/null
@@ -1,320 +0,0 @@
-{
- "files": [
- "CONTRIBUTORS.md"
- ],
- "imageSize": 80,
- "contributorsPerLine": 8,
- "commit": false,
- "projectName": "driftctl",
- "projectOwner": "snyk",
- "repoType": "github",
- "repoHost": "https://github.com",
- "skipCi": true,
- "contributors": [
- {
- "login": "sjourdan",
- "name": "Stephane Jourdan",
- "avatar_url": "https://avatars.githubusercontent.com/u/419121?v=4",
- "profile": "https://github.com/sjourdan",
- "contributions": [
- "doc",
- "ideas",
- "talk",
- "question"
- ]
- },
- {
- "login": "eliecharra",
- "name": "Elie",
- "avatar_url": "https://avatars.githubusercontent.com/u/6154987?v=4",
- "profile": "https://www.elie.ski",
- "contributions": [
- "doc",
- "code",
- "bug",
- "review",
- "maintenance",
- "test",
- "infra"
- ]
- },
- {
- "login": "moadibfr",
- "name": "Martin",
- "avatar_url": "https://avatars.githubusercontent.com/u/4931174?v=4",
- "profile": "http://moadib.net",
- "contributions": [
- "doc",
- "code",
- "bug",
- "review",
- "maintenance",
- "test"
- ]
- },
- {
- "login": "wbeuil",
- "name": "William BEUIL",
- "avatar_url": "https://avatars.githubusercontent.com/u/8110579?v=4",
- "profile": "http://wbeuil.com",
- "contributions": [
- "doc",
- "code",
- "bug",
- "review",
- "maintenance",
- "test",
- "tool"
- ]
- },
- {
- "login": "emahe22",
- "name": "Eric MAHE",
- "avatar_url": "https://avatars.githubusercontent.com/u/22610513?v=4",
- "profile": "https://github.com/emahe22",
- "contributions": [
- "doc",
- "ideas",
- "business",
- "fundingFinding"
- ]
- },
- {
- "login": "GeraldC13",
- "name": "GeraldC",
- "avatar_url": "https://avatars.githubusercontent.com/u/39477124?v=4",
- "profile": "http://driftctl.com/",
- "contributions": [
- "doc",
- "ideas",
- "business",
- "content"
- ]
- },
- {
- "login": "bertux",
- "name": "Bertrand Juglas",
- "avatar_url": "https://avatars.githubusercontent.com/u/5703?v=4",
- "profile": "http://b.juglas.name",
- "contributions": [
- "doc"
- ]
- },
- {
- "login": "sshota0809",
- "name": "Suzuki Shota",
- "avatar_url": "https://avatars.githubusercontent.com/u/8736380?v=4",
- "profile": "https://github.com/sshota0809",
- "contributions": [
- "code",
- "bug"
- ]
- },
- {
- "login": "sfenman",
- "name": "sfenman",
- "avatar_url": "https://avatars.githubusercontent.com/u/43748066?v=4",
- "profile": "https://github.com/sfenman",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "herbygillot",
- "name": "Herby Gillot",
- "avatar_url": "https://avatars.githubusercontent.com/u/618376?v=4",
- "profile": "https://github.com/herbygillot",
- "contributions": [
- "tool"
- ]
- },
- {
- "login": "lotoussa",
- "name": "Toussaint Louis",
- "avatar_url": "https://avatars.githubusercontent.com/u/66522867?v=4",
- "profile": "http://louistoussaint.fr",
- "contributions": [
- "code",
- "doc"
- ]
- },
- {
- "login": "psedge",
- "name": "Peter Sedgewick",
- "avatar_url": "https://avatars.githubusercontent.com/u/5781397?v=4",
- "profile": "https://dev.to/psedge",
- "contributions": [
- "doc"
- ]
- },
- {
- "login": "sundowndev",
- "name": "Raphaël",
- "avatar_url": "https://avatars.githubusercontent.com/u/16480203?v=4",
- "profile": "https://crvx.fr/",
- "contributions": [
- "code",
- "doc",
- "bug",
- "review",
- "maintenance",
- "test"
- ]
- },
- {
- "login": "vainkop",
- "name": "vainkop",
- "avatar_url": "https://avatars.githubusercontent.com/u/28118190?v=4",
- "profile": "https://github.com/vainkop",
- "contributions": [
- "bug"
- ]
- },
- {
- "login": "ayshiff",
- "name": "Rémi Doreau",
- "avatar_url": "https://avatars.githubusercontent.com/u/32459935?v=4",
- "profile": "https://remidoreau.com",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "a-vorobiev",
- "name": "Anton Vorobiev",
- "avatar_url": "https://avatars.githubusercontent.com/u/197565?v=4",
- "profile": "https://vorobiev.cloud",
- "contributions": [
- "bug"
- ]
- },
- {
- "login": "OrenLeung",
- "name": "Oren Leung",
- "avatar_url": "https://avatars.githubusercontent.com/u/47992694?v=4",
- "profile": "https://orenleung.com",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "craigfurman",
- "name": "Craig Furman",
- "avatar_url": "https://avatars.githubusercontent.com/u/4772216?v=4",
- "profile": "https://github.com/craigfurman",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "cbowman0",
- "name": "Christopher Bowman",
- "avatar_url": "https://avatars.githubusercontent.com/u/1764481?v=4",
- "profile": "https://github.com/cbowman0",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "karniwl",
- "name": "Karni Wolf",
- "avatar_url": "https://avatars.githubusercontent.com/u/42895464?v=4",
- "profile": "https://github.com/karniwl",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "smaftoul",
- "name": "smaftoul",
- "avatar_url": "https://avatars.githubusercontent.com/u/239203?v=4",
- "profile": "https://github.com/smaftoul",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "p0tr3c",
- "name": "Kamil Potrec",
- "avatar_url": "https://avatars.githubusercontent.com/u/12850042?v=4",
- "profile": "https://github.com/p0tr3c",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "wakeful",
- "name": "AJ",
- "avatar_url": "https://avatars.githubusercontent.com/u/5229238?v=4",
- "profile": "http://jaskula.pl",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "muratcelep",
- "name": "Murat Celep",
- "avatar_url": "https://avatars.githubusercontent.com/u/94377726?v=4",
- "profile": "https://github.com/muratcelep",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "almog27",
- "name": "Almog Ben David",
- "avatar_url": "https://avatars.githubusercontent.com/u/1466549?v=4",
- "profile": "https://github.com/almog27",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "chdorner-snyk",
- "name": "Christof",
- "avatar_url": "https://avatars.githubusercontent.com/u/106981178?v=4",
- "profile": "https://github.com/chdorner-snyk",
- "contributions": [
- "code"
- ]
- },
- {
- "login": "Doridian",
- "name": "Mark Dietzer",
- "avatar_url": "https://avatars.githubusercontent.com/u/631409?v=4",
- "profile": "https://doridian.net/",
- "contributions": [
- "bug"
- ]
- },
- {
- "login": "martin-vanta",
- "name": "Martin",
- "avatar_url": "https://avatars.githubusercontent.com/u/118209773?v=4",
- "profile": "https://github.com/martin-vanta",
- "contributions": [
- "bug"
- ]
- },
- {
- "login": "bschaatsbergen",
- "name": "Bruno Schaatsbergen",
- "avatar_url": "https://avatars.githubusercontent.com/u/58337159?v=4",
- "profile": "https://bschaatsbergen.com",
- "contributions": [
- "code",
- "doc"
- ]
- },
- {
- "login": "n2N8Z",
- "name": "n2N8Z",
- "avatar_url": "https://avatars.githubusercontent.com/u/20487808?v=4",
- "profile": "https://github.com/n2N8Z",
- "contributions": [
- "bug"
- ]
- }
- ],
- "commitConvention": "angular"
-}
diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index 8c80ab4dd..000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,335 +0,0 @@
-version: 2.1
-only_branches: &only_branches
- filters:
- branches:
- ignore:
- - main
-only_maintainers: &only_maintainers
- filters:
- branches:
- # Forked pull requests have CIRCLE_BRANCH set to pull/XXX
- ignore: /pull\/[0-9]+/
-orbs:
- prodsec: snyk/prodsec-orb@1
- go: circleci/go@1.7.0
- snyk: snyk/snyk@1.1.2
- gh: circleci/github-cli@1.1.0
- slack: circleci/slack@4.12.5
-parameters:
- ACC_TESTS:
- type: string
- description: manually run acceptance tests
- default: '0'
-commands:
- notify_slack_on_failure:
- steps:
- - slack/notify:
- channel: group-infrastructure-as-code-alerts
- event: fail
- custom: |
- {
- "blocks": [
- {
- "type": "header",
- "text": {
- "type": "plain_text",
- "text": ":warning: Driftctl acceptance tests failed :warning:",
- "emoji": true
- }
- },
- {
- "type": "divider"
- },
- {
- "type": "section",
- "fields": [
- {
- "type": "mrkdwn",
- "text": "*Suite*: ${ACC_PATTERN}"
- },
- {
- "type": "mrkdwn",
- "text": "*Branch*: ${CIRCLE_BRANCH}"
- }
- ],
- "accessory": {
- "type": "button",
- "text": {
- "type": "plain_text",
- "emoji": true,
- "text": "View Job"
- },
- "url": "${CIRCLE_BUILD_URL}"
- }
- }
- ]
- }
-jobs:
- test_acc:
- parameters:
- pattern:
- type: string
- resource_class: large
- machine:
- image: ubuntu-2004:202010-01
- environment:
- ACC_PATTERN: << parameters.pattern >>
- AWS_DEFAULT_REGION: us-east-1
- CHECKPOINT_DISABLE: 'true' # Disable terraform version check
- CLOUDSDK_CORE_PROJECT: driftctl-qa-1
- GOOGLE_APPLICATION_CREDENTIALS: /tmp/google.json
- ACC_GOOGLE_CREDENTIALS: /tmp/google-admin.json
- steps:
- - checkout
- - go/install:
- version: "1.23"
- - go/load-cache:
- key: test_acc
- - run: make install-tools
- - run:
- name: Setup Google credentials
- command: |
- echo ${GCLOUD_KEYFILE} | base64 -d > /tmp/google.json
- echo ${ACC_GCLOUD_KEYFILE} | base64 -d > /tmp/google-admin.json
- - run:
- name: Run acceptance tests
- command: make acc
- no_output_timeout: 30m
- - notify_slack_on_failure
- - go/save-cache:
- key: test_acc
- path: /home/circleci/.go_workspace/pkg/mod
- - store_test_results:
- path: ./
- lint:
- docker:
- - image: golang:1.23
- steps:
- - checkout
- - run:
- name: Ensure go mod is tidy
- command: |
- go mod tidy
- git diff --exit-code go.mod go.sum
- - run:
- name: Enforce Go Formatted Code
- command: |
- go fmt ./...
- if [[ -z $(git status --porcelain) ]]; then
- echo "Git directory is clean."
- else
- echo "Git directory is dirty. Run make fmt locally and commit any formatting fixes or generated code."
- git status --porcelain
- exit 1
- fi
- - run: make install-tools
- - run: make lint
-
- test:
- resource_class: large
- executor:
- name: go/default
- tag: '1.23'
- steps:
- - checkout
- - go/load-cache:
- key: test-docker
- - run: make install-tools
- - run:
- name: Run tests
- command: make test
- - go/save-cache:
- key: test-docker
- - store_test_results:
- path: ./
- release:
- resource_class: large
- docker:
- - image: cimg/go:1.23
- steps:
- - checkout
- - gh/setup:
- version: 2.2.0
- - run:
- name: "Ensure GnuPG is available"
- command: gpg --version
- - run:
- name: "Import signing key"
- command: |
- echo ${SIGNINGKEY} | base64 -d | gpg --import
- - run:
- name: "Build and publish release"
- command: make release
- no_output_timeout: 30m
- - persist_to_workspace:
- root: ~/project
- paths:
- - bin/driftctl_SHA256SUMS
- release-docs:
- docker:
- - image: cimg/base:2020.01
- steps:
- - checkout
- - attach_workspace:
- at: ~/project
- - run:
- name: Trigger driftctl-docs new version
- command: |
- curl -X POST https://api.github.com/repos/snyk/driftctl-docs/dispatches \
- -d '{"event_type": "new_version"}' \
- -H "Authorization: token $GITHUB_TOKEN"
- issue-tagging:
- machine:
- image: ubuntu-2004:202010-01
- steps:
- - checkout
- - gh/setup:
- version: 2.2.0
- - attach_workspace:
- at: ~/project
- - run:
- name: Auto label issues with the newly released version
- command: |
- ./scripts/issue-tagging.sh
- update-lambda:
- environment:
- FUNCTION_NAME: driftctl-version
- docker:
- - image: cimg/base:2021.04
- steps:
- - run:
- name: "Update Lambda version"
- command: |
- wget "https://github.com/snyk/lambda-env-updater/releases/download/v1.0.0/lambda-env-updater_linux_amd64" && chmod +x lambda-env-updater_linux_amd64
- ./lambda-env-updater_linux_amd64\
- -name ${FUNCTION_NAME}\
- -env "LATEST_VERSION=${CIRCLE_TAG}"
- security-scans:
- docker:
- - image: cimg/go:1.23
- resource_class: small
- steps:
- - checkout
- - prodsec/security_scans:
- mode: auto
- iac-scan: disabled
-
-workflows:
- manual-acc-tests:
- when:
- equal: ['1', << pipeline.parameters.ACC_TESTS >>]
- jobs:
- - test_acc:
- name: "Acceptance tests: << matrix.pattern >>"
- matrix:
- parameters:
- pattern:
- - TestAcc_Aws
- - TestAcc_Google
- - TestAcc_Azure_
- - TestAcc_StateReader_
-
- # Disable this rather than create a new test org
- # - TestAcc_Github_
- context:
- - driftctl-acc
- - snyk-bot-slack
- pullrequest:
- jobs:
- - prodsec/secrets-scan:
- name: Scan repository for secrets
- context:
- - snyk-bot-slack
- channel: snyk-vuln-alerts-iac
- trusted-branch: main
- - security-scans:
- name: Security Scans
- context:
- - analysis-iac
- - lint:
- <<: *only_branches
- - test:
- <<: *only_branches
-
-# Disabled since it makes every PR to stay in "pending" state
-# https://ideas.circleci.com/cloud-feature-requests/p/show-overall-all-checks-have-passed-status-in-github-even-on-builds-with-incompl
-# pullrequest_acc:
-# jobs:
-# - hold:
-# type: approval # presents manual approval button in the UI
-# - test_acc:
-# name: "Acceptance tests: << matrix.pattern >>"
-# requires:
-# - hold
-# matrix:
-# parameters:
-# pattern:
-# - TestAcc_Aws
-# - TestAcc_Github_
-# - TestAcc_Google
-# - TestAcc_Azure_
-# context:
-# - driftctl-acc
- push:
- jobs:
- - test:
- filters:
- branches:
- only:
- - main
- release:
- jobs:
- - lint:
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - test:
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - release:
- context:
- - driftctl
- - driftctl-snyk
- - driftctl-signing
- requires:
- - lint
- - test
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - update-lambda:
- context: driftctl-version-lambda
- requires:
- - release
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - release-docs:
- context:
- - driftctl
- requires:
- - release
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
- - issue-tagging:
- context:
- - driftctl
- requires:
- - release
- filters:
- tags:
- only: /^v.*/
- branches:
- ignore: /.*/
diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index c695de492..000000000
--- a/.dockerignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin/
-Dockerfile
-.cache
-**/*.golden.json
-**/.terraform
diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index ef991d06a..000000000
--- a/.editorconfig
+++ /dev/null
@@ -1,52 +0,0 @@
-root = true
-
-[*]
-end_of_line = lf
-insert_final_newline = true
-charset = utf-8
-trim_trailing_whitespace=true
-indent_style = space
-indent_size = 4
-
-[.editorconfig]
-ij_editorconfig_align_group_field_declarations = false
-ij_editorconfig_space_after_colon = false
-ij_editorconfig_space_after_comma = true
-ij_editorconfig_space_before_colon = false
-ij_editorconfig_space_before_comma = false
-ij_editorconfig_spaces_around_assignment_operators = true
-
-[{*.go,*.go2}]
-indent_style = tab
-ij_continuation_indent_size = 4
-ij_go_add_leading_space_to_comments = true
-ij_go_add_parentheses_for_single_import = false
-ij_go_call_parameters_new_line_after_left_paren = true
-ij_go_call_parameters_right_paren_on_new_line = true
-ij_go_call_parameters_wrap = off
-ij_go_fill_paragraph_width = 80
-ij_go_group_current_project_imports = true
-ij_go_group_stdlib_imports = true
-ij_go_import_sorting = gofmt
-ij_go_keep_indents_on_empty_lines = false
-ij_go_move_all_imports_in_one_declaration = true
-ij_go_move_all_stdlib_imports_in_one_group = true
-ij_go_remove_redundant_import_aliases = true
-ij_go_use_back_quotes_for_imports = false
-ij_go_wrap_comp_lit = off
-ij_go_wrap_comp_lit_newline_after_lbrace = true
-ij_go_wrap_comp_lit_newline_before_rbrace = true
-ij_go_wrap_func_params = off
-ij_go_wrap_func_params_newline_after_lparen = true
-ij_go_wrap_func_params_newline_before_rparen = true
-ij_go_wrap_func_result = off
-ij_go_wrap_func_result_newline_after_lparen = true
-ij_go_wrap_func_result_newline_before_rparen = true
-
-
-[*.json]
-insert_final_newline = false
-indent_size = 2
-
-[Makefile]
-indent_style = tab
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index 260ed8e21..000000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1 +0,0 @@
-* @snyk/iac @snyk/infrasec_iac
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
deleted file mode 100644
index f417166e1..000000000
--- a/.github/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We, as members, contributors, leaders, pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our
-community include:
-
-* Demonstrating empathy and kindness toward other people
-* Being respectful of differing opinions, viewpoints, and experiences
-* Giving and gracefully accepting constructive feedback
-* Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-* Focusing on what is best not just for us as individuals, but for the
- overall community
-
-Examples of unacceptable behavior include:
-
-* The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-* Trolling, insulting or derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or email
- address, without their explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official e-mail address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement.
-All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series
-of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or
-permanent ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within
-the community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available at
-[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
-
-Community Impact Guidelines were inspired by
-[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
-
-For answers to common questions about this code of conduct, see the FAQ at
-[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
-at [https://www.contributor-covenant.org/translations][translations].
-
-[homepage]: https://www.contributor-covenant.org
-[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
-[Mozilla CoC]: https://github.com/mozilla/diversity
-[FAQ]: https://www.contributor-covenant.org/faq
-[translations]: https://www.contributor-covenant.org/translations
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
deleted file mode 100644
index f56317cb1..000000000
--- a/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,103 +0,0 @@
-## This project is now in maintenance mode. We cannot promise to review contributions. Please feel free to fork the project to apply any changes you might want to make.
-
-
-
-
-
-
-
-
-
-
-
-### Build
-
-If you wish to work on the driftctl CLI source code, you'll first need to install the Go compiler and the version control system Git.
-
-At this time the driftctl development environment is targeting only Linux Mac OS X and Windows systems.
-
-Refer to the file [`.go-version`](https://github.com/cloudskiff/driftctl/blob/master/.go-version) to see which version of Go driftctl is currently built with. Other versions will often work, but if you run into any build or testing problems please try with the specific Go version indicated. You can optionally simplify the installation of multiple specific versions of Go on your system by installing [`goenv`](https://github.com/syndbg/goenv), which reads `.go-version` and automatically selects the correct Go version.
-
-Use Git to clone this repository into a location of your choice. driftctl is using [Go Modules](https://blog.golang.org/using-go-modules), and so you should *not* clone it inside your `GOPATH`.
-
-Switch into the root directory of the cloned repository and build driftctl using GNU Make:
-
-```shell script
-make build
-```
-
-The first time you run the `make build` command, the build script will download any library dependencies that you don't already have in your Go modules cache.
-Subsequent builds will be faster because these dependencies will already be available on your local disk.
-
-Once the compilation process succeeds, you can find a `driftctl_$os_$arch` executable in the `bin/` directory.
-
-**Note**: driftctl uses an `.editorconfig` file to normalize indentation stuff and other common guidelines.
-We kindly ask you to use an editor that supports it or at least configure your editor parameters according to our guidelines.
-Working together with the same guidelines saves us a lot of brainwork during code review and could avoid some conflict.
-
-### Unit test
-
-If you are planning to make changes to the driftctl source code, you should run the unit test suite before you start to make sure everything is initially passing:
-
-```shell script
-go test ./...
-```
-
-As you make your changes, you can re-run the above command to ensure that the tests are *still* passing. If you are working only on a specific Go package, you can speed up your testing cycle by testing only that single package, or packages under a particular package prefix:
-
-```shell script
-go test ./pkg/iac/...
-```
-
-For more details on testing, check the [contributing guide](../docs/testing.md).
-
-### Acceptance Tests: Testing interactions with external services
-
-driftctl's unit test suite is self-contained, using mocks and local files to help ensure that it can run offline and is unlikely to be broken by changes made to or coming from outside systems.
-
-There are some optional tests in the driftctl CLI codebase that *do* interact with external services, which we collectively refer to as "acceptance tests".
-You can enable these by setting the environment variable `DRIFTCTL_ACC=true` when running the tests.
-We recommend focusing only on the specific package you are working on when enabling acceptance tests, both because it can help the test run to complete faster and because you are less likely to encounter failures due to drift in systems unrelated to your current goal:
-
-Because the acceptance tests depend on services outside of the driftctl codebase, and because the acceptance tests are usually used only when making changes to the systems they cover, it is common and expected that drift in those external systems will cause test failures.
-Because of this, prior to working on a system covered by acceptance tests it's important to run the existing tests for that system in an *unchanged* work tree first and respond to any test failures that preexist, to avoid misinterpreting such failures as bugs in your new changes.
-
-More details on acceptance on the [contributing guide](../docs/README.md)
-
-## External Dependencies
-
-Terraform uses Go Modules for dependency management.
-
-Our dependency licensing policy for driftctl excludes proprietary licenses and "copyleft"-style licenses.
-We will consider other open source licenses in similar spirit to those three, but if you plan to include
-such a dependency in a contribution we'd recommend opening a GitHub issue first to discuss what you intend
-to implement and what dependencies it will require so that the driftctl team can review the relevant licenses
-to for whether they meet our licensing needs.
-
-If you need to add a new dependency to driftctl or update the selected version for an existing one, use `go get` from the root of the driftctl repository as follows:
-
-```shell script
-go get github.com/hashicorp/terraform@13.0.0
-```
-
-This command will download the requested version (13.0.0 in the above example) and record that version selection in the `go.mod` file.
-It will also record checksums for the module in the `go.sum`.
-
-To complete the dependency change, clean up any redundancy in the module metadata files by running:
-
-```shell script
-make go.mod
-```
-
-To ensure that the upgrade has worked correctly, be sure to run the unit test suite at least once.
-
-Because dependency changes affect a shared, top-level file, they are more likely than some other change types to become conflicted with other proposed changes during the code review process.
-For that reason, and to make dependency changes more visible in the change history, we prefer to record dependency changes as separate commits that include only the results of the above commands and the minimal set of changes to driftctl's own code for compatibility with the new version:
-
-```
-git add go.mod go.sum
-git commit -m "go get github.com/hashicorp/terraform@13.0.0"
-```
-
-You can then make use of the new or updated dependency in code added in subsequent commits.
-
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index f69568dc5..000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-name: 🐛 Bug Report
-about: Report errors and problems
-labels: kind/bug, need-triage
-
----
-
-
-
-**Description**
-
-
-**Environment**
- - OS:
- - driftctl version:
- - terraform version:
- - terraform providers versions:
-
-**How to reproduce**
-
-
-**Possible Solution**
-
-
-**Additional context**
-
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index c6d8fc3ba..000000000
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-blank_issues_enabled: false
-contact_links:
- - name: '📝 Documentation'
- url: https://github.com/snyk/driftctl-docs/issues/new
- about: Please open documentation issue on driftctl docs repository
- - name: '👾 Support chat'
- url: https://discord.gg/NMCBxtD7Nd
- about: Find support with community chat on discord
diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md
deleted file mode 100644
index 7c9ff3f0c..000000000
--- a/.github/ISSUE_TEMPLATE/feature.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-name: 🚀 Feature
-about: RFC and ideas for new features and improvements
-labels: kind/enhancement, need-triage
-
----
-
-**Description**
-
-
-**Example**
-
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 8fac69309..000000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,13 +0,0 @@
-| Q | A
-| ----------------- | ---
-| 🐛 Bug fix? | yes/no
-| 🚀 New feature? | yes/no
-| ⚠ Deprecations? | yes/no
-| ❌ BC Break | yes/no
-| 🔗 Related issues | #...
-| ❓ Documentation | yes
-
-## Description
-
-Please include a summary of the change and which issue is fixed.
-Please also include relevant motivation and context.
\ No newline at end of file
diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md
deleted file mode 100644
index 0d262cd2d..000000000
--- a/.github/SUPPORT.md
+++ /dev/null
@@ -1,2 +0,0 @@
-## This project is now in maintenance mode. We cannot promise to review contributions. Please feel free to fork the project to apply any changes you might want to make.
-
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index 4b9af14a4..000000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 60
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 7
-# Issues with these labels will never be considered stale
-exemptLabels:
- - pinned
-# Label to use when marking an issue as stale
-staleLabel: closing/stale
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- This issue has been automatically marked as stale because it has not had
- recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions.
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml
deleted file mode 100644
index a81b7386e..000000000
--- a/.github/workflows/homebrew.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: Homebrew Bump Formula
-on:
- release:
- types: [published]
-jobs:
- homebrew:
- runs-on: macos-latest
- steps:
- - uses: dawidd6/action-homebrew-bump-formula@v3
- with:
- token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
- formula: driftctl
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d6e8bfac5..000000000
--- a/.gitignore
+++ /dev/null
@@ -1,36 +0,0 @@
-/bin
-
-### Go ###
-# Binaries for programs and plugins
-*.exe
-*.exe~
-*.dll
-*.so
-*.dylib
-
-### Go Patch ###
-/vendor/
-
-### test report ###
-/unit-tests.xml
-/unit-tests-acc.xml
-/cover.out
-/cover.out.tmp
-/cover-acc.out
-
-### coverage folder inside pkg ###
-!pkg/coverage
-
-### ide settings ###
-.vscode
-.idea
-
-### terraform provider/tfstate ###
-.terraform
-*.tfstate*
-!pkg/iac/**/*.tfstate*
-
-### driftctl
-/.driftignore
-
-CHANGELOG.md
diff --git a/.gitleaksignore b/.gitleaksignore
deleted file mode 100644
index c4eb8f8be..000000000
--- a/.gitleaksignore
+++ /dev/null
@@ -1,299 +0,0 @@
-52853a39d07a208e3405fdafc5fd112f92822694:pkg/test/google/3.78.0/google_compute_ssl_certificate/expected.json:private-key:13
-52853a39d07a208e3405fdafc5fd112f92822694:pkg/test/google/3.78.0/google_compute_ssl_certificate/input.json:private-key:13
-6fb907ef58f45775e2eb8568a0a9b127feab3e5c:pkg/resource/google/testdata/acc/google_compute_ssl_certificate/host.key:private-key:1
-c13321dfcf21fc6452dfb6b49107ce13946ba62c:pkg/iac/terraform/state/test/google_compute_ssl_certificate/results.golden.json:private-key:13
-c13321dfcf21fc6452dfb6b49107ce13946ba62c:pkg/iac/terraform/state/test/google_compute_ssl_certificate/terraform.tfstate:private-key:24
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_group/expected.json:aws-access-token:10
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_group/input.json:aws-access-token:10
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:3
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:6
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:12
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:15
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:21
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:24
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:30
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/expected.json:aws-access-token:33
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/expected.json:aws-access-token:17
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/expected.json:aws-access-token:35
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/expected.json:aws-access-token:53
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:3
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:7
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:17
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:21
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:31
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:35
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:45
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_access_key/input.json:aws-access-token:49
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/input.json:aws-access-token:15
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/input.json:aws-access-token:31
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/input.json:aws-access-token:47
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/input.json:aws-access-token:20
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/input.json:aws-access-token:41
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_role/input.json:aws-access-token:62
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/expected.json:aws-access-token:13
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/expected.json:aws-access-token:27
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_iam_user/expected.json:aws-access-token:41
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/expected.json:generic-api-key:9
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/expected.json:generic-api-key:19
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/expected.json:generic-api-key:29
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/input.json:generic-api-key:11
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/input.json:generic-api-key:23
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_alias/input.json:generic-api-key:35
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/expected.json:generic-api-key:12
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/expected.json:generic-api-key:27
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/expected.json:generic-api-key:45
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/input.json:generic-api-key:13
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/input.json:generic-api-key:30
-e7750bc00cc11555a248a5a4a782ea5bb4b55d06:pkg/test/aws/3.19.0/aws_kms_key/input.json:generic-api-key:49
-6ad889c067caaa6d7b8b6d82a04434cc806ce2bf:pkg/iac/terraform/state/test/aws_iam_group/results.golden.json:aws-access-token:10
-6ad889c067caaa6d7b8b6d82a04434cc806ce2bf:pkg/iac/terraform/state/test/aws_iam_group/terraform.tfstate:aws-access-token:21
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/expected_console.txt:aws-access-token:6
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/expected_console.txt:aws-access-token:7
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/expected_console.txt:aws-access-token:8
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/input_stdin_valid.json:aws-access-token:49
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/input_stdin_valid.json:aws-access-token:53
-4734fbe5a8eabfd8d1d70fb9207732cf3e988214:pkg/cmd/testdata/fmt/input_stdin_valid.json:aws-access-token:57
-ad20e3779602de493ad34e69ab7515c4ccc44406:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:12
-82b8c1c80bdb051f86ec6bad301fd4bd55516165:pkg/iac/terraform/state/test/source/terraform.tfstate:aws-access-token:20
-169f1c37a578c55f749ee776afbbd2e5ab4d5b08:pkg/remote/iam_scanner_test.go:aws-access-token:494
-169f1c37a578c55f749ee776afbbd2e5ab4d5b08:pkg/remote/iam_scanner_test.go:aws-access-token:498
-169f1c37a578c55f749ee776afbbd2e5ab4d5b08:pkg/remote/iam_scanner_test.go:aws-access-token:502
-169f1c37a578c55f749ee776afbbd2e5ab4d5b08:pkg/remote/iam_scanner_test.go:aws-access-token:506
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:45
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:51
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:64
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:70
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:79
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:83
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:87
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:91
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:95
-b4e04e0d774f9dc40adc9fc6a9523de713937fa7:pkg/remote/aws/repository/iam_repository_test.go:aws-access-token:99
-f81cfb9eaf29cfec31d097939f3f4beddf7f9500:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:72
-f81cfb9eaf29cfec31d097939f3f4beddf7f9500:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:76
-f81cfb9eaf29cfec31d097939f3f4beddf7f9500:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:80
-f81cfb9eaf29cfec31d097939f3f4beddf7f9500:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:84
-f81cfb9eaf29cfec31d097939f3f4beddf7f9500:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:24
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:49
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:53
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:57
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:10
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:11
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:12
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:10
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:11
-613f4cf556633fede820c35883f8871d4684d8da:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:12
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:49
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:53
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:57
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:10
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:11
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:12
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:10
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:11
-8e4ce0507aeb8a70cadfa4d27d93a9b2dbc2040d:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:12
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:6
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:15
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:21
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:24
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:30
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:33
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/iac/terraform/state/test/module.iam_iam-user/result.golden.json:aws-access-token:17
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/resource/aws/aws_iam_access_key_ext_test.go:aws-access-token:18
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/resource/aws/aws_iam_access_key_ext_test.go:aws-access-token:20
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/resource/aws/aws_iam_access_key_ext_test.go:aws-access-token:25
-0bd09e25bcc932bb650e995c19d15e8eb605b3fb:pkg/resource/aws/aws_iam_access_key_ext_test.go:aws-access-token:27
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:9
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:19
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:29
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:12
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:30
-ac3c4e6b46d5aa24b91bec82a6b70bc339b30ead:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:45
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/ec2_key_pair/result.golden.json:generic-api-key:10
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:17
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:35
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:53
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:13
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:27
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:41
-92c58cd3e4afce88769490e42082a7cf92747499:pkg/iac/terraform/state/test/module.iam_iam-user/result.golden.json:aws-access-token:10
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:10
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:11
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:12
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:10
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:11
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:12
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:49
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:53
-87ad2728561fe86371af9d41c143ef7636578f7e:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:57
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:49
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:53
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/input_stdin_valid.json:aws-access-token:57
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:10
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:11
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid.txt:aws-access-token:12
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:10
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:11
-829967170090f9825896df96a256ff88b84db529:pkg/cmd/testdata/output_stdin_valid_filter2.txt:aws-access-token:12
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/ec2_key_pair/result.golden.json:generic-api-key:1
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:10
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:21
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:17
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:35
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:53
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_policy_attachment/result.golden.json:aws-access-token:15
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_policy_attachment/result.golden.json:aws-access-token:31
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_policy_multiple/result.golden.json:aws-access-token:15
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_role_policy_multiple/result.golden.json:aws-access-token:31
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:12
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:25
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:38
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:10
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:21
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:32
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:10
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:21
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:32
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:8
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:17
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:26
-42e4342f71b440401e564aa84b7ddbee89cf6f7b:pkg/iac/terraform/state/test/module.iam_iam-user/result.golden.json:aws-access-token:10
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:8
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:16
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/result.golden.json:generic-api-key:24
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/terraform.tfstate:generic-api-key:22
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/terraform.tfstate:generic-api-key:46
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/iac/terraform/state/test/kms_alias/terraform.tfstate:generic-api-key:70
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/remote/aws/test/kms_alias_multiple/results.golden.json:generic-api-key:8
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/remote/aws/test/kms_alias_multiple/results.golden.json:generic-api-key:16
-ab41545775bc4b69ef22f29bdec63c0a058e2baa:pkg/remote/aws/test/kms_alias_multiple/results.golden.json:generic-api-key:24
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:10
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:23
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/result.golden.json:generic-api-key:38
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/terraform.tfstate:generic-api-key:24
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/terraform.tfstate:generic-api-key:50
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/iac/terraform/state/test/kms_key/terraform.tfstate:generic-api-key:78
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/remote/aws/test/kms_key_multiple/results.golden.json:generic-api-key:10
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/remote/aws/test/kms_key_multiple/results.golden.json:generic-api-key:23
-30a9d5cc2d0da279aeed081ae9baf278eb744a00:pkg/remote/aws/test/kms_key_multiple/results.golden.json:generic-api-key:38
-64700a844b2f71143e1c05b3a97c6860ef13c076:doc/cmd/scan/supported_resources/github.md:generic-api-key:8
-f55e41bb1d5718ab653916a9ac60068b79f1f5e5:pkg/resource/aws/aws_iam_access_key_test.go:aws-access-token:18
-f55e41bb1d5718ab653916a9ac60068b79f1f5e5:pkg/resource/aws/aws_iam_access_key_test.go:aws-access-token:20
-f55e41bb1d5718ab653916a9ac60068b79f1f5e5:pkg/resource/aws/aws_iam_access_key_test.go:aws-access-token:25
-f55e41bb1d5718ab653916a9ac60068b79f1f5e5:pkg/resource/aws/aws_iam_access_key_test.go:aws-access-token:27
-aeafb861d7eac7d612c4c9bb6a62b8c3f5154338:pkg/iac/terraform/state/test/module.iam_iam-user/result.golden.json:aws-access-token:10
-aeafb861d7eac7d612c4c9bb6a62b8c3f5154338:pkg/iac/terraform/state/test/module.iam_iam-user/result.golden.json:aws-access-token:14
-aeafb861d7eac7d612c4c9bb6a62b8c3f5154338:pkg/iac/terraform/state/test/module.iam_iam-user/terraform.tfstate:aws-access-token:20
-aeafb861d7eac7d612c4c9bb6a62b8c3f5154338:pkg/iac/terraform/state/test/module.iam_iam-user/terraform.tfstate:aws-access-token:54
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:241
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:264
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:270
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:311
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:335
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/analyzer_test.go:aws-access-token:342
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/input.json:aws-access-token:11
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/input.json:aws-access-token:35
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/input.json:aws-access-token:42
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/output.json:aws-access-token:11
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/output.json:aws-access-token:35
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/analyser/testdata/output.json:aws-access-token:42
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/ec2_key_pair/result.golden.json:generic-api-key:1
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/ec2_key_pair/terraform.tfstate:generic-api-key:22
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:10
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:20
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:24
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:34
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:44
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/result.golden.json:aws-access-token:54
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:20
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:38
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:65
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:83
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:114
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:aws-access-token:136
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:generic-api-key:23
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:generic-api-key:24
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:generic-api-key:68
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_access_key_multiple/terraform.tfstate:generic-api-key:69
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:17
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:34
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/result.golden.json:aws-access-token:51
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/terraform.tfstate:aws-access-token:33
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/terraform.tfstate:aws-access-token:55
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_multiple/terraform.tfstate:aws-access-token:77
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_attachment/result.golden.json:aws-access-token:15
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_attachment/result.golden.json:aws-access-token:30
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_attachment/terraform.tfstate:aws-access-token:120
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_attachment/terraform.tfstate:aws-access-token:147
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_multiple/result.golden.json:aws-access-token:15
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_multiple/result.golden.json:aws-access-token:30
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_multiple/terraform.tfstate:aws-access-token:31
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_role_policy_multiple/terraform.tfstate:aws-access-token:51
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:12
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:24
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/result.golden.json:aws-access-token:36
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/terraform.tfstate:aws-access-token:28
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/terraform.tfstate:aws-access-token:45
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_multiple/terraform.tfstate:aws-access-token:62
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:10
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:20
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:30
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:124
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:134
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/result.golden.json:aws-access-token:144
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:generic-api-key:22
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:generic-api-key:47
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:18
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:43
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:68
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:212
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:234
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_attachment/terraform.tfstate:aws-access-token:256
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:10
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:20
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:30
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:118
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:128
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/result.golden.json:aws-access-token:138
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:generic-api-key:22
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:generic-api-key:47
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:18
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:43
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:68
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:99
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:121
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/iac/terraform/state/test/iam_user_policy_multiple/terraform.tfstate:aws-access-token:143
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:76
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:82
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:95
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/iam_access_key_supplier_test.go:aws-access-token:101
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/ec2_key_pair_multiple/results.golden.json:generic-api-key:1
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/ec2_key_pair_multiple/results.golden.json:generic-api-key:1
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:4
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:14
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:24
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:34
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:44
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_access_key_multiple/results.golden.json:aws-access-token:54
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_role_multiple/results.golden.json:aws-access-token:17
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_role_multiple/results.golden.json:aws-access-token:34
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_role_multiple/results.golden.json:aws-access-token:51
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_user_multiple/results.golden.json:aws-access-token:12
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_user_multiple/results.golden.json:aws-access-token:24
-ff72de8e77f908fba61df50bc0938744270d1b51:pkg/remote/aws/test/iam_user_multiple/results.golden.json:aws-access-token:36
-20e6356a49e6dd18f00cd6c36b735ef1a850ac55:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:823
-20e6356a49e6dd18f00cd6c36b735ef1a850ac55:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:826
-651ab697db3ff60ba195c22dc0570d1204a97f7e:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:823
-651ab697db3ff60ba195c22dc0570d1204a97f7e:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:826
-6cf09f996d8637c30ad06884a450ff66920d9798:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:823
-6cf09f996d8637c30ad06884a450ff66920d9798:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:826
-6d204a7f446251a3c1519bfc4b80599529eec279:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:823
-6d204a7f446251a3c1519bfc4b80599529eec279:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:826
-40f68d61a91d8c10c09e43263cbd36b380cca90a:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:823
-40f68d61a91d8c10c09e43263cbd36b380cca90a:enumeration/remote/aws_iam_scanner_test.go:aws-access-token:826
-7c653d0500440a35eba12700ba4734f571a959e6:pkg/resource/aws/testdata/acc/aws_rds_cluster_instance/terraform.tf:hashicorp-tf-password:17
-b8ef7c8a4722b7a90d5b2eb1b8d143895689afd6:pkg/iac/terraform/state/test/rds_cluster/terraform.tf:hashicorp-tf-password:21
-b8ef7c8a4722b7a90d5b2eb1b8d143895689afd6:pkg/resource/aws/testdata/acc/aws_rds_cluster/terraform.tf:hashicorp-tf-password:17
-af08a560e11e1ac1b31e87b6b8c66f6a309d5476:pkg/resource/aws/testdata/acc/aws_db_instance/db_instance.tf:hashicorp-tf-password:8
-b7e38f9e26f3ab4c0f445ec2c7f407215a582248:pkg/iac/terraform/state/test/db_instance/terraform.tf:hashicorp-tf-password:19
-b7e38f9e26f3ab4c0f445ec2c7f407215a582248:pkg/resource/aws/testdata/acc/aws_db_instance/terraform.tf:hashicorp-tf-password:19
diff --git a/.go-version b/.go-version
deleted file mode 100644
index a1b6e17d6..000000000
--- a/.go-version
+++ /dev/null
@@ -1 +0,0 @@
-1.23
diff --git a/.golangci.yml b/.golangci.yml
deleted file mode 100644
index 6fb9436dd..000000000
--- a/.golangci.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-run:
- go: '1.23'
-linters:
- enable:
- - copyloopvar
-issues:
- exclude-rules:
- - path: _test\.go
- linters:
- - copyloopvar
diff --git a/.goreleaser.yml b/.goreleaser.yml
deleted file mode 100644
index 3db5bf584..000000000
--- a/.goreleaser.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-project_name: driftctl
-dist: bin
-release:
- github:
- owner: snyk
- name: driftctl
- draft: false
- prerelease: auto
-before:
- hooks:
- - go generate ./...
-signs:
- - signature: "${artifact}.gpg"
- artifacts: checksum
- args: [ "--batch", "-u", "team-cloud-config+security@snyk.io", "--output", "${signature}", "--detach-sign", "${artifact}" ]
-builds:
- - id: "driftctl"
- binary: driftctl
- dir: .
- env:
- - CGO_ENABLED=0
- goos:
- - linux
- - windows
- - darwin
- goarch:
- - amd64
- - arm
- - arm64
- - 386
- ldflags: "-s -w -X github.com/snyk/driftctl/build.env={{ .Env.ENV }} -X github.com/snyk/driftctl/pkg/version.version={{ .Tag }}"
-archives:
- - name_template: '{{ .ProjectName }}_{{ .Os }}_{{- if eq .Arch "armv6" }}arm{{- else }}{{ .Arch }}{{ end }}'
- format: binary
-checksum:
- name_template: '{{ .ProjectName }}_SHA256SUMS'
- algorithm: sha256
-snapshot:
- name_template: "{{ .Tag }}-next"
-blobs:
- - provider: s3
- bucket: snyk-assets
- region: us-east-1
- folder: "cli/driftctl/{{.Tag}}"
diff --git a/.mockery.yaml b/.mockery.yaml
deleted file mode 100644
index e8e851322..000000000
--- a/.mockery.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-# Sometimes mock use unexported struct
-inpackage: true
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
deleted file mode 100644
index 79c84ca07..000000000
--- a/.pre-commit-config.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-repos:
- - repo: https://github.com/gitleaks/gitleaks
- rev: v8.16.2
- hooks:
- - id: gitleaks
diff --git a/.snyk b/.snyk
deleted file mode 100644
index d46c4bf57..000000000
--- a/.snyk
+++ /dev/null
@@ -1,86 +0,0 @@
-# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
-version: v1.25.0
-# ignores vulnerabilities until expiry date; change duration by modifying expiry date
-ignore:
- 'snyk:lic:golang:github.com:hashicorp:go-checkpoint:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-cleanhttp:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-getter:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-multierror:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-plugin:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-retryablehttp:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-safetemp:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-slug:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-tfe:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-uuid:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:go-version:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:hcl:v2:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:terraform-json:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:terraform-svchost:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:r3labs:diff:v2:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:errwrap:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2021-12-09T16:40:21.832Z
- 'snyk:lic:golang:github.com:hashicorp:terraform-exec:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2022-09-09T14:25:05.042Z
- 'snyk:lic:golang:github.com:hashicorp:terraform:MPL-2.0':
- - '*':
- reason: This license is addressed by including acknowledgments in each release
- created: 2022-09-09T14:25:05.042Z
- SNYK-GOLANG-GOLANGORGXNETHTTP2-5953327:
- - '*':
- reason: Not affected because CLI
- expires: 2024-04-15T15:15:28.330Z
- created: 2023-10-16T15:15:28.356Z
-patch: {}
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
deleted file mode 100644
index 902c7fb25..000000000
--- a/CONTRIBUTORS.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Contributors
-
-Thank you to all the people who have already contributed to driftctl.
-
-
-
-
-
-
-
-
-
-
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index b7d67b894..000000000
--- a/Dockerfile
+++ /dev/null
@@ -1,20 +0,0 @@
-FROM golang:1.23 AS builder
-
-ARG OS="linux"
-ARG ARCH="amd64"
-
-WORKDIR /go/src/app
-COPY go.mod go.sum Makefile ./
-RUN go mod download
-COPY . .
-RUN SINGLE_TARGET=true make release
-
-FROM alpine:3.21.2
-
-ARG OS="linux"
-ARG ARCH="amd64"
-
-WORKDIR /app
-COPY --from=builder /go/src/app/bin/driftctl_${OS}_${ARCH}/driftctl /bin/driftctl
-RUN chmod +x /bin/driftctl
-ENTRYPOINT ["/bin/driftctl"]
diff --git a/LICENSE.md b/LICENSE.md
deleted file mode 100644
index 99389790d..000000000
--- a/LICENSE.md
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 2020-2021 Snyk Ltd.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/Makefile b/Makefile
deleted file mode 100644
index efe8cc1ee..000000000
--- a/Makefile
+++ /dev/null
@@ -1,72 +0,0 @@
-# Use bash syntax
-SHELL=/bin/bash
-# Go parameters
-GOCMD=go
-GOBINPATH=$(shell $(GOCMD) env GOPATH)/bin
-GOMOD=$(GOCMD) mod
-GOBUILD=$(GOCMD) build
-GOCLEAN=$(GOCMD) clean
-GOTEST=gotestsum
-GOGET=$(GOCMD) get
-GOINSTALL=$(GOCMD) install
-GOTOOL=$(GOCMD) tool
-GOFMT=$(GOCMD) fmt
-# ACC tests params
-ACC_PATTERN ?= TestAcc_
-
-.PHONY: FORCE
-
-.PHONY: all
-all: fmt lint test build go.mod
-
-.PHONY: build
-build:
- SINGLE_TARGET=true ./scripts/build.sh
-
-.PHONY: release
-release:
- ENV=release ./scripts/build.sh
-
-.PHONY: test
-test:
- $(GOTEST) --format testname --junitfile unit-tests.xml -- -mod=readonly -coverprofile=cover.out.tmp -coverpkg=.,./pkg/... ./...
- cat cover.out.tmp | grep -v "mock_" > cover.out
-
-.PHONY: coverage
-coverage: test
- $(GOTOOL) cover -func=cover.out
-
-.PHONY: acc
-acc:
- DRIFTCTL_ACC=true $(GOTEST) --format standard-verbose --junitfile unit-tests-acc.xml -- -coverprofile=cover-acc.out -test.timeout 5h -coverpkg=./pkg/... -run=$(ACC_PATTERN) ./pkg/...
-
-.PHONY: mocks
-mocks:
- rm -rf mocks
- mockery --all
-
-
-.PHONY: fmt
-fmt:
- $(GOFMT) ./...
-
-.PHONY: clean
-clean:
- $(GOCLEAN)
- rm -f bin/*
-
-.PHONY: lint
-lint:
- @which golangci-lint > /dev/null 2>&1 || (curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $(GOBINPATH) v1.64.7)
- golangci-lint run -v --timeout=10m
-
-.PHONY: install-tools
-install-tools:
- $(GOINSTALL) gotest.tools/gotestsum@v1.10.0
- $(GOINSTALL) github.com/vektra/mockery/v2@v2.36.1
-
-
-go.mod: FORCE
- $(GOMOD) tidy
- $(GOMOD) verify
-go.sum: go.mod
diff --git a/README.md b/README.md
deleted file mode 100644
index 263e4a501..000000000
--- a/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-## This project is now in maintenance mode. We cannot promise to review contributions. Please feel free to fork the project to apply any changes you might want to make.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Measures infrastructure as code coverage, and tracks infrastructure drift.
- IaC: Terraform. Cloud providers: AWS, GitHub, Azure, GCP.
- :warning: This tool is still in beta state and will evolve in the future with potential breaking changes :warning:
-
-
-
- Packaging status
-
-
-
-
-
-## Why driftctl ?
-
-Infrastructure drift is a blind spot and a source of potential security issues.
-Drift can have multiple causes: from team members creating or updating infrastructure through the web console without backporting changes to Terraform, to unexpected actions from authenticated apps and services.
-
-You can't efficiently improve what you don't track. We track coverage for unit tests, why not infrastructure as code coverage?
-
-Spot discrepancies as they happen: driftctl is a free and open-source CLI that warns of infrastructure drifts and fills in the missing piece in your DevSecOps toolbox.
-
-
-## Features
-
-- **Scan** cloud provider and map resources with IaC code
-- Analyze diffs, and warn about drift and unwanted unmanaged resources
-- Allow users to **ignore** resources
-- Multiple output formats
-
-## Links
-
-**[Documentation](https://docs.driftctl.com)**
-
-**[Installation](https://docs.driftctl.com/installation)**
-
-**[Discord](https://discord.gg/7zHQ8r2PgP)**
-
-## Contribute
-
-To learn more about compiling driftctl and contributing, please refer to the [contribution guidelines](.github/CONTRIBUTING.md) and the [contributing guide](docs/README.md) for technical details.
-
-This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification and is brought to you by these [awesome contributors](CONTRIBUTORS.md).
-
-Build with ❤️️ from 🇫🇷 🇬🇧 🇯🇵 🇬🇷 🇸🇪 🇺🇸 🇷🇪 🇨🇦 🇮🇱 🇩🇪
-
-## Security notice
-
-All Terraform state and Terraform files in this repository are for unit test
-purposes only. No running code attempts to access these resources (except to
-create and destroy them, in the case of acceptance tests). They are just opaque
-strings.
diff --git a/ROADMAP.md b/ROADMAP.md
deleted file mode 100644
index 5fd32bfd3..000000000
--- a/ROADMAP.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# driftctl Roadmap (S1 2021)
-
-This roadmap does not describe all the work that will be included within this timeframe, but it does describe our focus. We will include other work as events occur.
-
-## Summary
-
-* A more complete AWS support
-* Support at least one new provider
-* Maintain focus on Terraform support (no new IaC provider integration, like Pulumi)
-
-## Resources
-
-* Improve existing support for VPC, Route53, Lambda, S3, EC2, RDS Aurora
-* Add support for:
- * API Gateway v1 & v2
- * SNS, SQS
- * ECR, ECS, EKS
- * Cloudfront
- * KMS
- * DynamoDB
-
-## Providers
-
-* Add GitHub support (at least repositories, organizations, users)
-* Add initial support for either Azure or GCP (TBD)
-
-## Issues & Enhancements
-
-* Migration to Go 1.16 to support Apple Silicon
-* Acceptance tests automation
-* Don't scan for ignored or filtered resources (performance improvement)
-
-## Disclosures
-
-The product-development initiatives in this document reflect Snyk's current plans and are subject to change and/or cancellation in Snyk's sole discretion.
diff --git a/build/build.go b/build/build.go
deleted file mode 100644
index 44df47394..000000000
--- a/build/build.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package build
-
-var env = "dev"
-
-// This flag could be switched to false while building to create a binary without third party network calls
-// That mean that following services will be disabled:
-// - telemetry
-// - version check
-var enableUsageReporting = "true"
-
-type BuildInterface interface {
- IsRelease() bool
- IsUsageReportingEnabled() bool
-}
-
-type Build struct{}
-
-func (b Build) IsRelease() bool {
- return env == "release"
-}
-
-func (b Build) IsUsageReportingEnabled() bool {
- return b.IsRelease() && enableUsageReporting == "true"
-}
diff --git a/catalog-info.yaml b/catalog-info.yaml
deleted file mode 100644
index fe7ed2c0d..000000000
--- a/catalog-info.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: backstage.io/v1alpha1
-kind: Component
-metadata:
- name: driftctl
- annotations:
- github.com/project-slug: snyk/driftctl
- github.com/team-slug: snyk/iac
-spec:
- type: external-tooling
- lifecycle: "-"
- owner: iac
diff --git a/docs/README.md b/docs/README.md
deleted file mode 100644
index 8e005751a..000000000
--- a/docs/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Developer guide
-
-This directory contains some documentation about the driftctl codebase, aimed at readers who are interested in making code contributions.
-
-- [Add new remote provider](new-remote-provider.md)
-- [Add new resources](new-resource.md)
-- [Testing](testing.md)
-
-## Core concepts
-
-driftctl uses Terraform providers besides cloud providers SDK to retrieve data.
-
-Resource listing is done using cloud providers SDK. Resource details retrieval is done by calling terraform providers with gRPC.
-
-## Terminology
-
-- `Remote` is a representation of a cloud provider
-- `Resource` is an abstract representation of a cloud provider resource (e.g. S3 bucket, EC2 instance, etc ...)
-- `Enumerator` is used to list resources of a given type from a given remote and return a resource list, it should exist only one Enumerator per resource
diff --git a/docs/media/generalflow.png b/docs/media/generalflow.png
deleted file mode 100644
index 55b243dfd..000000000
Binary files a/docs/media/generalflow.png and /dev/null differ
diff --git a/docs/media/generalflow.puml b/docs/media/generalflow.puml
deleted file mode 100644
index b2809ba19..000000000
--- a/docs/media/generalflow.puml
+++ /dev/null
@@ -1,26 +0,0 @@
-@startuml
-hnote across: Retrieve Resources
-driftctl -> IACSupplier: Resource()
-IACSupplier --> driftctl: stateResources []Resource
-driftctl -> RemoteSupplier: Resource()
-RemoteSupplier --> driftctl: remoteResources []Resource
-
-hnote across: Run Middlewares
-driftctl --> driftctl: List Middlewares
-loop on each middleware
-driftctl -> Middleware: Execute(remoteResources, stateResources)
-Middleware --> driftctl: remoteResources, stateResources []Resource
-end
-
-hnote across: Run Filters
-driftctl -> FilterEngine: Run(remoteResources)
-FilterEngine --> driftctl: remoteResources []Resource
-driftctl -> FilterEngine: Run(stateResources)
-FilterEngine --> driftctl: stateResources []Resource
-
-hnote across: Analyze
-driftctl -> Analyzer: Analyze(remoteResources, stateResources)
-Analyzer --> driftctl: Analyze
-
-
-@enduml
diff --git a/docs/media/resource.png b/docs/media/resource.png
deleted file mode 100644
index c1fddf046..000000000
Binary files a/docs/media/resource.png and /dev/null differ
diff --git a/docs/media/resource.puml b/docs/media/resource.puml
deleted file mode 100644
index 441ce0eb5..000000000
--- a/docs/media/resource.puml
+++ /dev/null
@@ -1,16 +0,0 @@
-@startuml
-driftctl -> Scanner: Resource()
-hnote across: Enumeration phase
-Scanner -> Scanner: List Enumerators
-loop
-Scanner -> Enumerator: Enumerate()
-Enumerator -> RemoteSDK: List resources
-RemoteSDK --> Enumerator: []remoteRes
-alt optionally retrieve resource needed attributes
-Enumerator -> RemoteSDK: Retrieve needed attributes
-RemoteSDK --> Enumerator: Attrs
-end
-Enumerator --> Scanner: []Resource with limited attributes
-end
-Scanner --> driftctl: []Resource
-@enduml
\ No newline at end of file
diff --git a/docs/middlewares.md b/docs/middlewares.md
deleted file mode 100644
index 73a0968b1..000000000
--- a/docs/middlewares.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Middlewares
-
-The main goal of middlewares is to reconciliate IaC and remote resources. For this we filter default resources, mutate, or remove fields in resources or even create and delete new resources.
-
-```go
-type AwsDefaultRoute struct{}
-
-func NewAwsDefaultRoute() AwsDefaultRoute {
- return AwsDefaultRoute{}
-}
-
-func (m AwsDefaultRoute) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- // ...
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-```
-
-In the above example, we define a middleware called `AwsDefaultRoute` that will modify remote resources. Middleware can access two arrays of type `*[]*resource.Resource`: IaC resources first and then remote resources. The goal is to rework these slices to remove false positive drifts. Notice both `remoteResources` and `resourcesFromState` variables are pointers, which mean middlewares can perform mutations on resources before the comparison is made.
-
-## Different kind of middlewares
-
-1) Help driftctl match IaC resources and remote resources.
-2) Filter noises from provider default resources
-3) Resource transformation
-4) Specific edge cases
-
-## Examples
-
-1) `aws_route_table_expander` explode inline route in dedicated resources
-2) `aws_default_route` ignore route created by default when creating a table **if they are not managed in IaC**
-3) `aws_iam_user_policy_attachment` and `aws_iam_role_policy_attachment` transformed to `aws_iam_policy_attachment`
-4) `route53_records_id_reconcilier` that rework ID's to match Terraform ones
diff --git a/docs/new-remote-provider.md b/docs/new-remote-provider.md
deleted file mode 100644
index 7bf68d3ee..000000000
--- a/docs/new-remote-provider.md
+++ /dev/null
@@ -1,184 +0,0 @@
-# Add a new remote provider
-
-A remote provider in driftctl represents a cloud provider like AWS, GitHub, GCP or Azure.
-
-Our current architecture allows to add a new provider in a few steps.
-
-## Declaring the new remote provider
-
-First you need to create a new directory in `pkg/remote/`. It will sit next to already implemented one like `pkg/remote/aws`.
-
-Inside this directory, you will create a `init.go` file in which you will define the remote name constant:
-
-```go
-const RemoteAWSTerraform = "aws+tf"
-```
-
-`+tf` means that we use Terraform to retrieve resource's details, in the future, we may add other ways to read those details.
-
-You will then create a function to initialize the provider and all resource's enumerators. The best way to do it would be to copy the function signature from another provider:
-
-```go
-func Init(
- // Version required by the user
- version string,
- // Util to send alert
- alerter *alerter.Alerter,
- // Library that contains all providers
- providerLibrary *terraform.ProviderLibrary,
- // Library that contains enumerators and details fetchers for each supported resources
- remoteLibrary *common.RemoteLibrary,
- // Progress displayer
- progress output.Progress,
- // Repository for all resource schemas
- resourceSchemaRepository *resource.SchemaRepository,
- // Factory used to create driftctl resource
- factory resource.ResourceFactory,
- // driftctl configuration directory (where Terraform provider is downloaded)
- configDir string) error {
-
- // You need to define the default version of the Terraform provider when the user does not specify one
- if version == "" {
- version = "3.19.0"
- }
-
- // Creation of the Terraform provider
- provider, err := NewAWSTerraformProvider(version, progress, configDir)
- if err != nil {
- return err
- }
- // And then initialization
- err = provider.Init()
- if err != nil {
- return err
- }
-
- // You'll need to create a new cache that will be used to cache fetched lists of resources
- repositoryCache := cache.New(100)
-
- // Deserializer is used to convert cty value returned by Terraform provider to driftctl Resource
- deserializer := resource.NewDeserializer(factory)
-
- // Adding the provider to the library
- providerLibrary.AddProvider(terraform.AWS, provider)
-}
-```
-
-Once done, you'll create a `provider.go` file to contain your Terraform provider representation. Again you should look at other implementation:
-
-```go
-// Define your actual provider representation, it is required to compose with terraform.TerraformProvider, a name and a version
-// Please note that the name should match the real Terraform provider name.
-type AWSTerraformProvider struct {
- *terraform.TerraformProvider
- session *session.Session
- name string
- version string
-}
-
-func NewAWSTerraformProvider(version string, progress output.Progress, configDir string) (*AWSTerraformProvider, error) {
- // Just pass your version and name
- p := &AWSTerraformProvider{
- version: version,
- name: "aws",
- }
- // Use Terraform ProviderInstaller to retrieve the provider if needed
- installer, err := tf.NewProviderInstaller(tf.ProviderConfig{
- Key: p.name,
- Version: version,
- ConfigDir: configDir,
- })
- if err != nil {
- return nil, err
- }
- p.session = session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- // ProviderConfig is dependent on the Terraform provider needs.
- tfProvider, err := terraform.NewTerraformProvider(installer, terraform.TerraformProviderConfig{
- Name: p.name,
- DefaultAlias: *p.session.Config.Region,
- GetProviderConfig: func(alias string) interface{} {
- return awsConfig{
- Region: alias,
- MaxRetries: 10,
- }
- },
- }, progress)
- if err != nil {
- return nil, err
- }
- p.TerraformProvider = tfProvider
- return p, err
-}
-
-func (a *AWSTerraformProvider) Name() string {
- return a.name
-}
-
-func (p *AWSTerraformProvider) Version() string {
- return p.version
-}
-```
-
-The configuration returned in `GetProviderConfig` should be annotated with `cty` tags to be passed to the provider.
-
-```go
-type githubConfig struct {
- Token string
- Owner string `cty:"owner"`
- Organization string
-}
-```
-
-You are now almost done. You'll need to make driftctl aware of this provider. Thus, the in `pkg/remote/remote.go` file, add your new constant in `supportedRemotes`:
-
-```go
-var supportedRemotes = []string{
- aws.RemoteAWSTerraform,
- github.RemoteGithubTerraform,
-}
-```
-
-Don't forget to modify the Activate function. You'll need to add a new case in the switch statement:
-
-```go
-func Activate(remote, version string, alerter *alerter.Alerter,
- providerLibrary *terraform.ProviderLibrary,
- remoteLibrary *common.RemoteLibrary,
- progress output.Progress,
- resourceSchemaRepository *resource.SchemaRepository,
- factory resource.ResourceFactory,
- configDir string) error {
- switch remote {
- case aws.RemoteAWSTerraform:
- return aws.Init(version, alerter, providerLibrary, remoteLibrary, progress, resourceSchemaRepository, factory, configDir)
- case github.RemoteGithubTerraform:
- return github.Init(version, alerter, providerLibrary, remoteLibrary, progress, resourceSchemaRepository, factory, configDir)
- default:
- return errors.Errorf("unsupported remote '%s'", remote)
- }
-}
-```
-
-Your provider is now set up!
-
-## Prepare driftctl to support new resources
-
-Each new resource of the newly added provider will be located in `pkg/resource/` directory. You need to create the latter and the `metadatas.go` file inside it.
-
-Inside this file add a new function:
-
-```go
-func InitResourcesMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
-}
-```
-
-Then, add a call to this function in the `remote//init.go` file you created in the first step.
-
-You also need to create a test schema for upcoming tests.
-
-Please use `TestCreateNewSchema` located in `test/terraform/schemas_test.go` to generate a schema file that will be used for the mocked provider.
-
-Everything is now ready, you should [start adding new resources](new-resource.md)!
diff --git a/docs/new-resource.md b/docs/new-resource.md
deleted file mode 100644
index 4a93bdb79..000000000
--- a/docs/new-resource.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# Add new resources
-
-First, you need to understand how `driftctl scan` works. Here you'll find a global overview of the steps that compose the scan:
-
-
-
-Then, you'll find below a more detailed flow of how we handle the enumeration and the fetching of resource's details from the remote:
-
-
-
-## Defining the resource
-
-First step would be to add a file called `pkg/resource//.go`.
-This file will define a string constant that will be the resource type identifier in driftctl.
-
-For example this defines the `aws_iam_role` resource:
-
-```go
-const AwsIamRoleResourceType = "aws_iam_role"
-
-func initAwsIAMRoleMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
- // force_detach_policies should not be compared so it will be removed before the comparison
- resourceSchemaRepository.SetNormalizeFunc(AwsIamRoleResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"force_detach_policies"})
- })
-}
-```
-
-When it's done you'll have to add this function to the metadata initialisation located in `pkg/resource//metadatas.go`:
-
-```go
-func InitResourcesMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
- initAwsAmiMetaData(resourceSchemaRepository)
-}
-```
-
-In order for you new resource to be supported by our terraform state reader you should add it in `pkg/resource/resource_types.go` inside the `supportedTypes` slice.
-
-```go
-var supportedTypes = map[string]struct{}{
- "aws_ami": {},
-}
-```
-
-
-All resources inside driftctl are `resource.Resource` structs.
-All the other attributes are represented inside a `map[string]interface`
-
-## Repository, Enumerator
-
-Then you will have to implement one interface:
-
-- Repositories are the way we decided to hide direct calls to SDK and pagination logic. It's a common abstraction pattern for data retrieval.
-- `remote.common.Enumerator` is used to enumerate resources. It will call the cloud provider SDK to get the list of resources.
-
-### Repository
-
-This will be the component that hides all the logic linked to your provider SDK. All providers have different ways to implement pagination or to name function in their API.
-
-Here we will name all listing functions `ListAll`.
-
-For AWS we decided to split repositories using the Amazon logic. So you'll find repositories for EC2, S3 and so on.
-Some provider does not have this grouping logic. Keep in mind that like all our file/struct repositories should not be too big.
-
-For our GitHub implementation the number of listing functions was not that heavy, so we created a unique repository for everything:
-
-```go
-type GithubRepository interface {
- ListRepositories() ([]string, error)
- ListTeams() ([]Team, error)
- ListMembership() ([]string, error)
- ListTeamMemberships() ([]string, error)
- ListBranchProtection() ([]string, error)
-}
-
-type githubRepository struct {
- client GithubGraphQLClient
- ctx context.Context
- config githubConfig
- cache cache.Cache
-}
-
-func NewGithubRepository(config githubConfig, c cache.Cache) *githubRepository {
- ctx := context.Background()
- ts := oauth2.StaticTokenSource(
- &oauth2.Token{AccessToken: config.Token},
- )
- oauthClient := oauth2.NewClient(ctx, ts)
-
- repo := &githubRepository{
- client: githubv4.NewClient(oauthClient),
- ctx: context.Background(),
- config: config,
- cache: c,
- }
-
- return repo
-}
-```
-
-As you can see, this contains the logic to create the GitHub client (it might be created outside the repository if it makes sense to share it between multiple repositories).
-driftctl, sometimes, needs to retrieve the list of resources more than once, so we cache each request to avoid unnecessary call.
-
-### Enumerator
-
-Enumerators can be found in `pkg/remote//_enumerator.go`. It will call the cloud provider SDK to get the list of resources.
-
-Note that at this point, resources should not be entirely fetched and most of them will have empty attributes (e.g. only their id and type).
-Most of the resource returned by enumerator have empty attributes: they only represent type and terraform id.
-
-**There are exceptions to this**:
-- Sometimes, you will need more information about resources for them to be fetched in the `DetailsFetcher`. For those cases, you will add specific attributes to the map of data.
-
-You can use an already implemented Enumerator as example.
-
-For example, to implement `aws_instance` resource you will need to add a `ListAllInstances()` function to `repository.EC2Repository`.
-
-Bear in mind it will be called by the Enumerator to retrieve the list of instances.
-
-Enumerator constructor could use these arguments:
-- an instance of `Repository` that you will use to retrieve information about the resource
-- the global resource factory that should always be used to create a new `resource.Resource`
-
-Enumerator then needs to implement:
-- `SupportedType() resource.ResourceType` that will return the constant you defined in the type file
-- `Enumerate() ([]*resource.Resource, error)` that will return the list of resources
-
-```go
-type EC2InstanceEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2InstanceEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2InstanceEnumerator {
- return &EC2InstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2InstanceEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsInstanceResourceType
-}
-
-func (e *EC2InstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- instances, err := e.repository.ListAllInstances()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, len(instances))
-
- for _, instance := range instances {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *instance.InstanceId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
-```
-
-As you can see, listing errors are treated in a particular way. Instead of failing and stopping the scan they will be handled, and an alert will be created.
-So please don't forget to wrap these errors inside a `NewResourceListingError`.
-For some provider error handling is not that coherent, so you might need to check in `pkg/remote/resource_enumeration_error_handler.go` and add a new case for your error.
-You should test enumerator behavior when you do not have permission to enumerate resources. In the snippet above, `ListAllInstances` may return an `AccessDenied` error that should be handled.
-
-Once the enumerator is written you have to add it to the remote initialization located in `pkg/remote//init.go`:
-
-```go
- remoteLibrary.AddEnumerator(NewEC2InstanceEnumerator(s3Repository, factory))
-```
diff --git a/docs/testing.md b/docs/testing.md
deleted file mode 100644
index 463d3d5c0..000000000
--- a/docs/testing.md
+++ /dev/null
@@ -1,361 +0,0 @@
-# Testing
-
-## Table of Content
-
-- [Golden files](#golden-files)
-- [Unit testing](#unit-testing)
- - [Mocks](#mocks)
- - [Mocking repositories](#mocking-repositories)
-- [Acceptance testing](#acceptance-testing)
- - [Credentials](#credentials)
- - [AWS](#aws)
- - [Workflow](#workflow)
- - [Example](#example)
-
-
-driftctl uses **unit tests**, **functional tests** and **acceptance tests**.
-
-- A **unit test** tests only a very specific part of code
- - Pros:
- - Very quick to develop, run and maintain
- - Cons:
- - Does not ensure that we do not break integration with other part of the code
-- A **functional test** covers a larger part of the code than unit tests, but it mocks external dependencies
- - Pros:
- - Ensures that multiple components work well together
- - Still quick to develop and run
- - Cons:
- - Mocking every external dependencies can be complicated
- - Can be complicated to maintain since it is not scoped to a specific part of the code
-- An **acceptance test** or **integration test** is the closest of the end-user behavior
- - Pros:
- - Very close to a real product usage
- - Can cover regressions very efficiently
- - Cons:
- - Can be long to develop
- - They require real world resources
- - Long execution time
- - They require a lot of maintenance
- - Unstable due to third party services (something wrong or inconsistent on cloud provider side will make the test to fail)
-
-**Acceptance tests are not required**, but at least a good unit test coverage is required for a PR to be merged.
-This documentation section's goal is about how we manage our test suite in driftctl.
-
-driftctl uses gotestsum to wrap `go test`, you can install required tools to run test with `make install-tools`.
-
-To run unit test simply run.
-
-```shell
-$ make install-tools
-$ make test
-```
-
-For the driftctl team, code coverage is very important as it helps show which part of your code is not covered.
-We kindly ask you to check your coverage to ensure every important part of your code is tested.
-We do not expect 100% coverage for each line of code, but at least every critical part of your code should be covered.
-For example, we don't care about covering `NewStruct()` constructors if there is no big logic inside.
-Remember, a covered code does not mean that all conditions are tested and asserted, so be careful to test the right things.
-A bug can still happen in a covered part of your code.
-
-## Golden files
-
-We use the golden file pattern to assert on results. Golden files could be updated with `-update flag`.
-For example, I've made modifications to s3 bucket policy, I could update golden files with the following command:
-
-```shell
-$ go test ./pkg/remote/aws/ --update s3_bucket_policy_no_policy
-```
-
-⚠️ Beware that updating golden files may call external services.
-
-In the example above, as we are using mocked AWS responses in json golden files, you should have to configure proper resources on AWS side before running an update.
-For convenience, we try to put, as much as possible, terraform files used to generate golden files in test folders.
-
-**A quick way to get started is to copy/paste an existing test and adapt it to your needs.**
-
-## Unit testing
-
-Unit testing should not use any external dependency, so we mock all calls to the cloud provider's SDK (see below for more details on mocking).
-
-### Mocks
-
-In driftctl unit test suite, each call to the cloud provider's SDK should be mocked.
-We use mocks generated by mockery in our tests.
-See below each step to create a mock for a new AWS service (e.g. EC2).
-
-1. Create a mock interface in `test/aws/ec2.go`
-
-```go
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/ec2/ec2iface"
-)
-
-type FakeEC2 interface {
- ec2iface.EC2API
-}
-```
-
-2. Use mockery to generate a full mocked struct
-```
-$ mockery --name FakeEC2 --dir ./test/aws
-```
-3. Mock a response in your test (list IAM users for example)
-
-```go
-client := mocks.FakeIAM{}
-client.On("ListUsersPages",
- &iam.ListUsersInput{},
- mock.MatchedBy(func(callback func(res *iam.ListUsersOutput, lastPage bool) bool) bool {
- callback(&iam.ListUsersOutput{Users: []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- {
- UserName: aws.String("test-driftctl2"),
- },
- }}, true)
- return true
- })
-).Once().Return(nil)
-```
-
-⚠️ If you have several mocks on the same method, the "mock" library will evaluate code in your `MatchedBy` multiple times even if the first parameter does not match.
-It means your callback will always be called, this is an unwanted behaviour most of the time!
-A workaround is to manage flags but this is an ugly solution, here is an example using a boolean flag:
-
-```go
-client := awstest.MockFakeIAM{}
-shouldSkipfirst := false
-shouldSkipSecond := false
-
-client.On("ListAttachedRolePoliciesPages",
- &iam.ListAttachedRolePoliciesInput{
- RoleName: aws.String("test-role"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedRolePoliciesOutput, lastPage bool) bool) bool {
- // This will be evaluated every time, that's why we set this bool to true after the call
- if shouldSkipfirst {
- return false
- }
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- }}, true)
- shouldSkipfirst = true
- return true
- }),
-).Return(nil).Once()
-
-client.On("ListAttachedRolePoliciesPages",
- &iam.ListAttachedRolePoliciesInput{
- RoleName: aws.String("test-role2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedRolePoliciesOutput, lastPage bool) bool) bool {
- if shouldSkipSecond {
- return false
- }
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- }}, true)
- shouldSkipSecond = true
- return true
- }),
-).Return(nil).Once()
-```
-
-#### Mocking repositories
-
-Repositories are an abstraction layer for data retrival. They're used by enumerators to retrieve data from a cloud provider through its SDK. For example, each AWS service has a repository attached. We only implement repositories and methods we need. Mocking repositories is almost the same process than mocking the cloud provider's SDK.
-
-Since there's an interface for each repository, generating a mock for it is quick and easy. Note the difference between the interface and struct here. Remember a struct cannot be mocked in Go.
-
-```go
-type ECRRepository interface {
- ListAllRepositories() ([]*ecr.Repository, error)
-}
-
-type ecrRepository struct {
- client ecriface.ECRAPI
- cache cache.Cache
-}
-```
-
-Here's an example that will create a mock for the ECR repository :
-
-```
-$ mockery --name=ECRRepository --dir pkg/remote/aws/repository/
-```
-
-`ECRRepository` is the name of the interface present in the `pkg/remote/aws/repository/` directory.
-
-----
-
-🙏 We are still looking for a better way to handle this, contributions are welcome.
-
-References:
-
-- https://github.com/stretchr/testify/issues/504
-- https://github.com/stretchr/testify/issues/1017
-
-## Acceptance testing
-
-driftctl provides a kind of acceptance test framework (`test/acceptance`) to help you run those tests.
-The goal here is to apply some terraform code, and then run a series of **Check**.
-A **Check** consists of running driftctl and checking for results using json output.
-driftctl uses assertion struct to help you check output results. See below for more details.
-
-Each acceptance test should be prefixed by `TestAcc_` and should be run using the environment var `DRIFTCTL_ACC=true`.
-
-```shell
-$ DRIFTCTL_ACC=true go test -run=TestAcc_ ./pkg/resource/aws/aws_instance_test.go
-```
-
-### Credentials
-
-Acceptance tests need credentials to perform real world action on cloud providers:
-
-- Read/write access are required to perform terraform action
-- Read only access is required to execute driftctl
-
-Recommended way to run acceptance tests is to use two distinct credentials:
-
-- One for terraform related actions
-- One for driftctl scan
-
-In our acceptance tests, we may need read/write permissions during specific contexts (e.g. terraform init, apply, destroy) or lifecycle (PreExec and PostExec).
-If needed, you can override environment variables in those contexts by adding `ACC_` prefix on environment variables.
-
-#### AWS
-
-You can use `ACC_AWS_PROFILE` to override AWS named profile used for terraform operations.
-
-```shell
-$ ACC_AWS_PROFILE=read-write-profile AWS_PROFILE=read-only-profile DRIFTCTL_ACC=true go test -run=TestAcc_ ./pkg/resource/aws/aws_instance_test.go
-```
-
-In the example below, the `driftctl` AWS profile must have read/write permissions and will be used for both terraform operations and driftctl run.
-
-This is **not** the recommended way to run tests as it may hide permissions issues.
-
-```shell
-$ AWS_PROFILE=driftctl DRIFTCTL_ACC=true go test -run=TestAcc_ ./pkg/resource/aws/aws_instance_test.go
-```
-
-### Workflow
-
-- **`OnStart`** You may run some code before everything
-- **terraform apply**
-- For each declared check loop
- - **`PreExec`**
- - **driftctl scan**
- - **check results**
- - **`PostExec`**
-- **`OnEnd`**
-- **terraform destroy**
-
-⚠️ **driftctl tests handle terraform resources removal, but it is up to you to remove potential unmanaged resources added in `PreExec` step !**
-
-### Example
-
-The following test runs terraform to create an EC2 instance.
-Then, we add a new tag (ENV: production) to the instance.
-Finally, we check the drift.
-
-```go
-func TestAcc_AwsInstance_WithBlockDevices(t *testing.T) {
- var mutatedInstanceId string
- acceptance.Run(t, acceptance.AccTestCase{
- // This path should contain terraform files
- Path: "./testdata/acc/aws_instance",
- // Pass args to driftctl execution
- // DO NOT PASS --output flag as it is handled automatically by test runner
- // You may use a .driftignore file in your test directory or use filters to limit driftctl scope
- // Try to be minimalist as possible as test will be easier to maintain over time
- Args: []string{"scan"}, // TODO add filter to limit scan scope to aws_instances
- Checks: []acceptance.AccCheck{
- { // First check does not have any PreExec or PostExec
- Check: func(result *acceptance.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- // Assert that no drift are detected
- result.AssertDriftCountTotal(0)
- // We could assert on analysis object directly
- // Below we check for infra strictly in sync, beware that this check should fail
- // if you run your acceptance test on a messy cloud provider state (existing dangling resources for example)
- // without using filter or driftignore
- //
- // Note that the result struct is composed of analysis result AND assertion library
- // You could use result.Equal() directly for example
- result.True(result.Analysis.IsSync())
- },
- },
- {
- // In this PreExec, we retrieve the created instance ID and add a new tag
- // using AWS SDK
- // We store the instance ID in a var to assert on it after driftctl run
- PreExec: func() {
- client := ec2.New(awsutils.Session())
- response, err := client.DescribeInstances(&ec2.DescribeInstancesInput{
- Filters: []*ec2.Filter{
- {
- Name: aws.String("instance-state-name"),
- Values: []*string{
- aws.String("running"),
- },
- },
- {
- Name: aws.String("tag:Name"),
- Values: []*string{
- aws.String("test_instance_1"),
- },
- },
- },
- })
- if err != nil {
- t.Fatal(err)
- }
- if len(response.Reservations[0].Instances) != 1 {
- t.Fatal("Error, unexpected number of instances found, manual check required")
- }
- mutatedInstanceId = *response.Reservations[0].Instances[0].InstanceId
- _, _ = client.CreateTags(&ec2.CreateTagsInput{
- Resources: []*string{&mutatedInstanceId},
- Tags: []*ec2.Tag{
- {
- Key: aws.String("Env"),
- Value: aws.String("Production"),
- },
- },
- })
- },
- // Check that driftctl detected a drift on manually modified instances
- Check: func(result *acceptance.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertResourceHasDrift(
- mutatedInstanceId,
- awsresources.AwsInstanceResourceType,
- analyser.Change{
- Change: diff.Change{
- Type: diff.CREATE,
- Path: []string{"Tags", "Env"},
- From: nil,
- To: "Production",
- },
- },
- )
- },
- },
- },
- })
-}
-```
diff --git a/enumeration/alerter/alert.go b/enumeration/alerter/alert.go
deleted file mode 100644
index badcf28f3..000000000
--- a/enumeration/alerter/alert.go
+++ /dev/null
@@ -1,87 +0,0 @@
-package alerter
-
-import (
- "encoding/json"
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type Alerts map[string][]Alert
-
-type Alert interface {
- Message() string
- ShouldIgnoreResource() bool
- Resource() *resource.Resource
-}
-
-type UnsupportedResourcetypeAlert struct {
- Typ string
-}
-
-func NewUnsupportedResourcetypeAlert(typ string) *UnsupportedResourcetypeAlert {
- return &UnsupportedResourcetypeAlert{Typ: typ}
-}
-
-func (f *UnsupportedResourcetypeAlert) Message() string {
- return fmt.Sprintf("%s is not supported...", f.Typ)
-}
-
-func (f *UnsupportedResourcetypeAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (f *UnsupportedResourcetypeAlert) Resource() *resource.Resource {
- return nil
-}
-
-type FakeAlert struct {
- Msg string
- IgnoreResource bool
-}
-
-func (f *FakeAlert) Message() string {
- return f.Msg
-}
-
-func (f *FakeAlert) ShouldIgnoreResource() bool {
- return f.IgnoreResource
-}
-
-func (f *FakeAlert) Resource() *resource.Resource {
- return nil
-}
-
-type SerializableAlert struct {
- Alert
-}
-
-type SerializedAlert struct {
- Msg string `json:"message"`
-}
-
-func (u *SerializedAlert) Message() string {
- return u.Msg
-}
-
-func (u *SerializedAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (s *SerializedAlert) Resource() *resource.Resource {
- return nil
-}
-
-func (s *SerializableAlert) UnmarshalJSON(bytes []byte) error {
- var res SerializedAlert
-
- if err := json.Unmarshal(bytes, &res); err != nil {
- return err
- }
- s.Alert = &res
- return nil
-}
-
-func (s *SerializableAlert) MarshalJSON() ([]byte, error) {
- return json.Marshal(SerializedAlert{Msg: s.Message()})
-}
diff --git a/enumeration/alerter/alerter.go b/enumeration/alerter/alerter.go
deleted file mode 100644
index d134d2b15..000000000
--- a/enumeration/alerter/alerter.go
+++ /dev/null
@@ -1,75 +0,0 @@
-package alerter
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type AlerterInterface interface {
- SendAlert(key string, alert Alert)
-}
-
-type Alerter struct {
- alerts Alerts
- alertsCh chan Alerts
- doneCh chan bool
-}
-
-func NewAlerter() *Alerter {
- var alerter = &Alerter{
- alerts: make(Alerts),
- alertsCh: make(chan Alerts),
- doneCh: make(chan bool),
- }
-
- go alerter.run()
-
- return alerter
-}
-
-func (a *Alerter) run() {
- defer func() { a.doneCh <- true }()
- for alert := range a.alertsCh {
- for k, v := range alert {
- if val, ok := a.alerts[k]; ok {
- a.alerts[k] = append(val, v...)
- } else {
- a.alerts[k] = v
- }
- }
- }
-}
-
-func (a *Alerter) SetAlerts(alerts Alerts) {
- a.alerts = alerts
-}
-
-func (a *Alerter) Retrieve() Alerts {
- close(a.alertsCh)
- <-a.doneCh
- return a.alerts
-}
-
-func (a *Alerter) SendAlert(key string, alert Alert) {
- a.alertsCh <- Alerts{
- key: []Alert{alert},
- }
-}
-
-func (a *Alerter) IsResourceIgnored(res *resource.Resource) bool {
- alert, alertExists := a.alerts[fmt.Sprintf("%s.%s", res.ResourceType(), res.ResourceId())]
- wildcardAlert, wildcardAlertExists := a.alerts[res.ResourceType()]
- shouldIgnoreAlert := a.shouldBeIgnored(alert)
- shouldIgnoreWildcardAlert := a.shouldBeIgnored(wildcardAlert)
- return (alertExists && shouldIgnoreAlert) || (wildcardAlertExists && shouldIgnoreWildcardAlert)
-}
-
-func (a *Alerter) shouldBeIgnored(alert []Alert) bool {
- for _, a := range alert {
- if a.ShouldIgnoreResource() {
- return true
- }
- }
- return false
-}
diff --git a/enumeration/alerter/alerter_test.go b/enumeration/alerter/alerter_test.go
deleted file mode 100644
index ff1252d21..000000000
--- a/enumeration/alerter/alerter_test.go
+++ /dev/null
@@ -1,161 +0,0 @@
-package alerter
-
-import (
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestAlerter_Alert(t *testing.T) {
- cases := []struct {
- name string
- alerts Alerts
- expected Alerts
- }{
- {
- name: "TestNoAlerts",
- alerts: nil,
- expected: Alerts{},
- },
- {
- name: "TestWithSingleAlert",
- alerts: Alerts{
- "fakeres.foobar": []Alert{
- &FakeAlert{"This is an alert", false},
- },
- },
- expected: Alerts{
- "fakeres.foobar": []Alert{
- &FakeAlert{"This is an alert", false},
- },
- },
- },
- {
- name: "TestWithMultipleAlerts",
- alerts: Alerts{
- "fakeres.foobar": []Alert{
- &FakeAlert{"This is an alert", false},
- &FakeAlert{"This is a second alert", true},
- },
- "fakeres.barfoo": []Alert{
- &FakeAlert{"This is a third alert", true},
- },
- },
- expected: Alerts{
- "fakeres.foobar": []Alert{
- &FakeAlert{"This is an alert", false},
- &FakeAlert{"This is a second alert", true},
- },
- "fakeres.barfoo": []Alert{
- &FakeAlert{"This is a third alert", true},
- },
- },
- },
- }
-
- for _, c := range cases {
- t.Run(c.name, func(t *testing.T) {
- alerter := NewAlerter()
-
- for k, v := range c.alerts {
- for _, a := range v {
- alerter.SendAlert(k, a)
- }
- }
-
- if eq := reflect.DeepEqual(alerter.Retrieve(), c.expected); !eq {
- t.Errorf("Got %+v, expected %+v", alerter.Retrieve(), c.expected)
- }
- })
- }
-}
-
-func TestAlerter_IgnoreResources(t *testing.T) {
- cases := []struct {
- name string
- alerts Alerts
- resource *resource.Resource
- expected bool
- }{
- {
- name: "TestNoAlerts",
- alerts: Alerts{},
- resource: &resource.Resource{
- Type: "fakeres",
- Id: "foobar",
- },
- expected: false,
- },
- {
- name: "TestShouldNotBeIgnoredWithAlerts",
- alerts: Alerts{
- "fakeres": {
- &FakeAlert{"Should not be ignored", false},
- },
- "fakeres.foobar": {
- &FakeAlert{"Should not be ignored", false},
- },
- "fakeres.barfoo": {
- &FakeAlert{"Should not be ignored", false},
- },
- "other.resource": {
- &FakeAlert{"Should not be ignored", false},
- },
- },
- resource: &resource.Resource{
- Type: "fakeres",
- Id: "foobar",
- },
- expected: false,
- },
- {
- name: "TestShouldBeIgnoredWithAlertsOnWildcard",
- alerts: Alerts{
- "fakeres": {
- &FakeAlert{"Should be ignored", true},
- },
- "other.foobaz": {
- &FakeAlert{"Should be ignored", true},
- },
- "other.resource": {
- &FakeAlert{"Should not be ignored", false},
- },
- },
- resource: &resource.Resource{
- Type: "fakeres",
- Id: "foobar",
- },
- expected: true,
- },
- {
- name: "TestShouldBeIgnoredWithAlertsOnResource",
- alerts: Alerts{
- "fakeres": {
- &FakeAlert{"Should be ignored", true},
- },
- "other.foobaz": {
- &FakeAlert{"Should be ignored", true},
- },
- "other.resource": {
- &FakeAlert{"Should not be ignored", false},
- },
- },
- resource: &resource.Resource{
- Type: "other",
- Id: "foobaz",
- },
- expected: true,
- },
- }
-
- for _, c := range cases {
- t.Run(c.name, func(t *testing.T) {
- alerter := NewAlerter()
- alerter.SetAlerts(c.alerts)
- if got := alerter.IsResourceIgnored(c.resource); got != c.expected {
- t.Errorf("Got %+v, expected %+v", got, c.expected)
- }
- })
- }
-}
diff --git a/enumeration/diagnostic/diagnostic.go b/enumeration/diagnostic/diagnostic.go
deleted file mode 100644
index d0a42390d..000000000
--- a/enumeration/diagnostic/diagnostic.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package diagnostic
-
-import (
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type Diagnostic interface {
- Code() string
- Message() string
- ResourceType() string
- Resource() *resource.Resource
-}
-
-type diagnosticImpl struct {
- alert alerter.Alert
-}
-
-func (d *diagnosticImpl) Code() string {
- if _, ok := d.alert.(*alerts.RemoteAccessDeniedAlert); ok {
- return "ACCESS_DENIED"
- }
- return "UNKNOWN_ERROR"
-}
-
-func (d *diagnosticImpl) Message() string {
- return d.alert.Message()
-}
-
-func (d *diagnosticImpl) ResourceType() string {
- ty := ""
- if d.Resource() != nil {
- ty = d.Resource().ResourceType()
- }
- return ty
-}
-
-func (d *diagnosticImpl) Resource() *resource.Resource {
- return d.alert.Resource()
-}
-
-type Diagnostics []Diagnostic
-
-func FromAlerts(alertMap alerter.Alerts) Diagnostics {
- var results Diagnostics
- for _, v := range alertMap {
- for _, alert := range v {
- diag := &diagnosticImpl{alert}
- results = append(results, diag)
- }
- }
- return results
-}
diff --git a/enumeration/enum.go b/enumeration/enum.go
deleted file mode 100644
index 5da037bee..000000000
--- a/enumeration/enum.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package enumeration
-
-import (
- "time"
-
- "github.com/snyk/driftctl/enumeration/diagnostic"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type EnumerateInput struct {
- ResourceTypes []string
-}
-
-type EnumerateOutput struct {
- // Resources is a map of resources by type. Every listed resource type will
- // have a key in the map. The value will be either nil or an empty slice if
- // no resources of that type were found.
- Resources map[string][]*resource.Resource
-
- // Timings is map of list durations by resource type. This aids understanding
- // which resource types took the most time to list.
- Timings map[string]time.Duration
-
- // Diagnostics contains messages and errors that arose during the list operation.
- // If the diagnostic is associated with a resource type, the ResourceType()
- // call will indicate which type. If associated with a resource, the Resource()
- // call will indicate which resource.
- Diagnostics diagnostic.Diagnostics
-}
-
-type Enumerator interface {
- Enumerate(*EnumerateInput) (*EnumerateOutput, error)
-}
diff --git a/enumeration/filter.go b/enumeration/filter.go
deleted file mode 100644
index f3baf101b..000000000
--- a/enumeration/filter.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package enumeration
-
-import "github.com/snyk/driftctl/enumeration/resource"
-
-type Filter interface {
- IsTypeIgnored(ty resource.ResourceType) bool
- IsResourceIgnored(res *resource.Resource) bool
-}
diff --git a/enumeration/mock_Filter.go b/enumeration/mock_Filter.go
deleted file mode 100644
index 24c48f27e..000000000
--- a/enumeration/mock_Filter.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by mockery v2.35.4. DO NOT EDIT.
-
-package enumeration
-
-import (
- resource "github.com/snyk/driftctl/enumeration/resource"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockFilter is an autogenerated mock type for the Filter type
-type MockFilter struct {
- mock.Mock
-}
-
-// IsResourceIgnored provides a mock function with given fields: res
-func (_m *MockFilter) IsResourceIgnored(res *resource.Resource) bool {
- ret := _m.Called(res)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(*resource.Resource) bool); ok {
- r0 = rf(res)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// IsTypeIgnored provides a mock function with given fields: ty
-func (_m *MockFilter) IsTypeIgnored(ty resource.ResourceType) bool {
- ret := _m.Called(ty)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(resource.ResourceType) bool); ok {
- r0 = rf(ty)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// NewMockFilter creates a new instance of MockFilter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-// The first argument is typically a *testing.T value.
-func NewMockFilter(t interface {
- mock.TestingT
- Cleanup(func())
-}) *MockFilter {
- mock := &MockFilter{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/parallel/parallel_runner.go b/enumeration/parallel/parallel_runner.go
deleted file mode 100644
index 473884539..000000000
--- a/enumeration/parallel/parallel_runner.go
+++ /dev/null
@@ -1,111 +0,0 @@
-package parallel
-
-import (
- "context"
- "sync"
-
- "github.com/getsentry/sentry-go"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
-
- "go.uber.org/atomic"
-
- "golang.org/x/sync/semaphore"
-)
-
-type ParallelRunner struct {
- sem *semaphore.Weighted
- wg *sync.WaitGroup
- ctx context.Context
- cancel context.CancelFunc
- resChan chan interface{}
- err error
- hasErr *atomic.Bool
- waiting *atomic.Bool
-}
-
-func NewParallelRunner(ctx context.Context, maxRun int64) *ParallelRunner {
- ctx, cancelFunc := context.WithCancel(ctx)
- return &ParallelRunner{
- sem: semaphore.NewWeighted(maxRun),
- wg: &sync.WaitGroup{},
- ctx: ctx,
- cancel: cancelFunc,
- resChan: make(chan interface{}),
- err: nil,
- hasErr: atomic.NewBool(false),
- waiting: atomic.NewBool(false),
- }
-}
-
-func (p *ParallelRunner) SubRunner() *ParallelRunner {
- ctx, cancelFunc := context.WithCancel(p.ctx)
- return &ParallelRunner{
- sem: p.sem,
- wg: &sync.WaitGroup{},
- ctx: ctx,
- cancel: cancelFunc,
- resChan: make(chan interface{}),
- err: nil,
- hasErr: atomic.NewBool(false),
- waiting: atomic.NewBool(false),
- }
-}
-
-func (p *ParallelRunner) Read() chan interface{} {
- p.wait()
- return p.resChan
-}
-
-func (p *ParallelRunner) DoneChan() <-chan struct{} {
- return p.ctx.Done()
-}
-
-func (p *ParallelRunner) Err() error {
- return p.err
-}
-
-func (p *ParallelRunner) wait() {
- if !p.waiting.Swap(true) {
- go func() {
- p.wg.Wait()
- close(p.resChan)
- }()
- }
-}
-
-func (p *ParallelRunner) Run(runnable func() (interface{}, error)) {
- p.wg.Add(1)
- go func() {
- if err := p.sem.Acquire(p.ctx, 1); err == nil {
- // only release if sem was acquired
- defer p.sem.Release(1)
- }
- defer p.wg.Done()
- // Prevent new routines executions if we already got an error from another routine
- if p.ctx.Err() != nil {
- return
- }
- // Handle panic in routines and stop runner with proper error
- // Some failed call to grpc plugin like getSchema trigger a panic
- defer func() {
- if r := recover(); r != nil {
- sentry.CurrentHub().Recover(r)
- p.Stop(errors.Errorf("A runner routine paniced: %s", r))
- }
- }()
- res, err := runnable()
- if err != nil {
- p.Stop(err)
- }
- p.resChan <- res
- }()
-}
-
-func (p *ParallelRunner) Stop(err error) {
- if !p.hasErr.Swap(true) {
- logrus.Debug("Stopping ParallelRunner")
- p.err = err
- p.cancel()
- }
-}
diff --git a/enumeration/parallel/parallel_runner_test.go b/enumeration/parallel/parallel_runner_test.go
deleted file mode 100644
index 7f696d774..000000000
--- a/enumeration/parallel/parallel_runner_test.go
+++ /dev/null
@@ -1,74 +0,0 @@
-package parallel
-
-import (
- "context"
- "testing"
-
- "github.com/pkg/errors"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestParallelRunner_RunOk(t *testing.T) {
- assert := assert.New(t)
-
- runner := NewParallelRunner(context.TODO(), 10)
-
- for i := 0; i < 100; i++ {
- runner.Run(func() (interface{}, error) {
- return 1, nil
- })
- }
-
- val := 0
-Loop:
- for {
- select {
- case res, ok := <-runner.Read():
- if !ok {
- break Loop
- }
- val += res.(int)
- case <-runner.DoneChan():
- break Loop
- }
- }
-
- assert.Nil(runner.Err())
- assert.Equal(100, val)
-}
-
-func TestParallelRunner_RunWithError(t *testing.T) {
- assert := assert.New(t)
-
- runner := NewParallelRunner(context.TODO(), 10)
-
- err := errors.New("test")
-
- for i := 0; i < 100; i++ {
- val := i
- runner.Run(func() (interface{}, error) {
- if val <= 10 {
- return 0, err
- }
- return 1, nil
- })
- }
-
- val := 0
-Loop:
- for {
- select {
- case res, ok := <-runner.Read():
- if !ok {
- break Loop
- }
- val += res.(int)
- case <-runner.DoneChan():
- break Loop
- }
- }
-
- assert.Equal(err, runner.Err())
- assert.Less(val, 100)
-}
diff --git a/enumeration/progress.go b/enumeration/progress.go
deleted file mode 100644
index b7dda18d4..000000000
--- a/enumeration/progress.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package enumeration
-
-type ProgressCounter interface {
- Inc()
-}
diff --git a/enumeration/refresh.go b/enumeration/refresh.go
deleted file mode 100644
index 216ae410d..000000000
--- a/enumeration/refresh.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package enumeration
-
-import (
- "github.com/hashicorp/terraform/terraform"
- "github.com/snyk/driftctl/enumeration/diagnostic"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type RefreshInput struct {
- // Resources to refresh
- Resources map[string][]*resource.Resource
-}
-
-type RefreshOutput struct {
- Resources map[string][]*resource.Resource
- Diagnostics diagnostic.Diagnostics
-}
-
-type GetSchemasOutput struct {
- Schema *terraform.ProviderSchema
-}
-
-type Refresher interface {
- Refresh(input *RefreshInput) (*RefreshOutput, error)
- GetSchema() (*GetSchemasOutput, error)
-}
diff --git a/enumeration/remote/alerts/alerts.go b/enumeration/remote/alerts/alerts.go
deleted file mode 100644
index 06670066a..000000000
--- a/enumeration/remote/alerts/alerts.go
+++ /dev/null
@@ -1,114 +0,0 @@
-package alerts
-
-import (
- "fmt"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
-
- "github.com/sirupsen/logrus"
-)
-
-type ScanningPhase int
-
-const (
- EnumerationPhase ScanningPhase = iota
- DetailsFetchingPhase
-)
-
-type RemoteAccessDeniedAlert struct {
- message string
- provider string
- scanningPhase ScanningPhase
- resource *resource.Resource
-}
-
-func NewRemoteAccessDeniedAlert(provider string, scanErr *remoteerror.ResourceScanningError, scanningPhase ScanningPhase) *RemoteAccessDeniedAlert {
- var message string
- switch scanningPhase {
- case EnumerationPhase:
- message = fmt.Sprintf(
- "An error occured listing %s: listing %s is forbidden: %s",
- scanErr.Resource(),
- scanErr.ListedTypeError(),
- scanErr.RootCause().Error(),
- )
- case DetailsFetchingPhase:
- message = fmt.Sprintf(
- "An error occured listing %s: reading details of %s is forbidden: %s",
- scanErr.Resource(),
- scanErr.ListedTypeError(),
- scanErr.RootCause().Error(),
- )
- default:
- message = fmt.Sprintf(
- "An error occured listing %s: %s",
- scanErr.Resource(),
- scanErr.RootCause().Error(),
- )
- }
-
- var relatedResource *resource.Resource
- resourceFQDNSSplit := strings.SplitN(scanErr.Resource(), ".", 2)
- if len(resourceFQDNSSplit) == 2 {
- relatedResource = &resource.Resource{
- Id: resourceFQDNSSplit[1],
- Type: resourceFQDNSSplit[0],
- }
- }
-
- return &RemoteAccessDeniedAlert{message, provider, scanningPhase, relatedResource}
-}
-
-func (e *RemoteAccessDeniedAlert) Message() string {
- return e.message
-}
-
-func (e *RemoteAccessDeniedAlert) ShouldIgnoreResource() bool {
- return true
-}
-
-func (e *RemoteAccessDeniedAlert) Resource() *resource.Resource {
- return e.resource
-}
-
-func (e *RemoteAccessDeniedAlert) GetProviderMessage() string {
- var message string
- if e.scanningPhase == DetailsFetchingPhase {
- message = "It seems that we got access denied exceptions while reading details of resources.\n"
- }
- if e.scanningPhase == EnumerationPhase {
- message = "It seems that we got access denied exceptions while listing resources.\n"
- }
-
- switch e.provider {
- case common.RemoteGithubTerraform:
- message += "Please be sure that your Github token has the right permissions, check the last up-to-date documentation there: https://docs.driftctl.com/github/policy"
- case common.RemoteAWSTerraform:
- message += "The latest minimal read-only IAM policy for driftctl is always available here, please update yours: https://docs.driftctl.com/aws/policy"
- case common.RemoteGoogleTerraform:
- message += "Please ensure that you have configured the required roles, please check our documentation at https://docs.driftctl.com/google/policy"
- default:
- return ""
- }
- return message
-}
-
-func sendRemoteAccessDeniedAlert(provider string, alerter alerter.AlerterInterface, listError *remoteerror.ResourceScanningError, p ScanningPhase) {
- logrus.WithFields(logrus.Fields{
- "resource": listError.Resource(),
- "listed_type": listError.ListedTypeError(),
- }).Debugf("Got an access denied error: %+v", listError.Error())
- alerter.SendAlert(listError.Resource(), NewRemoteAccessDeniedAlert(provider, listError, p))
-}
-
-func SendEnumerationAlert(provider string, alerter alerter.AlerterInterface, listError *remoteerror.ResourceScanningError) {
- sendRemoteAccessDeniedAlert(provider, alerter, listError, EnumerationPhase)
-}
-
-func SendDetailsFetchingAlert(provider string, alerter alerter.AlerterInterface, listError *remoteerror.ResourceScanningError) {
- sendRemoteAccessDeniedAlert(provider, alerter, listError, DetailsFetchingPhase)
-}
diff --git a/enumeration/remote/aws/api_gateway_account_enumerator.go b/enumeration/remote/aws/api_gateway_account_enumerator.go
deleted file mode 100644
index 857dc23b9..000000000
--- a/enumeration/remote/aws/api_gateway_account_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayAccountEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayAccountEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayAccountEnumerator {
- return &ApiGatewayAccountEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayAccountEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayAccountResourceType
-}
-
-func (e *ApiGatewayAccountEnumerator) Enumerate() ([]*resource.Resource, error) {
- account, err := e.repository.GetAccount()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, 1)
-
- if account != nil {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- "api-gateway-account",
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_api_key_enumerator.go b/enumeration/remote/aws/api_gateway_api_key_enumerator.go
deleted file mode 100644
index 88bca5268..000000000
--- a/enumeration/remote/aws/api_gateway_api_key_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayApiKeyEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayApiKeyEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayApiKeyEnumerator {
- return &ApiGatewayApiKeyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayApiKeyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayApiKeyResourceType
-}
-
-func (e *ApiGatewayApiKeyEnumerator) Enumerate() ([]*resource.Resource, error) {
- keys, err := e.repository.ListAllApiKeys()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(keys))
-
- for _, key := range keys {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *key.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_authorizer_enumerator.go b/enumeration/remote/aws/api_gateway_authorizer_enumerator.go
deleted file mode 100644
index d69372cc6..000000000
--- a/enumeration/remote/aws/api_gateway_authorizer_enumerator.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayAuthorizerEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayAuthorizerEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayAuthorizerEnumerator {
- return &ApiGatewayAuthorizerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayAuthorizerEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayAuthorizerResourceType
-}
-
-func (e *ApiGatewayAuthorizerEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- authorizers, err := e.repository.ListAllRestApiAuthorizers(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, authorizer := range authorizers {
- au := authorizer
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *au.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_base_path_mapping_enumerator.go b/enumeration/remote/aws/api_gateway_base_path_mapping_enumerator.go
deleted file mode 100644
index c9a3247a6..000000000
--- a/enumeration/remote/aws/api_gateway_base_path_mapping_enumerator.go
+++ /dev/null
@@ -1,64 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayBasePathMappingEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayBasePathMappingEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayBasePathMappingEnumerator {
- return &ApiGatewayBasePathMappingEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayBasePathMappingEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayBasePathMappingResourceType
-}
-
-func (e *ApiGatewayBasePathMappingEnumerator) Enumerate() ([]*resource.Resource, error) {
- domainNames, err := e.repository.ListAllDomainNames()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayDomainNameResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, domainName := range domainNames {
- d := domainName
- mappings, err := e.repository.ListAllDomainNameBasePathMappings(*d.DomainName)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, mapping := range mappings {
- m := mapping
-
- basePath := ""
- if m.BasePath != nil && *m.BasePath != "(none)" {
- basePath = *m.BasePath
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{*d.DomainName, basePath}, "/"),
- map[string]interface{}{},
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_domain_name_enumerator.go b/enumeration/remote/aws/api_gateway_domain_name_enumerator.go
deleted file mode 100644
index d24fc9da4..000000000
--- a/enumeration/remote/aws/api_gateway_domain_name_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayDomainNameEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayDomainNameEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayDomainNameEnumerator {
- return &ApiGatewayDomainNameEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayDomainNameEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayDomainNameResourceType
-}
-
-func (e *ApiGatewayDomainNameEnumerator) Enumerate() ([]*resource.Resource, error) {
- domainNames, err := e.repository.ListAllDomainNames()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(domainNames))
-
- for _, domainName := range domainNames {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *domainName.DomainName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_gateway_response_enumerator.go b/enumeration/remote/aws/api_gateway_gateway_response_enumerator.go
deleted file mode 100644
index 828ba3c58..000000000
--- a/enumeration/remote/aws/api_gateway_gateway_response_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayGatewayResponseEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayGatewayResponseEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayGatewayResponseEnumerator {
- return &ApiGatewayGatewayResponseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayGatewayResponseEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayGatewayResponseResourceType
-}
-
-func (e *ApiGatewayGatewayResponseEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- gtwResponses, err := e.repository.ListAllRestApiGatewayResponses(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, gtwResponse := range gtwResponses {
- g := gtwResponse
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"aggr", *a.Id, *g.ResponseType}, "-"),
- map[string]interface{}{},
- ),
- )
- }
-
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_integration_enumerator.go b/enumeration/remote/aws/api_gateway_integration_enumerator.go
deleted file mode 100644
index ef2089d3e..000000000
--- a/enumeration/remote/aws/api_gateway_integration_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayIntegrationEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayIntegrationEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayIntegrationEnumerator {
- return &ApiGatewayIntegrationEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayIntegrationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayIntegrationResourceType
-}
-
-func (e *ApiGatewayIntegrationEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- resources, err := e.repository.ListAllRestApiResources(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayResourceResourceType)
- }
-
- for _, resource := range resources {
- r := resource
- for httpMethod := range r.ResourceMethods {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"agi", *a.Id, *r.Id, httpMethod}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_integration_response_enumerator.go b/enumeration/remote/aws/api_gateway_integration_response_enumerator.go
deleted file mode 100644
index 3ede03176..000000000
--- a/enumeration/remote/aws/api_gateway_integration_response_enumerator.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayIntegrationResponseEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayIntegrationResponseEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayIntegrationResponseEnumerator {
- return &ApiGatewayIntegrationResponseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayIntegrationResponseEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayIntegrationResponseResourceType
-}
-
-func (e *ApiGatewayIntegrationResponseEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- resources, err := e.repository.ListAllRestApiResources(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayResourceResourceType)
- }
-
- for _, resource := range resources {
- r := resource
- for httpMethod, method := range r.ResourceMethods {
- if method.MethodIntegration != nil {
- for statusCode := range method.MethodIntegration.IntegrationResponses {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"agir", *a.Id, *r.Id, httpMethod, statusCode}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_method_enumerator.go b/enumeration/remote/aws/api_gateway_method_enumerator.go
deleted file mode 100644
index 15034e275..000000000
--- a/enumeration/remote/aws/api_gateway_method_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayMethodEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayMethodEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayMethodEnumerator {
- return &ApiGatewayMethodEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayMethodEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayMethodResourceType
-}
-
-func (e *ApiGatewayMethodEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- resources, err := e.repository.ListAllRestApiResources(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayResourceResourceType)
- }
-
- for _, resource := range resources {
- r := resource
- for method := range r.ResourceMethods {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"agm", *a.Id, *r.Id, method}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_method_response_enumerator.go b/enumeration/remote/aws/api_gateway_method_response_enumerator.go
deleted file mode 100644
index c0cee5952..000000000
--- a/enumeration/remote/aws/api_gateway_method_response_enumerator.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayMethodResponseEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayMethodResponseEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayMethodResponseEnumerator {
- return &ApiGatewayMethodResponseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayMethodResponseEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayMethodResponseResourceType
-}
-
-func (e *ApiGatewayMethodResponseEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- resources, err := e.repository.ListAllRestApiResources(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayResourceResourceType)
- }
-
- for _, resource := range resources {
- r := resource
- for httpMethod, method := range r.ResourceMethods {
- for statusCode := range method.MethodResponses {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"agmr", *a.Id, *r.Id, httpMethod, statusCode}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_method_settings_enumerator.go b/enumeration/remote/aws/api_gateway_method_settings_enumerator.go
deleted file mode 100644
index 254359f23..000000000
--- a/enumeration/remote/aws/api_gateway_method_settings_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayMethodSettingsEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayMethodSettingsEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayMethodSettingsEnumerator {
- return &ApiGatewayMethodSettingsEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayMethodSettingsEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayMethodSettingsResourceType
-}
-
-func (e *ApiGatewayMethodSettingsEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- stages, err := e.repository.ListAllRestApiStages(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayStageResourceType)
- }
-
- for _, stage := range stages {
- s := stage
- for methodPath := range s.MethodSettings {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{*a.Id, *s.StageName, methodPath}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_model_enumerator.go b/enumeration/remote/aws/api_gateway_model_enumerator.go
deleted file mode 100644
index e2a3b53ec..000000000
--- a/enumeration/remote/aws/api_gateway_model_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayModelEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayModelEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayModelEnumerator {
- return &ApiGatewayModelEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayModelEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayModelResourceType
-}
-
-func (e *ApiGatewayModelEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- models, err := e.repository.ListAllRestApiModels(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, model := range models {
- m := model
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *m.Id,
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_request_validator_enumerator.go b/enumeration/remote/aws/api_gateway_request_validator_enumerator.go
deleted file mode 100644
index d886bfc98..000000000
--- a/enumeration/remote/aws/api_gateway_request_validator_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayRequestValidatorEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayRequestValidatorEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayRequestValidatorEnumerator {
- return &ApiGatewayRequestValidatorEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayRequestValidatorEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayRequestValidatorResourceType
-}
-
-func (e *ApiGatewayRequestValidatorEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- requestValidators, err := e.repository.ListAllRestApiRequestValidators(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, requestValidator := range requestValidators {
- r := requestValidator
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *r.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_resource_enumerator.go b/enumeration/remote/aws/api_gateway_resource_enumerator.go
deleted file mode 100644
index ea1bd8000..000000000
--- a/enumeration/remote/aws/api_gateway_resource_enumerator.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayResourceEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayResourceEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayResourceEnumerator {
- return &ApiGatewayResourceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayResourceEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayResourceResourceType
-}
-
-func (e *ApiGatewayResourceEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- resources, err := e.repository.ListAllRestApiResources(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, resource := range resources {
- r := resource
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *r.Id,
- map[string]interface{}{
- "rest_api_id": *a.Id,
- "path": *r.Path,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_rest_api_enumerator.go b/enumeration/remote/aws/api_gateway_rest_api_enumerator.go
deleted file mode 100644
index 44588d252..000000000
--- a/enumeration/remote/aws/api_gateway_rest_api_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayRestApiEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayRestApiEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayRestApiEnumerator {
- return &ApiGatewayRestApiEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayRestApiEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayRestApiResourceType
-}
-
-func (e *ApiGatewayRestApiEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(apis))
-
- for _, api := range apis {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *api.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_rest_api_policy_enumerator.go b/enumeration/remote/aws/api_gateway_rest_api_policy_enumerator.go
deleted file mode 100644
index 9cb109bbb..000000000
--- a/enumeration/remote/aws/api_gateway_rest_api_policy_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayRestApiPolicyEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayRestApiPolicyEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayRestApiPolicyEnumerator {
- return &ApiGatewayRestApiPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayRestApiPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayRestApiPolicyResourceType
-}
-
-func (e *ApiGatewayRestApiPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- if a.Policy == nil || *a.Policy == "" {
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *a.Id,
- map[string]interface{}{},
- ),
- )
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_stage_enumerator.go b/enumeration/remote/aws/api_gateway_stage_enumerator.go
deleted file mode 100644
index 34860c9c2..000000000
--- a/enumeration/remote/aws/api_gateway_stage_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayStageEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayStageEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayStageEnumerator {
- return &ApiGatewayStageEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayStageEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayStageResourceType
-}
-
-func (e *ApiGatewayStageEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllRestApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayRestApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- stages, err := e.repository.ListAllRestApiStages(*a.Id)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, stage := range stages {
- s := stage
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{"ags", *a.Id, *s.StageName}, "-"),
- map[string]interface{}{},
- ),
- )
- }
-
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/api_gateway_vpc_link_enumerator.go b/enumeration/remote/aws/api_gateway_vpc_link_enumerator.go
deleted file mode 100644
index a66ace88b..000000000
--- a/enumeration/remote/aws/api_gateway_vpc_link_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayVpcLinkEnumerator struct {
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayVpcLinkEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayVpcLinkEnumerator {
- return &ApiGatewayVpcLinkEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayVpcLinkEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayVpcLinkResourceType
-}
-
-func (e *ApiGatewayVpcLinkEnumerator) Enumerate() ([]*resource.Resource, error) {
- vpcLinks, err := e.repository.ListAllVpcLinks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(vpcLinks))
-
- for _, vpcLink := range vpcLinks {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *vpcLink.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_api_enumerator.go b/enumeration/remote/aws/apigatewayv2_api_enumerator.go
deleted file mode 100644
index 34333542c..000000000
--- a/enumeration/remote/aws/apigatewayv2_api_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2ApiEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2ApiEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2ApiEnumerator {
- return &ApiGatewayV2ApiEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2ApiEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2ApiResourceType
-}
-
-func (e *ApiGatewayV2ApiEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(apis))
-
- for _, api := range apis {
- a := api
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *a.ApiId,
- map[string]interface{}{},
- ),
- )
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_authorizer_enumerator.go b/enumeration/remote/aws/apigatewayv2_authorizer_enumerator.go
deleted file mode 100644
index 7370abf8f..000000000
--- a/enumeration/remote/aws/apigatewayv2_authorizer_enumerator.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2AuthorizerEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2AuthorizerEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2AuthorizerEnumerator {
- return &ApiGatewayV2AuthorizerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2AuthorizerEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2AuthorizerResourceType
-}
-
-func (e *ApiGatewayV2AuthorizerEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- a := api
- authorizers, err := e.repository.ListAllApiAuthorizers(*a.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, authorizer := range authorizers {
- au := authorizer
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *au.AuthorizerId,
- map[string]interface{}{},
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_deployment_enumerator.go b/enumeration/remote/aws/apigatewayv2_deployment_enumerator.go
deleted file mode 100644
index 43eef1fe2..000000000
--- a/enumeration/remote/aws/apigatewayv2_deployment_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2DeploymentEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2DeploymentEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2DeploymentEnumerator {
- return &ApiGatewayV2DeploymentEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2DeploymentEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2DeploymentResourceType
-}
-
-func (e *ApiGatewayV2DeploymentEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- var results []*resource.Resource
- for _, api := range apis {
- deployments, err := e.repository.ListAllApiDeployments(api.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, deployment := range deployments {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *deployment.DeploymentId,
- map[string]interface{}{},
- ),
- )
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_domain_name_enumerator.go b/enumeration/remote/aws/apigatewayv2_domain_name_enumerator.go
deleted file mode 100644
index 87315f4f0..000000000
--- a/enumeration/remote/aws/apigatewayv2_domain_name_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2DomainNameEnumerator struct {
- // AWS SDK list domain names endpoint from API Gateway v2 returns the
- // same results as the v1 one, thus let's re-use the method from
- // the API Gateway v1
- repository repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2DomainNameEnumerator(repo repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayV2DomainNameEnumerator {
- return &ApiGatewayV2DomainNameEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2DomainNameEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2DomainNameResourceType
-}
-
-func (e *ApiGatewayV2DomainNameEnumerator) Enumerate() ([]*resource.Resource, error) {
- domainNames, err := e.repository.ListAllDomainNames()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(domainNames))
-
- for _, domainName := range domainNames {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *domainName.DomainName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_integration_enumerator.go b/enumeration/remote/aws/apigatewayv2_integration_enumerator.go
deleted file mode 100644
index 57552d875..000000000
--- a/enumeration/remote/aws/apigatewayv2_integration_enumerator.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2IntegrationEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2IntegrationEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2IntegrationEnumerator {
- return &ApiGatewayV2IntegrationEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2IntegrationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2IntegrationResourceType
-}
-
-func (e *ApiGatewayV2IntegrationEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, a := range apis {
- api := a
- integrations, err := e.repository.ListAllApiIntegrations(*api.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, integration := range integrations {
- data := map[string]interface{}{
- "api_id": *api.ApiId,
- "integration_type": *integration.IntegrationType,
- }
-
- if integration.IntegrationMethod != nil {
- // this is needed to discriminate in middleware. But it is nil when the type is mock...
- data["integration_method"] = *integration.IntegrationMethod
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *integration.IntegrationId,
- data,
- ),
- )
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_integration_response_enumerator.go b/enumeration/remote/aws/apigatewayv2_integration_response_enumerator.go
deleted file mode 100644
index 62f45850e..000000000
--- a/enumeration/remote/aws/apigatewayv2_integration_response_enumerator.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2IntegrationResponseEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2IntegrationResponseEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2IntegrationResponseEnumerator {
- return &ApiGatewayV2IntegrationResponseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2IntegrationResponseEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2IntegrationResponseResourceType
-}
-
-func (e *ApiGatewayV2IntegrationResponseEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, a := range apis {
- apiID := *a.ApiId
- integrations, err := e.repository.ListAllApiIntegrations(apiID)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2IntegrationResourceType)
- }
-
- for _, integration := range integrations {
- integrationId := *integration.IntegrationId
- responses, err := e.repository.ListAllApiIntegrationResponses(apiID, integrationId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, resp := range responses {
- responseId := *resp.IntegrationResponseId
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- responseId,
- map[string]interface{}{},
- ),
- )
- }
-
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_mapping_enumerator.go b/enumeration/remote/aws/apigatewayv2_mapping_enumerator.go
deleted file mode 100644
index 8bd177810..000000000
--- a/enumeration/remote/aws/apigatewayv2_mapping_enumerator.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2MappingEnumerator struct {
- repository repository.ApiGatewayV2Repository
- repositoryV1 repository.ApiGatewayRepository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2MappingEnumerator(repo repository.ApiGatewayV2Repository, repov1 repository.ApiGatewayRepository, factory resource.ResourceFactory) *ApiGatewayV2MappingEnumerator {
- return &ApiGatewayV2MappingEnumerator{
- repository: repo,
- repositoryV1: repov1,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2MappingEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2MappingResourceType
-}
-
-func (e *ApiGatewayV2MappingEnumerator) Enumerate() ([]*resource.Resource, error) {
- domainNames, err := e.repositoryV1.ListAllDomainNames()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayDomainNameResourceType)
- }
-
- var results []*resource.Resource
- for _, domainName := range domainNames {
- mappings, err := e.repository.ListAllApiMappings(*domainName.DomainName)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, mapping := range mappings {
- attrs := make(map[string]interface{})
-
- if mapping.ApiId != nil {
- attrs["api_id"] = *mapping.ApiId
- }
- if mapping.Stage != nil {
- attrs["stage"] = *mapping.Stage
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *mapping.ApiMappingId,
- attrs,
- ),
- )
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_model_enumerator.go b/enumeration/remote/aws/apigatewayv2_model_enumerator.go
deleted file mode 100644
index 0704f2909..000000000
--- a/enumeration/remote/aws/apigatewayv2_model_enumerator.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2ModelEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2ModelEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2ModelEnumerator {
- return &ApiGatewayV2ModelEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2ModelEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2ModelResourceType
-}
-
-func (e *ApiGatewayV2ModelEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- var results []*resource.Resource
- for _, api := range apis {
- models, err := e.repository.ListAllApiModels(*api.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, model := range models {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *model.ModelId,
- map[string]interface{}{
- "name": *model.Name,
- },
- ),
- )
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_route_enumerator.go b/enumeration/remote/aws/apigatewayv2_route_enumerator.go
deleted file mode 100644
index b0cfc02f5..000000000
--- a/enumeration/remote/aws/apigatewayv2_route_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2RouteEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2RouteEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2RouteEnumerator {
- return &ApiGatewayV2RouteEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2RouteEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2RouteResourceType
-}
-
-func (e *ApiGatewayV2RouteEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- var results []*resource.Resource
- for _, api := range apis {
- routes, err := e.repository.ListAllApiRoutes(api.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, route := range routes {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *route.RouteId,
- map[string]interface{}{
- "api_id": *api.ApiId,
- "route_key": *route.RouteKey,
- },
- ),
- )
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_route_response_enumerator.go b/enumeration/remote/aws/apigatewayv2_route_response_enumerator.go
deleted file mode 100644
index 9c6d5a62c..000000000
--- a/enumeration/remote/aws/apigatewayv2_route_response_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2RouteResponseEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2RouteResponseEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2RouteResponseEnumerator {
- return &ApiGatewayV2RouteResponseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2RouteResponseEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2RouteResponseResourceType
-}
-
-func (e *ApiGatewayV2RouteResponseEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- var results []*resource.Resource
- for _, api := range apis {
- a := api
- routes, err := e.repository.ListAllApiRoutes(a.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2RouteResourceType)
- }
- for _, route := range routes {
- r := route
- responses, err := e.repository.ListAllApiRouteResponses(*a.ApiId, *r.RouteId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, response := range responses {
- res := response
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.RouteResponseId,
- map[string]interface{}{},
- ),
- )
- }
- }
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_stage_enumerator.go b/enumeration/remote/aws/apigatewayv2_stage_enumerator.go
deleted file mode 100644
index bdc14473c..000000000
--- a/enumeration/remote/aws/apigatewayv2_stage_enumerator.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2StageEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2StageEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2StageEnumerator {
- return &ApiGatewayV2StageEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2StageEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2StageResourceType
-}
-
-func (e *ApiGatewayV2StageEnumerator) Enumerate() ([]*resource.Resource, error) {
- apis, err := e.repository.ListAllApis()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsApiGatewayV2ApiResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, api := range apis {
- stages, err := e.repository.ListAllApiStages(*api.ApiId)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, stage := range stages {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *stage.StageName,
- map[string]interface{}{},
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/apigatewayv2_vpc_link_enumerator.go b/enumeration/remote/aws/apigatewayv2_vpc_link_enumerator.go
deleted file mode 100644
index 5edef1aa4..000000000
--- a/enumeration/remote/aws/apigatewayv2_vpc_link_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ApiGatewayV2VpcLinkEnumerator struct {
- repository repository.ApiGatewayV2Repository
- factory resource.ResourceFactory
-}
-
-func NewApiGatewayV2VpcLinkEnumerator(repo repository.ApiGatewayV2Repository, factory resource.ResourceFactory) *ApiGatewayV2VpcLinkEnumerator {
- return &ApiGatewayV2VpcLinkEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ApiGatewayV2VpcLinkEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsApiGatewayV2VpcLinkResourceType
-}
-
-func (e *ApiGatewayV2VpcLinkEnumerator) Enumerate() ([]*resource.Resource, error) {
- vpcLinks, err := e.repository.ListAllVpcLinks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(vpcLinks))
-
- for _, vpcLink := range vpcLinks {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *vpcLink.VpcLinkId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/appautoscaling_policy_enumerator.go b/enumeration/remote/aws/appautoscaling_policy_enumerator.go
deleted file mode 100644
index 4662b8b99..000000000
--- a/enumeration/remote/aws/appautoscaling_policy_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type AppAutoscalingPolicyEnumerator struct {
- repository repository.AppAutoScalingRepository
- factory resource.ResourceFactory
-}
-
-func NewAppAutoscalingPolicyEnumerator(repository repository.AppAutoScalingRepository, factory resource.ResourceFactory) *AppAutoscalingPolicyEnumerator {
- return &AppAutoscalingPolicyEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *AppAutoscalingPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsAppAutoscalingPolicyResourceType
-}
-
-func (e *AppAutoscalingPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- results := make([]*resource.Resource, 0)
-
- for _, ns := range e.repository.ServiceNamespaceValues() {
- policies, err := e.repository.DescribeScalingPolicies(ns)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, policy := range policies {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *policy.PolicyName,
- map[string]interface{}{
- "name": *policy.PolicyName,
- "resource_id": *policy.ResourceId,
- "scalable_dimension": *policy.ScalableDimension,
- "service_namespace": *policy.ServiceNamespace,
- },
- ),
- )
- }
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/appautoscaling_scheduled_action_enumerator.go b/enumeration/remote/aws/appautoscaling_scheduled_action_enumerator.go
deleted file mode 100644
index 3cb182e73..000000000
--- a/enumeration/remote/aws/appautoscaling_scheduled_action_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type AppAutoscalingScheduledActionEnumerator struct {
- repository repository.AppAutoScalingRepository
- factory resource.ResourceFactory
-}
-
-func NewAppAutoscalingScheduledActionEnumerator(repository repository.AppAutoScalingRepository, factory resource.ResourceFactory) *AppAutoscalingScheduledActionEnumerator {
- return &AppAutoscalingScheduledActionEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *AppAutoscalingScheduledActionEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsAppAutoscalingScheduledActionResourceType
-}
-
-func (e *AppAutoscalingScheduledActionEnumerator) Enumerate() ([]*resource.Resource, error) {
- results := make([]*resource.Resource, 0)
-
- for _, ns := range e.repository.ServiceNamespaceValues() {
- actions, err := e.repository.DescribeScheduledActions(ns)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, action := range actions {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.Join([]string{*action.ScheduledActionName, *action.ServiceNamespace, *action.ResourceId}, "-"),
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/appautoscaling_target_enumerator.go b/enumeration/remote/aws/appautoscaling_target_enumerator.go
deleted file mode 100644
index fbe039aab..000000000
--- a/enumeration/remote/aws/appautoscaling_target_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/applicationautoscaling"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type AppAutoscalingTargetEnumerator struct {
- repository repository.AppAutoScalingRepository
- factory resource.ResourceFactory
-}
-
-func NewAppAutoscalingTargetEnumerator(repository repository.AppAutoScalingRepository, factory resource.ResourceFactory) *AppAutoscalingTargetEnumerator {
- return &AppAutoscalingTargetEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *AppAutoscalingTargetEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsAppAutoscalingTargetResourceType
-}
-
-func (e *AppAutoscalingTargetEnumerator) Enumerate() ([]*resource.Resource, error) {
- targets := make([]*applicationautoscaling.ScalableTarget, 0)
-
- for _, ns := range e.repository.ServiceNamespaceValues() {
- results, err := e.repository.DescribeScalableTargets(ns)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- targets = append(targets, results...)
- }
-
- results := make([]*resource.Resource, 0, len(targets))
-
- for _, target := range targets {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *target.ResourceId,
- map[string]interface{}{
- "service_namespace": *target.ServiceNamespace,
- "scalable_dimension": *target.ScalableDimension,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/classic_loadbalancer_enumerator.go b/enumeration/remote/aws/classic_loadbalancer_enumerator.go
deleted file mode 100644
index 7890f1594..000000000
--- a/enumeration/remote/aws/classic_loadbalancer_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ClassicLoadBalancerEnumerator struct {
- repository repository.ELBRepository
- factory resource.ResourceFactory
-}
-
-func NewClassicLoadBalancerEnumerator(repo repository.ELBRepository, factory resource.ResourceFactory) *ClassicLoadBalancerEnumerator {
- return &ClassicLoadBalancerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ClassicLoadBalancerEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsClassicLoadBalancerResourceType
-}
-
-func (e *ClassicLoadBalancerEnumerator) Enumerate() ([]*resource.Resource, error) {
- loadBalancers, err := e.repository.ListAllLoadBalancers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(loadBalancers))
-
- for _, lb := range loadBalancers {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *lb.LoadBalancerName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/client/mock_AwsClientFactoryInterface.go b/enumeration/remote/aws/client/mock_AwsClientFactoryInterface.go
deleted file mode 100644
index db8d14de9..000000000
--- a/enumeration/remote/aws/client/mock_AwsClientFactoryInterface.go
+++ /dev/null
@@ -1,76 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package client
-
-import (
- aws "github.com/aws/aws-sdk-go/aws"
- mock "github.com/stretchr/testify/mock"
-
- s3controliface "github.com/aws/aws-sdk-go/service/s3control/s3controliface"
-
- s3iface "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-// MockAwsClientFactoryInterface is an autogenerated mock type for the AwsClientFactoryInterface type
-type MockAwsClientFactoryInterface struct {
- mock.Mock
-}
-
-// GetS3Client provides a mock function with given fields: configs
-func (_m *MockAwsClientFactoryInterface) GetS3Client(configs ...*aws.Config) s3iface.S3API {
- _va := make([]interface{}, len(configs))
- for _i := range configs {
- _va[_i] = configs[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 s3iface.S3API
- if rf, ok := ret.Get(0).(func(...*aws.Config) s3iface.S3API); ok {
- r0 = rf(configs...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(s3iface.S3API)
- }
- }
-
- return r0
-}
-
-// GetS3ControlClient provides a mock function with given fields: configs
-func (_m *MockAwsClientFactoryInterface) GetS3ControlClient(configs ...*aws.Config) s3controliface.S3ControlAPI {
- _va := make([]interface{}, len(configs))
- for _i := range configs {
- _va[_i] = configs[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 s3controliface.S3ControlAPI
- if rf, ok := ret.Get(0).(func(...*aws.Config) s3controliface.S3ControlAPI); ok {
- r0 = rf(configs...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(s3controliface.S3ControlAPI)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockAwsClientFactoryInterface interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockAwsClientFactoryInterface creates a new instance of MockAwsClientFactoryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockAwsClientFactoryInterface(t mockConstructorTestingTNewMockAwsClientFactoryInterface) *MockAwsClientFactoryInterface {
- mock := &MockAwsClientFactoryInterface{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/client/s3_client_factory.go b/enumeration/remote/aws/client/s3_client_factory.go
deleted file mode 100644
index cda999c41..000000000
--- a/enumeration/remote/aws/client/s3_client_factory.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package client
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
- "github.com/aws/aws-sdk-go/service/s3control"
- "github.com/aws/aws-sdk-go/service/s3control/s3controliface"
-)
-
-type AwsClientFactoryInterface interface {
- GetS3Client(configs ...*aws.Config) s3iface.S3API
- GetS3ControlClient(configs ...*aws.Config) s3controliface.S3ControlAPI
-}
-
-type AwsClientFactory struct {
- config client.ConfigProvider
-}
-
-func NewAWSClientFactory(config client.ConfigProvider) *AwsClientFactory {
- return &AwsClientFactory{config}
-}
-
-func (s AwsClientFactory) GetS3Client(configs ...*aws.Config) s3iface.S3API {
- return s3.New(s.config, configs...)
-}
-
-func (s AwsClientFactory) GetS3ControlClient(configs ...*aws.Config) s3controliface.S3ControlAPI {
- return s3control.New(s.config, configs...)
-}
diff --git a/enumeration/remote/aws/cloudformation_stack_enumerator.go b/enumeration/remote/aws/cloudformation_stack_enumerator.go
deleted file mode 100644
index c1b7e520b..000000000
--- a/enumeration/remote/aws/cloudformation_stack_enumerator.go
+++ /dev/null
@@ -1,67 +0,0 @@
-package aws
-
-import (
- "fmt"
- "strconv"
-
- "github.com/aws/aws-sdk-go/service/cloudformation"
- "github.com/hashicorp/terraform/flatmap"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type CloudformationStackEnumerator struct {
- repository repository.CloudformationRepository
- factory resource.ResourceFactory
-}
-
-func NewCloudformationStackEnumerator(repo repository.CloudformationRepository, factory resource.ResourceFactory) *CloudformationStackEnumerator {
- return &CloudformationStackEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *CloudformationStackEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsCloudformationStackResourceType
-}
-
-func (e *CloudformationStackEnumerator) Enumerate() ([]*resource.Resource, error) {
- stacks, err := e.repository.ListAllStacks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(stacks))
-
- for _, stack := range stacks {
- attrs := map[string]interface{}{}
- if len(stack.Parameters) > 0 {
- attrs["parameters.%"] = strconv.FormatInt(int64(len(stack.Parameters)), 10)
- for k, v := range flattenParameters(stack.Parameters) {
- attrs[fmt.Sprintf("parameters.%s", k)] = v
- }
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *stack.StackId,
- attrs,
- ),
- )
- }
-
- return results, err
-}
-
-func flattenParameters(parameters []*cloudformation.Parameter) flatmap.Map {
- params := make(map[string]interface{}, len(parameters))
- for _, p := range parameters {
- params[*p.ParameterKey] = *p.ParameterValue
- }
- return flatmap.Flatten(params)
-}
diff --git a/enumeration/remote/aws/cloudfront_distribution_enumerator.go b/enumeration/remote/aws/cloudfront_distribution_enumerator.go
deleted file mode 100644
index 58aa7c1b2..000000000
--- a/enumeration/remote/aws/cloudfront_distribution_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type CloudfrontDistributionEnumerator struct {
- repository repository.CloudfrontRepository
- factory resource.ResourceFactory
-}
-
-func NewCloudfrontDistributionEnumerator(repo repository.CloudfrontRepository, factory resource.ResourceFactory) *CloudfrontDistributionEnumerator {
- return &CloudfrontDistributionEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *CloudfrontDistributionEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsCloudfrontDistributionResourceType
-}
-
-func (e *CloudfrontDistributionEnumerator) Enumerate() ([]*resource.Resource, error) {
- distributions, err := e.repository.ListAllDistributions()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(distributions))
-
- for _, distribution := range distributions {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *distribution.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/cloudtrail_enumerator.go b/enumeration/remote/aws/cloudtrail_enumerator.go
deleted file mode 100644
index 65c108663..000000000
--- a/enumeration/remote/aws/cloudtrail_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type CloudtrailEnumerator struct {
- repository repository.CloudtrailRepository
- factory resource.ResourceFactory
-}
-
-func NewCloudtrailEnumerator(repo repository.CloudtrailRepository, factory resource.ResourceFactory) *CloudtrailEnumerator {
- return &CloudtrailEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *CloudtrailEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsCloudtrailResourceType
-}
-
-func (e *CloudtrailEnumerator) Enumerate() ([]*resource.Resource, error) {
- trails, err := e.repository.ListAllTrails()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(trails))
-
- for _, trail := range trails {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *trail.Name,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/default_vpc_enumerator.go b/enumeration/remote/aws/default_vpc_enumerator.go
deleted file mode 100644
index b49b8fb06..000000000
--- a/enumeration/remote/aws/default_vpc_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type DefaultVPCEnumerator struct {
- repo repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewDefaultVPCEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *DefaultVPCEnumerator {
- return &DefaultVPCEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *DefaultVPCEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDefaultVpcResourceType
-}
-
-func (e *DefaultVPCEnumerator) Enumerate() ([]*resource.Resource, error) {
- _, defaultVPCs, err := e.repo.ListAllVPCs()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(defaultVPCs))
-
- for _, item := range defaultVPCs {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *item.VpcId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/dynamodb_table_enumerator.go b/enumeration/remote/aws/dynamodb_table_enumerator.go
deleted file mode 100644
index cb0c55940..000000000
--- a/enumeration/remote/aws/dynamodb_table_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type DynamoDBTableEnumerator struct {
- repository repository.DynamoDBRepository
- factory resource.ResourceFactory
-}
-
-func NewDynamoDBTableEnumerator(repository repository.DynamoDBRepository, factory resource.ResourceFactory) *DynamoDBTableEnumerator {
- return &DynamoDBTableEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *DynamoDBTableEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDynamodbTableResourceType
-}
-
-func (e *DynamoDBTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- tables, err := e.repository.ListAllTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(tables))
-
- for _, table := range tables {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *table,
- map[string]interface{}{
- "table_name": *table,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/ebs_encryption_by_default_enumerator.go b/enumeration/remote/aws/ebs_encryption_by_default_enumerator.go
deleted file mode 100644
index 2363ca087..000000000
--- a/enumeration/remote/aws/ebs_encryption_by_default_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2EbsEncryptionByDefaultEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2EbsEncryptionByDefaultEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2EbsEncryptionByDefaultEnumerator {
- return &EC2EbsEncryptionByDefaultEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2EbsEncryptionByDefaultEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEbsEncryptionByDefaultResourceType
-}
-
-func (e *EC2EbsEncryptionByDefaultEnumerator) Enumerate() ([]*resource.Resource, error) {
- enabled, err := e.repository.IsEbsEncryptionEnabledByDefault()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- "ebs_encryption_default",
- map[string]interface{}{
- "enabled": enabled,
- },
- ),
- )
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_ami_enumerator.go b/enumeration/remote/aws/ec2_ami_enumerator.go
deleted file mode 100644
index ed409fb3e..000000000
--- a/enumeration/remote/aws/ec2_ami_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2AmiEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2AmiEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2AmiEnumerator {
- return &EC2AmiEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2AmiEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsAmiResourceType
-}
-
-func (e *EC2AmiEnumerator) Enumerate() ([]*resource.Resource, error) {
- images, err := e.repository.ListAllImages()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(images))
-
- for _, image := range images {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *image.ImageId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_default_network_acl_enumerator.go b/enumeration/remote/aws/ec2_default_network_acl_enumerator.go
deleted file mode 100644
index 1490211ea..000000000
--- a/enumeration/remote/aws/ec2_default_network_acl_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2DefaultNetworkACLEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2DefaultNetworkACLEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2DefaultNetworkACLEnumerator {
- return &EC2DefaultNetworkACLEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2DefaultNetworkACLEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDefaultNetworkACLResourceType
-}
-
-func (e *EC2DefaultNetworkACLEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllNetworkACLs()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- // Do not handle non-default network acl since it is a dedicated resource
- if !*res.IsDefault {
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.NetworkAclId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_default_route_table_enumerator.go b/enumeration/remote/aws/ec2_default_route_table_enumerator.go
deleted file mode 100644
index 75ec8036f..000000000
--- a/enumeration/remote/aws/ec2_default_route_table_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2DefaultRouteTableEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2DefaultRouteTableEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2DefaultRouteTableEnumerator {
- return &EC2DefaultRouteTableEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2DefaultRouteTableEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDefaultRouteTableResourceType
-}
-
-func (e *EC2DefaultRouteTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- routeTables, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- var results []*resource.Resource
-
- for _, routeTable := range routeTables {
- if isMainRouteTable(routeTable) {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *routeTable.RouteTableId,
- map[string]interface{}{
- "vpc_id": *routeTable.VpcId,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_default_subnet_enumerator.go b/enumeration/remote/aws/ec2_default_subnet_enumerator.go
deleted file mode 100644
index dbc5cef99..000000000
--- a/enumeration/remote/aws/ec2_default_subnet_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2DefaultSubnetEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2DefaultSubnetEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2DefaultSubnetEnumerator {
- return &EC2DefaultSubnetEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2DefaultSubnetEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDefaultSubnetResourceType
-}
-
-func (e *EC2DefaultSubnetEnumerator) Enumerate() ([]*resource.Resource, error) {
- _, defaultSubnets, err := e.repository.ListAllSubnets()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(defaultSubnets))
-
- for _, subnet := range defaultSubnets {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *subnet.SubnetId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_ebs_snapshot_enumerator.go b/enumeration/remote/aws/ec2_ebs_snapshot_enumerator.go
deleted file mode 100644
index 20d69dd09..000000000
--- a/enumeration/remote/aws/ec2_ebs_snapshot_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2EbsSnapshotEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2EbsSnapshotEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2EbsSnapshotEnumerator {
- return &EC2EbsSnapshotEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2EbsSnapshotEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEbsSnapshotResourceType
-}
-
-func (e *EC2EbsSnapshotEnumerator) Enumerate() ([]*resource.Resource, error) {
- snapshots, err := e.repository.ListAllSnapshots()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(snapshots))
-
- for _, snapshot := range snapshots {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *snapshot.SnapshotId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_ebs_volume_enumerator.go b/enumeration/remote/aws/ec2_ebs_volume_enumerator.go
deleted file mode 100644
index 7528b1395..000000000
--- a/enumeration/remote/aws/ec2_ebs_volume_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2EbsVolumeEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2EbsVolumeEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2EbsVolumeEnumerator {
- return &EC2EbsVolumeEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2EbsVolumeEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEbsVolumeResourceType
-}
-
-func (e *EC2EbsVolumeEnumerator) Enumerate() ([]*resource.Resource, error) {
- volumes, err := e.repository.ListAllVolumes()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(volumes))
-
- for _, volume := range volumes {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *volume.VolumeId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_eip_association_enumerator.go b/enumeration/remote/aws/ec2_eip_association_enumerator.go
deleted file mode 100644
index 7da15c1c1..000000000
--- a/enumeration/remote/aws/ec2_eip_association_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2EipAssociationEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2EipAssociationEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2EipAssociationEnumerator {
- return &EC2EipAssociationEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2EipAssociationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEipAssociationResourceType
-}
-
-func (e *EC2EipAssociationEnumerator) Enumerate() ([]*resource.Resource, error) {
- addresses, err := e.repository.ListAllAddressesAssociation()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(addresses))
-
- for _, address := range addresses {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *address.AssociationId,
- map[string]interface{}{
- "allocation_id": *address.AllocationId,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_eip_enumerator.go b/enumeration/remote/aws/ec2_eip_enumerator.go
deleted file mode 100644
index a4ace5748..000000000
--- a/enumeration/remote/aws/ec2_eip_enumerator.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package aws
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2EipEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2EipEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2EipEnumerator {
- return &EC2EipEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2EipEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEipResourceType
-}
-
-func (e *EC2EipEnumerator) Enumerate() ([]*resource.Resource, error) {
- addresses, err := e.repository.ListAllAddresses()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(addresses))
-
- for _, address := range addresses {
- if address.AllocationId == nil {
- logrus.Warn("Elastic IP does not have an allocation ID, ignoring")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *address.AllocationId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_instance_enumerator.go b/enumeration/remote/aws/ec2_instance_enumerator.go
deleted file mode 100644
index 0779759f0..000000000
--- a/enumeration/remote/aws/ec2_instance_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2InstanceEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2InstanceEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2InstanceEnumerator {
- return &EC2InstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2InstanceEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsInstanceResourceType
-}
-
-func (e *EC2InstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- instances, err := e.repository.ListAllInstances()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(instances))
-
- for _, instance := range instances {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *instance.InstanceId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_internet_gateway_enumerator.go b/enumeration/remote/aws/ec2_internet_gateway_enumerator.go
deleted file mode 100644
index 82dedf7c3..000000000
--- a/enumeration/remote/aws/ec2_internet_gateway_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2InternetGatewayEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2InternetGatewayEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2InternetGatewayEnumerator {
- return &EC2InternetGatewayEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2InternetGatewayEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsInternetGatewayResourceType
-}
-
-func (e *EC2InternetGatewayEnumerator) Enumerate() ([]*resource.Resource, error) {
- internetGateways, err := e.repository.ListAllInternetGateways()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(internetGateways))
-
- for _, internetGateway := range internetGateways {
- data := map[string]interface{}{}
- if len(internetGateway.Attachments) > 0 && internetGateway.Attachments[0].VpcId != nil {
- data["vpc_id"] = *internetGateway.Attachments[0].VpcId
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *internetGateway.InternetGatewayId,
- data,
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_key_pair_enumerator.go b/enumeration/remote/aws/ec2_key_pair_enumerator.go
deleted file mode 100644
index 9753a8cf4..000000000
--- a/enumeration/remote/aws/ec2_key_pair_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2KeyPairEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2KeyPairEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2KeyPairEnumerator {
- return &EC2KeyPairEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2KeyPairEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsKeyPairResourceType
-}
-
-func (e *EC2KeyPairEnumerator) Enumerate() ([]*resource.Resource, error) {
- keyPairs, err := e.repository.ListAllKeyPairs()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(keyPairs))
-
- for _, keyPair := range keyPairs {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *keyPair.KeyName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_nat_gateway_enumerator.go b/enumeration/remote/aws/ec2_nat_gateway_enumerator.go
deleted file mode 100644
index 1cc1a14f3..000000000
--- a/enumeration/remote/aws/ec2_nat_gateway_enumerator.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2NatGatewayEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2NatGatewayEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2NatGatewayEnumerator {
- return &EC2NatGatewayEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2NatGatewayEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsNatGatewayResourceType
-}
-
-func (e *EC2NatGatewayEnumerator) Enumerate() ([]*resource.Resource, error) {
- natGateways, err := e.repository.ListAllNatGateways()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(natGateways))
-
- for _, natGateway := range natGateways {
-
- attrs := map[string]interface{}{}
- if len(natGateway.NatGatewayAddresses) > 0 {
- if allocId := natGateway.NatGatewayAddresses[0].AllocationId; allocId != nil {
- attrs["allocation_id"] = *allocId
- }
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *natGateway.NatGatewayId,
- attrs,
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_network_acl_enumerator.go b/enumeration/remote/aws/ec2_network_acl_enumerator.go
deleted file mode 100644
index 3facb89c9..000000000
--- a/enumeration/remote/aws/ec2_network_acl_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2NetworkACLEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2NetworkACLEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2NetworkACLEnumerator {
- return &EC2NetworkACLEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2NetworkACLEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsNetworkACLResourceType
-}
-
-func (e *EC2NetworkACLEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllNetworkACLs()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- // Do not handle default network acl since it is a dedicated resource
- if *res.IsDefault {
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.NetworkAclId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_network_acl_rule_enumerator.go b/enumeration/remote/aws/ec2_network_acl_rule_enumerator.go
deleted file mode 100644
index 3c6ddf9e3..000000000
--- a/enumeration/remote/aws/ec2_network_acl_rule_enumerator.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2NetworkACLRuleEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2NetworkACLRuleEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2NetworkACLRuleEnumerator {
- return &EC2NetworkACLRuleEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2NetworkACLRuleEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsNetworkACLRuleResourceType
-}
-
-func (e *EC2NetworkACLRuleEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllNetworkACLs()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsNetworkACLResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- for _, entry := range res.Entries {
-
- attrs := map[string]interface{}{
- "egress": *entry.Egress,
- "network_acl_id": *res.NetworkAclId,
- "rule_action": *entry.RuleAction, // Used in default middleware
- "rule_number": *entry.RuleNumber, // Used in default middleware
- "protocol": *entry.Protocol, // Used in default middleware
- }
-
- if entry.CidrBlock != nil {
- attrs["cidr_block"] = *entry.CidrBlock
- }
-
- if entry.Ipv6CidrBlock != nil {
- attrs["ipv6_cidr_block"] = *entry.Ipv6CidrBlock
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- aws.CreateNetworkACLRuleID(
- *res.NetworkAclId,
- *entry.RuleNumber,
- *entry.Egress,
- *entry.Protocol,
- ),
- attrs,
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_route_enumerator.go b/enumeration/remote/aws/ec2_route_enumerator.go
deleted file mode 100644
index e41c193ff..000000000
--- a/enumeration/remote/aws/ec2_route_enumerator.go
+++ /dev/null
@@ -1,66 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2RouteEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2RouteEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2RouteEnumerator {
- return &EC2RouteEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2RouteEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsRouteResourceType
-}
-
-func (e *EC2RouteEnumerator) Enumerate() ([]*resource.Resource, error) {
- routeTables, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsRouteTableResourceType)
- }
-
- var results []*resource.Resource
-
- for _, routeTable := range routeTables {
- for _, route := range routeTable.Routes {
- routeId := aws.CalculateRouteID(routeTable.RouteTableId, route.DestinationCidrBlock, route.DestinationIpv6CidrBlock, route.DestinationPrefixListId)
- data := map[string]interface{}{
- "route_table_id": *routeTable.RouteTableId,
- "origin": *route.Origin,
- }
- if route.DestinationCidrBlock != nil && *route.DestinationCidrBlock != "" {
- data["destination_cidr_block"] = *route.DestinationCidrBlock
- }
- if route.DestinationIpv6CidrBlock != nil && *route.DestinationIpv6CidrBlock != "" {
- data["destination_ipv6_cidr_block"] = *route.DestinationIpv6CidrBlock
- }
- if route.DestinationPrefixListId != nil && *route.DestinationPrefixListId != "" {
- data["destination_prefix_list_id"] = *route.DestinationPrefixListId
- }
- if route.GatewayId != nil && *route.GatewayId != "" {
- data["gateway_id"] = *route.GatewayId
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- routeId,
- data,
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ec2_route_table_association_enumerator.go b/enumeration/remote/aws/ec2_route_table_association_enumerator.go
deleted file mode 100644
index 4ccd63350..000000000
--- a/enumeration/remote/aws/ec2_route_table_association_enumerator.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/ec2"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2RouteTableAssociationEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2RouteTableAssociationEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2RouteTableAssociationEnumerator {
- return &EC2RouteTableAssociationEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2RouteTableAssociationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsRouteTableAssociationResourceType
-}
-
-func (e *EC2RouteTableAssociationEnumerator) Enumerate() ([]*resource.Resource, error) {
- routeTables, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsRouteTableResourceType)
- }
-
- var results []*resource.Resource
-
- for _, routeTable := range routeTables {
- for _, assoc := range routeTable.Associations {
- if e.shouldBeIgnored(assoc) {
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *assoc.RouteTableAssociationId,
- map[string]interface{}{
- "route_table_id": *assoc.RouteTableId,
- },
- ),
- )
- }
- }
-
- return results, err
-}
-
-func (e *EC2RouteTableAssociationEnumerator) shouldBeIgnored(assoc *ec2.RouteTableAssociation) bool {
- // Ignore when nothing is associated
- if assoc.GatewayId == nil && assoc.SubnetId == nil {
- return true
- }
-
- // Ignore when association is not associated
- if assoc.AssociationState != nil && assoc.AssociationState.State != nil &&
- *assoc.AssociationState.State != "associated" {
- return true
- }
-
- return false
-}
diff --git a/enumeration/remote/aws/ec2_route_table_enumerator.go b/enumeration/remote/aws/ec2_route_table_enumerator.go
deleted file mode 100644
index 052d278db..000000000
--- a/enumeration/remote/aws/ec2_route_table_enumerator.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/ec2"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2RouteTableEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2RouteTableEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2RouteTableEnumerator {
- return &EC2RouteTableEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2RouteTableEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsRouteTableResourceType
-}
-
-func (e *EC2RouteTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- routeTables, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- var results []*resource.Resource
-
- for _, routeTable := range routeTables {
- if !isMainRouteTable(routeTable) {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *routeTable.RouteTableId,
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, err
-}
-
-func isMainRouteTable(routeTable *ec2.RouteTable) bool {
- for _, assoc := range routeTable.Associations {
- if assoc.Main != nil && *assoc.Main {
- return true
- }
- }
- return false
-}
diff --git a/enumeration/remote/aws/ec2_subnet_enumerator.go b/enumeration/remote/aws/ec2_subnet_enumerator.go
deleted file mode 100644
index 77592046f..000000000
--- a/enumeration/remote/aws/ec2_subnet_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type EC2SubnetEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewEC2SubnetEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *EC2SubnetEnumerator {
- return &EC2SubnetEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *EC2SubnetEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSubnetResourceType
-}
-
-func (e *EC2SubnetEnumerator) Enumerate() ([]*resource.Resource, error) {
- subnets, _, err := e.repository.ListAllSubnets()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(subnets))
-
- for _, subnet := range subnets {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *subnet.SubnetId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ecr_repository_enumerator.go b/enumeration/remote/aws/ecr_repository_enumerator.go
deleted file mode 100644
index 7ad474961..000000000
--- a/enumeration/remote/aws/ecr_repository_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ECRRepositoryEnumerator struct {
- repository repository.ECRRepository
- factory resource.ResourceFactory
-}
-
-func NewECRRepositoryEnumerator(repo repository.ECRRepository, factory resource.ResourceFactory) *ECRRepositoryEnumerator {
- return &ECRRepositoryEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ECRRepositoryEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEcrRepositoryResourceType
-}
-
-func (e *ECRRepositoryEnumerator) Enumerate() ([]*resource.Resource, error) {
- repos, err := e.repository.ListAllRepositories()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(repos))
-
- for _, repo := range repos {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *repo.RepositoryName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/ecr_repository_policy_enumerator.go b/enumeration/remote/aws/ecr_repository_policy_enumerator.go
deleted file mode 100644
index 990302ef8..000000000
--- a/enumeration/remote/aws/ecr_repository_policy_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/ecr"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ECRRepositoryPolicyEnumerator struct {
- repository repository.ECRRepository
- factory resource.ResourceFactory
-}
-
-func NewECRRepositoryPolicyEnumerator(repo repository.ECRRepository, factory resource.ResourceFactory) *ECRRepositoryPolicyEnumerator {
- return &ECRRepositoryPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ECRRepositoryPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsEcrRepositoryPolicyResourceType
-}
-
-func (e *ECRRepositoryPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- repos, err := e.repository.ListAllRepositories()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsEcrRepositoryResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(repos))
-
- for _, repo := range repos {
- repoOutput, err := e.repository.GetRepositoryPolicy(repo)
- if _, ok := err.(*ecr.RepositoryPolicyNotFoundException); ok {
- continue
- }
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *repoOutput.RepositoryName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/elasticache_cluster_enumerator.go b/enumeration/remote/aws/elasticache_cluster_enumerator.go
deleted file mode 100644
index 2ffd0eae2..000000000
--- a/enumeration/remote/aws/elasticache_cluster_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type ElastiCacheClusterEnumerator struct {
- repository repository.ElastiCacheRepository
- factory resource.ResourceFactory
-}
-
-func NewElastiCacheClusterEnumerator(repo repository.ElastiCacheRepository, factory resource.ResourceFactory) *ElastiCacheClusterEnumerator {
- return &ElastiCacheClusterEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *ElastiCacheClusterEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsElastiCacheClusterResourceType
-}
-
-func (e *ElastiCacheClusterEnumerator) Enumerate() ([]*resource.Resource, error) {
- clusters, err := e.repository.ListAllCacheClusters()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(clusters))
-
- for _, cluster := range clusters {
- c := cluster
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *c.CacheClusterId,
- map[string]interface{}{},
- ),
- )
- }
- return results, err
-}
diff --git a/enumeration/remote/aws/iam_access_key_enumerator.go b/enumeration/remote/aws/iam_access_key_enumerator.go
deleted file mode 100644
index 733060460..000000000
--- a/enumeration/remote/aws/iam_access_key_enumerator.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamAccessKeyEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamAccessKeyEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamAccessKeyEnumerator {
- return &IamAccessKeyEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamAccessKeyEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamAccessKeyResourceType
-}
-
-func (e *IamAccessKeyEnumerator) Enumerate() ([]*resource.Resource, error) {
- users, err := e.repository.ListAllUsers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsIamUserResourceType)
- }
-
- keys, err := e.repository.ListAllAccessKeys(users)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
- for _, key := range keys {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *key.AccessKeyId,
- map[string]interface{}{
- "user": *key.UserName,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_group_enumerator.go b/enumeration/remote/aws/iam_group_enumerator.go
deleted file mode 100644
index ba0931b81..000000000
--- a/enumeration/remote/aws/iam_group_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamGroupEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamGroupEnumerator(repo repository.IAMRepository, factory resource.ResourceFactory) *IamGroupEnumerator {
- return &IamGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *IamGroupEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsIamGroupResourceType
-}
-
-func (e *IamGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- groups, err := e.repository.ListAllGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsIamGroupResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(groups))
-
- for _, group := range groups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *group.GroupName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/iam_group_policy_attachment_enumerator.go b/enumeration/remote/aws/iam_group_policy_attachment_enumerator.go
deleted file mode 100644
index b3e130d7e..000000000
--- a/enumeration/remote/aws/iam_group_policy_attachment_enumerator.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package aws
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamGroupPolicyAttachmentEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamGroupPolicyAttachmentEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamGroupPolicyAttachmentEnumerator {
- return &IamGroupPolicyAttachmentEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamGroupPolicyAttachmentEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamGroupPolicyAttachmentResourceType
-}
-
-func (e *IamGroupPolicyAttachmentEnumerator) Enumerate() ([]*resource.Resource, error) {
- groups, err := e.repository.ListAllGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsIamGroupResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- policyAttachments, err := e.repository.ListAllGroupPolicyAttachments(groups)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, attachedPol := range policyAttachments {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- fmt.Sprintf("%s-%s", *attachedPol.PolicyName, attachedPol.GroupName),
- map[string]interface{}{
- "group": attachedPol.GroupName,
- "policy_arn": *attachedPol.PolicyArn,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_group_policy_enumerator.go b/enumeration/remote/aws/iam_group_policy_enumerator.go
deleted file mode 100644
index daff7f612..000000000
--- a/enumeration/remote/aws/iam_group_policy_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamGroupPolicyEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamGroupPolicyEnumerator(repo repository.IAMRepository, factory resource.ResourceFactory) *IamGroupPolicyEnumerator {
- return &IamGroupPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *IamGroupPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsIamGroupPolicyResourceType
-}
-
-func (e *IamGroupPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- groups, err := e.repository.ListAllGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsIamGroupResourceType)
- }
- groupPolicies, err := e.repository.ListAllGroupPolicies(groups)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(groupPolicies))
-
- for _, groupPolicy := range groupPolicies {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- groupPolicy,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/iam_policy_enumerator.go b/enumeration/remote/aws/iam_policy_enumerator.go
deleted file mode 100644
index 0f17dd74d..000000000
--- a/enumeration/remote/aws/iam_policy_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package aws
-
-import (
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamPolicyEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamPolicyEnumerator(repo repository.IAMRepository, factory resource.ResourceFactory) *IamPolicyEnumerator {
- return &IamPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *IamPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsIamPolicyResourceType
-}
-
-func (e *IamPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- policies, err := e.repository.ListAllPolicies()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(policies))
-
- for _, policy := range policies {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- awssdk.StringValue(policy.Arn),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/iam_role_enumerator.go b/enumeration/remote/aws/iam_role_enumerator.go
deleted file mode 100644
index 0e142e4cc..000000000
--- a/enumeration/remote/aws/iam_role_enumerator.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-var iamRoleExclusionList = map[string]struct{}{
- // Enabled by default for aws to enable support, not removable
- "AWSServiceRoleForSupport": {},
- // Enabled and not removable for every org account
- "AWSServiceRoleForOrganizations": {},
- // Not manageable by IaC and set by default
- "AWSServiceRoleForTrustedAdvisor": {},
-}
-
-type IamRoleEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamRoleEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamRoleEnumerator {
- return &IamRoleEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamRoleEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamRoleResourceType
-}
-
-func awsIamRoleShouldBeIgnored(roleName string) bool {
- _, ok := iamRoleExclusionList[roleName]
- return ok
-}
-
-func (e *IamRoleEnumerator) Enumerate() ([]*resource.Resource, error) {
- roles, err := e.repository.ListAllRoles()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
- for _, role := range roles {
- if role.RoleName != nil && awsIamRoleShouldBeIgnored(*role.RoleName) {
- continue
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *role.RoleName,
- map[string]interface{}{
- "path": *role.Path,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_role_policy_attachment_enumerator.go b/enumeration/remote/aws/iam_role_policy_attachment_enumerator.go
deleted file mode 100644
index c2e0c2cb9..000000000
--- a/enumeration/remote/aws/iam_role_policy_attachment_enumerator.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package aws
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/aws/aws-sdk-go/service/iam"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamRolePolicyAttachmentEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamRolePolicyAttachmentEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamRolePolicyAttachmentEnumerator {
- return &IamRolePolicyAttachmentEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamRolePolicyAttachmentEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamRolePolicyAttachmentResourceType
-}
-
-func (e *IamRolePolicyAttachmentEnumerator) Enumerate() ([]*resource.Resource, error) {
- roles, err := e.repository.ListAllRoles()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsIamRoleResourceType)
- }
-
- results := make([]*resource.Resource, 0)
- rolesNotIgnored := make([]*iam.Role, 0)
-
- for _, role := range roles {
- if role.RoleName != nil && awsIamRoleShouldBeIgnored(*role.RoleName) {
- continue
- }
- rolesNotIgnored = append(rolesNotIgnored, role)
- }
-
- if len(rolesNotIgnored) == 0 {
- return results, nil
- }
-
- policyAttachments, err := e.repository.ListAllRolePolicyAttachments(rolesNotIgnored)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, attachedPol := range policyAttachments {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- fmt.Sprintf("%s-%s", *attachedPol.PolicyName, attachedPol.RoleName),
- map[string]interface{}{
- "role": attachedPol.RoleName,
- "policy_arn": *attachedPol.PolicyArn,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_role_policy_enumerator.go b/enumeration/remote/aws/iam_role_policy_enumerator.go
deleted file mode 100644
index 340455857..000000000
--- a/enumeration/remote/aws/iam_role_policy_enumerator.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package aws
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamRolePolicyEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamRolePolicyEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamRolePolicyEnumerator {
- return &IamRolePolicyEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamRolePolicyEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamRolePolicyResourceType
-}
-
-func (e *IamRolePolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- roles, err := e.repository.ListAllRoles()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsIamRoleResourceType)
- }
-
- policies, err := e.repository.ListAllRolePolicies(roles)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(policies))
- for _, policy := range policies {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- fmt.Sprintf("%s:%s", policy.RoleName, policy.Policy),
- map[string]interface{}{
- "role": policy.RoleName,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_user_enumerator.go b/enumeration/remote/aws/iam_user_enumerator.go
deleted file mode 100644
index 23118fc45..000000000
--- a/enumeration/remote/aws/iam_user_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package aws
-
-import (
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamUserEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamUserEnumerator(repo repository.IAMRepository, factory resource.ResourceFactory) *IamUserEnumerator {
- return &IamUserEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *IamUserEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsIamUserResourceType
-}
-
-func (e *IamUserEnumerator) Enumerate() ([]*resource.Resource, error) {
- users, err := e.repository.ListAllUsers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(users))
-
- for _, user := range users {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- awssdk.StringValue(user.UserName),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/iam_user_policy_attachment_enumerator.go b/enumeration/remote/aws/iam_user_policy_attachment_enumerator.go
deleted file mode 100644
index f910bb84a..000000000
--- a/enumeration/remote/aws/iam_user_policy_attachment_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamUserPolicyAttachmentEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamUserPolicyAttachmentEnumerator(repository repository.IAMRepository, factory resource.ResourceFactory) *IamUserPolicyAttachmentEnumerator {
- return &IamUserPolicyAttachmentEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *IamUserPolicyAttachmentEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsIamUserPolicyAttachmentResourceType
-}
-
-func (e *IamUserPolicyAttachmentEnumerator) Enumerate() ([]*resource.Resource, error) {
- users, err := e.repository.ListAllUsers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsIamUserResourceType)
- }
-
- results := make([]*resource.Resource, 0)
- policyAttachments, err := e.repository.ListAllUserPolicyAttachments(users)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, attachedPol := range policyAttachments {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- fmt.Sprintf("%s-%s", *attachedPol.PolicyName, attachedPol.UserName),
- map[string]interface{}{
- "user": attachedPol.UserName,
- "policy_arn": *attachedPol.PolicyArn,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/iam_user_policy_enumerator.go b/enumeration/remote/aws/iam_user_policy_enumerator.go
deleted file mode 100644
index 14c6a7295..000000000
--- a/enumeration/remote/aws/iam_user_policy_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type IamUserPolicyEnumerator struct {
- repository repository.IAMRepository
- factory resource.ResourceFactory
-}
-
-func NewIamUserPolicyEnumerator(repo repository.IAMRepository, factory resource.ResourceFactory) *IamUserPolicyEnumerator {
- return &IamUserPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *IamUserPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsIamUserPolicyResourceType
-}
-
-func (e *IamUserPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- users, err := e.repository.ListAllUsers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsIamUserResourceType)
- }
- userPolicies, err := e.repository.ListAllUserPolicies(users)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(userPolicies))
-
- for _, userPolicy := range userPolicies {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- userPolicy,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/init.go b/enumeration/remote/aws/init.go
deleted file mode 100644
index 4ad81bdf6..000000000
--- a/enumeration/remote/aws/init.go
+++ /dev/null
@@ -1,190 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- client "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-/**
- * Initialize remote (configure credentials, launch tf providers and start gRPC clients)
- * Required to use Scanner
- */
-
-func Init(version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, factory resource.ResourceFactory, configDir string) error {
-
- provider, err := NewAWSTerraformProvider(version, progress, configDir)
- if err != nil {
- return err
- }
- err = provider.CheckCredentialsExist()
- if err != nil {
- return err
- }
- err = provider.Init()
- if err != nil {
- return err
- }
-
- repositoryCache := cache.New(100)
-
- s3Repository := repository.NewS3Repository(client.NewAWSClientFactory(provider.session), repositoryCache)
- s3ControlRepository := repository.NewS3ControlRepository(client.NewAWSClientFactory(provider.session), repositoryCache)
- ec2repository := repository.NewEC2Repository(provider.session, repositoryCache)
- elbv2Repository := repository.NewELBV2Repository(provider.session, repositoryCache)
- route53repository := repository.NewRoute53Repository(provider.session, repositoryCache)
- lambdaRepository := repository.NewLambdaRepository(provider.session, repositoryCache)
- rdsRepository := repository.NewRDSRepository(provider.session, repositoryCache)
- sqsRepository := repository.NewSQSRepository(provider.session, repositoryCache)
- snsRepository := repository.NewSNSRepository(provider.session, repositoryCache)
- cloudfrontRepository := repository.NewCloudfrontRepository(provider.session, repositoryCache)
- dynamoDBRepository := repository.NewDynamoDBRepository(provider.session, repositoryCache)
- ecrRepository := repository.NewECRRepository(provider.session, repositoryCache)
- kmsRepository := repository.NewKMSRepository(provider.session, repositoryCache)
- iamRepository := repository.NewIAMRepository(provider.session, repositoryCache)
- cloudformationRepository := repository.NewCloudformationRepository(provider.session, repositoryCache)
- cloudtrailRepository := repository.NewCloudtrailRepository(provider.session, repositoryCache)
- apigatewayRepository := repository.NewApiGatewayRepository(provider.session, repositoryCache)
- appAutoScalingRepository := repository.NewAppAutoScalingRepository(provider.session, repositoryCache)
- apigatewayv2Repository := repository.NewApiGatewayV2Repository(provider.session, repositoryCache)
- autoscalingRepository := repository.NewAutoScalingRepository(provider.session, repositoryCache)
- elbRepository := repository.NewELBRepository(provider.session, repositoryCache)
- elasticacheRepository := repository.NewElastiCacheRepository(provider.session, repositoryCache)
-
- providerLibrary.AddProvider(terraform.AWS, provider)
-
- remoteLibrary.AddEnumerator(NewS3BucketEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketInventoryEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketNotificationEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketMetricsEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketPolicyEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketAnalyticEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3BucketPublicAccessBlockEnumerator(s3Repository, factory, provider.Config, alerter))
- remoteLibrary.AddEnumerator(NewS3AccountPublicAccessBlockEnumerator(s3ControlRepository, factory, provider.accountId, alerter))
-
- remoteLibrary.AddEnumerator(NewEC2EbsVolumeEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2EbsSnapshotEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2EipEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2AmiEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2KeyPairEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2EipAssociationEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2InstanceEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2InternetGatewayEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewVPCEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewDefaultVPCEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2RouteTableEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2DefaultRouteTableEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2RouteTableAssociationEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2SubnetEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2DefaultSubnetEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewVPCSecurityGroupEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewVPCDefaultSecurityGroupEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2NatGatewayEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2NetworkACLEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2NetworkACLRuleEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2DefaultNetworkACLEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2RouteEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewVPCSecurityGroupRuleEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewLaunchTemplateEnumerator(ec2repository, factory))
- remoteLibrary.AddEnumerator(NewEC2EbsEncryptionByDefaultEnumerator(ec2repository, factory))
-
- remoteLibrary.AddEnumerator(NewKMSKeyEnumerator(kmsRepository, factory))
- remoteLibrary.AddEnumerator(NewKMSAliasEnumerator(kmsRepository, factory))
-
- remoteLibrary.AddEnumerator(NewRoute53HealthCheckEnumerator(route53repository, factory))
- remoteLibrary.AddEnumerator(NewRoute53ZoneEnumerator(route53repository, factory))
- remoteLibrary.AddEnumerator(NewRoute53RecordEnumerator(route53repository, factory))
-
- remoteLibrary.AddEnumerator(NewCloudfrontDistributionEnumerator(cloudfrontRepository, factory))
-
- remoteLibrary.AddEnumerator(NewRDSDBInstanceEnumerator(rdsRepository, factory))
- remoteLibrary.AddEnumerator(NewRDSDBSubnetGroupEnumerator(rdsRepository, factory))
-
- remoteLibrary.AddEnumerator(NewSQSQueueEnumerator(sqsRepository, factory))
- remoteLibrary.AddEnumerator(NewSQSQueuePolicyEnumerator(sqsRepository, factory))
-
- remoteLibrary.AddEnumerator(NewSNSTopicEnumerator(snsRepository, factory))
- remoteLibrary.AddEnumerator(NewSNSTopicPolicyEnumerator(snsRepository, factory))
- remoteLibrary.AddEnumerator(NewSNSTopicSubscriptionEnumerator(snsRepository, factory, alerter))
-
- remoteLibrary.AddEnumerator(NewDynamoDBTableEnumerator(dynamoDBRepository, factory))
-
- remoteLibrary.AddEnumerator(NewIamPolicyEnumerator(iamRepository, factory))
-
- remoteLibrary.AddEnumerator(NewLambdaFunctionEnumerator(lambdaRepository, factory))
- remoteLibrary.AddEnumerator(NewLambdaEventSourceMappingEnumerator(lambdaRepository, factory))
-
- remoteLibrary.AddEnumerator(NewIamUserEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamUserPolicyEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamRoleEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamAccessKeyEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamRolePolicyAttachmentEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamRolePolicyEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamUserPolicyAttachmentEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamGroupPolicyEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamGroupEnumerator(iamRepository, factory))
- remoteLibrary.AddEnumerator(NewIamGroupPolicyAttachmentEnumerator(iamRepository, factory))
-
- remoteLibrary.AddEnumerator(NewECRRepositoryEnumerator(ecrRepository, factory))
- remoteLibrary.AddEnumerator(NewECRRepositoryPolicyEnumerator(ecrRepository, factory))
-
- remoteLibrary.AddEnumerator(NewRDSClusterEnumerator(rdsRepository, factory))
-
- remoteLibrary.AddEnumerator(NewCloudformationStackEnumerator(cloudformationRepository, factory))
-
- remoteLibrary.AddEnumerator(NewCloudtrailEnumerator(cloudtrailRepository, factory))
-
- remoteLibrary.AddEnumerator(NewApiGatewayRestApiEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayAccountEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayApiKeyEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayAuthorizerEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayStageEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayResourceEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayDomainNameEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayVpcLinkEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayRequestValidatorEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayRestApiPolicyEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayBasePathMappingEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayMethodEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayModelEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayMethodResponseEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayGatewayResponseEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayMethodSettingsEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayIntegrationEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayIntegrationResponseEnumerator(apigatewayRepository, factory))
-
- remoteLibrary.AddEnumerator(NewApiGatewayV2ApiEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2RouteEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2DeploymentEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2VpcLinkEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2AuthorizerEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2IntegrationEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2ModelEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2StageEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2RouteResponseEnumerator(apigatewayv2Repository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2MappingEnumerator(apigatewayv2Repository, apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2DomainNameEnumerator(apigatewayRepository, factory))
- remoteLibrary.AddEnumerator(NewApiGatewayV2IntegrationResponseEnumerator(apigatewayv2Repository, factory))
-
- remoteLibrary.AddEnumerator(NewAppAutoscalingTargetEnumerator(appAutoScalingRepository, factory))
-
- remoteLibrary.AddEnumerator(NewAppAutoscalingPolicyEnumerator(appAutoScalingRepository, factory))
-
- remoteLibrary.AddEnumerator(NewAppAutoscalingScheduledActionEnumerator(appAutoScalingRepository, factory))
-
- remoteLibrary.AddEnumerator(NewLaunchConfigurationEnumerator(autoscalingRepository, factory))
-
- remoteLibrary.AddEnumerator(NewLoadBalancerEnumerator(elbv2Repository, factory))
- remoteLibrary.AddEnumerator(NewLoadBalancerListenerEnumerator(elbv2Repository, factory))
-
- remoteLibrary.AddEnumerator(NewClassicLoadBalancerEnumerator(elbRepository, factory))
-
- remoteLibrary.AddEnumerator(NewElastiCacheClusterEnumerator(elasticacheRepository, factory))
-
- return nil
-}
diff --git a/enumeration/remote/aws/kms_alias_enumerator.go b/enumeration/remote/aws/kms_alias_enumerator.go
deleted file mode 100644
index 44f841d2d..000000000
--- a/enumeration/remote/aws/kms_alias_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type KMSAliasEnumerator struct {
- repository repository.KMSRepository
- factory resource.ResourceFactory
-}
-
-func NewKMSAliasEnumerator(repo repository.KMSRepository, factory resource.ResourceFactory) *KMSAliasEnumerator {
- return &KMSAliasEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *KMSAliasEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsKmsAliasResourceType
-}
-
-func (e *KMSAliasEnumerator) Enumerate() ([]*resource.Resource, error) {
- aliases, err := e.repository.ListAllAliases()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(aliases))
-
- for _, alias := range aliases {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *alias.AliasName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/kms_key_enumerator.go b/enumeration/remote/aws/kms_key_enumerator.go
deleted file mode 100644
index f2078c964..000000000
--- a/enumeration/remote/aws/kms_key_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type KMSKeyEnumerator struct {
- repository repository.KMSRepository
- factory resource.ResourceFactory
-}
-
-func NewKMSKeyEnumerator(repo repository.KMSRepository, factory resource.ResourceFactory) *KMSKeyEnumerator {
- return &KMSKeyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *KMSKeyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsKmsKeyResourceType
-}
-
-func (e *KMSKeyEnumerator) Enumerate() ([]*resource.Resource, error) {
- keys, err := e.repository.ListAllKeys()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(keys))
-
- for _, key := range keys {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *key.KeyId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/lambda_event_source_mapping_enumerator.go b/enumeration/remote/aws/lambda_event_source_mapping_enumerator.go
deleted file mode 100644
index 0fb03c174..000000000
--- a/enumeration/remote/aws/lambda_event_source_mapping_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LambdaEventSourceMappingEnumerator struct {
- repository repository.LambdaRepository
- factory resource.ResourceFactory
-}
-
-func NewLambdaEventSourceMappingEnumerator(repo repository.LambdaRepository, factory resource.ResourceFactory) *LambdaEventSourceMappingEnumerator {
- return &LambdaEventSourceMappingEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LambdaEventSourceMappingEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsLambdaEventSourceMappingResourceType
-}
-
-func (e *LambdaEventSourceMappingEnumerator) Enumerate() ([]*resource.Resource, error) {
- eventSourceMappings, err := e.repository.ListAllLambdaEventSourceMappings()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(eventSourceMappings))
-
- for _, eventSourceMapping := range eventSourceMappings {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *eventSourceMapping.UUID,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/lambda_function_enumerator.go b/enumeration/remote/aws/lambda_function_enumerator.go
deleted file mode 100644
index 4e4d13868..000000000
--- a/enumeration/remote/aws/lambda_function_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LambdaFunctionEnumerator struct {
- repository repository.LambdaRepository
- factory resource.ResourceFactory
-}
-
-func NewLambdaFunctionEnumerator(repo repository.LambdaRepository, factory resource.ResourceFactory) *LambdaFunctionEnumerator {
- return &LambdaFunctionEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LambdaFunctionEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsLambdaFunctionResourceType
-}
-
-func (e *LambdaFunctionEnumerator) Enumerate() ([]*resource.Resource, error) {
- functions, err := e.repository.ListAllLambdaFunctions()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(functions))
-
- for _, function := range functions {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *function.FunctionName,
- map[string]interface{}{
- "function_name": *function.FunctionName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/launch_configuration_enumerator.go b/enumeration/remote/aws/launch_configuration_enumerator.go
deleted file mode 100644
index c52655220..000000000
--- a/enumeration/remote/aws/launch_configuration_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LaunchConfigurationEnumerator struct {
- repository repository.AutoScalingRepository
- factory resource.ResourceFactory
-}
-
-func NewLaunchConfigurationEnumerator(repo repository.AutoScalingRepository, factory resource.ResourceFactory) *LaunchConfigurationEnumerator {
- return &LaunchConfigurationEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LaunchConfigurationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsLaunchConfigurationResourceType
-}
-
-func (e *LaunchConfigurationEnumerator) Enumerate() ([]*resource.Resource, error) {
- configs, err := e.repository.DescribeLaunchConfigurations()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(configs))
-
- for _, config := range configs {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *config.LaunchConfigurationName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/launch_template_enumerator.go b/enumeration/remote/aws/launch_template_enumerator.go
deleted file mode 100644
index b19b98ac6..000000000
--- a/enumeration/remote/aws/launch_template_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LaunchTemplateEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewLaunchTemplateEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *LaunchTemplateEnumerator {
- return &LaunchTemplateEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LaunchTemplateEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsLaunchTemplateResourceType
-}
-
-func (e *LaunchTemplateEnumerator) Enumerate() ([]*resource.Resource, error) {
- templates, err := e.repository.DescribeLaunchTemplates()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(templates))
-
- for _, tmpl := range templates {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *tmpl.LaunchTemplateId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/load_balancer_enumerator.go b/enumeration/remote/aws/load_balancer_enumerator.go
deleted file mode 100644
index 77746a503..000000000
--- a/enumeration/remote/aws/load_balancer_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LoadBalancerEnumerator struct {
- repository repository.ELBV2Repository
- factory resource.ResourceFactory
-}
-
-func NewLoadBalancerEnumerator(repo repository.ELBV2Repository, factory resource.ResourceFactory) *LoadBalancerEnumerator {
- return &LoadBalancerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LoadBalancerEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsLoadBalancerResourceType
-}
-
-func (e *LoadBalancerEnumerator) Enumerate() ([]*resource.Resource, error) {
- loadBalancers, err := e.repository.ListAllLoadBalancers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(loadBalancers))
-
- for _, lb := range loadBalancers {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *lb.LoadBalancerArn,
- map[string]interface{}{
- "name": *lb.LoadBalancerName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/load_balancer_listener_enumerator.go b/enumeration/remote/aws/load_balancer_listener_enumerator.go
deleted file mode 100644
index cc0d0ec52..000000000
--- a/enumeration/remote/aws/load_balancer_listener_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type LoadBalancerListenerEnumerator struct {
- repository repository.ELBV2Repository
- factory resource.ResourceFactory
-}
-
-func NewLoadBalancerListenerEnumerator(repo repository.ELBV2Repository, factory resource.ResourceFactory) *LoadBalancerListenerEnumerator {
- return &LoadBalancerListenerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *LoadBalancerListenerEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsLoadBalancerListenerResourceType
-}
-
-func (e *LoadBalancerListenerEnumerator) Enumerate() ([]*resource.Resource, error) {
- loadBalancers, err := e.repository.ListAllLoadBalancers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsLoadBalancerResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, lb := range loadBalancers {
- listeners, err := e.repository.ListAllLoadBalancerListeners(*lb.LoadBalancerArn)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, listener := range listeners {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *listener.ListenerArn,
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/provider.go b/enumeration/remote/aws/provider.go
deleted file mode 100644
index 35f3c4b09..000000000
--- a/enumeration/remote/aws/provider.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/sts"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/terraform"
- tf "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-type awsConfig struct {
- AccessKey string
- SecretKey string
- CredsFilename string
- Profile string
- Token string
- Region string `cty:"region"`
- MaxRetries int
-
- AssumeRoleARN string
- AssumeRoleExternalID string
- AssumeRoleSessionName string
- AssumeRolePolicy string
-
- AllowedAccountIds []string
- ForbiddenAccountIds []string
-
- Endpoints map[string]string
- IgnoreTagsConfig map[string]string
- Insecure bool
-
- SkipCredsValidation bool `cty:"skip_credentials_validation"`
- SkipGetEC2Platforms bool
- SkipRegionValidation bool
- SkipRequestingAccountId bool `cty:"skip_requesting_account_id"`
- SkipMetadataApiCheck bool
- S3ForcePathStyle bool
-}
-
-type AWSTerraformProvider struct {
- *terraform.TerraformProvider
- session *session.Session
- name string
- version string
- accountId string
-}
-
-func NewAWSTerraformProvider(version string, progress enumeration.ProgressCounter, configDir string) (*AWSTerraformProvider, error) {
- if version == "" {
- version = "3.19.0"
- }
- p := &AWSTerraformProvider{
- version: version,
- name: "aws",
- }
- installer, err := tf.NewProviderInstaller(tf.ProviderConfig{
- Key: p.name,
- Version: version,
- ConfigDir: configDir,
- })
- if err != nil {
- return nil, err
- }
-
- p.session, err = session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- })
- if err != nil {
- return nil, err
- }
-
- tfProvider, err := terraform.NewTerraformProvider(installer, terraform.TerraformProviderConfig{
- Name: p.name,
- DefaultAlias: *p.session.Config.Region,
- GetProviderConfig: func(alias string) interface{} {
- return awsConfig{
- Region: alias,
- // Those two parameters are used to make sure that the credentials are not validated when calling
- // Configure(). Credentials validation is now handled directly in driftctl
- SkipCredsValidation: true,
- SkipRequestingAccountId: true,
-
- MaxRetries: 10, // TODO make this configurable
- }
- },
- }, progress)
- if err != nil {
- return nil, err
- }
- p.TerraformProvider = tfProvider
- return p, err
-}
-
-func (a *AWSTerraformProvider) Name() string {
- return a.name
-}
-
-func (p *AWSTerraformProvider) Version() string {
- return p.version
-}
-
-var AWSCredentialsNotFoundError = errors.New("Could not find a way to authenticate on AWS!\n" +
- "Please refer to AWS documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html")
-
-func (p *AWSTerraformProvider) CheckCredentialsExist() error {
- _, err := p.session.Config.Credentials.Get()
- if err == credentials.ErrNoValidProvidersFoundInChain {
- return AWSCredentialsNotFoundError
- }
- if err != nil {
- return err
- }
- // This call is to make sure that the credentials are valid
- // A more complex logic exist in terraform provider, but it's probably not worth to implement it
- // https://github.com/hashicorp/terraform-provider-aws/blob/e3959651092864925045a6044961a73137095798/aws/auth_helpers.go#L111
- identity, err := sts.New(p.session).GetCallerIdentity(&sts.GetCallerIdentityInput{})
- if err != nil {
- logrus.Debug(err)
- return errors.New("Could not authenticate successfully on AWS with the provided credentials.\n" +
- "Please refer to the AWS documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html\n")
- }
-
- p.accountId = aws.StringValue(identity.Account)
- return nil
-}
diff --git a/enumeration/remote/aws/rds_cluster_enumerator.go b/enumeration/remote/aws/rds_cluster_enumerator.go
deleted file mode 100644
index 990b2e8cc..000000000
--- a/enumeration/remote/aws/rds_cluster_enumerator.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type RDSClusterEnumerator struct {
- repository repository.RDSRepository
- factory resource.ResourceFactory
-}
-
-func NewRDSClusterEnumerator(repository repository.RDSRepository, factory resource.ResourceFactory) *RDSClusterEnumerator {
- return &RDSClusterEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *RDSClusterEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsRDSClusterResourceType
-}
-
-func (e *RDSClusterEnumerator) Enumerate() ([]*resource.Resource, error) {
- clusters, err := e.repository.ListAllDBClusters()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(clusters))
-
- for _, cluster := range clusters {
- var databaseName string
-
- if v := cluster.DatabaseName; v != nil {
- databaseName = *cluster.DatabaseName
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *cluster.DBClusterIdentifier,
- map[string]interface{}{
- "cluster_identifier": *cluster.DBClusterIdentifier,
- "database_name": databaseName,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/rds_db_instance_enumerator.go b/enumeration/remote/aws/rds_db_instance_enumerator.go
deleted file mode 100644
index 11df11203..000000000
--- a/enumeration/remote/aws/rds_db_instance_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type RDSDBInstanceEnumerator struct {
- repository repository.RDSRepository
- factory resource.ResourceFactory
-}
-
-func NewRDSDBInstanceEnumerator(repo repository.RDSRepository, factory resource.ResourceFactory) *RDSDBInstanceEnumerator {
- return &RDSDBInstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *RDSDBInstanceEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDbInstanceResourceType
-}
-
-func (e *RDSDBInstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- instances, err := e.repository.ListAllDBInstances()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(instances))
-
- for _, instance := range instances {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *instance.DBInstanceIdentifier,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/rds_db_subnet_group_enumerator.go b/enumeration/remote/aws/rds_db_subnet_group_enumerator.go
deleted file mode 100644
index 51973fd63..000000000
--- a/enumeration/remote/aws/rds_db_subnet_group_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type RDSDBSubnetGroupEnumerator struct {
- repository repository.RDSRepository
- factory resource.ResourceFactory
-}
-
-func NewRDSDBSubnetGroupEnumerator(repo repository.RDSRepository, factory resource.ResourceFactory) *RDSDBSubnetGroupEnumerator {
- return &RDSDBSubnetGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *RDSDBSubnetGroupEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsDbSubnetGroupResourceType
-}
-
-func (e *RDSDBSubnetGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- subnetGroups, err := e.repository.ListAllDBSubnetGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(subnetGroups))
-
- for _, subnetGroup := range subnetGroups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *subnetGroup.DBSubnetGroupName,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/repository/api_gateway_repository.go b/enumeration/remote/aws/repository/api_gateway_repository.go
deleted file mode 100644
index bb69d7dd6..000000000
--- a/enumeration/remote/aws/repository/api_gateway_repository.go
+++ /dev/null
@@ -1,285 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "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/aws/aws-sdk-go/service/apigateway/apigatewayiface"
-)
-
-type ApiGatewayRepository interface {
- ListAllRestApis() ([]*apigateway.RestApi, error)
- GetAccount() (*apigateway.Account, error)
- ListAllApiKeys() ([]*apigateway.ApiKey, error)
- ListAllRestApiAuthorizers(string) ([]*apigateway.Authorizer, error)
- ListAllRestApiStages(string) ([]*apigateway.Stage, error)
- ListAllRestApiResources(string) ([]*apigateway.Resource, error)
- ListAllDomainNames() ([]*apigateway.DomainName, error)
- ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error)
- ListAllRestApiRequestValidators(string) ([]*apigateway.UpdateRequestValidatorOutput, error)
- ListAllDomainNameBasePathMappings(string) ([]*apigateway.BasePathMapping, error)
- ListAllRestApiModels(string) ([]*apigateway.Model, error)
- ListAllRestApiGatewayResponses(string) ([]*apigateway.UpdateGatewayResponseOutput, error)
-}
-
-type apigatewayRepository struct {
- client apigatewayiface.APIGatewayAPI
- cache cache.Cache
-}
-
-func NewApiGatewayRepository(session *session.Session, c cache.Cache) *apigatewayRepository {
- return &apigatewayRepository{
- apigateway.New(session),
- c,
- }
-}
-
-func (r *apigatewayRepository) ListAllRestApis() ([]*apigateway.RestApi, error) {
- cacheKey := "apigatewayListAllRestApis"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigateway.RestApi), nil
- }
-
- var restApis []*apigateway.RestApi
- input := apigateway.GetRestApisInput{}
- err := r.client.GetRestApisPages(&input,
- func(resp *apigateway.GetRestApisOutput, lastPage bool) bool {
- restApis = append(restApis, resp.Items...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, restApis)
- return restApis, nil
-}
-
-func (r *apigatewayRepository) GetAccount() (*apigateway.Account, error) {
- if v := r.cache.Get("apigatewayGetAccount"); v != nil {
- return v.(*apigateway.Account), nil
- }
-
- account, err := r.client.GetAccount(&apigateway.GetAccountInput{})
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("apigatewayGetAccount", account)
- return account, nil
-}
-
-func (r *apigatewayRepository) ListAllApiKeys() ([]*apigateway.ApiKey, error) {
- if v := r.cache.Get("apigatewayListAllApiKeys"); v != nil {
- return v.([]*apigateway.ApiKey), nil
- }
-
- var apiKeys []*apigateway.ApiKey
- input := apigateway.GetApiKeysInput{}
- err := r.client.GetApiKeysPages(&input,
- func(resp *apigateway.GetApiKeysOutput, lastPage bool) bool {
- apiKeys = append(apiKeys, resp.Items...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("apigatewayListAllApiKeys", apiKeys)
- return apiKeys, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiAuthorizers(apiId string) ([]*apigateway.Authorizer, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiAuthorizers_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigateway.Authorizer), nil
- }
-
- input := &apigateway.GetAuthorizersInput{
- RestApiId: &apiId,
- }
- resources, err := r.client.GetAuthorizers(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiStages(apiId string) ([]*apigateway.Stage, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiStages_api_%s", apiId)
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigateway.Stage), nil
- }
-
- input := &apigateway.GetStagesInput{
- RestApiId: &apiId,
- }
- resources, err := r.client.GetStages(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Item)
- return resources.Item, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiResources(apiId string) ([]*apigateway.Resource, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiResources_api_%s", apiId)
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigateway.Resource), nil
- }
-
- var resources []*apigateway.Resource
- input := &apigateway.GetResourcesInput{
- RestApiId: &apiId,
- Embed: []*string{aws.String("methods")},
- }
- err := r.client.GetResourcesPages(input, func(res *apigateway.GetResourcesOutput, lastPage bool) bool {
- resources = append(resources, res.Items...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources)
- return resources, nil
-}
-
-func (r *apigatewayRepository) ListAllDomainNames() ([]*apigateway.DomainName, error) {
- cacheKey := "apigatewayListAllDomainNames"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigateway.DomainName), nil
- }
-
- var domainNames []*apigateway.DomainName
- input := apigateway.GetDomainNamesInput{}
- err := r.client.GetDomainNamesPages(&input,
- func(resp *apigateway.GetDomainNamesOutput, lastPage bool) bool {
- domainNames = append(domainNames, resp.Items...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, domainNames)
- return domainNames, nil
-}
-
-func (r *apigatewayRepository) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error) {
- if v := r.cache.Get("apigatewayListAllVpcLinks"); v != nil {
- return v.([]*apigateway.UpdateVpcLinkOutput), nil
- }
-
- var vpcLinks []*apigateway.UpdateVpcLinkOutput
- input := apigateway.GetVpcLinksInput{}
- err := r.client.GetVpcLinksPages(&input,
- func(resp *apigateway.GetVpcLinksOutput, lastPage bool) bool {
- vpcLinks = append(vpcLinks, resp.Items...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("apigatewayListAllVpcLinks", vpcLinks)
- return vpcLinks, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiRequestValidators(apiId string) ([]*apigateway.UpdateRequestValidatorOutput, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiRequestValidators_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigateway.UpdateRequestValidatorOutput), nil
- }
-
- input := &apigateway.GetRequestValidatorsInput{
- RestApiId: &apiId,
- }
- resources, err := r.client.GetRequestValidators(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayRepository) ListAllDomainNameBasePathMappings(domainName string) ([]*apigateway.BasePathMapping, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllDomainNameBasePathMappings_domainName_%s", domainName)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigateway.BasePathMapping), nil
- }
-
- var mappings []*apigateway.BasePathMapping
- input := &apigateway.GetBasePathMappingsInput{
- DomainName: &domainName,
- }
- err := r.client.GetBasePathMappingsPages(input, func(res *apigateway.GetBasePathMappingsOutput, lastPage bool) bool {
- mappings = append(mappings, res.Items...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, mappings)
- return mappings, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiModels(apiId string) ([]*apigateway.Model, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiModels_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigateway.Model), nil
- }
-
- var resources []*apigateway.Model
- input := &apigateway.GetModelsInput{
- RestApiId: &apiId,
- }
- err := r.client.GetModelsPages(input, func(res *apigateway.GetModelsOutput, lastPage bool) bool {
- resources = append(resources, res.Items...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources)
- return resources, nil
-}
-
-func (r *apigatewayRepository) ListAllRestApiGatewayResponses(apiId string) ([]*apigateway.UpdateGatewayResponseOutput, error) {
- cacheKey := fmt.Sprintf("apigatewayListAllRestApiGatewayResponses_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigateway.UpdateGatewayResponseOutput), nil
- }
-
- input := &apigateway.GetGatewayResponsesInput{
- RestApiId: &apiId,
- }
- resources, err := r.client.GetGatewayResponses(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
diff --git a/enumeration/remote/aws/repository/api_gateway_repository_test.go b/enumeration/remote/aws/repository/api_gateway_repository_test.go
deleted file mode 100644
index 8f452d074..000000000
--- a/enumeration/remote/aws/repository/api_gateway_repository_test.go
+++ /dev/null
@@ -1,890 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/apigateway"
- "github.com/pkg/errors"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_apigatewayRepository_ListAllRestApis(t *testing.T) {
- apis := []*apigateway.RestApi{
- {Id: aws.String("restapi1")},
- {Id: aws.String("restapi2")},
- {Id: aws.String("restapi3")},
- {Id: aws.String("restapi4")},
- {Id: aws.String("restapi5")},
- {Id: aws.String("restapi6")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.RestApi
- wantErr error
- }{
- {
- name: "list multiple rest apis",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetRestApisPages",
- &apigateway.GetRestApisInput{},
- mock.MatchedBy(func(callback func(res *apigateway.GetRestApisOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetRestApisOutput{
- Items: apis[:3],
- }, false)
- callback(&apigateway.GetRestApisOutput{
- Items: apis[3:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("GetAndLock", "apigatewayListAllRestApis").Return(nil).Times(1)
- store.On("Unlock", "apigatewayListAllRestApis").Times(1)
- store.On("Put", "apigatewayListAllRestApis", apis).Return(false).Times(1)
- },
- want: apis,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayListAllRestApis").Return(apis).Times(1)
- store.On("Unlock", "apigatewayListAllRestApis").Times(1)
- },
- want: apis,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApis()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_GetAccount(t *testing.T) {
- account := &apigateway.Account{
- CloudwatchRoleArn: aws.String("arn:aws:iam::017011014111:role/api_gateway_cloudwatch_global"),
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want *apigateway.Account
- wantErr error
- }{
- {
- name: "get a single account",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetAccount", &apigateway.GetAccountInput{}).Return(account, nil).Once()
-
- store.On("Get", "apigatewayGetAccount").Return(nil).Times(1)
- store.On("Put", "apigatewayGetAccount", account).Return(false).Times(1)
- },
- want: account,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayGetAccount").Return(account).Times(1)
- },
- want: account,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.GetAccount()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllApiKeys(t *testing.T) {
- keys := []*apigateway.ApiKey{
- {Id: aws.String("apikey1")},
- {Id: aws.String("apikey2")},
- {Id: aws.String("apikey3")},
- {Id: aws.String("apikey4")},
- {Id: aws.String("apikey5")},
- {Id: aws.String("apikey6")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.ApiKey
- wantErr error
- }{
- {
- name: "list multiple api keys",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetApiKeysPages",
- &apigateway.GetApiKeysInput{},
- mock.MatchedBy(func(callback func(res *apigateway.GetApiKeysOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetApiKeysOutput{
- Items: keys[:3],
- }, false)
- callback(&apigateway.GetApiKeysOutput{
- Items: keys[3:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "apigatewayListAllApiKeys").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllApiKeys", keys).Return(false).Times(1)
- },
- want: keys,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllApiKeys").Return(keys).Times(1)
- },
- want: keys,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiKeys()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiAuthorizers(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- apiAuthorizers := []*apigateway.Authorizer{
- {Id: aws.String("resource1")},
- {Id: aws.String("resource2")},
- {Id: aws.String("resource3")},
- {Id: aws.String("resource4")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.Authorizer
- wantErr error
- }{
- {
- name: "list multiple rest api authorizers",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetAuthorizers",
- &apigateway.GetAuthorizersInput{
- RestApiId: aws.String("restapi1"),
- }).Return(&apigateway.GetAuthorizersOutput{Items: apiAuthorizers}, nil).Once()
-
- store.On("Get", "apigatewayListAllRestApiAuthorizers_api_restapi1").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllRestApiAuthorizers_api_restapi1", apiAuthorizers).Return(false).Times(1)
- },
- want: apiAuthorizers,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllRestApiAuthorizers_api_restapi1").Return(apiAuthorizers).Times(1)
- },
- want: apiAuthorizers,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiAuthorizers(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiStages(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- apiStages := []*apigateway.Stage{
- {StageName: aws.String("stage1")},
- {StageName: aws.String("stage2")},
- {StageName: aws.String("stage3")},
- {StageName: aws.String("stage4")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.Stage
- wantErr error
- }{
- {
- name: "list multiple rest api stages",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetStages",
- &apigateway.GetStagesInput{
- RestApiId: aws.String("restapi1"),
- }).Return(&apigateway.GetStagesOutput{Item: apiStages}, nil).Once()
-
- store.On("GetAndLock", "apigatewayListAllRestApiStages_api_restapi1").Return(nil).Times(1)
- store.On("Unlock", "apigatewayListAllRestApiStages_api_restapi1").Times(1)
- store.On("Put", "apigatewayListAllRestApiStages_api_restapi1", apiStages).Return(false).Times(1)
- },
- want: apiStages,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayListAllRestApiStages_api_restapi1").Return(apiStages).Times(1)
- store.On("Unlock", "apigatewayListAllRestApiStages_api_restapi1").Times(1)
- },
- want: apiStages,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiStages(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiResources(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- apiResources := []*apigateway.Resource{
- {Id: aws.String("resource1")},
- {Id: aws.String("resource2")},
- {Id: aws.String("resource3")},
- {Id: aws.String("resource4")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.Resource
- wantErr error
- }{
- {
- name: "list multiple rest api resources",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetResourcesPages",
- &apigateway.GetResourcesInput{
- RestApiId: aws.String("restapi1"),
- Embed: []*string{aws.String("methods")},
- },
- mock.MatchedBy(func(callback func(res *apigateway.GetResourcesOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetResourcesOutput{
- Items: apiResources,
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("GetAndLock", "apigatewayListAllRestApiResources_api_restapi1").Return(nil).Times(1)
- store.On("Unlock", "apigatewayListAllRestApiResources_api_restapi1").Times(1)
- store.On("Put", "apigatewayListAllRestApiResources_api_restapi1", apiResources).Return(false).Times(1)
- },
- want: apiResources,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayListAllRestApiResources_api_restapi1").Return(apiResources).Times(1)
- store.On("Unlock", "apigatewayListAllRestApiResources_api_restapi1").Times(1)
- },
- want: apiResources,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiResources(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllDomainNames(t *testing.T) {
- domainNames := []*apigateway.DomainName{
- {DomainName: aws.String("domainName1")},
- {DomainName: aws.String("domainName2")},
- {DomainName: aws.String("domainName3")},
- {DomainName: aws.String("domainName4")},
- {DomainName: aws.String("domainName5")},
- {DomainName: aws.String("domainName6")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.DomainName
- wantErr error
- }{
- {
- name: "list multiple domain names",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetDomainNamesPages",
- &apigateway.GetDomainNamesInput{},
- mock.MatchedBy(func(callback func(res *apigateway.GetDomainNamesOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetDomainNamesOutput{
- Items: domainNames[:3],
- }, false)
- callback(&apigateway.GetDomainNamesOutput{
- Items: domainNames[3:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("GetAndLock", "apigatewayListAllDomainNames").Return(nil).Times(1)
- store.On("Unlock", "apigatewayListAllDomainNames").Times(1)
- store.On("Put", "apigatewayListAllDomainNames", domainNames).Return(false).Times(1)
- },
- want: domainNames,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayListAllDomainNames").Return(domainNames).Times(1)
- store.On("Unlock", "apigatewayListAllDomainNames").Times(1)
- },
- want: domainNames,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllDomainNames()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllVpcLinks(t *testing.T) {
- vpcLinks := []*apigateway.UpdateVpcLinkOutput{
- {Id: aws.String("vpcLink1")},
- {Id: aws.String("vpcLink2")},
- {Id: aws.String("vpcLink3")},
- {Id: aws.String("vpcLink4")},
- {Id: aws.String("vpcLink5")},
- {Id: aws.String("vpcLink6")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.UpdateVpcLinkOutput
- wantErr error
- }{
- {
- name: "list multiple vpc links",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetVpcLinksPages",
- &apigateway.GetVpcLinksInput{},
- mock.MatchedBy(func(callback func(res *apigateway.GetVpcLinksOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetVpcLinksOutput{
- Items: vpcLinks[:3],
- }, false)
- callback(&apigateway.GetVpcLinksOutput{
- Items: vpcLinks[3:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "apigatewayListAllVpcLinks").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllVpcLinks", vpcLinks).Return(false).Times(1)
- },
- want: vpcLinks,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllVpcLinks").Return(vpcLinks).Times(1)
- },
- want: vpcLinks,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllVpcLinks()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiRequestValidators(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- requestValidators := []*apigateway.UpdateRequestValidatorOutput{
- {Id: aws.String("reqVal1")},
- {Id: aws.String("reqVal2")},
- {Id: aws.String("reqVal3")},
- {Id: aws.String("reqVal4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.UpdateRequestValidatorOutput
- wantErr error
- }{
- {
- name: "list multiple rest api request validators",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetRequestValidators",
- &apigateway.GetRequestValidatorsInput{
- RestApiId: aws.String("restapi1"),
- }).Return(&apigateway.GetRequestValidatorsOutput{Items: requestValidators}, nil).Once()
-
- store.On("Get", "apigatewayListAllRestApiRequestValidators_api_restapi1").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllRestApiRequestValidators_api_restapi1", requestValidators).Return(false).Times(1)
- },
- want: requestValidators,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllRestApiRequestValidators_api_restapi1").Return(requestValidators).Times(1)
- },
- want: requestValidators,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetRequestValidators",
- &apigateway.GetRequestValidatorsInput{
- RestApiId: aws.String("restapi1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayListAllRestApiRequestValidators_api_restapi1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiRequestValidators(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllDomainNameBasePathMappings(t *testing.T) {
- domainName := &apigateway.DomainName{
- DomainName: aws.String("domainName1"),
- }
-
- mappings := []*apigateway.BasePathMapping{
- {BasePath: aws.String("path1")},
- {BasePath: aws.String("path2")},
- {BasePath: aws.String("path3")},
- {BasePath: aws.String("path4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.BasePathMapping
- wantErr error
- }{
- {
- name: "list multiple domain name base path mappings",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetBasePathMappingsPages",
- &apigateway.GetBasePathMappingsInput{
- DomainName: aws.String("domainName1"),
- },
- mock.MatchedBy(func(callback func(res *apigateway.GetBasePathMappingsOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetBasePathMappingsOutput{
- Items: mappings,
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "apigatewayListAllDomainNameBasePathMappings_domainName_domainName1").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllDomainNameBasePathMappings_domainName_domainName1", mappings).Return(false).Times(1)
- },
- want: mappings,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllDomainNameBasePathMappings_domainName_domainName1").Return(mappings).Times(1)
- },
- want: mappings,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetBasePathMappingsPages",
- &apigateway.GetBasePathMappingsInput{
- DomainName: aws.String("domainName1"),
- }, mock.AnythingOfType("func(*apigateway.GetBasePathMappingsOutput, bool) bool")).Return(remoteError).Once()
-
- store.On("Get", "apigatewayListAllDomainNameBasePathMappings_domainName_domainName1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllDomainNameBasePathMappings(*domainName.DomainName)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiModels(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- apiModels := []*apigateway.Model{
- {Id: aws.String("model1")},
- {Id: aws.String("model2")},
- {Id: aws.String("model3")},
- {Id: aws.String("model4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.Model
- wantErr error
- }{
- {
- name: "list multiple rest api models",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetModelsPages",
- &apigateway.GetModelsInput{
- RestApiId: aws.String("restapi1"),
- },
- mock.MatchedBy(func(callback func(res *apigateway.GetModelsOutput, lastPage bool) bool) bool {
- callback(&apigateway.GetModelsOutput{
- Items: apiModels,
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "apigatewayListAllRestApiModels_api_restapi1").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllRestApiModels_api_restapi1", apiModels).Return(false).Times(1)
- },
- want: apiModels,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllRestApiModels_api_restapi1").Return(apiModels).Times(1)
- },
- want: apiModels,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetModelsPages",
- &apigateway.GetModelsInput{
- RestApiId: aws.String("restapi1"),
- }, mock.AnythingOfType("func(*apigateway.GetModelsOutput, bool) bool")).Return(remoteError).Once()
-
- store.On("Get", "apigatewayListAllRestApiModels_api_restapi1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiModels(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayRepository_ListAllRestApiGatewayResponses(t *testing.T) {
- api := &apigateway.RestApi{
- Id: aws.String("restapi1"),
- }
-
- gtwResponses := []*apigateway.UpdateGatewayResponseOutput{
- {ResponseType: aws.String("ACCESS_DENIED")},
- {ResponseType: aws.String("DEFAULT_4XX")},
- {ResponseType: aws.String("DEFAULT_5XX")},
- {ResponseType: aws.String("UNAUTHORIZED")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGateway, store *cache.MockCache)
- want []*apigateway.UpdateGatewayResponseOutput
- wantErr error
- }{
- {
- name: "list multiple rest api gateway responses",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetGatewayResponses",
- &apigateway.GetGatewayResponsesInput{
- RestApiId: aws.String("restapi1"),
- }).Return(&apigateway.GetGatewayResponsesOutput{Items: gtwResponses}, nil).Once()
-
- store.On("Get", "apigatewayListAllRestApiGatewayResponses_api_restapi1").Return(nil).Times(1)
- store.On("Put", "apigatewayListAllRestApiGatewayResponses_api_restapi1", gtwResponses).Return(false).Times(1)
- },
- want: gtwResponses,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- store.On("Get", "apigatewayListAllRestApiGatewayResponses_api_restapi1").Return(gtwResponses).Times(1)
- },
- want: gtwResponses,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGateway, store *cache.MockCache) {
- client.On("GetGatewayResponses",
- &apigateway.GetGatewayResponsesInput{
- RestApiId: aws.String("restapi1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayListAllRestApiGatewayResponses_api_restapi1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGateway{}
- tt.mocks(client, store)
- r := &apigatewayRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRestApiGatewayResponses(*api.Id)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/apigatewayv2_repository.go b/enumeration/remote/aws/repository/apigatewayv2_repository.go
deleted file mode 100644
index cb28704db..000000000
--- a/enumeration/remote/aws/repository/apigatewayv2_repository.go
+++ /dev/null
@@ -1,228 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/apigatewayv2"
- "github.com/aws/aws-sdk-go/service/apigatewayv2/apigatewayv2iface"
-)
-
-type ApiGatewayV2Repository interface {
- ListAllApis() ([]*apigatewayv2.Api, error)
- ListAllApiRoutes(apiId *string) ([]*apigatewayv2.Route, error)
- ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error)
- ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error)
- ListAllApiAuthorizers(string) ([]*apigatewayv2.Authorizer, error)
- ListAllApiIntegrations(string) ([]*apigatewayv2.Integration, error)
- ListAllApiModels(string) ([]*apigatewayv2.Model, error)
- ListAllApiStages(string) ([]*apigatewayv2.Stage, error)
- ListAllApiRouteResponses(string, string) ([]*apigatewayv2.RouteResponse, error)
- ListAllApiMappings(string) ([]*apigatewayv2.ApiMapping, error)
- ListAllApiIntegrationResponses(string, string) ([]*apigatewayv2.IntegrationResponse, error)
-}
-type apigatewayv2Repository struct {
- client apigatewayv2iface.ApiGatewayV2API
- cache cache.Cache
-}
-
-func NewApiGatewayV2Repository(session *session.Session, c cache.Cache) *apigatewayv2Repository {
- return &apigatewayv2Repository{
- apigatewayv2.New(session),
- c,
- }
-}
-
-func (r *apigatewayv2Repository) ListAllApis() ([]*apigatewayv2.Api, error) {
- cacheKey := "apigatewayv2ListAllApis"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigatewayv2.Api), nil
- }
-
- input := apigatewayv2.GetApisInput{}
- resources, err := r.client.GetApis(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiRoutes(apiID *string) ([]*apigatewayv2.Route, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiRoutes_api_%s", *apiID)
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*apigatewayv2.Route), nil
- }
-
- resources, err := r.client.GetRoutes(&apigatewayv2.GetRoutesInput{ApiId: apiID})
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiDeployments(apiID *string) ([]*apigatewayv2.Deployment, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiDeployments_api_%s", *apiID)
- v := r.cache.Get(cacheKey)
-
- if v != nil {
- return v.([]*apigatewayv2.Deployment), nil
- }
-
- resources, err := r.client.GetDeployments(&apigatewayv2.GetDeploymentsInput{ApiId: apiID})
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error) {
- if v := r.cache.Get("apigatewayv2ListAllVpcLinks"); v != nil {
- return v.([]*apigatewayv2.VpcLink), nil
- }
-
- input := apigatewayv2.GetVpcLinksInput{}
- resources, err := r.client.GetVpcLinks(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("apigatewayv2ListAllVpcLinks", resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiAuthorizers(apiId string) ([]*apigatewayv2.Authorizer, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiAuthorizers_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigatewayv2.Authorizer), nil
- }
-
- input := apigatewayv2.GetAuthorizersInput{
- ApiId: &apiId,
- }
- resources, err := r.client.GetAuthorizers(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiIntegrations(apiId string) ([]*apigatewayv2.Integration, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiIntegrations_api_%s", apiId)
-
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigatewayv2.Integration), nil
- }
-
- input := apigatewayv2.GetIntegrationsInput{
- ApiId: &apiId,
- }
- resources, err := r.client.GetIntegrations(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiModels(apiId string) ([]*apigatewayv2.Model, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiModels_api_%s", apiId)
-
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigatewayv2.Model), nil
- }
-
- input := apigatewayv2.GetModelsInput{
- ApiId: &apiId,
- }
- resources, err := r.client.GetModels(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiStages(apiId string) ([]*apigatewayv2.Stage, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiStages_api_%s", apiId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigatewayv2.Stage), nil
- }
-
- input := apigatewayv2.GetStagesInput{
- ApiId: &apiId,
- }
- resources, err := r.client.GetStages(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiIntegrationResponses(apiId, integrationId string) ([]*apigatewayv2.IntegrationResponse, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiIntegrationResponses_api_%s_integration_%s", apiId, integrationId)
- v := r.cache.Get(cacheKey)
- if v != nil {
- return v.([]*apigatewayv2.IntegrationResponse), nil
- }
- input := apigatewayv2.GetIntegrationResponsesInput{
- ApiId: &apiId,
- IntegrationId: &integrationId,
- }
- resources, err := r.client.GetIntegrationResponses(&input)
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiRouteResponses(apiId, routeId string) ([]*apigatewayv2.RouteResponse, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiRouteResponses_api_%s_route_%s", apiId, routeId)
- v := r.cache.Get(cacheKey)
- if v != nil {
- return v.([]*apigatewayv2.RouteResponse), nil
- }
- input := apigatewayv2.GetRouteResponsesInput{
- ApiId: &apiId,
- RouteId: &routeId,
- }
- resources, err := r.client.GetRouteResponses(&input)
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
-
-func (r *apigatewayv2Repository) ListAllApiMappings(domainName string) ([]*apigatewayv2.ApiMapping, error) {
- cacheKey := fmt.Sprintf("apigatewayv2ListAllApiMappings_api_%s", domainName)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*apigatewayv2.ApiMapping), nil
- }
-
- input := apigatewayv2.GetApiMappingsInput{
- DomainName: &domainName,
- }
- resources, err := r.client.GetApiMappings(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources.Items)
- return resources.Items, nil
-}
diff --git a/enumeration/remote/aws/repository/apigatewayv2_repository_test.go b/enumeration/remote/aws/repository/apigatewayv2_repository_test.go
deleted file mode 100644
index ea76f53e3..000000000
--- a/enumeration/remote/aws/repository/apigatewayv2_repository_test.go
+++ /dev/null
@@ -1,637 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/apigatewayv2"
- "github.com/pkg/errors"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_apigatewayv2Repository_ListAllApis(t *testing.T) {
- apis := []*apigatewayv2.Api{
- {ApiId: aws.String("api1")},
- {ApiId: aws.String("api2")},
- {ApiId: aws.String("api3")},
- {ApiId: aws.String("api4")},
- {ApiId: aws.String("api5")},
- {ApiId: aws.String("api6")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.Api
- wantErr error
- }{
- {
- name: "list multiple apis",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetApis",
- &apigatewayv2.GetApisInput{}).Return(&apigatewayv2.GetApisOutput{Items: apis}, nil).Once()
-
- store.On("GetAndLock", "apigatewayv2ListAllApis").Return(nil).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApis").Times(1)
- store.On("Put", "apigatewayv2ListAllApis", apis).Return(false).Times(1)
- },
- want: apis,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayv2ListAllApis").Return(apis).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApis").Times(1)
- },
- want: apis,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetApis",
- &apigatewayv2.GetApisInput{}).Return(nil, remoteError).Once()
-
- store.On("GetAndLock", "apigatewayv2ListAllApis").Return(nil).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApis").Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApis()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiRoutes(t *testing.T) {
- routes := []*apigatewayv2.Route{
- {RouteId: aws.String("route1")},
- {RouteId: aws.String("route2")},
- {RouteId: aws.String("route3")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.Route
- wantErr error
- }{
- {
- name: "list multiple routes",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetRoutes",
- &apigatewayv2.GetRoutesInput{ApiId: aws.String("an-id")}).
- Return(&apigatewayv2.GetRoutesOutput{Items: routes}, nil).Once()
-
- store.On("GetAndLock", "apigatewayv2ListAllApiRoutes_api_an-id").Return(nil).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApiRoutes_api_an-id").Times(1)
- store.On("Put", "apigatewayv2ListAllApiRoutes_api_an-id", routes).Return(false).Times(1)
- },
- want: routes,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("GetAndLock", "apigatewayv2ListAllApiRoutes_api_an-id").Return(routes).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApiRoutes_api_an-id").Times(1)
- },
- want: routes,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetRoutes",
- &apigatewayv2.GetRoutesInput{ApiId: aws.String("an-id")}).Return(nil, remoteError).Once()
-
- store.On("GetAndLock", "apigatewayv2ListAllApiRoutes_api_an-id").Return(nil).Times(1)
- store.On("Unlock", "apigatewayv2ListAllApiRoutes_api_an-id").Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiRoutes(aws.String("an-id"))
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiDeployments(t *testing.T) {
- deployments := []*apigatewayv2.Deployment{
- {DeploymentId: aws.String("id1")},
- {DeploymentId: aws.String("id2")},
- {DeploymentId: aws.String("id3")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.Deployment
- wantErr error
- }{
- {
- name: "list multiple deployments",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetDeployments",
- &apigatewayv2.GetDeploymentsInput{ApiId: aws.String("an-id")}).
- Return(&apigatewayv2.GetDeploymentsOutput{Items: deployments}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllApiDeployments_api_an-id").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllApiDeployments_api_an-id", deployments).Return(false).Times(1)
- },
- want: deployments,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllApiDeployments_api_an-id").Return(deployments).Times(1)
- },
- want: deployments,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetDeployments",
- &apigatewayv2.GetDeploymentsInput{ApiId: aws.String("an-id")}).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllApiDeployments_api_an-id").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiDeployments(aws.String("an-id"))
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllVpcLinks(t *testing.T) {
- vpcLinks := []*apigatewayv2.VpcLink{
- {VpcLinkId: aws.String("vpcLink1")},
- {VpcLinkId: aws.String("vpcLink2")},
- {VpcLinkId: aws.String("vpcLink3")},
- {VpcLinkId: aws.String("vpcLink4")},
- {VpcLinkId: aws.String("vpcLink5")},
- {VpcLinkId: aws.String("vpcLink6")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.VpcLink
- wantErr error
- }{
- {
- name: "list multiple vpc links",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetVpcLinks",
- &apigatewayv2.GetVpcLinksInput{}).Return(&apigatewayv2.GetVpcLinksOutput{Items: vpcLinks}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllVpcLinks").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllVpcLinks", vpcLinks).Return(false).Times(1)
- },
- want: vpcLinks,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllVpcLinks").Return(vpcLinks).Times(1)
- },
- want: vpcLinks,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetVpcLinks",
- &apigatewayv2.GetVpcLinksInput{}).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllVpcLinks").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllVpcLinks()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiAuthorizers(t *testing.T) {
- api := &apigatewayv2.Api{
- ApiId: aws.String("api1"),
- }
-
- apiAuthorizers := []*apigatewayv2.Authorizer{
- {AuthorizerId: aws.String("authorizer1")},
- {AuthorizerId: aws.String("authorizer2")},
- {AuthorizerId: aws.String("authorizer3")},
- {AuthorizerId: aws.String("authorizer4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.Authorizer
- wantErr error
- }{
- {
- name: "list multiple api authorizers",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetAuthorizers",
- &apigatewayv2.GetAuthorizersInput{
- ApiId: aws.String("api1"),
- }).Return(&apigatewayv2.GetAuthorizersOutput{Items: apiAuthorizers}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllApiAuthorizers_api_api1").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllApiAuthorizers_api_api1", apiAuthorizers).Return(false).Times(1)
- },
- want: apiAuthorizers,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllApiAuthorizers_api_api1").Return(apiAuthorizers).Times(1)
- },
- want: apiAuthorizers,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetAuthorizers",
- &apigatewayv2.GetAuthorizersInput{
- ApiId: aws.String("api1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllApiAuthorizers_api_api1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiAuthorizers(*api.ApiId)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiIntegrations(t *testing.T) {
- api := &apigatewayv2.Api{
- ApiId: aws.String("api1"),
- }
-
- apiIntegrations := []*apigatewayv2.Integration{
- {IntegrationId: aws.String("integration1")},
- {IntegrationId: aws.String("integration2")},
- {IntegrationId: aws.String("integration3")},
- {IntegrationId: aws.String("integration4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.Integration
- wantErr error
- }{
- {
- name: "list multiple api integrations",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetIntegrations",
- &apigatewayv2.GetIntegrationsInput{
- ApiId: aws.String("api1"),
- }).Return(&apigatewayv2.GetIntegrationsOutput{Items: apiIntegrations}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllApiIntegrations_api_api1").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllApiIntegrations_api_api1", apiIntegrations).Return(false).Times(1)
- },
- want: apiIntegrations,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllApiIntegrations_api_api1").Return(apiIntegrations).Times(1)
- },
- want: apiIntegrations,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetIntegrations",
- &apigatewayv2.GetIntegrationsInput{
- ApiId: aws.String("api1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllApiIntegrations_api_api1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiIntegrations(*api.ApiId)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiRouteResponses(t *testing.T) {
- api := &apigatewayv2.Api{
- ApiId: aws.String("api1"),
- }
-
- route := &apigatewayv2.Route{
- RouteId: aws.String("route1"),
- }
-
- responses := []*apigatewayv2.RouteResponse{
- {RouteResponseId: aws.String("response1")},
- {RouteResponseId: aws.String("response2")},
- {RouteResponseId: aws.String("response3")},
- {RouteResponseId: aws.String("response4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.RouteResponse
- wantErr error
- }{
- {
- name: "list multiple api route responses",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetRouteResponses",
- &apigatewayv2.GetRouteResponsesInput{
- ApiId: aws.String("api1"),
- RouteId: aws.String("route1"),
- }).Return(&apigatewayv2.GetRouteResponsesOutput{Items: responses}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllApiRouteResponses_api_api1_route_route1").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllApiRouteResponses_api_api1_route_route1", responses).Return(false).Times(1)
- },
- want: responses,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllApiRouteResponses_api_api1_route_route1").Return(responses).Times(1)
- },
- want: responses,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetRouteResponses",
- &apigatewayv2.GetRouteResponsesInput{
- ApiId: aws.String("api1"),
- RouteId: aws.String("route1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllApiRouteResponses_api_api1_route_route1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiRouteResponses(*api.ApiId, *route.RouteId)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_apigatewayv2Repository_ListAllApiIntegrationResponses(t *testing.T) {
- api := &apigatewayv2.Api{
- ApiId: aws.String("api1"),
- }
-
- integration := &apigatewayv2.Integration{
- IntegrationId: aws.String("integration1"),
- }
-
- responses := []*apigatewayv2.IntegrationResponse{
- {IntegrationResponseId: aws.String("response1")},
- {IntegrationResponseId: aws.String("response2")},
- {IntegrationResponseId: aws.String("response3")},
- {IntegrationResponseId: aws.String("response4")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache)
- want []*apigatewayv2.IntegrationResponse
- wantErr error
- }{
- {
- name: "list multiple api integration responses",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetIntegrationResponses",
- &apigatewayv2.GetIntegrationResponsesInput{
- ApiId: aws.String("api1"),
- IntegrationId: aws.String("integration1"),
- }).Return(&apigatewayv2.GetIntegrationResponsesOutput{Items: responses}, nil).Once()
-
- store.On("Get", "apigatewayv2ListAllApiIntegrationResponses_api_api1_integration_integration1").Return(nil).Times(1)
- store.On("Put", "apigatewayv2ListAllApiIntegrationResponses_api_api1_integration_integration1", responses).Return(false).Times(1)
- },
- want: responses,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- store.On("Get", "apigatewayv2ListAllApiIntegrationResponses_api_api1_integration_integration1").Return(responses).Times(1)
- },
- want: responses,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeApiGatewayV2, store *cache.MockCache) {
- client.On("GetIntegrationResponses",
- &apigatewayv2.GetIntegrationResponsesInput{
- ApiId: aws.String("api1"),
- IntegrationId: aws.String("integration1"),
- }).Return(nil, remoteError).Once()
-
- store.On("Get", "apigatewayv2ListAllApiIntegrationResponses_api_api1_integration_integration1").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApiGatewayV2{}
- tt.mocks(client, store)
- r := &apigatewayv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllApiIntegrationResponses(*api.ApiId, *integration.IntegrationId)
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/appautoscaling_repository.go b/enumeration/remote/aws/repository/appautoscaling_repository.go
deleted file mode 100644
index 601559997..000000000
--- a/enumeration/remote/aws/repository/appautoscaling_repository.go
+++ /dev/null
@@ -1,87 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/applicationautoscaling"
- "github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface"
-)
-
-type AppAutoScalingRepository interface {
- ServiceNamespaceValues() []string
- DescribeScalableTargets(string) ([]*applicationautoscaling.ScalableTarget, error)
- DescribeScalingPolicies(string) ([]*applicationautoscaling.ScalingPolicy, error)
- DescribeScheduledActions(string) ([]*applicationautoscaling.ScheduledAction, error)
-}
-
-type appAutoScalingRepository struct {
- client applicationautoscalingiface.ApplicationAutoScalingAPI
- cache cache.Cache
-}
-
-func NewAppAutoScalingRepository(session *session.Session, c cache.Cache) *appAutoScalingRepository {
- return &appAutoScalingRepository{
- applicationautoscaling.New(session),
- c,
- }
-}
-
-func (r *appAutoScalingRepository) ServiceNamespaceValues() []string {
- return applicationautoscaling.ServiceNamespace_Values()
-}
-
-func (r *appAutoScalingRepository) DescribeScalableTargets(namespace string) ([]*applicationautoscaling.ScalableTarget, error) {
- cacheKey := fmt.Sprintf("appAutoScalingDescribeScalableTargets_%s", namespace)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*applicationautoscaling.ScalableTarget), nil
- }
-
- input := &applicationautoscaling.DescribeScalableTargetsInput{
- ServiceNamespace: &namespace,
- }
- result, err := r.client.DescribeScalableTargets(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, result.ScalableTargets)
- return result.ScalableTargets, nil
-}
-
-func (r *appAutoScalingRepository) DescribeScalingPolicies(namespace string) ([]*applicationautoscaling.ScalingPolicy, error) {
- cacheKey := fmt.Sprintf("appAutoScalingDescribeScalingPolicies_%s", namespace)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*applicationautoscaling.ScalingPolicy), nil
- }
-
- input := &applicationautoscaling.DescribeScalingPoliciesInput{
- ServiceNamespace: &namespace,
- }
- result, err := r.client.DescribeScalingPolicies(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, result.ScalingPolicies)
- return result.ScalingPolicies, nil
-}
-
-func (r *appAutoScalingRepository) DescribeScheduledActions(namespace string) ([]*applicationautoscaling.ScheduledAction, error) {
- cacheKey := fmt.Sprintf("appAutoScalingDescribeScheduledActions_%s", namespace)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*applicationautoscaling.ScheduledAction), nil
- }
-
- input := &applicationautoscaling.DescribeScheduledActionsInput{
- ServiceNamespace: &namespace,
- }
- result, err := r.client.DescribeScheduledActions(input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, result.ScheduledActions)
- return result.ScheduledActions, nil
-}
diff --git a/enumeration/remote/aws/repository/appautoscaling_repository_test.go b/enumeration/remote/aws/repository/appautoscaling_repository_test.go
deleted file mode 100644
index bc41cb048..000000000
--- a/enumeration/remote/aws/repository/appautoscaling_repository_test.go
+++ /dev/null
@@ -1,342 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/applicationautoscaling"
- "github.com/pkg/errors"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_appautoscalingRepository_DescribeScalableTargets(t *testing.T) {
- type args struct {
- namespace string
- }
-
- tests := []struct {
- name string
- args args
- mocks func(*awstest.MockFakeApplicationAutoScaling, *cache.MockCache)
- want []*applicationautoscaling.ScalableTarget
- wantErr error
- }{
- {
- name: "should return remote error",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- client.On("DescribeScalableTargets",
- &applicationautoscaling.DescribeScalableTargetsInput{
- ServiceNamespace: aws.String("test"),
- }).Return(nil, errors.New("remote error")).Once()
-
- c.On("Get", "appAutoScalingDescribeScalableTargets_test").Return(nil).Once()
- },
- want: nil,
- wantErr: errors.New("remote error"),
- },
- {
- name: "should return scalable targets",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScalableTarget{
- {
- RoleARN: aws.String("test_target"),
- },
- }
-
- client.On("DescribeScalableTargets",
- &applicationautoscaling.DescribeScalableTargetsInput{
- ServiceNamespace: aws.String("test"),
- }).Return(&applicationautoscaling.DescribeScalableTargetsOutput{
- ScalableTargets: results,
- }, nil).Once()
-
- c.On("Get", "appAutoScalingDescribeScalableTargets_test").Return(nil).Once()
- c.On("Put", "appAutoScalingDescribeScalableTargets_test", results).Return(true).Once()
- },
- want: []*applicationautoscaling.ScalableTarget{
- {
- RoleARN: aws.String("test_target"),
- },
- },
- },
- {
- name: "should hit cache return scalable targets",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScalableTarget{
- {
- RoleARN: aws.String("test_target"),
- },
- }
-
- c.On("Get", "appAutoScalingDescribeScalableTargets_test").Return(results).Once()
- },
- want: []*applicationautoscaling.ScalableTarget{
- {
- RoleARN: aws.String("test_target"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApplicationAutoScaling{}
- tt.mocks(client, store)
-
- r := &appAutoScalingRepository{
- client: client,
- cache: store,
- }
- got, err := r.DescribeScalableTargets(tt.args.namespace)
- if err != nil {
- assert.EqualError(t, tt.wantErr, err.Error())
- } else {
- assert.Equal(t, tt.wantErr, err)
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
-
- client.AssertExpectations(t)
- store.AssertExpectations(t)
- })
- }
-}
-
-func Test_appautoscalingRepository_DescribeScalingPolicies(t *testing.T) {
- type args struct {
- namespace string
- }
-
- tests := []struct {
- name string
- args args
- mocks func(*awstest.MockFakeApplicationAutoScaling, *cache.MockCache)
- want []*applicationautoscaling.ScalingPolicy
- wantErr error
- }{
- {
- name: "should return remote error",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- client.On("DescribeScalingPolicies",
- &applicationautoscaling.DescribeScalingPoliciesInput{
- ServiceNamespace: aws.String("test"),
- }).Return(nil, errors.New("remote error")).Once()
-
- c.On("Get", "appAutoScalingDescribeScalingPolicies_test").Return(nil).Once()
- },
- want: nil,
- wantErr: errors.New("remote error"),
- },
- {
- name: "should return scaling policies",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScalingPolicy{
- {
- PolicyARN: aws.String("test_policy"),
- },
- }
-
- client.On("DescribeScalingPolicies",
- &applicationautoscaling.DescribeScalingPoliciesInput{
- ServiceNamespace: aws.String("test"),
- }).Return(&applicationautoscaling.DescribeScalingPoliciesOutput{
- ScalingPolicies: results,
- }, nil).Once()
-
- c.On("Get", "appAutoScalingDescribeScalingPolicies_test").Return(nil).Once()
- c.On("Put", "appAutoScalingDescribeScalingPolicies_test", results).Return(true).Once()
- },
- want: []*applicationautoscaling.ScalingPolicy{
- {
- PolicyARN: aws.String("test_policy"),
- },
- },
- },
- {
- name: "should hit cache return scaling policies",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScalingPolicy{
- {
- PolicyARN: aws.String("test_policy"),
- },
- }
-
- c.On("Get", "appAutoScalingDescribeScalingPolicies_test").Return(results).Once()
- },
- want: []*applicationautoscaling.ScalingPolicy{
- {
- PolicyARN: aws.String("test_policy"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApplicationAutoScaling{}
- tt.mocks(client, store)
-
- r := &appAutoScalingRepository{
- client: client,
- cache: store,
- }
- got, err := r.DescribeScalingPolicies(tt.args.namespace)
- if err != nil {
- assert.EqualError(t, tt.wantErr, err.Error())
- } else {
- assert.Equal(t, tt.wantErr, err)
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
-
- client.AssertExpectations(t)
- store.AssertExpectations(t)
- })
- }
-}
-
-func Test_appautoscalingRepository_DescribeScheduledActions(t *testing.T) {
- type args struct {
- namespace string
- }
-
- tests := []struct {
- name string
- args args
- mocks func(*awstest.MockFakeApplicationAutoScaling, *cache.MockCache)
- want []*applicationautoscaling.ScheduledAction
- wantErr error
- }{
- {
- name: "should return remote error",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- client.On("DescribeScheduledActions",
- &applicationautoscaling.DescribeScheduledActionsInput{
- ServiceNamespace: aws.String("test"),
- }).Return(nil, errors.New("remote error")).Once()
-
- c.On("Get", "appAutoScalingDescribeScheduledActions_test").Return(nil).Once()
- },
- want: nil,
- wantErr: errors.New("remote error"),
- },
- {
- name: "should return scheduled actions",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScheduledAction{
- {
- ResourceId: aws.String("test"),
- },
- }
-
- client.On("DescribeScheduledActions",
- &applicationautoscaling.DescribeScheduledActionsInput{
- ServiceNamespace: aws.String("test"),
- }).Return(&applicationautoscaling.DescribeScheduledActionsOutput{
- ScheduledActions: results,
- }, nil).Once()
-
- c.On("Get", "appAutoScalingDescribeScheduledActions_test").Return(nil).Once()
- c.On("Put", "appAutoScalingDescribeScheduledActions_test", results).Return(true).Once()
- },
- want: []*applicationautoscaling.ScheduledAction{
- {
- ResourceId: aws.String("test"),
- },
- },
- },
- {
- name: "should hit cache return scheduled actions",
- args: args{
- namespace: "test",
- },
- mocks: func(client *awstest.MockFakeApplicationAutoScaling, c *cache.MockCache) {
- results := []*applicationautoscaling.ScheduledAction{
- {
- ResourceId: aws.String("test"),
- },
- }
-
- c.On("Get", "appAutoScalingDescribeScheduledActions_test").Return(results).Once()
- },
- want: []*applicationautoscaling.ScheduledAction{
- {
- ResourceId: aws.String("test"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeApplicationAutoScaling{}
- tt.mocks(client, store)
-
- r := &appAutoScalingRepository{
- client: client,
- cache: store,
- }
- got, err := r.DescribeScheduledActions(tt.args.namespace)
- if err != nil {
- assert.EqualError(t, tt.wantErr, err.Error())
- } else {
- assert.Equal(t, tt.wantErr, err)
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
-
- client.AssertExpectations(t)
- store.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/autoscaling_repository.go b/enumeration/remote/aws/repository/autoscaling_repository.go
deleted file mode 100644
index b00da44c3..000000000
--- a/enumeration/remote/aws/repository/autoscaling_repository.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/autoscaling"
- "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type AutoScalingRepository interface {
- DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error)
-}
-
-type autoScalingRepository struct {
- client autoscalingiface.AutoScalingAPI
- cache cache.Cache
-}
-
-func NewAutoScalingRepository(session *session.Session, c cache.Cache) *autoScalingRepository {
- return &autoScalingRepository{
- autoscaling.New(session),
- c,
- }
-}
-
-func (r *autoScalingRepository) DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error) {
- cacheKey := "DescribeLaunchConfigurations"
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*autoscaling.LaunchConfiguration), nil
- }
-
- var results []*autoscaling.LaunchConfiguration
- input := &autoscaling.DescribeLaunchConfigurationsInput{}
- err := r.client.DescribeLaunchConfigurationsPages(input, func(resp *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool {
- results = append(results, resp.LaunchConfigurations...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, results)
- return results, nil
-}
diff --git a/enumeration/remote/aws/repository/autoscaling_repository_test.go b/enumeration/remote/aws/repository/autoscaling_repository_test.go
deleted file mode 100644
index fad155b7f..000000000
--- a/enumeration/remote/aws/repository/autoscaling_repository_test.go
+++ /dev/null
@@ -1,104 +0,0 @@
-package repository
-
-import (
- "errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/service/autoscaling"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/aws/aws-sdk-go/aws"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_AutoscalingRepository_DescribeLaunchConfigurations(t *testing.T) {
- dummryError := errors.New("dummy error")
-
- expectedLaunchConfigurations := []*autoscaling.LaunchConfiguration{
- {ImageId: aws.String("1")},
- {ImageId: aws.String("2")},
- {ImageId: aws.String("3")},
- {ImageId: aws.String("4")},
- }
-
- tests := []struct {
- name string
- mocks func(*awstest.MockFakeAutoscaling, *cache.MockCache)
- want []*autoscaling.LaunchConfiguration
- wantErr error
- }{
- {
- name: "List all launch configurations",
- mocks: func(client *awstest.MockFakeAutoscaling, store *cache.MockCache) {
- store.On("Get", "DescribeLaunchConfigurations").Return(nil).Once()
-
- client.On("DescribeLaunchConfigurationsPages",
- &autoscaling.DescribeLaunchConfigurationsInput{},
- mock.MatchedBy(func(callback func(res *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool) bool {
- callback(&autoscaling.DescribeLaunchConfigurationsOutput{
- LaunchConfigurations: expectedLaunchConfigurations[:2],
- }, false)
- callback(&autoscaling.DescribeLaunchConfigurationsOutput{
- LaunchConfigurations: expectedLaunchConfigurations[2:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Put", "DescribeLaunchConfigurations", expectedLaunchConfigurations).Return(false).Once()
- },
- want: expectedLaunchConfigurations,
- },
- {
- name: "Hit cache and list all launch configurations",
- mocks: func(client *awstest.MockFakeAutoscaling, store *cache.MockCache) {
- store.On("Get", "DescribeLaunchConfigurations").Return(expectedLaunchConfigurations).Once()
- },
- want: expectedLaunchConfigurations,
- },
- {
- name: "Error listing all launch configurations",
- mocks: func(client *awstest.MockFakeAutoscaling, store *cache.MockCache) {
- store.On("Get", "DescribeLaunchConfigurations").Return(nil).Once()
-
- client.On("DescribeLaunchConfigurationsPages", &autoscaling.DescribeLaunchConfigurationsInput{}, mock.MatchedBy(func(callback func(res *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool) bool {
- callback(&autoscaling.DescribeLaunchConfigurationsOutput{
- LaunchConfigurations: []*autoscaling.LaunchConfiguration{},
- }, true)
- return true
- })).Return(dummryError).Once()
- },
- want: nil,
- wantErr: dummryError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeAutoscaling{}
- tt.mocks(client, store)
- r := &autoScalingRepository{
- client: client,
- cache: store,
- }
- got, err := r.DescribeLaunchConfigurations()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
-
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/cloudformation_repository.go b/enumeration/remote/aws/repository/cloudformation_repository.go
deleted file mode 100644
index e0aa1dd09..000000000
--- a/enumeration/remote/aws/repository/cloudformation_repository.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/cloudformation"
- "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type CloudformationRepository interface {
- ListAllStacks() ([]*cloudformation.Stack, error)
-}
-
-type cloudformationRepository struct {
- client cloudformationiface.CloudFormationAPI
- cache cache.Cache
-}
-
-func NewCloudformationRepository(session *session.Session, c cache.Cache) *cloudformationRepository {
- return &cloudformationRepository{
- cloudformation.New(session),
- c,
- }
-}
-
-func (r *cloudformationRepository) ListAllStacks() ([]*cloudformation.Stack, error) {
- if v := r.cache.Get("cloudformationListAllStacks"); v != nil {
- return v.([]*cloudformation.Stack), nil
- }
-
- var stacks []*cloudformation.Stack
- input := cloudformation.DescribeStacksInput{}
- err := r.client.DescribeStacksPages(&input,
- func(resp *cloudformation.DescribeStacksOutput, lastPage bool) bool {
- if resp.Stacks != nil {
- stacks = append(stacks, resp.Stacks...)
- }
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("cloudformationListAllStacks", stacks)
- return stacks, nil
-}
diff --git a/enumeration/remote/aws/repository/cloudformation_repository_test.go b/enumeration/remote/aws/repository/cloudformation_repository_test.go
deleted file mode 100644
index 3f2dd7473..000000000
--- a/enumeration/remote/aws/repository/cloudformation_repository_test.go
+++ /dev/null
@@ -1,86 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/cloudformation"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_cloudformationRepository_ListAllStacks(t *testing.T) {
- stacks := []*cloudformation.Stack{
- {StackId: aws.String("stack1")},
- {StackId: aws.String("stack2")},
- {StackId: aws.String("stack3")},
- {StackId: aws.String("stack4")},
- {StackId: aws.String("stack5")},
- {StackId: aws.String("stack6")},
- }
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeCloudformation, store *cache.MockCache)
- want []*cloudformation.Stack
- wantErr error
- }{
- {
- name: "list multiple stacks",
- mocks: func(client *awstest.MockFakeCloudformation, store *cache.MockCache) {
- client.On("DescribeStacksPages",
- &cloudformation.DescribeStacksInput{},
- mock.MatchedBy(func(callback func(res *cloudformation.DescribeStacksOutput, lastPage bool) bool) bool {
- callback(&cloudformation.DescribeStacksOutput{
- Stacks: stacks[:3],
- }, false)
- callback(&cloudformation.DescribeStacksOutput{
- Stacks: stacks[3:],
- }, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "cloudformationListAllStacks").Return(nil).Times(1)
- store.On("Put", "cloudformationListAllStacks", stacks).Return(false).Times(1)
- },
- want: stacks,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeCloudformation, store *cache.MockCache) {
- store.On("Get", "cloudformationListAllStacks").Return(stacks).Times(1)
- },
- want: stacks,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeCloudformation{}
- tt.mocks(client, store)
- r := &cloudformationRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllStacks()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/cloudfront_repository.go b/enumeration/remote/aws/repository/cloudfront_repository.go
deleted file mode 100644
index bb7d0ec72..000000000
--- a/enumeration/remote/aws/repository/cloudfront_repository.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/cloudfront"
- "github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type CloudfrontRepository interface {
- ListAllDistributions() ([]*cloudfront.DistributionSummary, error)
-}
-
-type cloudfrontRepository struct {
- client cloudfrontiface.CloudFrontAPI
- cache cache.Cache
-}
-
-func NewCloudfrontRepository(session *session.Session, c cache.Cache) *cloudfrontRepository {
- return &cloudfrontRepository{
- cloudfront.New(session),
- c,
- }
-}
-
-func (r *cloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error) {
- if v := r.cache.Get("cloudfrontListAllDistributions"); v != nil {
- return v.([]*cloudfront.DistributionSummary), nil
- }
-
- var distributions []*cloudfront.DistributionSummary
- input := cloudfront.ListDistributionsInput{}
- err := r.client.ListDistributionsPages(&input,
- func(resp *cloudfront.ListDistributionsOutput, lastPage bool) bool {
- if resp.DistributionList != nil {
- distributions = append(distributions, resp.DistributionList.Items...)
- }
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("cloudfrontListAllDistributions", distributions)
- return distributions, nil
-}
diff --git a/enumeration/remote/aws/repository/cloudfront_repository_test.go b/enumeration/remote/aws/repository/cloudfront_repository_test.go
deleted file mode 100644
index 4c39d4377..000000000
--- a/enumeration/remote/aws/repository/cloudfront_repository_test.go
+++ /dev/null
@@ -1,92 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/cloudfront"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_cloudfrontRepository_ListAllDistributions(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeCloudFront)
- want []*cloudfront.DistributionSummary
- wantErr error
- }{
- {
- name: "list multiple distributions",
- mocks: func(client *awstest.MockFakeCloudFront) {
- client.On("ListDistributionsPages",
- &cloudfront.ListDistributionsInput{},
- mock.MatchedBy(func(callback func(res *cloudfront.ListDistributionsOutput, lastPage bool) bool) bool {
- callback(&cloudfront.ListDistributionsOutput{
- DistributionList: &cloudfront.DistributionList{
- Items: []*cloudfront.DistributionSummary{
- {Id: aws.String("distribution1")},
- {Id: aws.String("distribution2")},
- {Id: aws.String("distribution3")},
- },
- },
- }, false)
- callback(&cloudfront.ListDistributionsOutput{
- DistributionList: &cloudfront.DistributionList{
- Items: []*cloudfront.DistributionSummary{
- {Id: aws.String("distribution4")},
- {Id: aws.String("distribution5")},
- {Id: aws.String("distribution6")},
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*cloudfront.DistributionSummary{
- {Id: aws.String("distribution1")},
- {Id: aws.String("distribution2")},
- {Id: aws.String("distribution3")},
- {Id: aws.String("distribution4")},
- {Id: aws.String("distribution5")},
- {Id: aws.String("distribution6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeCloudFront{}
- tt.mocks(&client)
- r := &cloudfrontRepository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllDistributions()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllDistributions()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*cloudfront.DistributionSummary{}, store.Get("cloudfrontListAllDistributions"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/cloudtrail_repository.go b/enumeration/remote/aws/repository/cloudtrail_repository.go
deleted file mode 100644
index db4bfd031..000000000
--- a/enumeration/remote/aws/repository/cloudtrail_repository.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/cloudtrail"
- "github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type CloudtrailRepository interface {
- ListAllTrails() ([]*cloudtrail.TrailInfo, error)
-}
-
-type cloudtrailRepository struct {
- client cloudtrailiface.CloudTrailAPI
- cache cache.Cache
-}
-
-func NewCloudtrailRepository(session *session.Session, c cache.Cache) *cloudtrailRepository {
- return &cloudtrailRepository{
- cloudtrail.New(session),
- c,
- }
-}
-
-func (r *cloudtrailRepository) ListAllTrails() ([]*cloudtrail.TrailInfo, error) {
- cacheKey := "ListAllTrails"
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*cloudtrail.TrailInfo), nil
- }
-
- var trails []*cloudtrail.TrailInfo
- input := cloudtrail.ListTrailsInput{}
- err := r.client.ListTrailsPages(&input,
- func(resp *cloudtrail.ListTrailsOutput, lastPage bool) bool {
- if resp.Trails != nil {
- trails = append(trails, resp.Trails...)
- }
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, trails)
- return trails, nil
-}
diff --git a/enumeration/remote/aws/repository/cloudtrail_repository_test.go b/enumeration/remote/aws/repository/cloudtrail_repository_test.go
deleted file mode 100644
index f309cd0ac..000000000
--- a/enumeration/remote/aws/repository/cloudtrail_repository_test.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package repository
-
-import (
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/cloudtrail"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_cloudtrailRepository_ListAllTrails(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeCloudtrail)
- want []*cloudtrail.TrailInfo
- wantErr error
- }{
- {
- name: "list multiple trail",
- mocks: func(client *awstest.MockFakeCloudtrail) {
- client.On("ListTrailsPages",
- &cloudtrail.ListTrailsInput{},
- mock.MatchedBy(func(callback func(res *cloudtrail.ListTrailsOutput, lastPage bool) bool) bool {
- callback(&cloudtrail.ListTrailsOutput{
- Trails: []*cloudtrail.TrailInfo{
- {Name: aws.String("trail1")},
- {Name: aws.String("trail2")},
- {Name: aws.String("trail3")},
- },
- }, false)
- callback(&cloudtrail.ListTrailsOutput{
- Trails: []*cloudtrail.TrailInfo{
- {Name: aws.String("trail4")},
- {Name: aws.String("trail5")},
- {Name: aws.String("trail6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*cloudtrail.TrailInfo{
- {Name: aws.String("trail1")},
- {Name: aws.String("trail2")},
- {Name: aws.String("trail3")},
- {Name: aws.String("trail4")},
- {Name: aws.String("trail5")},
- {Name: aws.String("trail6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeCloudtrail{}
- tt.mocks(&client)
- r := &cloudtrailRepository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllTrails()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllTrails()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*cloudtrail.TrailInfo{}, store.Get("ListAllTrails"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/dynamodb_repository.go b/enumeration/remote/aws/repository/dynamodb_repository.go
deleted file mode 100644
index 42efe29a5..000000000
--- a/enumeration/remote/aws/repository/dynamodb_repository.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/dynamodb"
- "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type DynamoDBRepository interface {
- ListAllTables() ([]*string, error)
-}
-
-type dynamoDBRepository struct {
- client dynamodbiface.DynamoDBAPI
- cache cache.Cache
-}
-
-func NewDynamoDBRepository(session *session.Session, c cache.Cache) *dynamoDBRepository {
- return &dynamoDBRepository{
- dynamodb.New(session),
- c,
- }
-}
-
-func (r *dynamoDBRepository) ListAllTables() ([]*string, error) {
- if v := r.cache.Get("dynamodbListAllTables"); v != nil {
- return v.([]*string), nil
- }
-
- var tables []*string
- input := &dynamodb.ListTablesInput{}
- err := r.client.ListTablesPages(input, func(res *dynamodb.ListTablesOutput, lastPage bool) bool {
- tables = append(tables, res.TableNames...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("dynamodbListAllTables", tables)
- return tables, nil
-}
diff --git a/enumeration/remote/aws/repository/dynamodb_repository_test.go b/enumeration/remote/aws/repository/dynamodb_repository_test.go
deleted file mode 100644
index 3b89046da..000000000
--- a/enumeration/remote/aws/repository/dynamodb_repository_test.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/dynamodb"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_dynamoDBRepository_ListAllTopics(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeDynamoDB)
- want []*string
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeDynamoDB) {
- client.On("ListTablesPages",
- &dynamodb.ListTablesInput{},
- mock.MatchedBy(func(callback func(res *dynamodb.ListTablesOutput, lastPage bool) bool) bool {
- callback(&dynamodb.ListTablesOutput{
- TableNames: []*string{
- aws.String("1"),
- aws.String("2"),
- aws.String("3"),
- },
- }, false)
- callback(&dynamodb.ListTablesOutput{
- TableNames: []*string{
- aws.String("4"),
- aws.String("5"),
- aws.String("6"),
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*string{
- aws.String("1"),
- aws.String("2"),
- aws.String("3"),
- aws.String("4"),
- aws.String("5"),
- aws.String("6"),
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeDynamoDB{}
- tt.mocks(&client)
- r := &dynamoDBRepository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllTables()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllTables()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*string{}, store.Get("dynamodbListAllTables"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/ec2_repository.go b/enumeration/remote/aws/repository/ec2_repository.go
deleted file mode 100644
index 725c11e7f..000000000
--- a/enumeration/remote/aws/repository/ec2_repository.go
+++ /dev/null
@@ -1,408 +0,0 @@
-package repository
-
-import (
- "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/aws/aws-sdk-go/service/ec2/ec2iface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type EC2Repository interface {
- ListAllImages() ([]*ec2.Image, error)
- ListAllSnapshots() ([]*ec2.Snapshot, error)
- ListAllVolumes() ([]*ec2.Volume, error)
- ListAllAddresses() ([]*ec2.Address, error)
- ListAllAddressesAssociation() ([]*ec2.Address, error)
- ListAllInstances() ([]*ec2.Instance, error)
- ListAllKeyPairs() ([]*ec2.KeyPairInfo, error)
- ListAllInternetGateways() ([]*ec2.InternetGateway, error)
- ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error)
- ListAllNatGateways() ([]*ec2.NatGateway, error)
- ListAllRouteTables() ([]*ec2.RouteTable, error)
- ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error)
- ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error)
- ListAllNetworkACLs() ([]*ec2.NetworkAcl, error)
- DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error)
- IsEbsEncryptionEnabledByDefault() (bool, error)
-}
-
-type ec2Repository struct {
- client ec2iface.EC2API
- cache cache.Cache
-}
-
-func NewEC2Repository(session *session.Session, c cache.Cache) *ec2Repository {
- return &ec2Repository{
- ec2.New(session),
- c,
- }
-}
-
-func (r *ec2Repository) ListAllImages() ([]*ec2.Image, error) {
- if v := r.cache.Get("ec2ListAllImages"); v != nil {
- return v.([]*ec2.Image), nil
- }
-
- input := &ec2.DescribeImagesInput{
- Owners: []*string{
- aws.String("self"),
- },
- }
- images, err := r.client.DescribeImages(input)
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllImages", images.Images)
- return images.Images, err
-}
-
-func (r *ec2Repository) ListAllSnapshots() ([]*ec2.Snapshot, error) {
- if v := r.cache.Get("ec2ListAllSnapshots"); v != nil {
- return v.([]*ec2.Snapshot), nil
- }
-
- var snapshots []*ec2.Snapshot
- input := &ec2.DescribeSnapshotsInput{
- OwnerIds: []*string{
- aws.String("self"),
- },
- }
- err := r.client.DescribeSnapshotsPages(input, func(res *ec2.DescribeSnapshotsOutput, lastPage bool) bool {
- snapshots = append(snapshots, res.Snapshots...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllSnapshots", snapshots)
- return snapshots, err
-}
-
-func (r *ec2Repository) ListAllVolumes() ([]*ec2.Volume, error) {
- if v := r.cache.Get("ec2ListAllVolumes"); v != nil {
- return v.([]*ec2.Volume), nil
- }
-
- var volumes []*ec2.Volume
- input := &ec2.DescribeVolumesInput{}
- err := r.client.DescribeVolumesPages(input, func(res *ec2.DescribeVolumesOutput, lastPage bool) bool {
- volumes = append(volumes, res.Volumes...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllVolumes", volumes)
- return volumes, nil
-}
-
-func (r *ec2Repository) ListAllAddresses() ([]*ec2.Address, error) {
- cacheKey := "ec2ListAllAddresses"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*ec2.Address), nil
- }
-
- input := &ec2.DescribeAddressesInput{}
- response, err := r.client.DescribeAddresses(input)
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, response.Addresses)
- return response.Addresses, nil
-}
-
-func (r *ec2Repository) ListAllAddressesAssociation() ([]*ec2.Address, error) {
- if v := r.cache.Get("ec2ListAllAddressesAssociation"); v != nil {
- return v.([]*ec2.Address), nil
- }
-
- addresses, err := r.ListAllAddresses()
- if err != nil {
- return nil, err
- }
- results := make([]*ec2.Address, 0, len(addresses))
-
- for _, address := range addresses {
- if address.AssociationId != nil {
- results = append(results, address)
- }
- }
- r.cache.Put("ec2ListAllAddressesAssociation", results)
- return results, nil
-}
-
-func (r *ec2Repository) ListAllInstances() ([]*ec2.Instance, error) {
- if v := r.cache.Get("ec2ListAllInstances"); v != nil {
- return v.([]*ec2.Instance), nil
- }
- var instances []*ec2.Instance
- input := &ec2.DescribeInstancesInput{
- Filters: []*ec2.Filter{
- {
- // Ignore terminated state from enumeration since terminated means that instance
- // has been removed
- Name: aws.String("instance-state-name"),
- Values: aws.StringSlice([]string{
- "pending",
- "running",
- "stopping",
- "shutting-down",
- "stopped",
- }),
- },
- },
- }
- err := r.client.DescribeInstancesPages(input, func(res *ec2.DescribeInstancesOutput, lastPage bool) bool {
- for _, reservation := range res.Reservations {
- instances = append(instances, reservation.Instances...)
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllInstances", instances)
- return instances, nil
-}
-
-func (r *ec2Repository) ListAllKeyPairs() ([]*ec2.KeyPairInfo, error) {
- if v := r.cache.Get("ec2ListAllKeyPairs"); v != nil {
- return v.([]*ec2.KeyPairInfo), nil
- }
-
- input := &ec2.DescribeKeyPairsInput{}
- pairs, err := r.client.DescribeKeyPairs(input)
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllKeyPairs", pairs.KeyPairs)
- return pairs.KeyPairs, err
-}
-
-func (r *ec2Repository) ListAllInternetGateways() ([]*ec2.InternetGateway, error) {
- if v := r.cache.Get("ec2ListAllInternetGateways"); v != nil {
- return v.([]*ec2.InternetGateway), nil
- }
-
- var internetGateways []*ec2.InternetGateway
- input := ec2.DescribeInternetGatewaysInput{}
- err := r.client.DescribeInternetGatewaysPages(&input,
- func(resp *ec2.DescribeInternetGatewaysOutput, lastPage bool) bool {
- internetGateways = append(internetGateways, resp.InternetGateways...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
- r.cache.Put("ec2ListAllInternetGateways", internetGateways)
- return internetGateways, nil
-}
-
-func (r *ec2Repository) ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error) {
- cacheKey := "ec2ListAllSubnets"
- cacheSubnets := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
-
- defaultCacheKey := "ec2ListAllDefaultSubnets"
- cacheDefaultSubnets := r.cache.GetAndLock(defaultCacheKey)
- defer r.cache.Unlock(defaultCacheKey)
- if cacheSubnets != nil && cacheDefaultSubnets != nil {
- return cacheSubnets.([]*ec2.Subnet), cacheDefaultSubnets.([]*ec2.Subnet), nil
- }
-
- input := ec2.DescribeSubnetsInput{}
- var subnets []*ec2.Subnet
- var defaultSubnets []*ec2.Subnet
- err := r.client.DescribeSubnetsPages(&input,
- func(resp *ec2.DescribeSubnetsOutput, lastPage bool) bool {
- for _, subnet := range resp.Subnets {
- if subnet.DefaultForAz != nil && *subnet.DefaultForAz {
- defaultSubnets = append(defaultSubnets, subnet)
- continue
- }
- subnets = append(subnets, subnet)
- }
- return !lastPage
- })
- if err != nil {
- return nil, nil, err
- }
- r.cache.Put(cacheKey, subnets)
- r.cache.Put(defaultCacheKey, defaultSubnets)
- return subnets, defaultSubnets, nil
-}
-
-func (r *ec2Repository) ListAllNatGateways() ([]*ec2.NatGateway, error) {
- if v := r.cache.Get("ec2ListAllNatGateways"); v != nil {
- return v.([]*ec2.NatGateway), nil
- }
-
- var result []*ec2.NatGateway
- input := ec2.DescribeNatGatewaysInput{}
- err := r.client.DescribeNatGatewaysPages(&input,
- func(resp *ec2.DescribeNatGatewaysOutput, lastPage bool) bool {
- result = append(result, resp.NatGateways...)
- return !lastPage
- },
- )
-
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("ec2ListAllNatGateways", result)
- return result, nil
-}
-
-func (r *ec2Repository) ListAllRouteTables() ([]*ec2.RouteTable, error) {
- cacheKey := "ec2ListAllRouteTables"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*ec2.RouteTable), nil
- }
-
- var routeTables []*ec2.RouteTable
- input := ec2.DescribeRouteTablesInput{}
- err := r.client.DescribeRouteTablesPages(&input,
- func(resp *ec2.DescribeRouteTablesOutput, lastPage bool) bool {
- routeTables = append(routeTables, resp.RouteTables...)
- return !lastPage
- },
- )
-
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, routeTables)
- return routeTables, nil
-}
-
-func (r *ec2Repository) ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error) {
- cacheKey := "ec2ListAllVPCs"
- cacheVPCs := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- defaultCacheKey := "ec2ListAllDefaultVPCs"
- cacheDefaultVPCs := r.cache.GetAndLock(defaultCacheKey)
- defer r.cache.Unlock(defaultCacheKey)
- if cacheVPCs != nil && cacheDefaultVPCs != nil {
- return cacheVPCs.([]*ec2.Vpc), cacheDefaultVPCs.([]*ec2.Vpc), nil
- }
-
- input := ec2.DescribeVpcsInput{}
- var VPCs []*ec2.Vpc
- var defaultVPCs []*ec2.Vpc
- err := r.client.DescribeVpcsPages(&input,
- func(resp *ec2.DescribeVpcsOutput, lastPage bool) bool {
- for _, vpc := range resp.Vpcs {
- if vpc.IsDefault != nil && *vpc.IsDefault {
- defaultVPCs = append(defaultVPCs, vpc)
- continue
- }
- VPCs = append(VPCs, vpc)
- }
- return !lastPage
- },
- )
- if err != nil {
- return nil, nil, err
- }
-
- r.cache.Put(cacheKey, VPCs)
- r.cache.Put(defaultCacheKey, defaultVPCs)
- return VPCs, defaultVPCs, nil
-}
-
-func (r *ec2Repository) ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) {
- cacheKey := "ec2ListAllSecurityGroups"
- cacheSecurityGroups := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- defaultCacheKey := "ec2ListAllDefaultSecurityGroups"
- cacheDefaultSecurityGroups := r.cache.GetAndLock(defaultCacheKey)
- defer r.cache.Unlock(defaultCacheKey)
- if cacheSecurityGroups != nil && cacheDefaultSecurityGroups != nil {
- return cacheSecurityGroups.([]*ec2.SecurityGroup), cacheDefaultSecurityGroups.([]*ec2.SecurityGroup), nil
- }
-
- var securityGroups []*ec2.SecurityGroup
- var defaultSecurityGroups []*ec2.SecurityGroup
- input := &ec2.DescribeSecurityGroupsInput{}
- err := r.client.DescribeSecurityGroupsPages(input, func(res *ec2.DescribeSecurityGroupsOutput, lastPage bool) bool {
- for _, securityGroup := range res.SecurityGroups {
- if securityGroup.GroupName != nil && *securityGroup.GroupName == "default" {
- defaultSecurityGroups = append(defaultSecurityGroups, securityGroup)
- continue
- }
- securityGroups = append(securityGroups, securityGroup)
- }
- return !lastPage
- })
- if err != nil {
- return nil, nil, err
- }
-
- r.cache.Put(cacheKey, securityGroups)
- r.cache.Put(defaultCacheKey, defaultSecurityGroups)
- return securityGroups, defaultSecurityGroups, nil
-}
-
-func (r *ec2Repository) ListAllNetworkACLs() ([]*ec2.NetworkAcl, error) {
-
- cacheKey := "ec2ListAllNetworkACLs"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*ec2.NetworkAcl), nil
- }
-
- var ACLs []*ec2.NetworkAcl
- input := ec2.DescribeNetworkAclsInput{}
- err := r.client.DescribeNetworkAclsPages(&input,
- func(resp *ec2.DescribeNetworkAclsOutput, lastPage bool) bool {
- ACLs = append(ACLs, resp.NetworkAcls...)
- return !lastPage
- },
- )
-
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, ACLs)
- return ACLs, nil
-}
-
-func (r *ec2Repository) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error) {
- cacheKey := "DescribeLaunchTemplates"
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*ec2.LaunchTemplate), nil
- }
-
- input := ec2.DescribeLaunchTemplatesInput{}
- resp, err := r.client.DescribeLaunchTemplates(&input)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resp.LaunchTemplates)
- return resp.LaunchTemplates, nil
-}
-
-func (r *ec2Repository) IsEbsEncryptionEnabledByDefault() (bool, error) {
- if v := r.cache.Get("ec2IsEbsEncryptionEnabledByDefault"); v != nil {
- return v.(bool), nil
- }
-
- input := &ec2.GetEbsEncryptionByDefaultInput{}
- resp, err := r.client.GetEbsEncryptionByDefault(input)
- if err != nil {
- return false, err
- }
- r.cache.Put("ec2IsEbsEncryptionEnabledByDefault", *resp.EbsEncryptionByDefault)
- return *resp.EbsEncryptionByDefault, err
-}
diff --git a/enumeration/remote/aws/repository/ec2_repository_test.go b/enumeration/remote/aws/repository/ec2_repository_test.go
deleted file mode 100644
index f5b6c0f56..000000000
--- a/enumeration/remote/aws/repository/ec2_repository_test.go
+++ /dev/null
@@ -1,1429 +0,0 @@
-package repository
-
-import (
- "strings"
- "testing"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/aws/aws-sdk-go/service/ec2"
-
- "github.com/aws/aws-sdk-go/aws"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_ec2Repository_ListAllImages(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Image
- wantErr error
- }{
- {
- name: "List all images",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeImages",
- &ec2.DescribeImagesInput{
- Owners: []*string{
- aws.String("self"),
- },
- }).Return(&ec2.DescribeImagesOutput{
- Images: []*ec2.Image{
- {ImageId: aws.String("1")},
- {ImageId: aws.String("2")},
- {ImageId: aws.String("3")},
- {ImageId: aws.String("4")},
- },
- }, nil).Once()
- },
- want: []*ec2.Image{
- {ImageId: aws.String("1")},
- {ImageId: aws.String("2")},
- {ImageId: aws.String("3")},
- {ImageId: aws.String("4")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllImages()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllImages()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Image{}, store.Get("ec2ListAllImages"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllSnapshots(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Snapshot
- wantErr error
- }{
- {name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeSnapshotsPages",
- &ec2.DescribeSnapshotsInput{
- OwnerIds: []*string{
- aws.String("self"),
- },
- },
- mock.MatchedBy(func(callback func(res *ec2.DescribeSnapshotsOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeSnapshotsOutput{
- Snapshots: []*ec2.Snapshot{
- {VolumeId: aws.String("1")},
- {VolumeId: aws.String("2")},
- {VolumeId: aws.String("3")},
- {VolumeId: aws.String("4")},
- },
- }, false)
- callback(&ec2.DescribeSnapshotsOutput{
- Snapshots: []*ec2.Snapshot{
- {VolumeId: aws.String("5")},
- {VolumeId: aws.String("6")},
- {VolumeId: aws.String("7")},
- {VolumeId: aws.String("8")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.Snapshot{
- {VolumeId: aws.String("1")},
- {VolumeId: aws.String("2")},
- {VolumeId: aws.String("3")},
- {VolumeId: aws.String("4")},
- {VolumeId: aws.String("5")},
- {VolumeId: aws.String("6")},
- {VolumeId: aws.String("7")},
- {VolumeId: aws.String("8")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllSnapshots()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllSnapshots()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Snapshot{}, store.Get("ec2ListAllSnapshots"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllVolumes(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Volume
- wantErr error
- }{
- {name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeVolumesPages",
- &ec2.DescribeVolumesInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeVolumesOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeVolumesOutput{
- Volumes: []*ec2.Volume{
- {VolumeId: aws.String("1")},
- {VolumeId: aws.String("2")},
- {VolumeId: aws.String("3")},
- {VolumeId: aws.String("4")},
- },
- }, false)
- callback(&ec2.DescribeVolumesOutput{
- Volumes: []*ec2.Volume{
- {VolumeId: aws.String("5")},
- {VolumeId: aws.String("6")},
- {VolumeId: aws.String("7")},
- {VolumeId: aws.String("8")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.Volume{
- {VolumeId: aws.String("1")},
- {VolumeId: aws.String("2")},
- {VolumeId: aws.String("3")},
- {VolumeId: aws.String("4")},
- {VolumeId: aws.String("5")},
- {VolumeId: aws.String("6")},
- {VolumeId: aws.String("7")},
- {VolumeId: aws.String("8")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllVolumes()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllVolumes()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Volume{}, store.Get("ec2ListAllVolumes"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllAddresses(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Address
- wantErr error
- }{
- {
- name: "List address",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeAddresses", &ec2.DescribeAddressesInput{}).
- Return(&ec2.DescribeAddressesOutput{
- Addresses: []*ec2.Address{
- {AssociationId: aws.String("1")},
- {AssociationId: aws.String("2")},
- {AssociationId: aws.String("3")},
- {AssociationId: aws.String("4")},
- },
- }, nil).Once()
- },
- want: []*ec2.Address{
- {AssociationId: aws.String("1")},
- {AssociationId: aws.String("2")},
- {AssociationId: aws.String("3")},
- {AssociationId: aws.String("4")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllAddresses()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllAddresses()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Address{}, store.Get("ec2ListAllAddresses"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllAddressesAssociation(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Address
- wantErr error
- }{
- {
- name: "List address",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeAddresses", &ec2.DescribeAddressesInput{}).
- Return(&ec2.DescribeAddressesOutput{
- Addresses: []*ec2.Address{
- {AssociationId: aws.String("1")},
- {AssociationId: aws.String("2")},
- {AssociationId: aws.String("3")},
- {AssociationId: aws.String("4")},
- },
- }, nil).Once()
- },
- want: []*ec2.Address{
- {AssociationId: aws.String("1")},
- {AssociationId: aws.String("2")},
- {AssociationId: aws.String("3")},
- {AssociationId: aws.String("4")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllAddressesAssociation()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllAddressesAssociation()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Address{}, store.Get("ec2ListAllAddressesAssociation"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllInstances(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.Instance
- wantErr error
- }{
- {name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeInstancesPages",
- &ec2.DescribeInstancesInput{
- Filters: []*ec2.Filter{
- {
- Name: aws.String("instance-state-name"),
- Values: aws.StringSlice([]string{
- "pending",
- "running",
- "stopping",
- "shutting-down",
- "stopped",
- }),
- },
- },
- },
- mock.MatchedBy(func(callback func(res *ec2.DescribeInstancesOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeInstancesOutput{
- Reservations: []*ec2.Reservation{
- {
- Instances: []*ec2.Instance{
- {ImageId: aws.String("1")},
- {ImageId: aws.String("2")},
- {ImageId: aws.String("3")},
- },
- },
- {
- Instances: []*ec2.Instance{
- {ImageId: aws.String("4")},
- {ImageId: aws.String("5")},
- {ImageId: aws.String("6")},
- },
- },
- },
- }, false)
- callback(&ec2.DescribeInstancesOutput{
- Reservations: []*ec2.Reservation{
- {
- Instances: []*ec2.Instance{
- {ImageId: aws.String("7")},
- {ImageId: aws.String("8")},
- {ImageId: aws.String("9")},
- },
- },
- {
- Instances: []*ec2.Instance{
- {ImageId: aws.String("10")},
- {ImageId: aws.String("11")},
- {ImageId: aws.String("12")},
- },
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.Instance{
- {ImageId: aws.String("1")},
- {ImageId: aws.String("2")},
- {ImageId: aws.String("3")},
- {ImageId: aws.String("4")},
- {ImageId: aws.String("5")},
- {ImageId: aws.String("6")},
- {ImageId: aws.String("7")},
- {ImageId: aws.String("8")},
- {ImageId: aws.String("9")},
- {ImageId: aws.String("10")},
- {ImageId: aws.String("11")},
- {ImageId: aws.String("12")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllInstances()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllInstances()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.Instance{}, store.Get("ec2ListAllInstances"))
- }
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllKeyPairs(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.KeyPairInfo
- wantErr error
- }{
- {
- name: "List address",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeKeyPairs", &ec2.DescribeKeyPairsInput{}).
- Return(&ec2.DescribeKeyPairsOutput{
- KeyPairs: []*ec2.KeyPairInfo{
- {KeyPairId: aws.String("1")},
- {KeyPairId: aws.String("2")},
- {KeyPairId: aws.String("3")},
- {KeyPairId: aws.String("4")},
- },
- }, nil).Once()
- },
- want: []*ec2.KeyPairInfo{
- {KeyPairId: aws.String("1")},
- {KeyPairId: aws.String("2")},
- {KeyPairId: aws.String("3")},
- {KeyPairId: aws.String("4")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllKeyPairs()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllKeyPairs()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.KeyPairInfo{}, store.Get("ec2ListAllKeyPairs"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllInternetGateways(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.InternetGateway
- wantErr error
- }{
- {
- name: "List only gateways with multiple pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeInternetGatewaysPages",
- &ec2.DescribeInternetGatewaysInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeInternetGatewaysOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeInternetGatewaysOutput{
- InternetGateways: []*ec2.InternetGateway{
- {
- InternetGatewayId: aws.String("Internet-0"),
- },
- {
- InternetGatewayId: aws.String("Internet-1"),
- },
- },
- }, false)
- callback(&ec2.DescribeInternetGatewaysOutput{
- InternetGateways: []*ec2.InternetGateway{
- {
- InternetGatewayId: aws.String("Internet-2"),
- },
- {
- InternetGatewayId: aws.String("Internet-3"),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.InternetGateway{
- {
- InternetGatewayId: aws.String("Internet-0"),
- },
- {
- InternetGatewayId: aws.String("Internet-1"),
- },
- {
- InternetGatewayId: aws.String("Internet-2"),
- },
- {
- InternetGatewayId: aws.String("Internet-3"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllInternetGateways()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllInternetGateways()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.InternetGateway{}, store.Get("ec2ListAllInternetGateways"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllSubnets(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- wantSubnet []*ec2.Subnet
- wantDefaultSubnet []*ec2.Subnet
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeSubnetsPages",
- &ec2.DescribeSubnetsInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeSubnetsOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeSubnetsOutput{
- Subnets: []*ec2.Subnet{
- {
- SubnetId: aws.String("subnet-0b13f1e0eacf67424"), // subnet2
- DefaultForAz: aws.Bool(false),
- },
- {
- SubnetId: aws.String("subnet-0c9b78001fe186e22"), // subnet3
- DefaultForAz: aws.Bool(false),
- },
- {
- SubnetId: aws.String("subnet-05810d3f933925f6d"), // subnet1
- DefaultForAz: aws.Bool(false),
- },
- },
- }, false)
- callback(&ec2.DescribeSubnetsOutput{
- Subnets: []*ec2.Subnet{
- {
- SubnetId: aws.String("subnet-44fe0c65"), // us-east-1a
- DefaultForAz: aws.Bool(true),
- },
- {
- SubnetId: aws.String("subnet-65e16628"), // us-east-1b
- DefaultForAz: aws.Bool(true),
- },
- {
- SubnetId: aws.String("subnet-afa656f0"), // us-east-1c
- DefaultForAz: aws.Bool(true),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- wantSubnet: []*ec2.Subnet{
- {
- SubnetId: aws.String("subnet-0b13f1e0eacf67424"), // subnet2
- DefaultForAz: aws.Bool(false),
- },
- {
- SubnetId: aws.String("subnet-0c9b78001fe186e22"), // subnet3
- DefaultForAz: aws.Bool(false),
- },
- {
- SubnetId: aws.String("subnet-05810d3f933925f6d"), // subnet1
- DefaultForAz: aws.Bool(false),
- },
- },
- wantDefaultSubnet: []*ec2.Subnet{
- {
- SubnetId: aws.String("subnet-44fe0c65"), // us-east-1a
- DefaultForAz: aws.Bool(true),
- },
- {
- SubnetId: aws.String("subnet-65e16628"), // us-east-1b
- DefaultForAz: aws.Bool(true),
- },
- {
- SubnetId: aws.String("subnet-afa656f0"), // us-east-1c
- DefaultForAz: aws.Bool(true),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- gotSubnet, gotDefaultSubnet, err := r.ListAllSubnets()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, cachedDefaultData, err := r.ListAllSubnets()
- assert.NoError(t, err)
- assert.Equal(t, gotSubnet, cachedData)
- assert.Equal(t, gotDefaultSubnet, cachedDefaultData)
- assert.IsType(t, []*ec2.Subnet{}, store.Get("ec2ListAllSubnets"))
- assert.IsType(t, []*ec2.Subnet{}, store.Get("ec2ListAllDefaultSubnets"))
- }
-
- changelog, err := diff.Diff(gotSubnet, tt.wantSubnet)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- changelog, err = diff.Diff(gotDefaultSubnet, tt.wantDefaultSubnet)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllNatGateways(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.NatGateway
- wantErr error
- }{
- {
- name: "List only gateways with multiple pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeNatGatewaysPages",
- &ec2.DescribeNatGatewaysInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeNatGatewaysOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeNatGatewaysOutput{
- NatGateways: []*ec2.NatGateway{
- {
- NatGatewayId: aws.String("nat-0"),
- },
- {
- NatGatewayId: aws.String("nat-1"),
- },
- },
- }, false)
- callback(&ec2.DescribeNatGatewaysOutput{
- NatGateways: []*ec2.NatGateway{
- {
- NatGatewayId: aws.String("nat-2"),
- },
- {
- NatGatewayId: aws.String("nat-3"),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.NatGateway{
- {
- NatGatewayId: aws.String("nat-0"),
- },
- {
- NatGatewayId: aws.String("nat-1"),
- },
- {
- NatGatewayId: aws.String("nat-2"),
- },
- {
- NatGatewayId: aws.String("nat-3"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllNatGateways()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllNatGateways()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.NatGateway{}, store.Get("ec2ListAllNatGateways"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllRouteTables(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.RouteTable
- wantErr error
- }{
- {
- name: "List only route with multiple pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeRouteTablesPages",
- &ec2.DescribeRouteTablesInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeRouteTablesOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeRouteTablesOutput{
- RouteTables: []*ec2.RouteTable{
- {
- RouteTableId: aws.String("rtb-096bdfb69309c54c3"), // table1
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("1.1.1.1/32"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationIpv6CidrBlock: aws.String("::/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- {
- RouteTableId: aws.String("rtb-0169b0937fd963ddc"), // table2
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("0.0.0.0/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationIpv6CidrBlock: aws.String("::/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- },
- }, false)
- callback(&ec2.DescribeRouteTablesOutput{
- RouteTables: []*ec2.RouteTable{
- {
- RouteTableId: aws.String("rtb-02780c485f0be93c5"), // default_table
- VpcId: aws.String("vpc-09fe5abc2309ba49d"),
- Associations: []*ec2.RouteTableAssociation{
- {
- Main: aws.Bool(true),
- },
- },
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("10.1.1.0/24"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationCidrBlock: aws.String("10.1.2.0/24"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- {
- RouteTableId: aws.String(""), // table3
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- },
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.RouteTable{
- {
- RouteTableId: aws.String("rtb-096bdfb69309c54c3"), // table1
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("1.1.1.1/32"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationIpv6CidrBlock: aws.String("::/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- {
- RouteTableId: aws.String("rtb-0169b0937fd963ddc"), // table2
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("0.0.0.0/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationIpv6CidrBlock: aws.String("::/0"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- {
- RouteTableId: aws.String("rtb-02780c485f0be93c5"), // default_table
- VpcId: aws.String("vpc-09fe5abc2309ba49d"),
- Associations: []*ec2.RouteTableAssociation{
- {
- Main: aws.Bool(true),
- },
- },
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: aws.String("10.1.1.0/24"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- {
- DestinationCidrBlock: aws.String("10.1.2.0/24"),
- GatewayId: aws.String("igw-030e74f73bd67f21b"),
- },
- },
- },
- {
- RouteTableId: aws.String(""), // table3
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: aws.String("10.0.0.0/16"),
- Origin: aws.String("CreateRouteTable"), // default route
- },
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRouteTables()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllRouteTables()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.RouteTable{}, store.Get("ec2ListAllRouteTables"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllVPCs(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- wantVPC []*ec2.Vpc
- wantDefaultVPC []*ec2.Vpc
- wantErr error
- }{
- {
- name: "mixed default VPC and VPC",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeVpcsPages",
- &ec2.DescribeVpcsInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeVpcsOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeVpcsOutput{
- Vpcs: []*ec2.Vpc{
- {
- VpcId: aws.String("vpc-a8c5d4c1"),
- IsDefault: aws.Bool(true),
- },
- {
- VpcId: aws.String("vpc-0768e1fd0029e3fc3"),
- },
- {
- VpcId: aws.String("vpc-020b072316a95b97f"),
- IsDefault: aws.Bool(false),
- },
- },
- }, false)
- callback(&ec2.DescribeVpcsOutput{
- Vpcs: []*ec2.Vpc{
- {
- VpcId: aws.String("vpc-02c50896b59598761"),
- IsDefault: aws.Bool(false),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- wantVPC: []*ec2.Vpc{
- {
- VpcId: aws.String("vpc-0768e1fd0029e3fc3"),
- },
- {
- VpcId: aws.String("vpc-020b072316a95b97f"),
- IsDefault: aws.Bool(false),
- },
- {
- VpcId: aws.String("vpc-02c50896b59598761"),
- IsDefault: aws.Bool(false),
- },
- },
- wantDefaultVPC: []*ec2.Vpc{
- {
- VpcId: aws.String("vpc-a8c5d4c1"),
- IsDefault: aws.Bool(true),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- gotVPCs, gotDefaultVPCs, err := r.ListAllVPCs()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, cachedDefaultData, err := r.ListAllVPCs()
- assert.NoError(t, err)
- assert.Equal(t, gotVPCs, cachedData)
- assert.Equal(t, gotDefaultVPCs, cachedDefaultData)
- assert.IsType(t, []*ec2.Vpc{}, store.Get("ec2ListAllVPCs"))
- assert.IsType(t, []*ec2.Vpc{}, store.Get("ec2ListAllDefaultVPCs"))
- }
-
- changelog, err := diff.Diff(gotVPCs, tt.wantVPC)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- changelog, err = diff.Diff(gotDefaultVPCs, tt.wantDefaultVPC)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllSecurityGroups(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- wantSecurityGroup []*ec2.SecurityGroup
- wantDefaultSecurityGroup []*ec2.SecurityGroup
- wantErr error
- }{
- {
- name: "List with 1 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeSecurityGroupsPages",
- &ec2.DescribeSecurityGroupsInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeSecurityGroupsOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeSecurityGroupsOutput{
- SecurityGroups: []*ec2.SecurityGroup{
- {
- GroupId: aws.String("sg-0254c038e32f25530"),
- GroupName: aws.String("foo"),
- },
- {
- GroupId: aws.String("sg-9e0204ff"),
- GroupName: aws.String("default"),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- wantSecurityGroup: []*ec2.SecurityGroup{
- {
- GroupId: aws.String("sg-0254c038e32f25530"),
- GroupName: aws.String("foo"),
- },
- },
- wantDefaultSecurityGroup: []*ec2.SecurityGroup{
- {
- GroupId: aws.String("sg-9e0204ff"),
- GroupName: aws.String("default"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- gotSecurityGroups, gotDefaultSecurityGroups, err := r.ListAllSecurityGroups()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, cachedDefaultData, err := r.ListAllSecurityGroups()
- assert.NoError(t, err)
- assert.Equal(t, gotSecurityGroups, cachedData)
- assert.Equal(t, gotDefaultSecurityGroups, cachedDefaultData)
- assert.IsType(t, []*ec2.SecurityGroup{}, store.Get("ec2ListAllSecurityGroups"))
- assert.IsType(t, []*ec2.SecurityGroup{}, store.Get("ec2ListAllDefaultSecurityGroups"))
- }
-
- changelog, err := diff.Diff(gotSecurityGroups, tt.wantSecurityGroup)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- changelog, err = diff.Diff(gotDefaultSecurityGroups, tt.wantDefaultSecurityGroup)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ec2Repository_ListAllNetworkACLs(t *testing.T) {
-
- testErr := errors.New("test")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.NetworkAcl
- wantErr error
- }{
- {
- name: "List with 1 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeNetworkAclsPages",
- &ec2.DescribeNetworkAclsInput{},
- mock.MatchedBy(func(callback func(res *ec2.DescribeNetworkAclsOutput, lastPage bool) bool) bool {
- callback(&ec2.DescribeNetworkAclsOutput{
- NetworkAcls: []*ec2.NetworkAcl{
- {
- NetworkAclId: aws.String("id1"),
- },
- {
- NetworkAclId: aws.String("id2"),
- },
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ec2.NetworkAcl{
- {
- NetworkAclId: aws.String("id1"),
- },
- {
- NetworkAclId: aws.String("id2"),
- },
- },
- },
- {
- name: "List return error",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeNetworkAclsPages",
- &ec2.DescribeNetworkAclsInput{},
- mock.Anything,
- ).Return(testErr)
- },
- wantErr: testErr,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllNetworkACLs()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllNetworkACLs()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.NetworkAcl{}, store.Get("ec2ListAllNetworkACLs"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_ec2Repository_DescribeLaunchTemplates(t *testing.T) {
-
- testErr := errors.New("test")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2)
- want []*ec2.LaunchTemplate
- wantErr error
- }{
- {
- name: "List with 1 pages",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeLaunchTemplates",
- &ec2.DescribeLaunchTemplatesInput{},
- ).Return(&ec2.DescribeLaunchTemplatesOutput{
- LaunchTemplates: []*ec2.LaunchTemplate{
- {
- LaunchTemplateId: aws.String("id1"),
- },
- {
- LaunchTemplateId: aws.String("id2"),
- },
- },
- }, nil).Once()
- },
- want: []*ec2.LaunchTemplate{
- {
- LaunchTemplateId: aws.String("id1"),
- },
- {
- LaunchTemplateId: aws.String("id2"),
- },
- },
- },
- {
- name: "List return error",
- mocks: func(client *awstest.MockFakeEC2) {
- client.On("DescribeLaunchTemplates",
- &ec2.DescribeLaunchTemplatesInput{},
- ).Return(nil, testErr)
- },
- wantErr: testErr,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeEC2{}
- tt.mocks(client)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.DescribeLaunchTemplates()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.DescribeLaunchTemplates()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ec2.LaunchTemplate{}, store.Get("DescribeLaunchTemplates"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- client.AssertExpectations(t)
- })
- }
-}
-
-func Test_ec2Repository_IsEbsEncryptionEnabledByDefault(t *testing.T) {
-
- testErr := errors.New("test")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeEC2, store *cache.MockCache)
- want bool
- wantErr error
- }{
- {
- name: "test that encryption enabled by default",
- mocks: func(client *awstest.MockFakeEC2, store *cache.MockCache) {
- store.On("Get", "ec2IsEbsEncryptionEnabledByDefault").
- Return(nil).
- Once()
-
- client.On("GetEbsEncryptionByDefault",
- &ec2.GetEbsEncryptionByDefaultInput{},
- ).Return(&ec2.GetEbsEncryptionByDefaultOutput{
- EbsEncryptionByDefault: aws.Bool(true),
- }, nil).Once()
-
- store.On("Put", "ec2IsEbsEncryptionEnabledByDefault", true).
- Return(false).
- Once()
- },
- want: true,
- },
- {
- name: "test that encryption enabled by default (cached)",
- mocks: func(client *awstest.MockFakeEC2, store *cache.MockCache) {
- store.On("Get", "ec2IsEbsEncryptionEnabledByDefault").
- Return(false).
- Once()
- },
- want: false,
- },
- {
- name: "error while getting default encryption value",
- mocks: func(client *awstest.MockFakeEC2, store *cache.MockCache) {
- store.On("Get", "ec2IsEbsEncryptionEnabledByDefault").
- Return(nil).
- Once()
-
- client.On("GetEbsEncryptionByDefault",
- &ec2.GetEbsEncryptionByDefaultInput{},
- ).Return(nil, testErr).Once()
- },
- wantErr: testErr,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeEC2{}
- tt.mocks(client, store)
- r := &ec2Repository{
- client: client,
- cache: store,
- }
- got, err := r.IsEbsEncryptionEnabledByDefault()
-
- assert.Equal(t, tt.wantErr, err)
- assert.Equal(t, tt.want, got)
-
- client.AssertExpectations(t)
- store.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/ecr_repository.go b/enumeration/remote/aws/repository/ecr_repository.go
deleted file mode 100644
index d7b42563f..000000000
--- a/enumeration/remote/aws/repository/ecr_repository.go
+++ /dev/null
@@ -1,66 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/ecr"
- "github.com/aws/aws-sdk-go/service/ecr/ecriface"
-)
-
-type ECRRepository interface {
- ListAllRepositories() ([]*ecr.Repository, error)
- GetRepositoryPolicy(*ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error)
-}
-
-type ecrRepository struct {
- client ecriface.ECRAPI
- cache cache.Cache
-}
-
-func NewECRRepository(session *session.Session, c cache.Cache) *ecrRepository {
- return &ecrRepository{
- ecr.New(session),
- c,
- }
-}
-
-func (r *ecrRepository) ListAllRepositories() ([]*ecr.Repository, error) {
- if v := r.cache.Get("ecrListAllRepositories"); v != nil {
- return v.([]*ecr.Repository), nil
- }
-
- var repositories []*ecr.Repository
- input := &ecr.DescribeRepositoriesInput{}
- err := r.client.DescribeRepositoriesPages(input, func(res *ecr.DescribeRepositoriesOutput, lastPage bool) bool {
- repositories = append(repositories, res.Repositories...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("ecrListAllRepositories", repositories)
- return repositories, nil
-}
-
-func (r *ecrRepository) GetRepositoryPolicy(repo *ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error) {
- cacheKey := fmt.Sprintf("ecrListAllRepositoriesGetRepositoryPolicy_%s_%s", *repo.RegistryId, *repo.RepositoryName)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.(*ecr.GetRepositoryPolicyOutput), nil
- }
-
- var repositoryPolicyInput *ecr.GetRepositoryPolicyInput = &ecr.GetRepositoryPolicyInput{
- RegistryId: repo.RegistryId,
- RepositoryName: repo.RepositoryName,
- }
-
- repoOutput, err := r.client.GetRepositoryPolicy(repositoryPolicyInput)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, repoOutput)
- return repoOutput, nil
-}
diff --git a/enumeration/remote/aws/repository/ecr_repository_test.go b/enumeration/remote/aws/repository/ecr_repository_test.go
deleted file mode 100644
index e36894e86..000000000
--- a/enumeration/remote/aws/repository/ecr_repository_test.go
+++ /dev/null
@@ -1,171 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/service/ecr"
- "github.com/pkg/errors"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/aws/aws-sdk-go/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_ecrRepository_ListAllRepositories(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeECR)
- want []*ecr.Repository
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeECR) {
- client.On("DescribeRepositoriesPages",
- &ecr.DescribeRepositoriesInput{},
- mock.MatchedBy(func(callback func(res *ecr.DescribeRepositoriesOutput, lastPage bool) bool) bool {
- callback(&ecr.DescribeRepositoriesOutput{
- Repositories: []*ecr.Repository{
- {RepositoryName: aws.String("1")},
- {RepositoryName: aws.String("2")},
- {RepositoryName: aws.String("3")},
- },
- }, false)
- callback(&ecr.DescribeRepositoriesOutput{
- Repositories: []*ecr.Repository{
- {RepositoryName: aws.String("4")},
- {RepositoryName: aws.String("5")},
- {RepositoryName: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*ecr.Repository{
- {RepositoryName: aws.String("1")},
- {RepositoryName: aws.String("2")},
- {RepositoryName: aws.String("3")},
- {RepositoryName: aws.String("4")},
- {RepositoryName: aws.String("5")},
- {RepositoryName: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeECR{}
- tt.mocks(&client)
- r := &ecrRepository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllRepositories()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllRepositories()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*ecr.Repository{}, store.Get("ecrListAllRepositories"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ecrRepository_GetRepositoryPolicy(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeECR)
- want *ecr.GetRepositoryPolicyOutput
- wantErr error
- }{
- {
- name: "Get repository policy",
- mocks: func(client *awstest.MockFakeECR) {
- client.On("GetRepositoryPolicy",
- &ecr.GetRepositoryPolicyInput{
- RegistryId: aws.String("1"),
- RepositoryName: aws.String("2"),
- },
- ).Return(&ecr.GetRepositoryPolicyOutput{
- RegistryId: aws.String("1"),
- RepositoryName: aws.String("2"),
- }, nil).Once()
- },
- want: &ecr.GetRepositoryPolicyOutput{
- RegistryId: aws.String("1"),
- RepositoryName: aws.String("2"),
- },
- },
- {
- name: "Get repository policy error",
- mocks: func(client *awstest.MockFakeECR) {
- client.On("GetRepositoryPolicy",
- &ecr.GetRepositoryPolicyInput{
- RegistryId: aws.String("1"),
- RepositoryName: aws.String("2"),
- },
- ).Return(nil, dummyError).Once()
- },
- wantErr: dummyError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeECR{}
- tt.mocks(&client)
- r := &ecrRepository{
- client: &client,
- cache: store,
- }
-
- repo := &ecr.Repository{
- RegistryId: aws.String("1"),
- RepositoryName: aws.String("2"),
- }
-
- got, err := r.GetRepositoryPolicy(repo)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.GetRepositoryPolicy(repo)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- cacheKey := fmt.Sprintf("ecrListAllRepositoriesGetRepositoryPolicy_%s_%s", *repo.RegistryId, *repo.RepositoryName)
- assert.IsType(t, &ecr.GetRepositoryPolicyOutput{}, store.Get(cacheKey))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/elasticache_repository.go b/enumeration/remote/aws/repository/elasticache_repository.go
deleted file mode 100644
index 9fc991aec..000000000
--- a/enumeration/remote/aws/repository/elasticache_repository.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/elasticache"
- "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type ElastiCacheRepository interface {
- ListAllCacheClusters() ([]*elasticache.CacheCluster, error)
-}
-
-type elasticacheRepository struct {
- client elasticacheiface.ElastiCacheAPI
- cache cache.Cache
-}
-
-func NewElastiCacheRepository(session *session.Session, c cache.Cache) *elasticacheRepository {
- return &elasticacheRepository{
- elasticache.New(session),
- c,
- }
-}
-
-func (r *elasticacheRepository) ListAllCacheClusters() ([]*elasticache.CacheCluster, error) {
- if v := r.cache.Get("elasticacheListAllCacheClusters"); v != nil {
- return v.([]*elasticache.CacheCluster), nil
- }
-
- var clusters []*elasticache.CacheCluster
- input := elasticache.DescribeCacheClustersInput{}
- err := r.client.DescribeCacheClustersPages(&input,
- func(resp *elasticache.DescribeCacheClustersOutput, lastPage bool) bool {
- clusters = append(clusters, resp.CacheClusters...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("elasticacheListAllCacheClusters", clusters)
- return clusters, nil
-}
diff --git a/enumeration/remote/aws/repository/elasticache_repository_test.go b/enumeration/remote/aws/repository/elasticache_repository_test.go
deleted file mode 100644
index 110bff123..000000000
--- a/enumeration/remote/aws/repository/elasticache_repository_test.go
+++ /dev/null
@@ -1,96 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/elasticache"
- "github.com/pkg/errors"
- "github.com/r3labs/diff/v2"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_elasticacheRepository_ListAllCacheClusters(t *testing.T) {
- clusters := []*elasticache.CacheCluster{
- {CacheClusterId: aws.String("cluster1")},
- {CacheClusterId: aws.String("cluster2")},
- {CacheClusterId: aws.String("cluster3")},
- {CacheClusterId: aws.String("cluster4")},
- {CacheClusterId: aws.String("cluster5")},
- {CacheClusterId: aws.String("cluster6")},
- }
-
- remoteError := errors.New("remote error")
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeElastiCache, store *cache.MockCache)
- want []*elasticache.CacheCluster
- wantErr error
- }{
- {
- name: "List cache clusters",
- mocks: func(client *awstest.MockFakeElastiCache, store *cache.MockCache) {
- client.On("DescribeCacheClustersPages",
- &elasticache.DescribeCacheClustersInput{},
- mock.MatchedBy(func(callback func(res *elasticache.DescribeCacheClustersOutput, lastPage bool) bool) bool {
- callback(&elasticache.DescribeCacheClustersOutput{
- CacheClusters: clusters[:3],
- }, false)
- callback(&elasticache.DescribeCacheClustersOutput{
- CacheClusters: clusters[3:],
- }, true)
- return true
- })).Return(nil).Once()
- store.On("Get", "elasticacheListAllCacheClusters").Return(nil).Times(1)
- store.On("Put", "elasticacheListAllCacheClusters", clusters).Return(false).Times(1)
- },
- want: clusters,
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeElastiCache, store *cache.MockCache) {
- store.On("Get", "elasticacheListAllCacheClusters").Return(clusters).Times(1)
- },
- want: clusters,
- },
- {
- name: "should return remote error",
- mocks: func(client *awstest.MockFakeElastiCache, store *cache.MockCache) {
- client.On("DescribeCacheClustersPages",
- &elasticache.DescribeCacheClustersInput{},
- mock.AnythingOfType("func(*elasticache.DescribeCacheClustersOutput, bool) bool")).Return(remoteError).Once()
- store.On("Get", "elasticacheListAllCacheClusters").Return(nil).Times(1)
- },
- wantErr: remoteError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeElastiCache{}
- tt.mocks(client, store)
- r := &elasticacheRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllCacheClusters()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- store.AssertExpectations(t)
- client.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/elb_repository.go b/enumeration/remote/aws/repository/elb_repository.go
deleted file mode 100644
index 46c05cbaf..000000000
--- a/enumeration/remote/aws/repository/elb_repository.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/elb"
- "github.com/aws/aws-sdk-go/service/elb/elbiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type ELBRepository interface {
- ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error)
-}
-
-type elbRepository struct {
- client elbiface.ELBAPI
- cache cache.Cache
-}
-
-func NewELBRepository(session *session.Session, c cache.Cache) *elbRepository {
- return &elbRepository{
- elb.New(session),
- c,
- }
-}
-
-func (r *elbRepository) ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error) {
- if v := r.cache.Get("elbListAllLoadBalancers"); v != nil {
- return v.([]*elb.LoadBalancerDescription), nil
- }
-
- results := make([]*elb.LoadBalancerDescription, 0)
- input := elb.DescribeLoadBalancersInput{}
- err := r.client.DescribeLoadBalancersPages(&input, func(res *elb.DescribeLoadBalancersOutput, lastPage bool) bool {
- results = append(results, res.LoadBalancerDescriptions...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("elbListAllLoadBalancers", results)
- return results, nil
-}
diff --git a/enumeration/remote/aws/repository/elb_repository_test.go b/enumeration/remote/aws/repository/elb_repository_test.go
deleted file mode 100644
index b21b06e0d..000000000
--- a/enumeration/remote/aws/repository/elb_repository_test.go
+++ /dev/null
@@ -1,119 +0,0 @@
-package repository
-
-import (
- "errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/elb"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_ELBRepository_ListAllLoadBalancers(t *testing.T) {
- dummyErr := errors.New("dummy error")
-
- results := []*elb.LoadBalancerDescription{
- {
- LoadBalancerName: aws.String("test-lb-1"),
- },
- {
- LoadBalancerName: aws.String("test-lb-2"),
- },
- }
-
- tests := []struct {
- name string
- mocks func(*awstest.MockFakeELB, *cache.MockCache)
- want []*elb.LoadBalancerDescription
- wantErr error
- }{
- {
- name: "List load balancers with multiple pages",
- mocks: func(client *awstest.MockFakeELB, store *cache.MockCache) {
- store.On("Get", "elbListAllLoadBalancers").Return(nil).Once()
-
- client.On("DescribeLoadBalancersPages",
- &elb.DescribeLoadBalancersInput{},
- mock.MatchedBy(func(callback func(res *elb.DescribeLoadBalancersOutput, lastPage bool) bool) bool {
- callback(&elb.DescribeLoadBalancersOutput{LoadBalancerDescriptions: []*elb.LoadBalancerDescription{
- results[0],
- }}, false)
- callback(&elb.DescribeLoadBalancersOutput{LoadBalancerDescriptions: []*elb.LoadBalancerDescription{
- results[1],
- }}, true)
- return true
- })).Return(nil).Once()
-
- store.On("Put", "elbListAllLoadBalancers", results).Return(false).Once()
- },
- want: []*elb.LoadBalancerDescription{
- {
- LoadBalancerName: aws.String("test-lb-1"),
- },
- {
- LoadBalancerName: aws.String("test-lb-2"),
- },
- },
- },
- {
- name: "List load balancers with multiple pages (cache hit)",
- mocks: func(client *awstest.MockFakeELB, store *cache.MockCache) {
- store.On("Get", "elbListAllLoadBalancers").Return(results).Once()
- },
- want: []*elb.LoadBalancerDescription{
- {
- LoadBalancerName: aws.String("test-lb-1"),
- },
- {
- LoadBalancerName: aws.String("test-lb-2"),
- },
- },
- },
- {
- name: "Error listing load balancers",
- mocks: func(client *awstest.MockFakeELB, store *cache.MockCache) {
- store.On("Get", "elbListAllLoadBalancers").Return(nil).Once()
-
- client.On("DescribeLoadBalancersPages",
- &elb.DescribeLoadBalancersInput{},
- mock.MatchedBy(func(callback func(res *elb.DescribeLoadBalancersOutput, lastPage bool) bool) bool {
- callback(&elb.DescribeLoadBalancersOutput{LoadBalancerDescriptions: []*elb.LoadBalancerDescription{}}, true)
- return true
- })).Return(dummyErr).Once()
- },
- wantErr: dummyErr,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeELB{}
- tt.mocks(client, store)
- r := &elbRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllLoadBalancers()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
-
- client.AssertExpectations(t)
- store.AssertExpectations(t)
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/elbv2_repository.go b/enumeration/remote/aws/repository/elbv2_repository.go
deleted file mode 100644
index d6a001e68..000000000
--- a/enumeration/remote/aws/repository/elbv2_repository.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package repository
-
-import (
- "fmt"
-
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/elbv2"
- "github.com/aws/aws-sdk-go/service/elbv2/elbv2iface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type ELBV2Repository interface {
- ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error)
- ListAllLoadBalancerListeners(string) ([]*elbv2.Listener, error)
-}
-
-type elbv2Repository struct {
- client elbv2iface.ELBV2API
- cache cache.Cache
-}
-
-func NewELBV2Repository(session *session.Session, c cache.Cache) *elbv2Repository {
- return &elbv2Repository{
- elbv2.New(session),
- c,
- }
-}
-
-func (r *elbv2Repository) ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error) {
- cacheKey := "elbv2ListAllLoadBalancers"
- defer r.cache.Unlock(cacheKey)
- if v := r.cache.GetAndLock(cacheKey); v != nil {
- return v.([]*elbv2.LoadBalancer), nil
- }
-
- results := make([]*elbv2.LoadBalancer, 0)
- input := &elbv2.DescribeLoadBalancersInput{}
- err := r.client.DescribeLoadBalancersPages(input, func(res *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool {
- results = append(results, res.LoadBalancers...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, results)
- return results, err
-}
-
-func (r *elbv2Repository) ListAllLoadBalancerListeners(loadBalancerArn string) ([]*elbv2.Listener, error) {
- cacheKey := fmt.Sprintf("elbv2ListAllLoadBalancerListeners_%s", loadBalancerArn)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*elbv2.Listener), nil
- }
-
- results := make([]*elbv2.Listener, 0)
- input := &elbv2.DescribeListenersInput{
- LoadBalancerArn: &loadBalancerArn,
- }
- err := r.client.DescribeListenersPages(input, func(res *elbv2.DescribeListenersOutput, lastPage bool) bool {
- results = append(results, res.Listeners...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, results)
- return results, err
-}
diff --git a/enumeration/remote/aws/repository/elbv2_repository_test.go b/enumeration/remote/aws/repository/elbv2_repository_test.go
deleted file mode 100644
index bc615fe7b..000000000
--- a/enumeration/remote/aws/repository/elbv2_repository_test.go
+++ /dev/null
@@ -1,312 +0,0 @@
-package repository
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/elbv2"
- "github.com/pkg/errors"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_ELBV2Repository_ListAllLoadBalancers(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- tests := []struct {
- name string
- mocks func(*awstest.MockFakeELBV2, *cache.MockCache)
- want []*elbv2.LoadBalancer
- wantErr error
- }{
- {
- name: "list load balancers",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- results := &elbv2.DescribeLoadBalancersOutput{
- LoadBalancers: []*elbv2.LoadBalancer{
- {
- LoadBalancerArn: aws.String("test-1"),
- LoadBalancerName: aws.String("test-1"),
- },
- {
- LoadBalancerArn: aws.String("test-2"),
- LoadBalancerName: aws.String("test-2"),
- },
- },
- }
-
- store.On("GetAndLock", "elbv2ListAllLoadBalancers").Return(nil).Once()
- store.On("Unlock", "elbv2ListAllLoadBalancers").Return().Once()
-
- client.On("DescribeLoadBalancersPages",
- &elbv2.DescribeLoadBalancersInput{},
- mock.MatchedBy(func(callback func(res *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool) bool {
- callback(&elbv2.DescribeLoadBalancersOutput{LoadBalancers: []*elbv2.LoadBalancer{
- results.LoadBalancers[0],
- }}, false)
- callback(&elbv2.DescribeLoadBalancersOutput{LoadBalancers: []*elbv2.LoadBalancer{
- results.LoadBalancers[1],
- }}, true)
- return true
- })).Return(nil).Once()
-
- store.On("Put", "elbv2ListAllLoadBalancers", results.LoadBalancers).Return(false).Once()
- },
- want: []*elbv2.LoadBalancer{
- {
- LoadBalancerArn: aws.String("test-1"),
- LoadBalancerName: aws.String("test-1"),
- },
- {
- LoadBalancerArn: aws.String("test-2"),
- LoadBalancerName: aws.String("test-2"),
- },
- },
- },
- {
- name: "list load balancers from cache",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- output := &elbv2.DescribeLoadBalancersOutput{
- LoadBalancers: []*elbv2.LoadBalancer{
- {
- LoadBalancerArn: aws.String("test-1"),
- LoadBalancerName: aws.String("test-1"),
- },
- },
- }
-
- store.On("GetAndLock", "elbv2ListAllLoadBalancers").Return(output.LoadBalancers).Once()
- store.On("Unlock", "elbv2ListAllLoadBalancers").Return().Once()
- },
- want: []*elbv2.LoadBalancer{
- {
- LoadBalancerArn: aws.String("test-1"),
- LoadBalancerName: aws.String("test-1"),
- },
- },
- },
- {
- name: "error listing load balancers",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- store.On("GetAndLock", "elbv2ListAllLoadBalancers").Return(nil).Once()
- store.On("Unlock", "elbv2ListAllLoadBalancers").Return().Once()
-
- client.On("DescribeLoadBalancersPages",
- &elbv2.DescribeLoadBalancersInput{},
- mock.MatchedBy(func(callback func(res *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool) bool {
- callback(&elbv2.DescribeLoadBalancersOutput{LoadBalancers: []*elbv2.LoadBalancer{}}, true)
- return true
- })).Return(dummyError).Once()
- },
- wantErr: dummyError,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeELBV2{}
- tt.mocks(client, store)
- r := &elbv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllLoadBalancers()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_ELBV2Repository_ListAllLoadBalancerListeners(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- type call struct {
- loadBalancerArn string
- mocks func(*awstest.MockFakeELBV2, *cache.MockCache)
- want []*elbv2.Listener
- wantErr error
- }
-
- tests := []struct {
- name string
- calls []call
- }{
- {
- name: "list load balancer listeners",
- calls: []call{
- {
- loadBalancerArn: "test-lb",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- results := &elbv2.DescribeListenersOutput{
- Listeners: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener-1"),
- },
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener-2"),
- },
- },
- }
-
- store.On("Get", "elbv2ListAllLoadBalancerListeners_test-lb").Return(nil).Once()
-
- client.On("DescribeListenersPages",
- &elbv2.DescribeListenersInput{LoadBalancerArn: aws.String("test-lb")},
- mock.MatchedBy(func(callback func(res *elbv2.DescribeListenersOutput, lastPage bool) bool) bool {
- callback(&elbv2.DescribeListenersOutput{Listeners: []*elbv2.Listener{
- results.Listeners[0],
- }}, false)
- callback(&elbv2.DescribeListenersOutput{Listeners: []*elbv2.Listener{
- results.Listeners[1],
- }}, true)
- return true
- })).Return(nil).Once()
-
- store.On("Put", "elbv2ListAllLoadBalancerListeners_test-lb", results.Listeners).Return(false).Once()
- },
- want: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener-1"),
- },
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener-2"),
- },
- },
- },
- },
- },
- {
- name: "list load balancer listeners from cache",
- calls: []call{
- {
- loadBalancerArn: "test-lb",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- output := &elbv2.DescribeListenersOutput{
- Listeners: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener"),
- },
- },
- }
-
- store.On("Get", "elbv2ListAllLoadBalancerListeners_test-lb").Return(output.Listeners).Once()
- },
- want: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb"),
- ListenerArn: aws.String("test-lb-listener"),
- },
- },
- },
- },
- },
- {
- name: "list load balancer listeners from multiple load balancers",
- calls: []call{
- {
- loadBalancerArn: "test-lb-1",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- output := &elbv2.DescribeListenersOutput{
- Listeners: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb-1"),
- ListenerArn: aws.String("test-lb-1-listener"),
- },
- },
- }
-
- store.On("Get", "elbv2ListAllLoadBalancerListeners_test-lb-1").Return(output.Listeners).Once()
- },
- want: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb-1"),
- ListenerArn: aws.String("test-lb-1-listener"),
- },
- },
- },
- {
- loadBalancerArn: "test-lb-2",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- output := &elbv2.DescribeListenersOutput{
- Listeners: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb-2"),
- ListenerArn: aws.String("test-lb-2-listener"),
- },
- },
- }
-
- store.On("Get", "elbv2ListAllLoadBalancerListeners_test-lb-2").Return(output.Listeners).Once()
- },
- want: []*elbv2.Listener{
- {
- LoadBalancerArn: aws.String("test-lb-2"),
- ListenerArn: aws.String("test-lb-2-listener"),
- },
- },
- },
- },
- },
- {
- name: "error listing load balancer listeners",
- calls: []call{
- {
- loadBalancerArn: "test-lb",
- mocks: func(client *awstest.MockFakeELBV2, store *cache.MockCache) {
- store.On("Get", "elbv2ListAllLoadBalancerListeners_test-lb").Return(nil).Once()
-
- client.On("DescribeListenersPages",
- &elbv2.DescribeListenersInput{LoadBalancerArn: aws.String("test-lb")},
- mock.MatchedBy(func(callback func(res *elbv2.DescribeListenersOutput, lastPage bool) bool) bool {
- callback(&elbv2.DescribeListenersOutput{Listeners: []*elbv2.Listener{}}, true)
- return true
- })).Return(dummyError).Once()
- },
- wantErr: dummyError,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeELBV2{}
-
- for _, call := range tt.calls {
- call.mocks(client, store)
- r := &elbv2Repository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllLoadBalancerListeners(call.loadBalancerArn)
- assert.Equal(t, call.wantErr, err)
-
- changelog, err := diff.Diff(got, call.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/iam_repository.go b/enumeration/remote/aws/repository/iam_repository.go
deleted file mode 100644
index e7882fe92..000000000
--- a/enumeration/remote/aws/repository/iam_repository.go
+++ /dev/null
@@ -1,367 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "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 IAMRepository interface {
- ListAllAccessKeys([]*iam.User) ([]*iam.AccessKeyMetadata, error)
- ListAllUsers() ([]*iam.User, error)
- ListAllPolicies() ([]*iam.Policy, error)
- ListAllRoles() ([]*iam.Role, error)
- ListAllRolePolicyAttachments([]*iam.Role) ([]*AttachedRolePolicy, error)
- ListAllRolePolicies([]*iam.Role) ([]RolePolicy, error)
- ListAllUserPolicyAttachments([]*iam.User) ([]*AttachedUserPolicy, error)
- ListAllUserPolicies([]*iam.User) ([]string, error)
- ListAllGroups() ([]*iam.Group, error)
- ListAllGroupPolicies([]*iam.Group) ([]string, error)
- ListAllGroupPolicyAttachments([]*iam.Group) ([]*AttachedGroupPolicy, error)
-}
-
-type iamRepository struct {
- client iamiface.IAMAPI
- cache cache.Cache
-}
-
-func NewIAMRepository(session *session.Session, c cache.Cache) *iamRepository {
- return &iamRepository{
- iam.New(session),
- c,
- }
-}
-
-func (r *iamRepository) ListAllAccessKeys(users []*iam.User) ([]*iam.AccessKeyMetadata, error) {
- var resources []*iam.AccessKeyMetadata
- for _, user := range users {
- cacheKey := fmt.Sprintf("iamListAllAccessKeys_user_%s", *user.UserName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]*iam.AccessKeyMetadata)...)
- continue
- }
-
- userResources := make([]*iam.AccessKeyMetadata, 0)
- input := &iam.ListAccessKeysInput{
- UserName: user.UserName,
- }
- err := r.client.ListAccessKeysPages(input, func(res *iam.ListAccessKeysOutput, lastPage bool) bool {
- userResources = append(userResources, res.AccessKeyMetadata...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, userResources)
- resources = append(resources, userResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllUsers() ([]*iam.User, error) {
-
- cacheKey := "iamListAllUsers"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*iam.User), nil
- }
-
- var resources []*iam.User
- input := &iam.ListUsersInput{}
- err := r.client.ListUsersPages(input, func(res *iam.ListUsersOutput, lastPage bool) bool {
- resources = append(resources, res.Users...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources)
- return resources, nil
-}
-
-func (r *iamRepository) ListAllPolicies() ([]*iam.Policy, error) {
- if v := r.cache.Get("iamListAllPolicies"); v != nil {
- return v.([]*iam.Policy), nil
- }
-
- var resources []*iam.Policy
- input := &iam.ListPoliciesInput{
- Scope: aws.String(iam.PolicyScopeTypeLocal),
- }
- err := r.client.ListPoliciesPages(input, func(res *iam.ListPoliciesOutput, lastPage bool) bool {
- resources = append(resources, res.Policies...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("iamListAllPolicies", resources)
- return resources, nil
-}
-
-func (r *iamRepository) ListAllRoles() ([]*iam.Role, error) {
- cacheKey := "iamListAllRoles"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*iam.Role), nil
- }
-
- var resources []*iam.Role
- input := &iam.ListRolesInput{}
- err := r.client.ListRolesPages(input, func(res *iam.ListRolesOutput, lastPage bool) bool {
- resources = append(resources, res.Roles...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources)
- return resources, nil
-}
-
-func (r *iamRepository) ListAllRolePolicyAttachments(roles []*iam.Role) ([]*AttachedRolePolicy, error) {
- var resources []*AttachedRolePolicy
- for _, role := range roles {
- cacheKey := fmt.Sprintf("iamListAllRolePolicyAttachments_role_%s", *role.RoleName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]*AttachedRolePolicy)...)
- continue
- }
-
- roleResources := make([]*AttachedRolePolicy, 0)
- input := &iam.ListAttachedRolePoliciesInput{
- RoleName: role.RoleName,
- }
- err := r.client.ListAttachedRolePoliciesPages(input, func(res *iam.ListAttachedRolePoliciesOutput, lastPage bool) bool {
- for _, policy := range res.AttachedPolicies {
- p := *policy
- roleResources = append(roleResources, &AttachedRolePolicy{
- AttachedPolicy: p,
- RoleName: *input.RoleName,
- })
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, roleResources)
- resources = append(resources, roleResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllRolePolicies(roles []*iam.Role) ([]RolePolicy, error) {
- var resources []RolePolicy
- for _, role := range roles {
- cacheKey := fmt.Sprintf("iamListAllRolePolicies_role_%s", *role.RoleName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]RolePolicy)...)
- continue
- }
-
- roleResources := make([]RolePolicy, 0)
- input := &iam.ListRolePoliciesInput{
- RoleName: role.RoleName,
- }
- err := r.client.ListRolePoliciesPages(input, func(res *iam.ListRolePoliciesOutput, lastPage bool) bool {
- for _, policy := range res.PolicyNames {
- roleResources = append(roleResources, RolePolicy{*policy, *input.RoleName})
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, roleResources)
- resources = append(resources, roleResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllUserPolicyAttachments(users []*iam.User) ([]*AttachedUserPolicy, error) {
- var resources []*AttachedUserPolicy
- for _, user := range users {
- cacheKey := fmt.Sprintf("iamListAllUserPolicyAttachments_user_%s", *user.UserName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]*AttachedUserPolicy)...)
- continue
- }
-
- userResources := make([]*AttachedUserPolicy, 0)
- input := &iam.ListAttachedUserPoliciesInput{
- UserName: user.UserName,
- }
- err := r.client.ListAttachedUserPoliciesPages(input, func(res *iam.ListAttachedUserPoliciesOutput, lastPage bool) bool {
- for _, policy := range res.AttachedPolicies {
- p := *policy
- userResources = append(userResources, &AttachedUserPolicy{
- AttachedPolicy: p,
- UserName: *input.UserName,
- })
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, userResources)
- resources = append(resources, userResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllUserPolicies(users []*iam.User) ([]string, error) {
- var resources []string
- for _, user := range users {
- cacheKey := fmt.Sprintf("iamListAllUserPolicies_user_%s", *user.UserName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]string)...)
- continue
- }
-
- userResources := make([]string, 0)
- input := &iam.ListUserPoliciesInput{
- UserName: user.UserName,
- }
- err := r.client.ListUserPoliciesPages(input, func(res *iam.ListUserPoliciesOutput, lastPage bool) bool {
- for _, polName := range res.PolicyNames {
- userResources = append(userResources, fmt.Sprintf("%s:%s", *input.UserName, *polName))
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, userResources)
- resources = append(resources, userResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllGroups() ([]*iam.Group, error) {
-
- cacheKey := "iamListAllGroups"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
-
- if v != nil {
- return v.([]*iam.Group), nil
- }
-
- var resources []*iam.Group
- input := &iam.ListGroupsInput{}
- err := r.client.ListGroupsPages(input, func(res *iam.ListGroupsOutput, lastPage bool) bool {
- resources = append(resources, res.Groups...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, resources)
- return resources, nil
-}
-
-func (r *iamRepository) ListAllGroupPolicies(groups []*iam.Group) ([]string, error) {
- var resources []string
- for _, group := range groups {
- cacheKey := fmt.Sprintf("iamListAllGroupPolicies_group_%s", *group.GroupName)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]string)...)
- continue
- }
-
- groupResources := make([]string, 0)
- input := &iam.ListGroupPoliciesInput{
- GroupName: group.GroupName,
- }
- err := r.client.ListGroupPoliciesPages(input, func(res *iam.ListGroupPoliciesOutput, lastPage bool) bool {
- for _, polName := range res.PolicyNames {
- groupResources = append(groupResources, fmt.Sprintf("%s:%s", *input.GroupName, *polName))
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, groupResources)
- resources = append(resources, groupResources...)
- }
-
- return resources, nil
-}
-
-func (r *iamRepository) ListAllGroupPolicyAttachments(groups []*iam.Group) ([]*AttachedGroupPolicy, error) {
- var resources []*AttachedGroupPolicy
- for _, group := range groups {
- cacheKey := fmt.Sprintf("iamListAllGroupPolicyAttachments_%s", *group.GroupId)
- if v := r.cache.Get(cacheKey); v != nil {
- resources = append(resources, v.([]*AttachedGroupPolicy)...)
- continue
- }
-
- attachedGroupPolicies := make([]*AttachedGroupPolicy, 0)
- input := &iam.ListAttachedGroupPoliciesInput{
- GroupName: group.GroupName,
- }
- err := r.client.ListAttachedGroupPoliciesPages(input, func(res *iam.ListAttachedGroupPoliciesOutput, lastPage bool) bool {
- for _, policy := range res.AttachedPolicies {
- p := *policy
- attachedGroupPolicies = append(attachedGroupPolicies, &AttachedGroupPolicy{
- AttachedPolicy: p,
- GroupName: *input.GroupName,
- })
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, attachedGroupPolicies)
- resources = append(resources, attachedGroupPolicies...)
- }
-
- return resources, nil
-}
-
-type AttachedUserPolicy struct {
- iam.AttachedPolicy
- UserName string
-}
-
-type AttachedRolePolicy struct {
- iam.AttachedPolicy
- RoleName string
-}
-
-type AttachedGroupPolicy struct {
- iam.AttachedPolicy
- GroupName string
-}
-
-type RolePolicy struct {
- Policy string
- RoleName string
-}
diff --git a/enumeration/remote/aws/repository/iam_repository_test.go b/enumeration/remote/aws/repository/iam_repository_test.go
deleted file mode 100644
index 8d2ad6e21..000000000
--- a/enumeration/remote/aws/repository/iam_repository_test.go
+++ /dev/null
@@ -1,1100 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/iam"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_IAMRepository_ListAllAccessKeys(t *testing.T) {
- tests := []struct {
- name string
- users []*iam.User
- mocks func(client *awstest.MockFakeIAM)
- want []*iam.AccessKeyMetadata
- wantErr error
- }{
- {
- name: "List only access keys with multiple pages",
- users: []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- {
- UserName: aws.String("test-driftctl2"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListAccessKeysPages",
- &iam.ListAccessKeysInput{
- UserName: aws.String("test-driftctl"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAccessKeysOutput, lastPage bool) bool) bool {
- callback(&iam.ListAccessKeysOutput{AccessKeyMetadata: []*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD223VWU32A"),
- UserName: aws.String("test-driftctl"),
- },
- }}, false)
- callback(&iam.ListAccessKeysOutput{AccessKeyMetadata: []*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2QYI36UZP"),
- UserName: aws.String("test-driftctl"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- client.On("ListAccessKeysPages",
- &iam.ListAccessKeysInput{
- UserName: aws.String("test-driftctl2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAccessKeysOutput, lastPage bool) bool) bool {
- callback(&iam.ListAccessKeysOutput{AccessKeyMetadata: []*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD26EJME25D"),
- UserName: aws.String("test-driftctl2"),
- },
- }}, false)
- callback(&iam.ListAccessKeysOutput{AccessKeyMetadata: []*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2SWDFVVMG"),
- UserName: aws.String("test-driftctl2"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD223VWU32A"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2QYI36UZP"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD223VWU32A"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2QYI36UZP"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD26EJME25D"),
- UserName: aws.String("test-driftctl2"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2SWDFVVMG"),
- UserName: aws.String("test-driftctl2"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllAccessKeys(tt.users)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllAccessKeys(tt.users)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, user := range tt.users {
- assert.IsType(t, []*iam.AccessKeyMetadata{}, store.Get(fmt.Sprintf("iamListAllAccessKeys_user_%s", *user.UserName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllUsers(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeIAM)
- want []*iam.User
- wantErr error
- }{
- {
- name: "List only users with multiple pages",
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListUsersPages",
- &iam.ListUsersInput{},
- mock.MatchedBy(func(callback func(res *iam.ListUsersOutput, lastPage bool) bool) bool {
- callback(&iam.ListUsersOutput{Users: []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- {
- UserName: aws.String("test-driftctl2"),
- },
- }}, false)
- callback(&iam.ListUsersOutput{Users: []*iam.User{
- {
- UserName: aws.String("test-driftctl3"),
- },
- {
- UserName: aws.String("test-driftctl4"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- {
- UserName: aws.String("test-driftctl2"),
- },
- {
- UserName: aws.String("test-driftctl3"),
- },
- {
- UserName: aws.String("test-driftctl4"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllUsers()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllUsers()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*iam.User{}, store.Get("iamListAllUsers"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllPolicies(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeIAM)
- want []*iam.Policy
- wantErr error
- }{
- {
- name: "List only policies with multiple pages",
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListPoliciesPages",
- &iam.ListPoliciesInput{Scope: aws.String(iam.PolicyScopeTypeLocal)},
- mock.MatchedBy(func(callback func(res *iam.ListPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListPoliciesOutput{Policies: []*iam.Policy{
- {
- PolicyName: aws.String("test-driftctl"),
- },
- {
- PolicyName: aws.String("test-driftctl2"),
- },
- }}, false)
- callback(&iam.ListPoliciesOutput{Policies: []*iam.Policy{
- {
- PolicyName: aws.String("test-driftctl3"),
- },
- {
- PolicyName: aws.String("test-driftctl4"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []*iam.Policy{
- {
- PolicyName: aws.String("test-driftctl"),
- },
- {
- PolicyName: aws.String("test-driftctl2"),
- },
- {
- PolicyName: aws.String("test-driftctl3"),
- },
- {
- PolicyName: aws.String("test-driftctl4"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllPolicies()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllPolicies()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*iam.Policy{}, store.Get("iamListAllPolicies"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllRoles(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeIAM)
- want []*iam.Role
- wantErr error
- }{
- {
- name: "List only roles with multiple pages",
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListRolesPages",
- &iam.ListRolesInput{},
- mock.MatchedBy(func(callback func(res *iam.ListRolesOutput, lastPage bool) bool) bool {
- callback(&iam.ListRolesOutput{Roles: []*iam.Role{
- {
- RoleName: aws.String("test-driftctl"),
- },
- {
- RoleName: aws.String("test-driftctl2"),
- },
- }}, false)
- callback(&iam.ListRolesOutput{Roles: []*iam.Role{
- {
- RoleName: aws.String("test-driftctl3"),
- },
- {
- RoleName: aws.String("test-driftctl4"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []*iam.Role{
- {
- RoleName: aws.String("test-driftctl"),
- },
- {
- RoleName: aws.String("test-driftctl2"),
- },
- {
- RoleName: aws.String("test-driftctl3"),
- },
- {
- RoleName: aws.String("test-driftctl4"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRoles()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllRoles()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*iam.Role{}, store.Get("iamListAllRoles"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllRolePolicyAttachments(t *testing.T) {
- tests := []struct {
- name string
- roles []*iam.Role
- mocks func(client *awstest.MockFakeIAM)
- want []*AttachedRolePolicy
- wantErr error
- }{
- {
- name: "List only role policy attachments with multiple pages",
- roles: []*iam.Role{
- {
- RoleName: aws.String("test-role"),
- },
- {
- RoleName: aws.String("test-role2"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
-
- shouldSkipfirst := false
- shouldSkipSecond := false
-
- client.On("ListAttachedRolePoliciesPages",
- &iam.ListAttachedRolePoliciesInput{
- RoleName: aws.String("test-role"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedRolePoliciesOutput, lastPage bool) bool) bool {
- if shouldSkipfirst {
- return false
- }
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy2"),
- PolicyName: aws.String("policy2"),
- },
- }}, false)
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy3"),
- PolicyName: aws.String("policy3"),
- },
- }}, true)
- shouldSkipfirst = true
- return true
- })).Return(nil).Once()
-
- client.On("ListAttachedRolePoliciesPages",
- &iam.ListAttachedRolePoliciesInput{
- RoleName: aws.String("test-role2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedRolePoliciesOutput, lastPage bool) bool) bool {
- if shouldSkipSecond {
- return false
- }
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy2"),
- PolicyName: aws.String("policy2"),
- },
- }}, false)
- callback(&iam.ListAttachedRolePoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy3"),
- PolicyName: aws.String("policy3"),
- },
- }}, true)
- shouldSkipSecond = true
- return true
- })).Return(nil).Once()
- },
- want: []*AttachedRolePolicy{
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- *aws.String("test-role"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy2"),
- PolicyName: aws.String("policy2"),
- },
- *aws.String("test-role"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy3"),
- PolicyName: aws.String("policy3"),
- },
- *aws.String("test-role"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy"),
- PolicyName: aws.String("policy"),
- },
- *aws.String("test-role2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy2"),
- PolicyName: aws.String("policy2"),
- },
- *aws.String("test-role2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test-policy3"),
- PolicyName: aws.String("policy3"),
- },
- *aws.String("test-role2"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRolePolicyAttachments(tt.roles)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllRolePolicyAttachments(tt.roles)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, role := range tt.roles {
- assert.IsType(t, []*AttachedRolePolicy{}, store.Get(fmt.Sprintf("iamListAllRolePolicyAttachments_role_%s", *role.RoleName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllRolePolicies(t *testing.T) {
- tests := []struct {
- name string
- roles []*iam.Role
- mocks func(client *awstest.MockFakeIAM)
- want []RolePolicy
- wantErr error
- }{
- {
- name: "List only role policies with multiple pages",
- roles: []*iam.Role{
- {
- RoleName: aws.String("test_role_0"),
- },
- {
- RoleName: aws.String("test_role_1"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
- firstMockCalled := false
- client.On("ListRolePoliciesPages",
- &iam.ListRolePoliciesInput{
- RoleName: aws.String("test_role_0"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListRolePoliciesOutput, lastPage bool) bool) bool {
- if firstMockCalled {
- return false
- }
- callback(&iam.ListRolePoliciesOutput{
- PolicyNames: []*string{
- aws.String("policy-role0-0"),
- aws.String("policy-role0-1"),
- },
- }, false)
- callback(&iam.ListRolePoliciesOutput{
- PolicyNames: []*string{
- aws.String("policy-role0-2"),
- },
- }, true)
- firstMockCalled = true
- return true
- })).Once().Return(nil)
- client.On("ListRolePoliciesPages",
- &iam.ListRolePoliciesInput{
- RoleName: aws.String("test_role_1"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListRolePoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListRolePoliciesOutput{
- PolicyNames: []*string{
- aws.String("policy-role1-0"),
- aws.String("policy-role1-1"),
- },
- }, false)
- callback(&iam.ListRolePoliciesOutput{
- PolicyNames: []*string{
- aws.String("policy-role1-2"),
- },
- }, true)
- return true
- })).Once().Return(nil)
- },
- want: []RolePolicy{
- {Policy: "policy-role0-0", RoleName: "test_role_0"},
- {Policy: "policy-role0-1", RoleName: "test_role_0"},
- {Policy: "policy-role0-2", RoleName: "test_role_0"},
- {Policy: "policy-role1-0", RoleName: "test_role_1"},
- {Policy: "policy-role1-1", RoleName: "test_role_1"},
- {Policy: "policy-role1-2", RoleName: "test_role_1"},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllRolePolicies(tt.roles)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllRolePolicies(tt.roles)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, role := range tt.roles {
- assert.IsType(t, []RolePolicy{}, store.Get(fmt.Sprintf("iamListAllRolePolicies_role_%s", *role.RoleName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllUserPolicyAttachments(t *testing.T) {
- tests := []struct {
- name string
- users []*iam.User
- mocks func(client *awstest.MockFakeIAM)
- want []*AttachedUserPolicy
- wantErr error
- }{
- {
- name: "List only user policy attachments with multiple pages",
- users: []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- {
- UserName: aws.String("loadbalancer2"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListAttachedUserPoliciesPages",
- &iam.ListAttachedUserPoliciesInput{
- UserName: aws.String("loadbalancer"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedUserPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListAttachedUserPoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test"),
- PolicyName: aws.String("test-attach"),
- },
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test2"),
- PolicyName: aws.String("test-attach2"),
- },
- }}, false)
- callback(&iam.ListAttachedUserPoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test3"),
- PolicyName: aws.String("test-attach3"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
-
- client.On("ListAttachedUserPoliciesPages",
- &iam.ListAttachedUserPoliciesInput{
- UserName: aws.String("loadbalancer2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListAttachedUserPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListAttachedUserPoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test"),
- PolicyName: aws.String("test-attach"),
- },
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test2"),
- PolicyName: aws.String("test-attach2"),
- },
- }}, false)
- callback(&iam.ListAttachedUserPoliciesOutput{AttachedPolicies: []*iam.AttachedPolicy{
- {
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test3"),
- PolicyName: aws.String("test-attach3"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
-
- want: []*AttachedUserPolicy{
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test"),
- PolicyName: aws.String("test-attach"),
- },
- *aws.String("loadbalancer"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test2"),
- PolicyName: aws.String("test-attach2"),
- },
- *aws.String("loadbalancer"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test3"),
- PolicyName: aws.String("test-attach3"),
- },
- *aws.String("loadbalancer"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test"),
- PolicyName: aws.String("test-attach"),
- },
- *aws.String("loadbalancer2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test2"),
- PolicyName: aws.String("test-attach2"),
- },
- *aws.String("loadbalancer2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test3"),
- PolicyName: aws.String("test-attach3"),
- },
- *aws.String("loadbalancer2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test"),
- PolicyName: aws.String("test-attach"),
- },
- *aws.String("loadbalancer2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test2"),
- PolicyName: aws.String("test-attach2"),
- },
- *aws.String("loadbalancer2"),
- },
- {
- iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::526954929923:policy/test3"),
- PolicyName: aws.String("test-attach3"),
- },
- *aws.String("loadbalancer2"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllUserPolicyAttachments(tt.users)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllUserPolicyAttachments(tt.users)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, user := range tt.users {
- assert.IsType(t, []*AttachedUserPolicy{}, store.Get(fmt.Sprintf("iamListAllUserPolicyAttachments_user_%s", *user.UserName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllUserPolicies(t *testing.T) {
- tests := []struct {
- name string
- users []*iam.User
- mocks func(client *awstest.MockFakeIAM)
- want []string
- wantErr error
- }{
- {
- name: "List only user policies with multiple pages",
- users: []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- {
- UserName: aws.String("loadbalancer2"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListUserPoliciesPages",
- &iam.ListUserPoliciesInput{
- UserName: aws.String("loadbalancer"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListUserPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListUserPoliciesOutput{PolicyNames: []*string{
- aws.String("test"),
- aws.String("test2"),
- aws.String("test3"),
- }}, false)
- callback(&iam.ListUserPoliciesOutput{PolicyNames: []*string{
- aws.String("test4"),
- }}, true)
- return true
- })).Return(nil).Once()
-
- client.On("ListUserPoliciesPages",
- &iam.ListUserPoliciesInput{
- UserName: aws.String("loadbalancer2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListUserPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListUserPoliciesOutput{PolicyNames: []*string{
- aws.String("test2"),
- aws.String("test22"),
- aws.String("test23"),
- }}, false)
- callback(&iam.ListUserPoliciesOutput{PolicyNames: []*string{
- aws.String("test24"),
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []string{
- *aws.String("loadbalancer:test"),
- *aws.String("loadbalancer:test2"),
- *aws.String("loadbalancer:test3"),
- *aws.String("loadbalancer:test4"),
- *aws.String("loadbalancer2:test"),
- *aws.String("loadbalancer2:test2"),
- *aws.String("loadbalancer2:test3"),
- *aws.String("loadbalancer2:test4"),
- *aws.String("loadbalancer2:test2"),
- *aws.String("loadbalancer2:test22"),
- *aws.String("loadbalancer2:test23"),
- *aws.String("loadbalancer2:test24"),
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllUserPolicies(tt.users)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllUserPolicies(tt.users)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, user := range tt.users {
- assert.IsType(t, []string{}, store.Get(fmt.Sprintf("iamListAllUserPolicies_user_%s", *user.UserName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllGroups(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeIAM)
- want []*iam.Group
- wantErr error
- }{
- {
- name: "List groups with multiple pages",
- mocks: func(client *awstest.MockFakeIAM) {
-
- client.On("ListGroupsPages",
- &iam.ListGroupsInput{},
- mock.MatchedBy(func(callback func(res *iam.ListGroupsOutput, lastPage bool) bool) bool {
- callback(&iam.ListGroupsOutput{Groups: []*iam.Group{
- {
- GroupName: aws.String("group1"),
- },
- {
- GroupName: aws.String("group2"),
- },
- }}, false)
- callback(&iam.ListGroupsOutput{Groups: []*iam.Group{
- {
- GroupName: aws.String("group3"),
- },
- {
- GroupName: aws.String("group4"),
- },
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []*iam.Group{
- {
- GroupName: aws.String("group1"),
- },
- {
- GroupName: aws.String("group2"),
- },
- {
- GroupName: aws.String("group3"),
- },
- {
- GroupName: aws.String("group4"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllGroups()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllGroups()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*iam.Group{}, store.Get("iamListAllGroups"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_IAMRepository_ListAllGroupPolicies(t *testing.T) {
- tests := []struct {
- name string
- groups []*iam.Group
- mocks func(client *awstest.MockFakeIAM)
- want []string
- wantErr error
- }{
- {
- name: "List only group policies with multiple pages",
- groups: []*iam.Group{
- {
- GroupName: aws.String("group1"),
- },
- {
- GroupName: aws.String("group2"),
- },
- },
- mocks: func(client *awstest.MockFakeIAM) {
- firstMockCalled := false
- client.On("ListGroupPoliciesPages",
- &iam.ListGroupPoliciesInput{
- GroupName: aws.String("group1"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListGroupPoliciesOutput, lastPage bool) bool) bool {
- if firstMockCalled {
- return false
- }
- callback(&iam.ListGroupPoliciesOutput{PolicyNames: []*string{
- aws.String("policy1"),
- aws.String("policy2"),
- aws.String("policy3"),
- }}, false)
- callback(&iam.ListGroupPoliciesOutput{PolicyNames: []*string{
- aws.String("policy4"),
- }}, true)
- firstMockCalled = true
- return true
- })).Return(nil).Once()
-
- client.On("ListGroupPoliciesPages",
- &iam.ListGroupPoliciesInput{
- GroupName: aws.String("group2"),
- },
- mock.MatchedBy(func(callback func(res *iam.ListGroupPoliciesOutput, lastPage bool) bool) bool {
- callback(&iam.ListGroupPoliciesOutput{PolicyNames: []*string{
- aws.String("policy2"),
- aws.String("policy22"),
- aws.String("policy23"),
- }}, false)
- callback(&iam.ListGroupPoliciesOutput{PolicyNames: []*string{
- aws.String("policy24"),
- }}, true)
- return true
- })).Return(nil).Once()
- },
- want: []string{
- *aws.String("group1:policy1"),
- *aws.String("group1:policy2"),
- *aws.String("group1:policy3"),
- *aws.String("group1:policy4"),
- *aws.String("group2:policy2"),
- *aws.String("group2:policy22"),
- *aws.String("group2:policy23"),
- *aws.String("group2:policy24"),
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(2)
- client := &awstest.MockFakeIAM{}
- tt.mocks(client)
- r := &iamRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllGroupPolicies(tt.groups)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllGroupPolicies(tt.groups)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- for _, group := range tt.groups {
- assert.IsType(t, []string{}, store.Get(fmt.Sprintf("iamListAllGroupPolicies_group_%s", *group.GroupName)))
- }
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/kms_repository.go b/enumeration/remote/aws/repository/kms_repository.go
deleted file mode 100644
index 347ad5ca8..000000000
--- a/enumeration/remote/aws/repository/kms_repository.go
+++ /dev/null
@@ -1,146 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "sync"
-
- "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/aws/aws-sdk-go/service/kms/kmsiface"
- "github.com/sirupsen/logrus"
-)
-
-type KMSRepository interface {
- ListAllKeys() ([]*kms.KeyListEntry, error)
- ListAllAliases() ([]*kms.AliasListEntry, error)
-}
-
-type kmsRepository struct {
- client kmsiface.KMSAPI
- cache cache.Cache
- describeKeyLock *sync.Mutex
-}
-
-func NewKMSRepository(session *session.Session, c cache.Cache) *kmsRepository {
- return &kmsRepository{
- kms.New(session),
- c,
- &sync.Mutex{},
- }
-}
-
-func (r *kmsRepository) ListAllKeys() ([]*kms.KeyListEntry, error) {
- if v := r.cache.Get("kmsListAllKeys"); v != nil {
- return v.([]*kms.KeyListEntry), nil
- }
-
- var keys []*kms.KeyListEntry
- input := kms.ListKeysInput{}
- err := r.client.ListKeysPages(&input,
- func(resp *kms.ListKeysOutput, lastPage bool) bool {
- keys = append(keys, resp.Keys...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
- customerKeys, err := r.filterKeys(keys)
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("kmsListAllKeys", customerKeys)
- return customerKeys, nil
-}
-
-func (r *kmsRepository) ListAllAliases() ([]*kms.AliasListEntry, error) {
- if v := r.cache.Get("kmsListAllAliases"); v != nil {
- return v.([]*kms.AliasListEntry), nil
- }
-
- var aliases []*kms.AliasListEntry
- input := kms.ListAliasesInput{}
- err := r.client.ListAliasesPages(&input,
- func(resp *kms.ListAliasesOutput, lastPage bool) bool {
- aliases = append(aliases, resp.Aliases...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- result, err := r.filterAliases(aliases)
- if err != nil {
- return nil, err
- }
- r.cache.Put("kmsListAllAliases", result)
- return result, nil
-}
-
-func (r *kmsRepository) describeKey(keyId *string) (*kms.DescribeKeyOutput, error) {
- var results interface{}
- // Since this method can be call in parallel, we should lock and unlock if we want to be sure to hit the cache
- r.describeKeyLock.Lock()
- defer r.describeKeyLock.Unlock()
- cacheKey := fmt.Sprintf("kmsDescribeKey-%s", *keyId)
- results = r.cache.Get(cacheKey)
- if results == nil {
- var err error
- results, err = r.client.DescribeKey(&kms.DescribeKeyInput{KeyId: keyId})
- if err != nil {
- return nil, err
- }
- r.cache.Put(cacheKey, results)
- }
- describeKey := results.(*kms.DescribeKeyOutput)
- if aws.StringValue(describeKey.KeyMetadata.KeyState) == kms.KeyStatePendingDeletion {
- return nil, nil
- }
- return describeKey, nil
-}
-
-func (r *kmsRepository) filterKeys(keys []*kms.KeyListEntry) ([]*kms.KeyListEntry, error) {
- var customerKeys []*kms.KeyListEntry
- for _, key := range keys {
- k, err := r.describeKey(key.KeyId)
- if err != nil {
- return nil, err
- }
- if k == nil {
- logrus.WithFields(logrus.Fields{
- "id": *key.KeyId,
- }).Debug("Ignored kms key from listing since it is pending from deletion")
- continue
- }
- if k.KeyMetadata.KeyManager != nil && *k.KeyMetadata.KeyManager != "AWS" {
- customerKeys = append(customerKeys, key)
- }
- }
- return customerKeys, nil
-}
-
-func (r *kmsRepository) filterAliases(aliases []*kms.AliasListEntry) ([]*kms.AliasListEntry, error) {
- var customerAliases []*kms.AliasListEntry
- for _, alias := range aliases {
- if alias.AliasName != nil && !strings.HasPrefix(*alias.AliasName, "alias/aws/") {
- k, err := r.describeKey(alias.TargetKeyId)
- if err != nil {
- return nil, err
- }
- if k == nil {
- logrus.WithFields(logrus.Fields{
- "id": *alias.TargetKeyId,
- "alias": *alias.AliasName,
- }).Debug("Ignored kms key alias from listing since it is linked to a pending from deletion key")
- continue
- }
- customerAliases = append(customerAliases, alias)
- }
- }
- return customerAliases, nil
-}
diff --git a/enumeration/remote/aws/repository/kms_repository_test.go b/enumeration/remote/aws/repository/kms_repository_test.go
deleted file mode 100644
index 30ea14ec2..000000000
--- a/enumeration/remote/aws/repository/kms_repository_test.go
+++ /dev/null
@@ -1,249 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "sync"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/kms"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_KMSRepository_ListAllKeys(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeKMS)
- want []*kms.KeyListEntry
- wantErr error
- }{
- {
- name: "List only enabled keys",
- mocks: func(client *awstest.MockFakeKMS) {
- client.On("ListKeysPages",
- &kms.ListKeysInput{},
- mock.MatchedBy(func(callback func(res *kms.ListKeysOutput, lastPage bool) bool) bool {
- callback(&kms.ListKeysOutput{
- Keys: []*kms.KeyListEntry{
- {KeyId: aws.String("1")},
- {KeyId: aws.String("2")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- client.On("DescribeKey",
- &kms.DescribeKeyInput{
- KeyId: aws.String("1"),
- }).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyId: aws.String("1"),
- KeyManager: aws.String("CUSTOMER"),
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil).Once()
- client.On("DescribeKey",
- &kms.DescribeKeyInput{
- KeyId: aws.String("2"),
- }).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyId: aws.String("2"),
- KeyManager: aws.String("CUSTOMER"),
- KeyState: aws.String(kms.KeyStatePendingDeletion),
- },
- }, nil).Once()
- },
- want: []*kms.KeyListEntry{
- {KeyId: aws.String("1")},
- },
- },
- {
- name: "List only customer keys",
- mocks: func(client *awstest.MockFakeKMS) {
- client.On("ListKeysPages",
- &kms.ListKeysInput{},
- mock.MatchedBy(func(callback func(res *kms.ListKeysOutput, lastPage bool) bool) bool {
- callback(&kms.ListKeysOutput{
- Keys: []*kms.KeyListEntry{
- {KeyId: aws.String("1")},
- {KeyId: aws.String("2")},
- {KeyId: aws.String("3")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- client.On("DescribeKey",
- &kms.DescribeKeyInput{
- KeyId: aws.String("1"),
- }).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyId: aws.String("1"),
- KeyManager: aws.String("CUSTOMER"),
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil).Once()
- client.On("DescribeKey",
- &kms.DescribeKeyInput{
- KeyId: aws.String("2"),
- }).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyId: aws.String("2"),
- KeyManager: aws.String("AWS"),
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil).Once()
- client.On("DescribeKey",
- &kms.DescribeKeyInput{
- KeyId: aws.String("3"),
- }).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyId: aws.String("3"),
- KeyManager: aws.String("AWS"),
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil).Once()
- },
- want: []*kms.KeyListEntry{
- {KeyId: aws.String("1")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeKMS{}
- tt.mocks(&client)
- r := &kmsRepository{
- client: &client,
- cache: store,
- describeKeyLock: &sync.Mutex{},
- }
- got, err := r.ListAllKeys()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllKeys()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*kms.KeyListEntry{}, store.Get("kmsListAllKeys"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_KMSRepository_ListAllAliases(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeKMS)
- want []*kms.AliasListEntry
- wantErr error
- }{
- {
- name: "List only aliases for enabled keys",
- mocks: func(client *awstest.MockFakeKMS) {
- client.On("ListAliasesPages",
- &kms.ListAliasesInput{},
- mock.MatchedBy(func(callback func(res *kms.ListAliasesOutput, lastPage bool) bool) bool {
- callback(&kms.ListAliasesOutput{
- Aliases: []*kms.AliasListEntry{
- {AliasName: aws.String("alias/1"), TargetKeyId: aws.String("key-id-1")},
- {AliasName: aws.String("alias/2"), TargetKeyId: aws.String("key-id-2")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- client.On("DescribeKey", &kms.DescribeKeyInput{KeyId: aws.String("key-id-1")}).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyState: aws.String(kms.KeyStatePendingDeletion),
- },
- }, nil)
- client.On("DescribeKey", &kms.DescribeKeyInput{KeyId: aws.String("key-id-2")}).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil)
- },
- want: []*kms.AliasListEntry{
- {AliasName: aws.String("alias/2"), TargetKeyId: aws.String("key-id-2")},
- },
- },
- {
- name: "List only customer aliases",
- mocks: func(client *awstest.MockFakeKMS) {
- client.On("ListAliasesPages",
- &kms.ListAliasesInput{},
- mock.MatchedBy(func(callback func(res *kms.ListAliasesOutput, lastPage bool) bool) bool {
- callback(&kms.ListAliasesOutput{
- Aliases: []*kms.AliasListEntry{
- {AliasName: aws.String("alias/1"), TargetKeyId: aws.String("key-id-1")},
- {AliasName: aws.String("alias/foo/2"), TargetKeyId: aws.String("key-id-2")},
- {AliasName: aws.String("alias/aw/3"), TargetKeyId: aws.String("key-id-3")},
- {AliasName: aws.String("alias/aws/4"), TargetKeyId: aws.String("key-id-4")},
- {AliasName: aws.String("alias/aws/5"), TargetKeyId: aws.String("key-id-5")},
- {AliasName: aws.String("alias/awss/6"), TargetKeyId: aws.String("key-id-6")},
- {AliasName: aws.String("alias/aws7"), TargetKeyId: aws.String("key-id-7")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- client.On("DescribeKey", mock.Anything).Return(&kms.DescribeKeyOutput{
- KeyMetadata: &kms.KeyMetadata{
- KeyState: aws.String(kms.KeyStateEnabled),
- },
- }, nil)
- },
- want: []*kms.AliasListEntry{
- {AliasName: aws.String("alias/1"), TargetKeyId: aws.String("key-id-1")},
- {AliasName: aws.String("alias/foo/2"), TargetKeyId: aws.String("key-id-2")},
- {AliasName: aws.String("alias/aw/3"), TargetKeyId: aws.String("key-id-3")},
- {AliasName: aws.String("alias/awss/6"), TargetKeyId: aws.String("key-id-6")},
- {AliasName: aws.String("alias/aws7"), TargetKeyId: aws.String("key-id-7")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeKMS{}
- tt.mocks(&client)
- r := &kmsRepository{
- client: &client,
- cache: store,
- describeKeyLock: &sync.Mutex{},
- }
- got, err := r.ListAllAliases()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllAliases()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*kms.AliasListEntry{}, store.Get("kmsListAllAliases"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %v -> %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/lambda_repository.go b/enumeration/remote/aws/repository/lambda_repository.go
deleted file mode 100644
index d9377d269..000000000
--- a/enumeration/remote/aws/repository/lambda_repository.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/lambda"
- "github.com/aws/aws-sdk-go/service/lambda/lambdaiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type LambdaRepository interface {
- ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error)
- ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error)
-}
-
-type lambdaRepository struct {
- client lambdaiface.LambdaAPI
- cache cache.Cache
-}
-
-func NewLambdaRepository(session *session.Session, c cache.Cache) *lambdaRepository {
- return &lambdaRepository{
- lambda.New(session),
- c,
- }
-}
-
-func (r *lambdaRepository) ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error) {
- if v := r.cache.Get("lambdaListAllLambdaFunctions"); v != nil {
- return v.([]*lambda.FunctionConfiguration), nil
- }
-
- var functions []*lambda.FunctionConfiguration
- input := &lambda.ListFunctionsInput{}
- err := r.client.ListFunctionsPages(input, func(res *lambda.ListFunctionsOutput, lastPage bool) bool {
- functions = append(functions, res.Functions...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("lambdaListAllLambdaFunctions", functions)
- return functions, nil
-}
-
-func (r *lambdaRepository) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error) {
- if v := r.cache.Get("lambdaListAllLambdaEventSourceMappings"); v != nil {
- return v.([]*lambda.EventSourceMappingConfiguration), nil
- }
-
- var eventSourceMappingConfigurations []*lambda.EventSourceMappingConfiguration
- input := &lambda.ListEventSourceMappingsInput{}
- err := r.client.ListEventSourceMappingsPages(input, func(res *lambda.ListEventSourceMappingsOutput, lastPage bool) bool {
- eventSourceMappingConfigurations = append(eventSourceMappingConfigurations, res.EventSourceMappings...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("lambdaListAllLambdaEventSourceMappings", eventSourceMappingConfigurations)
- return eventSourceMappingConfigurations, nil
-}
diff --git a/enumeration/remote/aws/repository/lambda_repository_test.go b/enumeration/remote/aws/repository/lambda_repository_test.go
deleted file mode 100644
index 4981884ea..000000000
--- a/enumeration/remote/aws/repository/lambda_repository_test.go
+++ /dev/null
@@ -1,169 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/aws/aws-sdk-go/service/lambda"
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_lambdaRepository_ListAllLambdaFunctions(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeLambda)
- want []*lambda.FunctionConfiguration
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeLambda) {
- client.On("ListFunctionsPages",
- &lambda.ListFunctionsInput{},
- mock.MatchedBy(func(callback func(res *lambda.ListFunctionsOutput, lastPage bool) bool) bool {
- callback(&lambda.ListFunctionsOutput{
- Functions: []*lambda.FunctionConfiguration{
- {FunctionName: aws.String("1")},
- {FunctionName: aws.String("2")},
- {FunctionName: aws.String("3")},
- {FunctionName: aws.String("4")},
- },
- }, false)
- callback(&lambda.ListFunctionsOutput{
- Functions: []*lambda.FunctionConfiguration{
- {FunctionName: aws.String("5")},
- {FunctionName: aws.String("6")},
- {FunctionName: aws.String("7")},
- {FunctionName: aws.String("8")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*lambda.FunctionConfiguration{
- {FunctionName: aws.String("1")},
- {FunctionName: aws.String("2")},
- {FunctionName: aws.String("3")},
- {FunctionName: aws.String("4")},
- {FunctionName: aws.String("5")},
- {FunctionName: aws.String("6")},
- {FunctionName: aws.String("7")},
- {FunctionName: aws.String("8")},
- },
- wantErr: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeLambda{}
- tt.mocks(client)
- r := &lambdaRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllLambdaFunctions()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllLambdaFunctions()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*lambda.FunctionConfiguration{}, store.Get("lambdaListAllLambdaFunctions"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_lambdaRepository_ListAllLambdaEventSourceMappings(t *testing.T) {
- tests := []struct {
- name string
- mocks func(mock *awstest.MockFakeLambda)
- want []*lambda.EventSourceMappingConfiguration
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeLambda) {
- client.On("ListEventSourceMappingsPages",
- &lambda.ListEventSourceMappingsInput{},
- mock.MatchedBy(func(callback func(res *lambda.ListEventSourceMappingsOutput, lastPage bool) bool) bool {
- callback(&lambda.ListEventSourceMappingsOutput{
- EventSourceMappings: []*lambda.EventSourceMappingConfiguration{
- {UUID: aws.String("1")},
- {UUID: aws.String("2")},
- {UUID: aws.String("3")},
- {UUID: aws.String("4")},
- },
- }, false)
- callback(&lambda.ListEventSourceMappingsOutput{
- EventSourceMappings: []*lambda.EventSourceMappingConfiguration{
- {UUID: aws.String("5")},
- {UUID: aws.String("6")},
- {UUID: aws.String("7")},
- {UUID: aws.String("8")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*lambda.EventSourceMappingConfiguration{
- {UUID: aws.String("1")},
- {UUID: aws.String("2")},
- {UUID: aws.String("3")},
- {UUID: aws.String("4")},
- {UUID: aws.String("5")},
- {UUID: aws.String("6")},
- {UUID: aws.String("7")},
- {UUID: aws.String("8")},
- },
- wantErr: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeLambda{}
- tt.mocks(client)
- r := &lambdaRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllLambdaEventSourceMappings()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllLambdaEventSourceMappings()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*lambda.EventSourceMappingConfiguration{}, store.Get("lambdaListAllLambdaEventSourceMappings"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/mock_ApiGatewayRepository.go b/enumeration/remote/aws/repository/mock_ApiGatewayRepository.go
deleted file mode 100644
index a1a8bb175..000000000
--- a/enumeration/remote/aws/repository/mock_ApiGatewayRepository.go
+++ /dev/null
@@ -1,340 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- apigateway "github.com/aws/aws-sdk-go/service/apigateway"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockApiGatewayRepository is an autogenerated mock type for the ApiGatewayRepository type
-type MockApiGatewayRepository struct {
- mock.Mock
-}
-
-// GetAccount provides a mock function with given fields:
-func (_m *MockApiGatewayRepository) GetAccount() (*apigateway.Account, error) {
- ret := _m.Called()
-
- var r0 *apigateway.Account
- var r1 error
- if rf, ok := ret.Get(0).(func() (*apigateway.Account, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() *apigateway.Account); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Account)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiKeys provides a mock function with given fields:
-func (_m *MockApiGatewayRepository) ListAllApiKeys() ([]*apigateway.ApiKey, error) {
- ret := _m.Called()
-
- var r0 []*apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigateway.ApiKey, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigateway.ApiKey); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllDomainNameBasePathMappings provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllDomainNameBasePathMappings(_a0 string) ([]*apigateway.BasePathMapping, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.BasePathMapping, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.BasePathMapping); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllDomainNames provides a mock function with given fields:
-func (_m *MockApiGatewayRepository) ListAllDomainNames() ([]*apigateway.DomainName, error) {
- ret := _m.Called()
-
- var r0 []*apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigateway.DomainName, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigateway.DomainName); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiAuthorizers provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiAuthorizers(_a0 string) ([]*apigateway.Authorizer, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.Authorizer, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.Authorizer); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiGatewayResponses provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiGatewayResponses(_a0 string) ([]*apigateway.UpdateGatewayResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiModels provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiModels(_a0 string) ([]*apigateway.Model, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.Model, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.Model); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiRequestValidators provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiRequestValidators(_a0 string) ([]*apigateway.UpdateRequestValidatorOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiResources provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiResources(_a0 string) ([]*apigateway.Resource, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.Resource, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.Resource); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApiStages provides a mock function with given fields: _a0
-func (_m *MockApiGatewayRepository) ListAllRestApiStages(_a0 string) ([]*apigateway.Stage, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigateway.Stage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigateway.Stage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRestApis provides a mock function with given fields:
-func (_m *MockApiGatewayRepository) ListAllRestApis() ([]*apigateway.RestApi, error) {
- ret := _m.Called()
-
- var r0 []*apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigateway.RestApi, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigateway.RestApi); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllVpcLinks provides a mock function with given fields:
-func (_m *MockApiGatewayRepository) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error) {
- ret := _m.Called()
-
- var r0 []*apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockApiGatewayRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockApiGatewayRepository creates a new instance of MockApiGatewayRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockApiGatewayRepository(t mockConstructorTestingTNewMockApiGatewayRepository) *MockApiGatewayRepository {
- mock := &MockApiGatewayRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_ApiGatewayV2Repository.go b/enumeration/remote/aws/repository/mock_ApiGatewayV2Repository.go
deleted file mode 100644
index de236f022..000000000
--- a/enumeration/remote/aws/repository/mock_ApiGatewayV2Repository.go
+++ /dev/null
@@ -1,314 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- apigatewayv2 "github.com/aws/aws-sdk-go/service/apigatewayv2"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockApiGatewayV2Repository is an autogenerated mock type for the ApiGatewayV2Repository type
-type MockApiGatewayV2Repository struct {
- mock.Mock
-}
-
-// ListAllApiAuthorizers provides a mock function with given fields: _a0
-func (_m *MockApiGatewayV2Repository) ListAllApiAuthorizers(_a0 string) ([]*apigatewayv2.Authorizer, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigatewayv2.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigatewayv2.Authorizer, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigatewayv2.Authorizer); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiDeployments provides a mock function with given fields: apiId
-func (_m *MockApiGatewayV2Repository) ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error) {
- ret := _m.Called(apiId)
-
- var r0 []*apigatewayv2.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(*string) ([]*apigatewayv2.Deployment, error)); ok {
- return rf(apiId)
- }
- if rf, ok := ret.Get(0).(func(*string) []*apigatewayv2.Deployment); ok {
- r0 = rf(apiId)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*string) error); ok {
- r1 = rf(apiId)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiIntegrationResponses provides a mock function with given fields: _a0, _a1
-func (_m *MockApiGatewayV2Repository) ListAllApiIntegrationResponses(_a0 string, _a1 string) ([]*apigatewayv2.IntegrationResponse, error) {
- ret := _m.Called(_a0, _a1)
-
- var r0 []*apigatewayv2.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(string, string) ([]*apigatewayv2.IntegrationResponse, error)); ok {
- return rf(_a0, _a1)
- }
- if rf, ok := ret.Get(0).(func(string, string) []*apigatewayv2.IntegrationResponse); ok {
- r0 = rf(_a0, _a1)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string, string) error); ok {
- r1 = rf(_a0, _a1)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiIntegrations provides a mock function with given fields: _a0
-func (_m *MockApiGatewayV2Repository) ListAllApiIntegrations(_a0 string) ([]*apigatewayv2.Integration, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigatewayv2.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigatewayv2.Integration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigatewayv2.Integration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiMappings provides a mock function with given fields: _a0
-func (_m *MockApiGatewayV2Repository) ListAllApiMappings(_a0 string) ([]*apigatewayv2.ApiMapping, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigatewayv2.ApiMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigatewayv2.ApiMapping, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigatewayv2.ApiMapping); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.ApiMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiModels provides a mock function with given fields: _a0
-func (_m *MockApiGatewayV2Repository) ListAllApiModels(_a0 string) ([]*apigatewayv2.Model, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigatewayv2.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigatewayv2.Model, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigatewayv2.Model); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiRouteResponses provides a mock function with given fields: _a0, _a1
-func (_m *MockApiGatewayV2Repository) ListAllApiRouteResponses(_a0 string, _a1 string) ([]*apigatewayv2.RouteResponse, error) {
- ret := _m.Called(_a0, _a1)
-
- var r0 []*apigatewayv2.RouteResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(string, string) ([]*apigatewayv2.RouteResponse, error)); ok {
- return rf(_a0, _a1)
- }
- if rf, ok := ret.Get(0).(func(string, string) []*apigatewayv2.RouteResponse); ok {
- r0 = rf(_a0, _a1)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.RouteResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string, string) error); ok {
- r1 = rf(_a0, _a1)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiRoutes provides a mock function with given fields: apiId
-func (_m *MockApiGatewayV2Repository) ListAllApiRoutes(apiId *string) ([]*apigatewayv2.Route, error) {
- ret := _m.Called(apiId)
-
- var r0 []*apigatewayv2.Route
- var r1 error
- if rf, ok := ret.Get(0).(func(*string) ([]*apigatewayv2.Route, error)); ok {
- return rf(apiId)
- }
- if rf, ok := ret.Get(0).(func(*string) []*apigatewayv2.Route); ok {
- r0 = rf(apiId)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Route)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*string) error); ok {
- r1 = rf(apiId)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApiStages provides a mock function with given fields: _a0
-func (_m *MockApiGatewayV2Repository) ListAllApiStages(_a0 string) ([]*apigatewayv2.Stage, error) {
- ret := _m.Called(_a0)
-
- var r0 []*apigatewayv2.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*apigatewayv2.Stage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*apigatewayv2.Stage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllApis provides a mock function with given fields:
-func (_m *MockApiGatewayV2Repository) ListAllApis() ([]*apigatewayv2.Api, error) {
- ret := _m.Called()
-
- var r0 []*apigatewayv2.Api
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigatewayv2.Api, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigatewayv2.Api); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.Api)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllVpcLinks provides a mock function with given fields:
-func (_m *MockApiGatewayV2Repository) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error) {
- ret := _m.Called()
-
- var r0 []*apigatewayv2.VpcLink
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*apigatewayv2.VpcLink, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*apigatewayv2.VpcLink); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*apigatewayv2.VpcLink)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockApiGatewayV2Repository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockApiGatewayV2Repository creates a new instance of MockApiGatewayV2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockApiGatewayV2Repository(t mockConstructorTestingTNewMockApiGatewayV2Repository) *MockApiGatewayV2Repository {
- mock := &MockApiGatewayV2Repository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_AppAutoScalingRepository.go b/enumeration/remote/aws/repository/mock_AppAutoScalingRepository.go
deleted file mode 100644
index 6000e4522..000000000
--- a/enumeration/remote/aws/repository/mock_AppAutoScalingRepository.go
+++ /dev/null
@@ -1,122 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- applicationautoscaling "github.com/aws/aws-sdk-go/service/applicationautoscaling"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockAppAutoScalingRepository is an autogenerated mock type for the AppAutoScalingRepository type
-type MockAppAutoScalingRepository struct {
- mock.Mock
-}
-
-// DescribeScalableTargets provides a mock function with given fields: _a0
-func (_m *MockAppAutoScalingRepository) DescribeScalableTargets(_a0 string) ([]*applicationautoscaling.ScalableTarget, error) {
- ret := _m.Called(_a0)
-
- var r0 []*applicationautoscaling.ScalableTarget
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*applicationautoscaling.ScalableTarget, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*applicationautoscaling.ScalableTarget); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*applicationautoscaling.ScalableTarget)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingPolicies provides a mock function with given fields: _a0
-func (_m *MockAppAutoScalingRepository) DescribeScalingPolicies(_a0 string) ([]*applicationautoscaling.ScalingPolicy, error) {
- ret := _m.Called(_a0)
-
- var r0 []*applicationautoscaling.ScalingPolicy
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*applicationautoscaling.ScalingPolicy, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*applicationautoscaling.ScalingPolicy); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*applicationautoscaling.ScalingPolicy)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActions provides a mock function with given fields: _a0
-func (_m *MockAppAutoScalingRepository) DescribeScheduledActions(_a0 string) ([]*applicationautoscaling.ScheduledAction, error) {
- ret := _m.Called(_a0)
-
- var r0 []*applicationautoscaling.ScheduledAction
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*applicationautoscaling.ScheduledAction, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*applicationautoscaling.ScheduledAction); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*applicationautoscaling.ScheduledAction)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ServiceNamespaceValues provides a mock function with given fields:
-func (_m *MockAppAutoScalingRepository) ServiceNamespaceValues() []string {
- ret := _m.Called()
-
- var r0 []string
- if rf, ok := ret.Get(0).(func() []string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockAppAutoScalingRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockAppAutoScalingRepository creates a new instance of MockAppAutoScalingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockAppAutoScalingRepository(t mockConstructorTestingTNewMockAppAutoScalingRepository) *MockAppAutoScalingRepository {
- mock := &MockAppAutoScalingRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_AutoScalingRepository.go b/enumeration/remote/aws/repository/mock_AutoScalingRepository.go
deleted file mode 100644
index 6398d9efe..000000000
--- a/enumeration/remote/aws/repository/mock_AutoScalingRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- autoscaling "github.com/aws/aws-sdk-go/service/autoscaling"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockAutoScalingRepository is an autogenerated mock type for the AutoScalingRepository type
-type MockAutoScalingRepository struct {
- mock.Mock
-}
-
-// DescribeLaunchConfigurations provides a mock function with given fields:
-func (_m *MockAutoScalingRepository) DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error) {
- ret := _m.Called()
-
- var r0 []*autoscaling.LaunchConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*autoscaling.LaunchConfiguration, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*autoscaling.LaunchConfiguration); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*autoscaling.LaunchConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockAutoScalingRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockAutoScalingRepository creates a new instance of MockAutoScalingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockAutoScalingRepository(t mockConstructorTestingTNewMockAutoScalingRepository) *MockAutoScalingRepository {
- mock := &MockAutoScalingRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_CloudformationRepository.go b/enumeration/remote/aws/repository/mock_CloudformationRepository.go
deleted file mode 100644
index ae4137604..000000000
--- a/enumeration/remote/aws/repository/mock_CloudformationRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockCloudformationRepository is an autogenerated mock type for the CloudformationRepository type
-type MockCloudformationRepository struct {
- mock.Mock
-}
-
-// ListAllStacks provides a mock function with given fields:
-func (_m *MockCloudformationRepository) ListAllStacks() ([]*cloudformation.Stack, error) {
- ret := _m.Called()
-
- var r0 []*cloudformation.Stack
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*cloudformation.Stack, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*cloudformation.Stack); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*cloudformation.Stack)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockCloudformationRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockCloudformationRepository creates a new instance of MockCloudformationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockCloudformationRepository(t mockConstructorTestingTNewMockCloudformationRepository) *MockCloudformationRepository {
- mock := &MockCloudformationRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_CloudfrontRepository.go b/enumeration/remote/aws/repository/mock_CloudfrontRepository.go
deleted file mode 100644
index 9e960bddf..000000000
--- a/enumeration/remote/aws/repository/mock_CloudfrontRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- cloudfront "github.com/aws/aws-sdk-go/service/cloudfront"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockCloudfrontRepository is an autogenerated mock type for the CloudfrontRepository type
-type MockCloudfrontRepository struct {
- mock.Mock
-}
-
-// ListAllDistributions provides a mock function with given fields:
-func (_m *MockCloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error) {
- ret := _m.Called()
-
- var r0 []*cloudfront.DistributionSummary
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*cloudfront.DistributionSummary, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*cloudfront.DistributionSummary); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*cloudfront.DistributionSummary)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockCloudfrontRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockCloudfrontRepository creates a new instance of MockCloudfrontRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockCloudfrontRepository(t mockConstructorTestingTNewMockCloudfrontRepository) *MockCloudfrontRepository {
- mock := &MockCloudfrontRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_DynamoDBRepository.go b/enumeration/remote/aws/repository/mock_DynamoDBRepository.go
deleted file mode 100644
index 884bc4e4f..000000000
--- a/enumeration/remote/aws/repository/mock_DynamoDBRepository.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockDynamoDBRepository is an autogenerated mock type for the DynamoDBRepository type
-type MockDynamoDBRepository struct {
- mock.Mock
-}
-
-// ListAllTables provides a mock function with given fields:
-func (_m *MockDynamoDBRepository) ListAllTables() ([]*string, error) {
- ret := _m.Called()
-
- var r0 []*string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockDynamoDBRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockDynamoDBRepository creates a new instance of MockDynamoDBRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockDynamoDBRepository(t mockConstructorTestingTNewMockDynamoDBRepository) *MockDynamoDBRepository {
- mock := &MockDynamoDBRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_EC2Repository.go b/enumeration/remote/aws/repository/mock_EC2Repository.go
deleted file mode 100644
index 878dcf600..000000000
--- a/enumeration/remote/aws/repository/mock_EC2Repository.go
+++ /dev/null
@@ -1,469 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- ec2 "github.com/aws/aws-sdk-go/service/ec2"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockEC2Repository is an autogenerated mock type for the EC2Repository type
-type MockEC2Repository struct {
- mock.Mock
-}
-
-// DescribeLaunchTemplates provides a mock function with given fields:
-func (_m *MockEC2Repository) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error) {
- ret := _m.Called()
-
- var r0 []*ec2.LaunchTemplate
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.LaunchTemplate, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.LaunchTemplate); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.LaunchTemplate)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// IsEbsEncryptionEnabledByDefault provides a mock function with given fields:
-func (_m *MockEC2Repository) IsEbsEncryptionEnabledByDefault() (bool, error) {
- ret := _m.Called()
-
- var r0 bool
- var r1 error
- if rf, ok := ret.Get(0).(func() (bool, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() bool); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllAddresses provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllAddresses() ([]*ec2.Address, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Address
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Address, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Address); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Address)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllAddressesAssociation provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllAddressesAssociation() ([]*ec2.Address, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Address
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Address, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Address); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Address)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllImages provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllImages() ([]*ec2.Image, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Image
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Image, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Image); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Image)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllInstances provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllInstances() ([]*ec2.Instance, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Instance
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Instance, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Instance); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Instance)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllInternetGateways provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllInternetGateways() ([]*ec2.InternetGateway, error) {
- ret := _m.Called()
-
- var r0 []*ec2.InternetGateway
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.InternetGateway, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.InternetGateway); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.InternetGateway)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllKeyPairs provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllKeyPairs() ([]*ec2.KeyPairInfo, error) {
- ret := _m.Called()
-
- var r0 []*ec2.KeyPairInfo
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.KeyPairInfo, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.KeyPairInfo); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.KeyPairInfo)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllNatGateways provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllNatGateways() ([]*ec2.NatGateway, error) {
- ret := _m.Called()
-
- var r0 []*ec2.NatGateway
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.NatGateway, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.NatGateway); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.NatGateway)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllNetworkACLs provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllNetworkACLs() ([]*ec2.NetworkAcl, error) {
- ret := _m.Called()
-
- var r0 []*ec2.NetworkAcl
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.NetworkAcl, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.NetworkAcl); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.NetworkAcl)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRouteTables provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllRouteTables() ([]*ec2.RouteTable, error) {
- ret := _m.Called()
-
- var r0 []*ec2.RouteTable
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.RouteTable, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.RouteTable); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.RouteTable)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSecurityGroups provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) {
- ret := _m.Called()
-
- var r0 []*ec2.SecurityGroup
- var r1 []*ec2.SecurityGroup
- var r2 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.SecurityGroup); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.SecurityGroup)
- }
- }
-
- if rf, ok := ret.Get(1).(func() []*ec2.SecurityGroup); ok {
- r1 = rf()
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).([]*ec2.SecurityGroup)
- }
- }
-
- if rf, ok := ret.Get(2).(func() error); ok {
- r2 = rf()
- } else {
- r2 = ret.Error(2)
- }
-
- return r0, r1, r2
-}
-
-// ListAllSnapshots provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllSnapshots() ([]*ec2.Snapshot, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Snapshot
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Snapshot, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Snapshot); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Snapshot)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSubnets provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Subnet
- var r1 []*ec2.Subnet
- var r2 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Subnet, []*ec2.Subnet, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Subnet); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Subnet)
- }
- }
-
- if rf, ok := ret.Get(1).(func() []*ec2.Subnet); ok {
- r1 = rf()
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).([]*ec2.Subnet)
- }
- }
-
- if rf, ok := ret.Get(2).(func() error); ok {
- r2 = rf()
- } else {
- r2 = ret.Error(2)
- }
-
- return r0, r1, r2
-}
-
-// ListAllVPCs provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Vpc
- var r1 []*ec2.Vpc
- var r2 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Vpc, []*ec2.Vpc, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Vpc); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Vpc)
- }
- }
-
- if rf, ok := ret.Get(1).(func() []*ec2.Vpc); ok {
- r1 = rf()
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).([]*ec2.Vpc)
- }
- }
-
- if rf, ok := ret.Get(2).(func() error); ok {
- r2 = rf()
- } else {
- r2 = ret.Error(2)
- }
-
- return r0, r1, r2
-}
-
-// ListAllVolumes provides a mock function with given fields:
-func (_m *MockEC2Repository) ListAllVolumes() ([]*ec2.Volume, error) {
- ret := _m.Called()
-
- var r0 []*ec2.Volume
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ec2.Volume, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ec2.Volume); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ec2.Volume)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockEC2Repository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockEC2Repository creates a new instance of MockEC2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockEC2Repository(t mockConstructorTestingTNewMockEC2Repository) *MockEC2Repository {
- mock := &MockEC2Repository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_ECRRepository.go b/enumeration/remote/aws/repository/mock_ECRRepository.go
deleted file mode 100644
index 7ce54736c..000000000
--- a/enumeration/remote/aws/repository/mock_ECRRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- ecr "github.com/aws/aws-sdk-go/service/ecr"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockECRRepository is an autogenerated mock type for the ECRRepository type
-type MockECRRepository struct {
- mock.Mock
-}
-
-// GetRepositoryPolicy provides a mock function with given fields: _a0
-func (_m *MockECRRepository) GetRepositoryPolicy(_a0 *ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.Repository) *ecr.GetRepositoryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.Repository) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRepositories provides a mock function with given fields:
-func (_m *MockECRRepository) ListAllRepositories() ([]*ecr.Repository, error) {
- ret := _m.Called()
-
- var r0 []*ecr.Repository
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*ecr.Repository, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*ecr.Repository); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*ecr.Repository)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockECRRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockECRRepository creates a new instance of MockECRRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockECRRepository(t mockConstructorTestingTNewMockECRRepository) *MockECRRepository {
- mock := &MockECRRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_ELBRepository.go b/enumeration/remote/aws/repository/mock_ELBRepository.go
deleted file mode 100644
index 0aba167c1..000000000
--- a/enumeration/remote/aws/repository/mock_ELBRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- elb "github.com/aws/aws-sdk-go/service/elb"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockELBRepository is an autogenerated mock type for the ELBRepository type
-type MockELBRepository struct {
- mock.Mock
-}
-
-// ListAllLoadBalancers provides a mock function with given fields:
-func (_m *MockELBRepository) ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error) {
- ret := _m.Called()
-
- var r0 []*elb.LoadBalancerDescription
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*elb.LoadBalancerDescription, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*elb.LoadBalancerDescription); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*elb.LoadBalancerDescription)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockELBRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockELBRepository creates a new instance of MockELBRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockELBRepository(t mockConstructorTestingTNewMockELBRepository) *MockELBRepository {
- mock := &MockELBRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_ELBV2Repository.go b/enumeration/remote/aws/repository/mock_ELBV2Repository.go
deleted file mode 100644
index a6f533308..000000000
--- a/enumeration/remote/aws/repository/mock_ELBV2Repository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- elbv2 "github.com/aws/aws-sdk-go/service/elbv2"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockELBV2Repository is an autogenerated mock type for the ELBV2Repository type
-type MockELBV2Repository struct {
- mock.Mock
-}
-
-// ListAllLoadBalancerListeners provides a mock function with given fields: _a0
-func (_m *MockELBV2Repository) ListAllLoadBalancerListeners(_a0 string) ([]*elbv2.Listener, error) {
- ret := _m.Called(_a0)
-
- var r0 []*elbv2.Listener
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*elbv2.Listener, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(string) []*elbv2.Listener); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*elbv2.Listener)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllLoadBalancers provides a mock function with given fields:
-func (_m *MockELBV2Repository) ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error) {
- ret := _m.Called()
-
- var r0 []*elbv2.LoadBalancer
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*elbv2.LoadBalancer, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*elbv2.LoadBalancer); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*elbv2.LoadBalancer)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockELBV2Repository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockELBV2Repository creates a new instance of MockELBV2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockELBV2Repository(t mockConstructorTestingTNewMockELBV2Repository) *MockELBV2Repository {
- mock := &MockELBV2Repository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_ElastiCacheRepository.go b/enumeration/remote/aws/repository/mock_ElastiCacheRepository.go
deleted file mode 100644
index 70b127913..000000000
--- a/enumeration/remote/aws/repository/mock_ElastiCacheRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- elasticache "github.com/aws/aws-sdk-go/service/elasticache"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockElastiCacheRepository is an autogenerated mock type for the ElastiCacheRepository type
-type MockElastiCacheRepository struct {
- mock.Mock
-}
-
-// ListAllCacheClusters provides a mock function with given fields:
-func (_m *MockElastiCacheRepository) ListAllCacheClusters() ([]*elasticache.CacheCluster, error) {
- ret := _m.Called()
-
- var r0 []*elasticache.CacheCluster
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*elasticache.CacheCluster, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*elasticache.CacheCluster); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*elasticache.CacheCluster)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockElastiCacheRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockElastiCacheRepository creates a new instance of MockElastiCacheRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockElastiCacheRepository(t mockConstructorTestingTNewMockElastiCacheRepository) *MockElastiCacheRepository {
- mock := &MockElastiCacheRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_IAMRepository.go b/enumeration/remote/aws/repository/mock_IAMRepository.go
deleted file mode 100644
index 43ad6565e..000000000
--- a/enumeration/remote/aws/repository/mock_IAMRepository.go
+++ /dev/null
@@ -1,314 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- iam "github.com/aws/aws-sdk-go/service/iam"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockIAMRepository is an autogenerated mock type for the IAMRepository type
-type MockIAMRepository struct {
- mock.Mock
-}
-
-// ListAllAccessKeys provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllAccessKeys(_a0 []*iam.User) ([]*iam.AccessKeyMetadata, error) {
- ret := _m.Called(_a0)
-
- var r0 []*iam.AccessKeyMetadata
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.User) ([]*iam.AccessKeyMetadata, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.User) []*iam.AccessKeyMetadata); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*iam.AccessKeyMetadata)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.User) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllGroupPolicies provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllGroupPolicies(_a0 []*iam.Group) ([]string, error) {
- ret := _m.Called(_a0)
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.Group) ([]string, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.Group) []string); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.Group) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllGroupPolicyAttachments provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllGroupPolicyAttachments(_a0 []*iam.Group) ([]*AttachedGroupPolicy, error) {
- ret := _m.Called(_a0)
-
- var r0 []*AttachedGroupPolicy
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.Group) ([]*AttachedGroupPolicy, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.Group) []*AttachedGroupPolicy); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*AttachedGroupPolicy)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.Group) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllGroups provides a mock function with given fields:
-func (_m *MockIAMRepository) ListAllGroups() ([]*iam.Group, error) {
- ret := _m.Called()
-
- var r0 []*iam.Group
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*iam.Group, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*iam.Group); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*iam.Group)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllPolicies provides a mock function with given fields:
-func (_m *MockIAMRepository) ListAllPolicies() ([]*iam.Policy, error) {
- ret := _m.Called()
-
- var r0 []*iam.Policy
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*iam.Policy, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*iam.Policy); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*iam.Policy)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRolePolicies provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllRolePolicies(_a0 []*iam.Role) ([]RolePolicy, error) {
- ret := _m.Called(_a0)
-
- var r0 []RolePolicy
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.Role) ([]RolePolicy, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.Role) []RolePolicy); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]RolePolicy)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.Role) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRolePolicyAttachments provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllRolePolicyAttachments(_a0 []*iam.Role) ([]*AttachedRolePolicy, error) {
- ret := _m.Called(_a0)
-
- var r0 []*AttachedRolePolicy
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.Role) ([]*AttachedRolePolicy, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.Role) []*AttachedRolePolicy); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*AttachedRolePolicy)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.Role) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRoles provides a mock function with given fields:
-func (_m *MockIAMRepository) ListAllRoles() ([]*iam.Role, error) {
- ret := _m.Called()
-
- var r0 []*iam.Role
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*iam.Role, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*iam.Role); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*iam.Role)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllUserPolicies provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllUserPolicies(_a0 []*iam.User) ([]string, error) {
- ret := _m.Called(_a0)
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.User) ([]string, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.User) []string); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.User) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllUserPolicyAttachments provides a mock function with given fields: _a0
-func (_m *MockIAMRepository) ListAllUserPolicyAttachments(_a0 []*iam.User) ([]*AttachedUserPolicy, error) {
- ret := _m.Called(_a0)
-
- var r0 []*AttachedUserPolicy
- var r1 error
- if rf, ok := ret.Get(0).(func([]*iam.User) ([]*AttachedUserPolicy, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func([]*iam.User) []*AttachedUserPolicy); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*AttachedUserPolicy)
- }
- }
-
- if rf, ok := ret.Get(1).(func([]*iam.User) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllUsers provides a mock function with given fields:
-func (_m *MockIAMRepository) ListAllUsers() ([]*iam.User, error) {
- ret := _m.Called()
-
- var r0 []*iam.User
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*iam.User, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*iam.User); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*iam.User)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockIAMRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockIAMRepository creates a new instance of MockIAMRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockIAMRepository(t mockConstructorTestingTNewMockIAMRepository) *MockIAMRepository {
- mock := &MockIAMRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_KMSRepository.go b/enumeration/remote/aws/repository/mock_KMSRepository.go
deleted file mode 100644
index e068f80ce..000000000
--- a/enumeration/remote/aws/repository/mock_KMSRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- kms "github.com/aws/aws-sdk-go/service/kms"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockKMSRepository is an autogenerated mock type for the KMSRepository type
-type MockKMSRepository struct {
- mock.Mock
-}
-
-// ListAllAliases provides a mock function with given fields:
-func (_m *MockKMSRepository) ListAllAliases() ([]*kms.AliasListEntry, error) {
- ret := _m.Called()
-
- var r0 []*kms.AliasListEntry
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*kms.AliasListEntry, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*kms.AliasListEntry); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*kms.AliasListEntry)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllKeys provides a mock function with given fields:
-func (_m *MockKMSRepository) ListAllKeys() ([]*kms.KeyListEntry, error) {
- ret := _m.Called()
-
- var r0 []*kms.KeyListEntry
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*kms.KeyListEntry, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*kms.KeyListEntry); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*kms.KeyListEntry)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockKMSRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockKMSRepository creates a new instance of MockKMSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockKMSRepository(t mockConstructorTestingTNewMockKMSRepository) *MockKMSRepository {
- mock := &MockKMSRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_LambdaRepository.go b/enumeration/remote/aws/repository/mock_LambdaRepository.go
deleted file mode 100644
index 202809437..000000000
--- a/enumeration/remote/aws/repository/mock_LambdaRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- lambda "github.com/aws/aws-sdk-go/service/lambda"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockLambdaRepository is an autogenerated mock type for the LambdaRepository type
-type MockLambdaRepository struct {
- mock.Mock
-}
-
-// ListAllLambdaEventSourceMappings provides a mock function with given fields:
-func (_m *MockLambdaRepository) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error) {
- ret := _m.Called()
-
- var r0 []*lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*lambda.EventSourceMappingConfiguration); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllLambdaFunctions provides a mock function with given fields:
-func (_m *MockLambdaRepository) ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error) {
- ret := _m.Called()
-
- var r0 []*lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*lambda.FunctionConfiguration, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*lambda.FunctionConfiguration); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockLambdaRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockLambdaRepository creates a new instance of MockLambdaRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockLambdaRepository(t mockConstructorTestingTNewMockLambdaRepository) *MockLambdaRepository {
- mock := &MockLambdaRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_RDSRepository.go b/enumeration/remote/aws/repository/mock_RDSRepository.go
deleted file mode 100644
index 7e4e9298e..000000000
--- a/enumeration/remote/aws/repository/mock_RDSRepository.go
+++ /dev/null
@@ -1,106 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- rds "github.com/aws/aws-sdk-go/service/rds"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockRDSRepository is an autogenerated mock type for the RDSRepository type
-type MockRDSRepository struct {
- mock.Mock
-}
-
-// ListAllDBClusters provides a mock function with given fields:
-func (_m *MockRDSRepository) ListAllDBClusters() ([]*rds.DBCluster, error) {
- ret := _m.Called()
-
- var r0 []*rds.DBCluster
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*rds.DBCluster, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*rds.DBCluster); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*rds.DBCluster)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllDBInstances provides a mock function with given fields:
-func (_m *MockRDSRepository) ListAllDBInstances() ([]*rds.DBInstance, error) {
- ret := _m.Called()
-
- var r0 []*rds.DBInstance
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*rds.DBInstance, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*rds.DBInstance); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*rds.DBInstance)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllDBSubnetGroups provides a mock function with given fields:
-func (_m *MockRDSRepository) ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error) {
- ret := _m.Called()
-
- var r0 []*rds.DBSubnetGroup
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*rds.DBSubnetGroup, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*rds.DBSubnetGroup); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*rds.DBSubnetGroup)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockRDSRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockRDSRepository creates a new instance of MockRDSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockRDSRepository(t mockConstructorTestingTNewMockRDSRepository) *MockRDSRepository {
- mock := &MockRDSRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_Route53Repository.go b/enumeration/remote/aws/repository/mock_Route53Repository.go
deleted file mode 100644
index c7470230e..000000000
--- a/enumeration/remote/aws/repository/mock_Route53Repository.go
+++ /dev/null
@@ -1,106 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- route53 "github.com/aws/aws-sdk-go/service/route53"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockRoute53Repository is an autogenerated mock type for the Route53Repository type
-type MockRoute53Repository struct {
- mock.Mock
-}
-
-// ListAllHealthChecks provides a mock function with given fields:
-func (_m *MockRoute53Repository) ListAllHealthChecks() ([]*route53.HealthCheck, error) {
- ret := _m.Called()
-
- var r0 []*route53.HealthCheck
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*route53.HealthCheck, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*route53.HealthCheck); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*route53.HealthCheck)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllZones provides a mock function with given fields:
-func (_m *MockRoute53Repository) ListAllZones() ([]*route53.HostedZone, error) {
- ret := _m.Called()
-
- var r0 []*route53.HostedZone
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*route53.HostedZone, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*route53.HostedZone); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*route53.HostedZone)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRecordsForZone provides a mock function with given fields: zoneId
-func (_m *MockRoute53Repository) ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error) {
- ret := _m.Called(zoneId)
-
- var r0 []*route53.ResourceRecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(string) ([]*route53.ResourceRecordSet, error)); ok {
- return rf(zoneId)
- }
- if rf, ok := ret.Get(0).(func(string) []*route53.ResourceRecordSet); ok {
- r0 = rf(zoneId)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*route53.ResourceRecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(zoneId)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockRoute53Repository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockRoute53Repository creates a new instance of MockRoute53Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockRoute53Repository(t mockConstructorTestingTNewMockRoute53Repository) *MockRoute53Repository {
- mock := &MockRoute53Repository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_S3ControlRepository.go b/enumeration/remote/aws/repository/mock_S3ControlRepository.go
deleted file mode 100644
index 0e4bd64c6..000000000
--- a/enumeration/remote/aws/repository/mock_S3ControlRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- s3control "github.com/aws/aws-sdk-go/service/s3control"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockS3ControlRepository is an autogenerated mock type for the S3ControlRepository type
-type MockS3ControlRepository struct {
- mock.Mock
-}
-
-// DescribeAccountPublicAccessBlock provides a mock function with given fields: accountID
-func (_m *MockS3ControlRepository) DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, error) {
- ret := _m.Called(accountID)
-
- var r0 *s3control.PublicAccessBlockConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(string) (*s3control.PublicAccessBlockConfiguration, error)); ok {
- return rf(accountID)
- }
- if rf, ok := ret.Get(0).(func(string) *s3control.PublicAccessBlockConfiguration); ok {
- r0 = rf(accountID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PublicAccessBlockConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(accountID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockS3ControlRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockS3ControlRepository creates a new instance of MockS3ControlRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockS3ControlRepository(t mockConstructorTestingTNewMockS3ControlRepository) *MockS3ControlRepository {
- mock := &MockS3ControlRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_S3Repository.go b/enumeration/remote/aws/repository/mock_S3Repository.go
deleted file mode 100644
index 4bc3cb864..000000000
--- a/enumeration/remote/aws/repository/mock_S3Repository.go
+++ /dev/null
@@ -1,234 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- s3 "github.com/aws/aws-sdk-go/service/s3"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockS3Repository is an autogenerated mock type for the S3Repository type
-type MockS3Repository struct {
- mock.Mock
-}
-
-// GetBucketLocation provides a mock function with given fields: bucketName
-func (_m *MockS3Repository) GetBucketLocation(bucketName string) (string, error) {
- ret := _m.Called(bucketName)
-
- var r0 string
- var r1 error
- if rf, ok := ret.Get(0).(func(string) (string, error)); ok {
- return rf(bucketName)
- }
- if rf, ok := ret.Get(0).(func(string) string); ok {
- r0 = rf(bucketName)
- } else {
- r0 = ret.Get(0).(string)
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(bucketName)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketNotification provides a mock function with given fields: bucketName, region
-func (_m *MockS3Repository) GetBucketNotification(bucketName string, region string) (*s3.NotificationConfiguration, error) {
- ret := _m.Called(bucketName, region)
-
- var r0 *s3.NotificationConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(string, string) (*s3.NotificationConfiguration, error)); ok {
- return rf(bucketName, region)
- }
- if rf, ok := ret.Get(0).(func(string, string) *s3.NotificationConfiguration); ok {
- r0 = rf(bucketName, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.NotificationConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string, string) error); ok {
- r1 = rf(bucketName, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicy provides a mock function with given fields: bucketName, region
-func (_m *MockS3Repository) GetBucketPolicy(bucketName string, region string) (*string, error) {
- ret := _m.Called(bucketName, region)
-
- var r0 *string
- var r1 error
- if rf, ok := ret.Get(0).(func(string, string) (*string, error)); ok {
- return rf(bucketName, region)
- }
- if rf, ok := ret.Get(0).(func(string, string) *string); ok {
- r0 = rf(bucketName, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*string)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string, string) error); ok {
- r1 = rf(bucketName, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPublicAccessBlock provides a mock function with given fields: bucketName, region
-func (_m *MockS3Repository) GetBucketPublicAccessBlock(bucketName string, region string) (*s3.PublicAccessBlockConfiguration, error) {
- ret := _m.Called(bucketName, region)
-
- var r0 *s3.PublicAccessBlockConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(string, string) (*s3.PublicAccessBlockConfiguration, error)); ok {
- return rf(bucketName, region)
- }
- if rf, ok := ret.Get(0).(func(string, string) *s3.PublicAccessBlockConfiguration); ok {
- r0 = rf(bucketName, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PublicAccessBlockConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string, string) error); ok {
- r1 = rf(bucketName, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllBuckets provides a mock function with given fields:
-func (_m *MockS3Repository) ListAllBuckets() ([]*s3.Bucket, error) {
- ret := _m.Called()
-
- var r0 []*s3.Bucket
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*s3.Bucket, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*s3.Bucket); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*s3.Bucket)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketAnalyticsConfigurations provides a mock function with given fields: bucket, region
-func (_m *MockS3Repository) ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error) {
- ret := _m.Called(bucket, region)
-
- var r0 []*s3.AnalyticsConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) ([]*s3.AnalyticsConfiguration, error)); ok {
- return rf(bucket, region)
- }
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) []*s3.AnalyticsConfiguration); ok {
- r0 = rf(bucket, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*s3.AnalyticsConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.Bucket, string) error); ok {
- r1 = rf(bucket, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketInventoryConfigurations provides a mock function with given fields: bucket, region
-func (_m *MockS3Repository) ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error) {
- ret := _m.Called(bucket, region)
-
- var r0 []*s3.InventoryConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) ([]*s3.InventoryConfiguration, error)); ok {
- return rf(bucket, region)
- }
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) []*s3.InventoryConfiguration); ok {
- r0 = rf(bucket, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*s3.InventoryConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.Bucket, string) error); ok {
- r1 = rf(bucket, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketMetricsConfigurations provides a mock function with given fields: bucket, region
-func (_m *MockS3Repository) ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error) {
- ret := _m.Called(bucket, region)
-
- var r0 []*s3.MetricsConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) ([]*s3.MetricsConfiguration, error)); ok {
- return rf(bucket, region)
- }
- if rf, ok := ret.Get(0).(func(*s3.Bucket, string) []*s3.MetricsConfiguration); ok {
- r0 = rf(bucket, region)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*s3.MetricsConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.Bucket, string) error); ok {
- r1 = rf(bucket, region)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockS3Repository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockS3Repository creates a new instance of MockS3Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockS3Repository(t mockConstructorTestingTNewMockS3Repository) *MockS3Repository {
- mock := &MockS3Repository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_SNSRepository.go b/enumeration/remote/aws/repository/mock_SNSRepository.go
deleted file mode 100644
index 2313c3bba..000000000
--- a/enumeration/remote/aws/repository/mock_SNSRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- sns "github.com/aws/aws-sdk-go/service/sns"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockSNSRepository is an autogenerated mock type for the SNSRepository type
-type MockSNSRepository struct {
- mock.Mock
-}
-
-// ListAllSubscriptions provides a mock function with given fields:
-func (_m *MockSNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error) {
- ret := _m.Called()
-
- var r0 []*sns.Subscription
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*sns.Subscription, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*sns.Subscription); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*sns.Subscription)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllTopics provides a mock function with given fields:
-func (_m *MockSNSRepository) ListAllTopics() ([]*sns.Topic, error) {
- ret := _m.Called()
-
- var r0 []*sns.Topic
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*sns.Topic, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*sns.Topic); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*sns.Topic)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockSNSRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockSNSRepository creates a new instance of MockSNSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockSNSRepository(t mockConstructorTestingTNewMockSNSRepository) *MockSNSRepository {
- mock := &MockSNSRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/mock_SQSRepository.go b/enumeration/remote/aws/repository/mock_SQSRepository.go
deleted file mode 100644
index ea99f4d7e..000000000
--- a/enumeration/remote/aws/repository/mock_SQSRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- sqs "github.com/aws/aws-sdk-go/service/sqs"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockSQSRepository is an autogenerated mock type for the SQSRepository type
-type MockSQSRepository struct {
- mock.Mock
-}
-
-// GetQueueAttributes provides a mock function with given fields: url
-func (_m *MockSQSRepository) GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error) {
- ret := _m.Called(url)
-
- var r0 *sqs.GetQueueAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(string) (*sqs.GetQueueAttributesOutput, error)); ok {
- return rf(url)
- }
- if rf, ok := ret.Get(0).(func(string) *sqs.GetQueueAttributesOutput); ok {
- r0 = rf(url)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.GetQueueAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(url)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllQueues provides a mock function with given fields:
-func (_m *MockSQSRepository) ListAllQueues() ([]*string, error) {
- ret := _m.Called()
-
- var r0 []*string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockSQSRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockSQSRepository creates a new instance of MockSQSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockSQSRepository(t mockConstructorTestingTNewMockSQSRepository) *MockSQSRepository {
- mock := &MockSQSRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/aws/repository/rds_repository.go b/enumeration/remote/aws/repository/rds_repository.go
deleted file mode 100644
index 95d2ebfbe..000000000
--- a/enumeration/remote/aws/repository/rds_repository.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/rds"
- "github.com/aws/aws-sdk-go/service/rds/rdsiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type RDSRepository interface {
- ListAllDBInstances() ([]*rds.DBInstance, error)
- ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error)
- ListAllDBClusters() ([]*rds.DBCluster, error)
-}
-
-type rdsRepository struct {
- client rdsiface.RDSAPI
- cache cache.Cache
-}
-
-func NewRDSRepository(session *session.Session, c cache.Cache) *rdsRepository {
- return &rdsRepository{
- rds.New(session),
- c,
- }
-}
-
-func (r *rdsRepository) ListAllDBInstances() ([]*rds.DBInstance, error) {
- if v := r.cache.Get("rdsListAllDBInstances"); v != nil {
- return v.([]*rds.DBInstance), nil
- }
-
- var result []*rds.DBInstance
- input := &rds.DescribeDBInstancesInput{}
- err := r.client.DescribeDBInstancesPages(input, func(res *rds.DescribeDBInstancesOutput, lastPage bool) bool {
- result = append(result, res.DBInstances...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("rdsListAllDBInstances", result)
- return result, nil
-}
-
-func (r *rdsRepository) ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error) {
- if v := r.cache.Get("rdsListAllDBSubnetGroups"); v != nil {
- return v.([]*rds.DBSubnetGroup), nil
- }
-
- var subnetGroups []*rds.DBSubnetGroup
- input := rds.DescribeDBSubnetGroupsInput{}
- err := r.client.DescribeDBSubnetGroupsPages(&input,
- func(resp *rds.DescribeDBSubnetGroupsOutput, lastPage bool) bool {
- subnetGroups = append(subnetGroups, resp.DBSubnetGroups...)
- return !lastPage
- },
- )
-
- r.cache.Put("rdsListAllDBSubnetGroups", subnetGroups)
- return subnetGroups, err
-}
-
-func (r *rdsRepository) ListAllDBClusters() ([]*rds.DBCluster, error) {
- cacheKey := "rdsListAllDBClusters"
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*rds.DBCluster), nil
- }
-
- var clusters []*rds.DBCluster
- input := rds.DescribeDBClustersInput{}
- err := r.client.DescribeDBClustersPages(&input,
- func(resp *rds.DescribeDBClustersOutput, lastPage bool) bool {
- clusters = append(clusters, resp.DBClusters...)
- return !lastPage
- },
- )
-
- r.cache.Put(cacheKey, clusters)
- return clusters, err
-}
diff --git a/enumeration/remote/aws/repository/rds_repository_test.go b/enumeration/remote/aws/repository/rds_repository_test.go
deleted file mode 100644
index 68b6827de..000000000
--- a/enumeration/remote/aws/repository/rds_repository_test.go
+++ /dev/null
@@ -1,245 +0,0 @@
-package repository
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/rds"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_rdsRepository_ListAllDBInstances(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeRDS)
- want []*rds.DBInstance
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeRDS) {
- client.On("DescribeDBInstancesPages",
- &rds.DescribeDBInstancesInput{},
- mock.MatchedBy(func(callback func(res *rds.DescribeDBInstancesOutput, lastPage bool) bool) bool {
- callback(&rds.DescribeDBInstancesOutput{
- DBInstances: []*rds.DBInstance{
- {DBInstanceIdentifier: aws.String("1")},
- {DBInstanceIdentifier: aws.String("2")},
- {DBInstanceIdentifier: aws.String("3")},
- },
- }, false)
- callback(&rds.DescribeDBInstancesOutput{
- DBInstances: []*rds.DBInstance{
- {DBInstanceIdentifier: aws.String("4")},
- {DBInstanceIdentifier: aws.String("5")},
- {DBInstanceIdentifier: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*rds.DBInstance{
- {DBInstanceIdentifier: aws.String("1")},
- {DBInstanceIdentifier: aws.String("2")},
- {DBInstanceIdentifier: aws.String("3")},
- {DBInstanceIdentifier: aws.String("4")},
- {DBInstanceIdentifier: aws.String("5")},
- {DBInstanceIdentifier: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeRDS{}
- tt.mocks(client)
- r := &rdsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllDBInstances()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllDBInstances()
- assert.Nil(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*rds.DBInstance{}, store.Get("rdsListAllDBInstances"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_rdsRepository_ListAllDBSubnetGroups(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeRDS)
- want []*rds.DBSubnetGroup
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeRDS) {
- client.On("DescribeDBSubnetGroupsPages",
- &rds.DescribeDBSubnetGroupsInput{},
- mock.MatchedBy(func(callback func(res *rds.DescribeDBSubnetGroupsOutput, lastPage bool) bool) bool {
- callback(&rds.DescribeDBSubnetGroupsOutput{
- DBSubnetGroups: []*rds.DBSubnetGroup{
- {DBSubnetGroupName: aws.String("1")},
- {DBSubnetGroupName: aws.String("2")},
- {DBSubnetGroupName: aws.String("3")},
- },
- }, false)
- callback(&rds.DescribeDBSubnetGroupsOutput{
- DBSubnetGroups: []*rds.DBSubnetGroup{
- {DBSubnetGroupName: aws.String("4")},
- {DBSubnetGroupName: aws.String("5")},
- {DBSubnetGroupName: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*rds.DBSubnetGroup{
- {DBSubnetGroupName: aws.String("1")},
- {DBSubnetGroupName: aws.String("2")},
- {DBSubnetGroupName: aws.String("3")},
- {DBSubnetGroupName: aws.String("4")},
- {DBSubnetGroupName: aws.String("5")},
- {DBSubnetGroupName: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeRDS{}
- tt.mocks(client)
- r := &rdsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllDBSubnetGroups()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllDBSubnetGroups()
- assert.Nil(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*rds.DBSubnetGroup{}, store.Get("rdsListAllDBSubnetGroups"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_rdsRepository_ListAllDBClusters(t *testing.T) {
- tests := []struct {
- name string
- mocks func(*awstest.MockFakeRDS, *cache.MockCache)
- want []*rds.DBCluster
- wantErr error
- }{
- {
- name: "should list with 2 pages",
- mocks: func(client *awstest.MockFakeRDS, store *cache.MockCache) {
- clusters := []*rds.DBCluster{
- {DBClusterIdentifier: aws.String("1")},
- {DBClusterIdentifier: aws.String("2")},
- {DBClusterIdentifier: aws.String("3")},
- {DBClusterIdentifier: aws.String("4")},
- {DBClusterIdentifier: aws.String("5")},
- {DBClusterIdentifier: aws.String("6")},
- }
-
- client.On("DescribeDBClustersPages",
- &rds.DescribeDBClustersInput{},
- mock.MatchedBy(func(callback func(res *rds.DescribeDBClustersOutput, lastPage bool) bool) bool {
- callback(&rds.DescribeDBClustersOutput{DBClusters: clusters[:3]}, false)
- callback(&rds.DescribeDBClustersOutput{DBClusters: clusters[3:]}, true)
- return true
- })).Return(nil).Once()
-
- store.On("Get", "rdsListAllDBClusters").Return(nil).Once()
- store.On("Put", "rdsListAllDBClusters", clusters).Return(false).Once()
- },
- want: []*rds.DBCluster{
- {DBClusterIdentifier: aws.String("1")},
- {DBClusterIdentifier: aws.String("2")},
- {DBClusterIdentifier: aws.String("3")},
- {DBClusterIdentifier: aws.String("4")},
- {DBClusterIdentifier: aws.String("5")},
- {DBClusterIdentifier: aws.String("6")},
- },
- },
- {
- name: "should hit cache",
- mocks: func(client *awstest.MockFakeRDS, store *cache.MockCache) {
- clusters := []*rds.DBCluster{
- {DBClusterIdentifier: aws.String("1")},
- {DBClusterIdentifier: aws.String("2")},
- {DBClusterIdentifier: aws.String("3")},
- {DBClusterIdentifier: aws.String("4")},
- {DBClusterIdentifier: aws.String("5")},
- {DBClusterIdentifier: aws.String("6")},
- }
-
- store.On("Get", "rdsListAllDBClusters").Return(clusters).Once()
- },
- want: []*rds.DBCluster{
- {DBClusterIdentifier: aws.String("1")},
- {DBClusterIdentifier: aws.String("2")},
- {DBClusterIdentifier: aws.String("3")},
- {DBClusterIdentifier: aws.String("4")},
- {DBClusterIdentifier: aws.String("5")},
- {DBClusterIdentifier: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := &cache.MockCache{}
- client := &awstest.MockFakeRDS{}
- tt.mocks(client, store)
- r := &rdsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllDBClusters()
- assert.Equal(t, tt.wantErr, err)
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/route53_repository.go b/enumeration/remote/aws/repository/route53_repository.go
deleted file mode 100644
index d1e7a51cc..000000000
--- a/enumeration/remote/aws/repository/route53_repository.go
+++ /dev/null
@@ -1,92 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "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/aws/aws-sdk-go/service/route53/route53iface"
-)
-
-type Route53Repository interface {
- ListAllHealthChecks() ([]*route53.HealthCheck, error)
- ListAllZones() ([]*route53.HostedZone, error)
- ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error)
-}
-
-type route53Repository struct {
- client route53iface.Route53API
- cache cache.Cache
-}
-
-func NewRoute53Repository(session *session.Session, c cache.Cache) *route53Repository {
- return &route53Repository{
- route53.New(session),
- c,
- }
-}
-
-func (r *route53Repository) ListAllHealthChecks() ([]*route53.HealthCheck, error) {
- if v := r.cache.Get("route53ListAllHealthChecks"); v != nil {
- return v.([]*route53.HealthCheck), nil
- }
-
- var tables []*route53.HealthCheck
- input := &route53.ListHealthChecksInput{}
- err := r.client.ListHealthChecksPages(input, func(res *route53.ListHealthChecksOutput, lastPage bool) bool {
- tables = append(tables, res.HealthChecks...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("route53ListAllHealthChecks", tables)
- return tables, nil
-}
-
-func (r *route53Repository) ListAllZones() ([]*route53.HostedZone, error) {
- cacheKey := "route53ListAllZones"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*route53.HostedZone), nil
- }
-
- var result []*route53.HostedZone
- input := &route53.ListHostedZonesInput{}
- err := r.client.ListHostedZonesPages(input, func(res *route53.ListHostedZonesOutput, lastPage bool) bool {
- result = append(result, res.HostedZones...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, result)
- return result, nil
-}
-
-func (r *route53Repository) ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error) {
- cacheKey := fmt.Sprintf("route53ListRecordsForZone_%s", zoneId)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.([]*route53.ResourceRecordSet), nil
- }
-
- var results []*route53.ResourceRecordSet
- input := &route53.ListResourceRecordSetsInput{
- HostedZoneId: aws.String(zoneId),
- }
- err := r.client.ListResourceRecordSetsPages(input, func(res *route53.ListResourceRecordSetsOutput, lastPage bool) bool {
- results = append(results, res.ResourceRecordSets...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, results)
- return results, nil
-}
diff --git a/enumeration/remote/aws/repository/route53_repository_test.go b/enumeration/remote/aws/repository/route53_repository_test.go
deleted file mode 100644
index 77a23c237..000000000
--- a/enumeration/remote/aws/repository/route53_repository_test.go
+++ /dev/null
@@ -1,240 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/route53"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_route53Repository_ListAllHealthChecks(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeRoute53)
- want []*route53.HealthCheck
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeRoute53) {
- client.On("ListHealthChecksPages",
- &route53.ListHealthChecksInput{},
- mock.MatchedBy(func(callback func(res *route53.ListHealthChecksOutput, lastPage bool) bool) bool {
- callback(&route53.ListHealthChecksOutput{
- HealthChecks: []*route53.HealthCheck{
- {Id: aws.String("1")},
- {Id: aws.String("2")},
- {Id: aws.String("3")},
- },
- }, false)
- callback(&route53.ListHealthChecksOutput{
- HealthChecks: []*route53.HealthCheck{
- {Id: aws.String("4")},
- {Id: aws.String("5")},
- {Id: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*route53.HealthCheck{
- {Id: aws.String("1")},
- {Id: aws.String("2")},
- {Id: aws.String("3")},
- {Id: aws.String("4")},
- {Id: aws.String("5")},
- {Id: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeRoute53{}
- tt.mocks(&client)
- r := &route53Repository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllHealthChecks()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllHealthChecks()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*route53.HealthCheck{}, store.Get("route53ListAllHealthChecks"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_route53Repository_ListAllZones(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeRoute53)
- want []*route53.HostedZone
- wantErr error
- }{
- {name: "Zones with 2 pages",
- mocks: func(client *awstest.MockFakeRoute53) {
- client.On("ListHostedZonesPages",
- &route53.ListHostedZonesInput{},
- mock.MatchedBy(func(callback func(res *route53.ListHostedZonesOutput, lastPage bool) bool) bool {
- callback(&route53.ListHostedZonesOutput{
- HostedZones: []*route53.HostedZone{
- {Id: aws.String("1")},
- {Id: aws.String("2")},
- {Id: aws.String("3")},
- },
- }, false)
- callback(&route53.ListHostedZonesOutput{
- HostedZones: []*route53.HostedZone{
- {Id: aws.String("4")},
- {Id: aws.String("5")},
- {Id: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*route53.HostedZone{
- {Id: aws.String("1")},
- {Id: aws.String("2")},
- {Id: aws.String("3")},
- {Id: aws.String("4")},
- {Id: aws.String("5")},
- {Id: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeRoute53{}
- tt.mocks(&client)
- r := &route53Repository{
- client: &client,
- cache: store,
- }
- got, err := r.ListAllZones()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllZones()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*route53.HostedZone{}, store.Get("route53ListAllZones"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_route53Repository_ListRecordsForZone(t *testing.T) {
- tests := []struct {
- name string
- zoneIds []string
- mocks func(client *awstest.MockFakeRoute53)
- want []*route53.ResourceRecordSet
- wantErr error
- }{
- {
- name: "records for zone with 2 pages",
- zoneIds: []string{
- "1",
- },
- mocks: func(client *awstest.MockFakeRoute53) {
- client.On("ListResourceRecordSetsPages",
- &route53.ListResourceRecordSetsInput{
- HostedZoneId: aws.String("1"),
- },
- mock.MatchedBy(func(callback func(res *route53.ListResourceRecordSetsOutput, lastPage bool) bool) bool {
- callback(&route53.ListResourceRecordSetsOutput{
- ResourceRecordSets: []*route53.ResourceRecordSet{
- {Name: aws.String("1")},
- {Name: aws.String("2")},
- {Name: aws.String("3")},
- },
- }, false)
- callback(&route53.ListResourceRecordSetsOutput{
- ResourceRecordSets: []*route53.ResourceRecordSet{
- {Name: aws.String("4")},
- {Name: aws.String("5")},
- {Name: aws.String("6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*route53.ResourceRecordSet{
- {Name: aws.String("1")},
- {Name: aws.String("2")},
- {Name: aws.String("3")},
- {Name: aws.String("4")},
- {Name: aws.String("5")},
- {Name: aws.String("6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := awstest.MockFakeRoute53{}
- tt.mocks(&client)
- r := &route53Repository{
- client: &client,
- cache: store,
- }
- for _, id := range tt.zoneIds {
- got, err := r.ListRecordsForZone(id)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListRecordsForZone(id)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*route53.ResourceRecordSet{}, store.Get(fmt.Sprintf("route53ListRecordsForZone_%s", id)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/s3_repository.go b/enumeration/remote/aws/repository/s3_repository.go
deleted file mode 100644
index 44da90b8b..000000000
--- a/enumeration/remote/aws/repository/s3_repository.go
+++ /dev/null
@@ -1,288 +0,0 @@
-package repository
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
-)
-
-type S3Repository interface {
- ListAllBuckets() ([]*s3.Bucket, error)
- GetBucketNotification(bucketName, region string) (*s3.NotificationConfiguration, error)
- GetBucketPolicy(bucketName, region string) (*string, error)
- GetBucketPublicAccessBlock(bucketName, region string) (*s3.PublicAccessBlockConfiguration, error)
- ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error)
- ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error)
- ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error)
- GetBucketLocation(bucketName string) (string, error)
-}
-
-type s3Repository struct {
- clientFactory client.AwsClientFactoryInterface
- cache cache.Cache
-}
-
-func NewS3Repository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3Repository {
- return &s3Repository{
- factory,
- c,
- }
-}
-
-func (s *s3Repository) ListAllBuckets() ([]*s3.Bucket, error) {
- cacheKey := "s3ListAllBuckets"
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*s3.Bucket), nil
- }
-
- out, err := s.clientFactory.GetS3Client(nil).ListBuckets(&s3.ListBucketsInput{})
- if err != nil {
- return nil, err
- }
- s.cache.Put(cacheKey, out.Buckets)
- return out.Buckets, nil
-}
-
-func (s *s3Repository) GetBucketPolicy(bucketName, region string) (*string, error) {
- cacheKey := fmt.Sprintf("s3GetBucketPolicy_%s_%s", bucketName, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.(*string), nil
- }
- policy, err := s.clientFactory.
- GetS3Client(&awssdk.Config{Region: ®ion}).
- GetBucketPolicy(
- &s3.GetBucketPolicyInput{Bucket: &bucketName},
- )
- if err != nil {
- if awsErr, ok := err.(awserr.Error); ok {
- if awsErr.Code() == "NoSuchBucketPolicy" {
- return nil, nil
- }
- }
- return nil, errors.Wrapf(
- err,
- "Error listing bucket policy %s",
- bucketName,
- )
- }
-
- result := policy.Policy
- if result != nil && *result == "" {
- result = nil
- }
-
- s.cache.Put(cacheKey, result)
- return result, nil
-}
-
-func (s *s3Repository) GetBucketPublicAccessBlock(bucketName, region string) (*s3.PublicAccessBlockConfiguration, error) {
- cacheKey := fmt.Sprintf("s3GetBucketPublicAccessBlock_%s_%s", bucketName, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.(*s3.PublicAccessBlockConfiguration), nil
- }
- response, err := s.clientFactory.
- GetS3Client(&awssdk.Config{Region: ®ion}).
- GetPublicAccessBlock(&s3.GetPublicAccessBlockInput{Bucket: &bucketName})
-
- if err != nil {
- if awsErr, ok := err.(awserr.Error); ok {
- if awsErr.Code() == "NoSuchPublicAccessBlockConfiguration" {
- return nil, nil
- }
- }
- return nil, errors.Wrapf(
- err,
- "Error listing bucket public access block %s",
- bucketName,
- )
- }
-
- result := response.PublicAccessBlockConfiguration
-
- s.cache.Put(cacheKey, result)
- return result, nil
-}
-
-func (s *s3Repository) GetBucketNotification(bucketName, region string) (*s3.NotificationConfiguration, error) {
- cacheKey := fmt.Sprintf("s3GetBucketNotification_%s_%s", bucketName, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.(*s3.NotificationConfiguration), nil
- }
- bucketNotificationConfig, err := s.clientFactory.
- GetS3Client(&awssdk.Config{Region: ®ion}).
- GetBucketNotificationConfiguration(
- &s3.GetBucketNotificationConfigurationRequest{Bucket: &bucketName},
- )
- if err != nil {
- return nil, errors.Wrapf(
- err,
- "Error listing bucket notification configuration %s",
- bucketName,
- )
- }
-
- result := bucketNotificationConfig
- if s.notificationIsEmpty(bucketNotificationConfig) {
- result = nil
- }
-
- s.cache.Put(cacheKey, result)
- return result, nil
-}
-
-func (s *s3Repository) notificationIsEmpty(notification *s3.NotificationConfiguration) bool {
- return notification.TopicConfigurations == nil &&
- notification.QueueConfigurations == nil &&
- notification.LambdaFunctionConfigurations == nil
-}
-
-func (s *s3Repository) ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error) {
- cacheKey := fmt.Sprintf("s3ListBucketInventoryConfigurations_%s_%s", *bucket.Name, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*s3.InventoryConfiguration), nil
- }
-
- inventoryConfigurations := make([]*s3.InventoryConfiguration, 0)
- s3client := s.clientFactory.GetS3Client(&awssdk.Config{Region: ®ion})
- request := &s3.ListBucketInventoryConfigurationsInput{
- Bucket: bucket.Name,
- ContinuationToken: nil,
- }
-
- for {
- configurations, err := s3client.ListBucketInventoryConfigurations(request)
- if err != nil {
- return nil, errors.Wrapf(
- err,
- "Error listing bucket inventory configuration %s",
- *bucket.Name,
- )
- }
- inventoryConfigurations = append(inventoryConfigurations, configurations.InventoryConfigurationList...)
- if configurations.IsTruncated != nil && *configurations.IsTruncated {
- request.ContinuationToken = configurations.NextContinuationToken
- } else {
- break
- }
- }
-
- s.cache.Put(cacheKey, inventoryConfigurations)
- return inventoryConfigurations, nil
-}
-
-func (s *s3Repository) ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error) {
- cacheKey := fmt.Sprintf("s3ListBucketMetricsConfigurations_%s_%s", *bucket.Name, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*s3.MetricsConfiguration), nil
- }
-
- metricsConfigurationList := make([]*s3.MetricsConfiguration, 0)
- s3client := s.clientFactory.GetS3Client(&awssdk.Config{Region: ®ion})
- request := &s3.ListBucketMetricsConfigurationsInput{
- Bucket: bucket.Name,
- ContinuationToken: nil,
- }
-
- for {
- configurations, err := s3client.ListBucketMetricsConfigurations(request)
- if err != nil {
- return nil, errors.Wrapf(
- err,
- "Error listing bucket metrics configuration %s",
- *bucket.Name,
- )
- }
- metricsConfigurationList = append(metricsConfigurationList, configurations.MetricsConfigurationList...)
- if configurations.IsTruncated != nil && *configurations.IsTruncated {
- request.ContinuationToken = configurations.NextContinuationToken
- } else {
- break
- }
- }
-
- s.cache.Put(cacheKey, metricsConfigurationList)
- return metricsConfigurationList, nil
-}
-
-func (s *s3Repository) ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error) {
- cacheKey := fmt.Sprintf("s3ListBucketAnalyticsConfigurations_%s_%s", *bucket.Name, region)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*s3.AnalyticsConfiguration), nil
- }
-
- analyticsConfigurationList := make([]*s3.AnalyticsConfiguration, 0)
- s3client := s.clientFactory.GetS3Client(&awssdk.Config{Region: ®ion})
- request := &s3.ListBucketAnalyticsConfigurationsInput{
- Bucket: bucket.Name,
- ContinuationToken: nil,
- }
-
- for {
- configurations, err := s3client.ListBucketAnalyticsConfigurations(request)
- if err != nil {
- return nil, errors.Wrapf(
- err,
- "Error listing bucket analytics configuration %s",
- *bucket.Name,
- )
- }
- analyticsConfigurationList = append(analyticsConfigurationList, configurations.AnalyticsConfigurationList...)
-
- if configurations.IsTruncated != nil && *configurations.IsTruncated {
- request.ContinuationToken = configurations.NextContinuationToken
- } else {
- break
- }
- }
-
- s.cache.Put(cacheKey, analyticsConfigurationList)
- return analyticsConfigurationList, nil
-}
-
-func (s *s3Repository) GetBucketLocation(bucketName string) (string, error) {
- cacheKey := fmt.Sprintf("s3GetBucketLocation_%s", bucketName)
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.(string), nil
- }
-
- bucketLocationRequest := s3.GetBucketLocationInput{Bucket: &bucketName}
- bucketLocationResponse, err := s.clientFactory.GetS3Client(nil).GetBucketLocation(&bucketLocationRequest)
- if err != nil {
- awsErr, ok := err.(awserr.Error)
- if ok && awsErr.Code() == s3.ErrCodeNoSuchBucket {
- logrus.WithFields(logrus.Fields{
- "bucket": bucketName,
- }).Warning("Unable to retrieve bucket region, this may be an inconsistency in S3 api for fresh deleted bucket, skipping ...")
- return "", nil
- }
- return "", err
- }
-
- var location string
-
- // Buckets in Region us-east-1 have a LocationConstraint of null.
- // https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html#API_GetBucketLocation_ResponseSyntax
- if bucketLocationResponse.LocationConstraint == nil {
- location = "us-east-1"
- } else {
- location = *bucketLocationResponse.LocationConstraint
- }
-
- if location == "EU" {
- location = "eu-west-1"
- }
-
- s.cache.Put(cacheKey, location)
- return location, nil
-}
diff --git a/enumeration/remote/aws/repository/s3_repository_test.go b/enumeration/remote/aws/repository/s3_repository_test.go
deleted file mode 100644
index a73c80c80..000000000
--- a/enumeration/remote/aws/repository/s3_repository_test.go
+++ /dev/null
@@ -1,866 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/pkg/errors"
- "github.com/r3labs/diff/v2"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_s3Repository_ListAllBuckets(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeS3)
- want []*s3.Bucket
- wantErr error
- }{
- {
- name: "List buckets",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("ListBuckets", &s3.ListBucketsInput{}).Return(
- &s3.ListBucketsOutput{
- Buckets: []*s3.Bucket{
- {Name: aws.String("bucket1")},
- {Name: aws.String("bucket2")},
- {Name: aws.String("bucket3")},
- },
- },
- nil,
- ).Once()
- },
- want: []*s3.Bucket{
- {Name: aws.String("bucket1")},
- {Name: aws.String("bucket2")},
- {Name: aws.String("bucket3")},
- },
- },
- {
- name: "Error listing buckets",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("ListBuckets", &s3.ListBucketsInput{}).Return(
- nil,
- awserr.NewRequestFailure(nil, 403, ""),
- ).Once()
- },
- want: nil,
- wantErr: awserr.NewRequestFailure(nil, 403, ""),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", (*aws.Config)(nil)).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.ListAllBuckets()
- factory.AssertExpectations(t)
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllBuckets()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*s3.Bucket{}, store.Get("s3ListAllBuckets"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_GetBucketNotification(t *testing.T) {
-
- tests := []struct {
- name string
- bucketName, region string
- mocks func(client *awstest.MockFakeS3)
- want *s3.NotificationConfiguration
- wantErr string
- }{
- {
- name: "get empty bucket notification",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketNotificationConfiguration", &s3.GetBucketNotificationConfigurationRequest{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.NotificationConfiguration{},
- nil,
- ).Once()
- },
- want: nil,
- },
- {
- name: "get bucket notification with lambda config",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketNotificationConfiguration", &s3.GetBucketNotificationConfigurationRequest{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.NotificationConfiguration{
- LambdaFunctionConfigurations: []*s3.LambdaFunctionConfiguration{
- {
- Id: aws.String("test"),
- },
- },
- },
- nil,
- ).Once()
- },
- want: &s3.NotificationConfiguration{
- LambdaFunctionConfigurations: []*s3.LambdaFunctionConfiguration{
- {
- Id: aws.String("test"),
- },
- },
- },
- },
- {
- name: "get bucket notification with queue config",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketNotificationConfiguration", &s3.GetBucketNotificationConfigurationRequest{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.NotificationConfiguration{
- QueueConfigurations: []*s3.QueueConfiguration{
- {
- Id: awssdk.String("test"),
- },
- },
- },
- nil,
- ).Once()
- },
- want: &s3.NotificationConfiguration{
- QueueConfigurations: []*s3.QueueConfiguration{
- {
- Id: awssdk.String("test"),
- },
- },
- },
- },
- {
- name: "get bucket notification with topic config",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketNotificationConfiguration", &s3.GetBucketNotificationConfigurationRequest{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.NotificationConfiguration{
- TopicConfigurations: []*s3.TopicConfiguration{
- {
- Id: awssdk.String("test"),
- },
- },
- },
- nil,
- ).Once()
- },
- want: &s3.NotificationConfiguration{
- TopicConfigurations: []*s3.TopicConfiguration{
- {
- Id: awssdk.String("test"),
- },
- },
- },
- },
- {
- name: "get bucket location when error",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketNotificationConfiguration", &s3.GetBucketNotificationConfigurationRequest{
- Bucket: aws.String("test-bucket"),
- }).Return(
- nil,
- awserr.New("UnknownError", "aws error", nil),
- ).Once()
- },
- wantErr: "Error listing bucket notification configuration test-bucket: UnknownError: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", &aws.Config{Region: &tt.region}).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.GetBucketNotification(tt.bucketName, tt.region)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil && tt.want != nil {
- // Check that results were cached
- cachedData, err := r.GetBucketNotification(tt.bucketName, tt.region)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, &s3.NotificationConfiguration{}, store.Get(fmt.Sprintf("s3GetBucketNotification_%s_%s", tt.bucketName, tt.region)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_GetBucketPolicy(t *testing.T) {
-
- tests := []struct {
- name string
- bucketName, region string
- mocks func(client *awstest.MockFakeS3)
- want *string
- wantErr string
- }{
- {
- name: "get nil bucket policy",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketPolicy", &s3.GetBucketPolicyInput{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.GetBucketPolicyOutput{},
- nil,
- ).Once()
- },
- want: nil,
- },
- {
- name: "get empty bucket policy",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketPolicy", &s3.GetBucketPolicyInput{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.GetBucketPolicyOutput{
- Policy: awssdk.String(""),
- },
- nil,
- ).Once()
- },
- want: nil,
- },
- {
- name: "get bucket policy",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketPolicy", &s3.GetBucketPolicyInput{
- Bucket: aws.String("test-bucket"),
- }).Return(
- &s3.GetBucketPolicyOutput{
- Policy: awssdk.String("foobar"),
- },
- nil,
- ).Once()
- },
- want: awssdk.String("foobar"),
- },
- {
- name: "get bucket location on 404",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketPolicy", &s3.GetBucketPolicyInput{
- Bucket: aws.String("test-bucket"),
- }).Return(
- nil,
- awserr.New("NoSuchBucketPolicy", "", nil),
- ).Once()
- },
- want: nil,
- },
- {
- name: "get bucket location when error",
- bucketName: "test-bucket",
- region: "us-east-1",
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketPolicy", &s3.GetBucketPolicyInput{
- Bucket: aws.String("test-bucket"),
- }).Return(
- nil,
- awserr.New("UnknownError", "aws error", nil),
- ).Once()
- },
- wantErr: "Error listing bucket policy test-bucket: UnknownError: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", &aws.Config{Region: &tt.region}).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.GetBucketPolicy(tt.bucketName, tt.region)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil && tt.want != nil {
- // Check that results were cached
- cachedData, err := r.GetBucketPolicy(tt.bucketName, tt.region)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, awssdk.String(""), store.Get(fmt.Sprintf("s3GetBucketPolicy_%s_%s", tt.bucketName, tt.region)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_ListBucketInventoryConfigurations(t *testing.T) {
- tests := []struct {
- name string
- input struct {
- bucket s3.Bucket
- region string
- }
- mocks func(client *awstest.MockFakeS3)
- want []*s3.InventoryConfiguration
- wantErr string
- }{
- {
- name: "List inventory configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketInventoryConfigurations",
- &s3.ListBucketInventoryConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: nil,
- },
- ).Return(
- &s3.ListBucketInventoryConfigurationsOutput{
- InventoryConfigurationList: []*s3.InventoryConfiguration{
- {Id: awssdk.String("config1")},
- {Id: awssdk.String("config2")},
- {Id: awssdk.String("config3")},
- },
- IsTruncated: awssdk.Bool(true),
- NextContinuationToken: awssdk.String("nexttoken"),
- },
- nil,
- ).Once()
- client.On(
- "ListBucketInventoryConfigurations",
- &s3.ListBucketInventoryConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: awssdk.String("nexttoken"),
- },
- ).Return(
- &s3.ListBucketInventoryConfigurationsOutput{
- InventoryConfigurationList: []*s3.InventoryConfiguration{
- {Id: awssdk.String("config4")},
- {Id: awssdk.String("config5")},
- {Id: awssdk.String("config6")},
- },
- IsTruncated: awssdk.Bool(false),
- },
- nil,
- ).Once()
- },
- want: []*s3.InventoryConfiguration{
- {Id: awssdk.String("config1")},
- {Id: awssdk.String("config2")},
- {Id: awssdk.String("config3")},
- {Id: awssdk.String("config4")},
- {Id: awssdk.String("config5")},
- {Id: awssdk.String("config6")},
- },
- },
- {
- name: "Error listing inventory configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketInventoryConfigurations",
- &s3.ListBucketInventoryConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- },
- ).Return(
- nil,
- errors.New("aws error"),
- ).Once()
- },
- want: nil,
- wantErr: "Error listing bucket inventory configuration test-bucket: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", &aws.Config{Region: awssdk.String(tt.input.region)}).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.ListBucketInventoryConfigurations(&tt.input.bucket, tt.input.region)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListBucketInventoryConfigurations(&tt.input.bucket, tt.input.region)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*s3.InventoryConfiguration{}, store.Get(fmt.Sprintf("s3ListBucketInventoryConfigurations_%s_%s", *tt.input.bucket.Name, tt.input.region)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_ListBucketMetricsConfigurations(t *testing.T) {
- tests := []struct {
- name string
- input struct {
- bucket s3.Bucket
- region string
- }
- mocks func(client *awstest.MockFakeS3)
- want []*s3.MetricsConfiguration
- wantErr string
- }{
- {
- name: "List metrics configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketMetricsConfigurations",
- &s3.ListBucketMetricsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: nil,
- },
- ).Return(
- &s3.ListBucketMetricsConfigurationsOutput{
- MetricsConfigurationList: []*s3.MetricsConfiguration{
- {Id: awssdk.String("metric1")},
- {Id: awssdk.String("metric2")},
- {Id: awssdk.String("metric3")},
- },
- IsTruncated: awssdk.Bool(true),
- NextContinuationToken: awssdk.String("nexttoken"),
- },
- nil,
- ).Once()
- client.On(
- "ListBucketMetricsConfigurations",
- &s3.ListBucketMetricsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: awssdk.String("nexttoken"),
- },
- ).Return(
- &s3.ListBucketMetricsConfigurationsOutput{
- MetricsConfigurationList: []*s3.MetricsConfiguration{
- {Id: awssdk.String("metric4")},
- {Id: awssdk.String("metric5")},
- {Id: awssdk.String("metric6")},
- },
- IsTruncated: awssdk.Bool(false),
- },
- nil,
- ).Once()
- },
- want: []*s3.MetricsConfiguration{
- {Id: awssdk.String("metric1")},
- {Id: awssdk.String("metric2")},
- {Id: awssdk.String("metric3")},
- {Id: awssdk.String("metric4")},
- {Id: awssdk.String("metric5")},
- {Id: awssdk.String("metric6")},
- },
- },
- {
- name: "Error listing metrics configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketMetricsConfigurations",
- &s3.ListBucketMetricsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- },
- ).Return(
- nil,
- errors.New("aws error"),
- ).Once()
- },
- want: nil,
- wantErr: "Error listing bucket metrics configuration test-bucket: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", &aws.Config{Region: awssdk.String(tt.input.region)}).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.ListBucketMetricsConfigurations(&tt.input.bucket, tt.input.region)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListBucketMetricsConfigurations(&tt.input.bucket, tt.input.region)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*s3.MetricsConfiguration{}, store.Get(fmt.Sprintf("s3ListBucketMetricsConfigurations_%s_%s", *tt.input.bucket.Name, tt.input.region)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_ListBucketAnalyticsConfigurations(t *testing.T) {
- tests := []struct {
- name string
- input struct {
- bucket s3.Bucket
- region string
- }
- mocks func(client *awstest.MockFakeS3)
- want []*s3.AnalyticsConfiguration
- wantErr string
- }{
- {
- name: "List analytics configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketAnalyticsConfigurations",
- &s3.ListBucketAnalyticsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: nil,
- },
- ).Return(
- &s3.ListBucketAnalyticsConfigurationsOutput{
- AnalyticsConfigurationList: []*s3.AnalyticsConfiguration{
- {Id: awssdk.String("analytic1")},
- {Id: awssdk.String("analytic2")},
- {Id: awssdk.String("analytic3")},
- },
- IsTruncated: awssdk.Bool(true),
- NextContinuationToken: awssdk.String("nexttoken"),
- },
- nil,
- ).Once()
- client.On(
- "ListBucketAnalyticsConfigurations",
- &s3.ListBucketAnalyticsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- ContinuationToken: awssdk.String("nexttoken"),
- },
- ).Return(
- &s3.ListBucketAnalyticsConfigurationsOutput{
- AnalyticsConfigurationList: []*s3.AnalyticsConfiguration{
- {Id: awssdk.String("analytic4")},
- {Id: awssdk.String("analytic5")},
- {Id: awssdk.String("analytic6")},
- },
- IsTruncated: awssdk.Bool(false),
- },
- nil,
- ).Once()
- },
- want: []*s3.AnalyticsConfiguration{
- {Id: awssdk.String("analytic1")},
- {Id: awssdk.String("analytic2")},
- {Id: awssdk.String("analytic3")},
- {Id: awssdk.String("analytic4")},
- {Id: awssdk.String("analytic5")},
- {Id: awssdk.String("analytic6")},
- },
- },
- {
- name: "Error listing analytics configs",
- input: struct {
- bucket s3.Bucket
- region string
- }{
- bucket: s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- region: "us-east-1",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On(
- "ListBucketAnalyticsConfigurations",
- &s3.ListBucketAnalyticsConfigurationsInput{
- Bucket: awssdk.String("test-bucket"),
- },
- ).Return(
- nil,
- errors.New("aws error"),
- ).Once()
- },
- want: nil,
- wantErr: "Error listing bucket analytics configuration test-bucket: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", &aws.Config{Region: awssdk.String(tt.input.region)}).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.ListBucketAnalyticsConfigurations(&tt.input.bucket, tt.input.region)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListBucketAnalyticsConfigurations(&tt.input.bucket, tt.input.region)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*s3.AnalyticsConfiguration{}, store.Get(fmt.Sprintf("s3ListBucketAnalyticsConfigurations_%s_%s", *tt.input.bucket.Name, tt.input.region)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_s3Repository_GetBucketLocation(t *testing.T) {
-
- tests := []struct {
- name string
- bucket *s3.Bucket
- mocks func(client *awstest.MockFakeS3)
- want string
- wantErr string
- }{
- {
- name: "get bucket location",
- bucket: &s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketLocation", &s3.GetBucketLocationInput{
- Bucket: awssdk.String("test-bucket"),
- }).Return(
- &s3.GetBucketLocationOutput{
- LocationConstraint: awssdk.String("eu-east-1"),
- },
- nil,
- ).Once()
- },
- want: "eu-east-1",
- },
- {
- name: "get bucket location for us-east-2",
- bucket: &s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketLocation", &s3.GetBucketLocationInput{
- Bucket: awssdk.String("test-bucket"),
- }).Return(
- &s3.GetBucketLocationOutput{},
- nil,
- ).Once()
- },
- want: "us-east-1",
- },
- {
- name: "get bucket location when no such bucket",
- bucket: &s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketLocation", &s3.GetBucketLocationInput{
- Bucket: awssdk.String("test-bucket"),
- }).Return(
- nil,
- awserr.New(s3.ErrCodeNoSuchBucket, "", nil),
- ).Once()
- },
- want: "",
- },
- {
- name: "get bucket location when error",
- bucket: &s3.Bucket{
- Name: awssdk.String("test-bucket"),
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("GetBucketLocation", &s3.GetBucketLocationInput{
- Bucket: awssdk.String("test-bucket"),
- }).Return(
- nil,
- awserr.New("UnknownError", "aws error", nil),
- ).Once()
- },
- wantErr: "UnknownError: aws error",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3Client", (*aws.Config)(nil)).Return(mockedClient).Once()
- r := NewS3Repository(&factory, store)
- got, err := r.GetBucketLocation(*tt.bucket.Name)
- factory.AssertExpectations(t)
- if err != nil && tt.wantErr == "" {
- t.Fatalf("Unexpected error %+v", err)
- }
- if err != nil {
- assert.Equal(t, tt.wantErr, err.Error())
- }
-
- if err == nil && tt.want != "" {
- // Check that results were cached
- cachedData, err := r.GetBucketLocation(*tt.bucket.Name)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, "", store.Get(fmt.Sprintf("s3GetBucketLocation_%s", *tt.bucket.Name)))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/s3control_repository.go b/enumeration/remote/aws/repository/s3control_repository.go
deleted file mode 100644
index aee0a76e8..000000000
--- a/enumeration/remote/aws/repository/s3control_repository.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/s3control"
- "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type S3ControlRepository interface {
- DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, error)
-}
-
-type s3ControlRepository struct {
- clientFactory client.AwsClientFactoryInterface
- cache cache.Cache
-}
-
-func NewS3ControlRepository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3ControlRepository {
- return &s3ControlRepository{
- clientFactory: factory,
- cache: c,
- }
-}
-
-func (s *s3ControlRepository) DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, error) {
- cacheKey := "S3DescribeAccountPublicAccessBlock"
- if v := s.cache.Get(cacheKey); v != nil {
- return v.(*s3control.PublicAccessBlockConfiguration), nil
- }
- out, err := s.clientFactory.GetS3ControlClient(nil).GetPublicAccessBlock(&s3control.GetPublicAccessBlockInput{
- AccountId: aws.String(accountID),
- })
-
- if err != nil {
- if s.shouldSuppressError(err) {
- return nil, nil
- }
-
- return nil, err
- }
-
- result := out.PublicAccessBlockConfiguration
-
- s.cache.Put(cacheKey, result)
- return result, nil
-}
-
-func (s *s3ControlRepository) shouldSuppressError(err error) bool {
- if requestFailure, ok := err.(awserr.RequestFailure); ok {
- if requestFailure.Code() == "NoSuchPublicAccessBlockConfiguration" {
- // do not throw the error up if there is no access block config
- return true
- }
- }
- return false
-}
diff --git a/enumeration/remote/aws/repository/s3control_repository_test.go b/enumeration/remote/aws/repository/s3control_repository_test.go
deleted file mode 100644
index cea0d3fbf..000000000
--- a/enumeration/remote/aws/repository/s3control_repository_test.go
+++ /dev/null
@@ -1,105 +0,0 @@
-package repository
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/service/s3control"
- "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/stretchr/testify/mock"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/r3labs/diff/v2"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/assert"
-)
-
-func Test_s3ControlRepository_DescribeAccountPublicAccessBlock(t *testing.T) {
- accountID := "123456"
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeS3Control)
- want *s3control.PublicAccessBlockConfiguration
- wantErr bool
- }{
- {
- name: "describe account public access block",
- mocks: func(client *awstest.MockFakeS3Control) {
- client.On("GetPublicAccessBlock", mock.Anything).Return(
- &s3control.GetPublicAccessBlockOutput{
- PublicAccessBlockConfiguration: &s3control.PublicAccessBlockConfiguration{
- BlockPublicAcls: aws.Bool(false),
- BlockPublicPolicy: aws.Bool(true),
- IgnorePublicAcls: aws.Bool(false),
- RestrictPublicBuckets: aws.Bool(true),
- },
- },
- nil,
- ).Once()
- },
- want: &s3control.PublicAccessBlockConfiguration{
- BlockPublicAcls: aws.Bool(false),
- BlockPublicPolicy: aws.Bool(true),
- IgnorePublicAcls: aws.Bool(false),
- RestrictPublicBuckets: aws.Bool(true),
- },
- },
- {
- name: "Error getting account public access block",
- mocks: func(client *awstest.MockFakeS3Control) {
- fakeRequestFailure := &awstest.MockFakeRequestFailure{}
- fakeRequestFailure.On("Code").Return("FakeErrorCode")
- client.On("GetPublicAccessBlock", mock.Anything).Return(
- nil,
- fakeRequestFailure,
- ).Once()
- },
- want: nil,
- wantErr: true,
- },
- {
- name: "Error no account public access block",
- mocks: func(client *awstest.MockFakeS3Control) {
- fakeRequestFailure := &awstest.MockFakeRequestFailure{}
- fakeRequestFailure.On("Code").Return("NoSuchPublicAccessBlockConfiguration")
- client.On("GetPublicAccessBlock", mock.Anything).Return(
- nil,
- fakeRequestFailure,
- ).Once()
- },
- want: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- mockedClient := &awstest.MockFakeS3Control{}
- tt.mocks(mockedClient)
- factory := client.MockAwsClientFactoryInterface{}
- factory.On("GetS3ControlClient", (*aws.Config)(nil)).Return(mockedClient).Once()
- r := NewS3ControlRepository(&factory, store)
- got, err := r.DescribeAccountPublicAccessBlock(accountID)
- factory.AssertExpectations(t)
- assert.Equal(t, tt.wantErr, err != nil)
-
- if err == nil && got != nil {
- // Check that results were cached
- cachedData, err := r.DescribeAccountPublicAccessBlock(accountID)
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, &s3control.PublicAccessBlockConfiguration{}, store.Get("S3DescribeAccountPublicAccessBlock"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/sns_repository.go b/enumeration/remote/aws/repository/sns_repository.go
deleted file mode 100644
index b4c17f5b7..000000000
--- a/enumeration/remote/aws/repository/sns_repository.go
+++ /dev/null
@@ -1,67 +0,0 @@
-package repository
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/sns"
- "github.com/aws/aws-sdk-go/service/sns/snsiface"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type SNSRepository interface {
- ListAllTopics() ([]*sns.Topic, error)
- ListAllSubscriptions() ([]*sns.Subscription, error)
-}
-
-type snsRepository struct {
- client snsiface.SNSAPI
- cache cache.Cache
-}
-
-func NewSNSRepository(session *session.Session, c cache.Cache) *snsRepository {
- return &snsRepository{
- sns.New(session),
- c,
- }
-}
-
-func (r *snsRepository) ListAllTopics() ([]*sns.Topic, error) {
-
- cacheKey := "snsListAllTopics"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*sns.Topic), nil
- }
-
- var topics []*sns.Topic
- input := &sns.ListTopicsInput{}
- err := r.client.ListTopicsPages(input, func(res *sns.ListTopicsOutput, lastPage bool) bool {
- topics = append(topics, res.Topics...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, topics)
- return topics, nil
-}
-
-func (r *snsRepository) ListAllSubscriptions() ([]*sns.Subscription, error) {
- if v := r.cache.Get("snsListAllSubscriptions"); v != nil {
- return v.([]*sns.Subscription), nil
- }
-
- var subscriptions []*sns.Subscription
- input := &sns.ListSubscriptionsInput{}
- err := r.client.ListSubscriptionsPages(input, func(res *sns.ListSubscriptionsOutput, lastPage bool) bool {
- subscriptions = append(subscriptions, res.Subscriptions...)
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put("snsListAllSubscriptions", subscriptions)
- return subscriptions, nil
-}
diff --git a/enumeration/remote/aws/repository/sns_repository_test.go b/enumeration/remote/aws/repository/sns_repository_test.go
deleted file mode 100644
index d5b6778d8..000000000
--- a/enumeration/remote/aws/repository/sns_repository_test.go
+++ /dev/null
@@ -1,161 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-
- "github.com/aws/aws-sdk-go/service/sns"
-)
-
-func Test_snsRepository_ListAllTopics(t *testing.T) {
-
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeSNS)
- want []*sns.Topic
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeSNS) {
- client.On("ListTopicsPages",
- &sns.ListTopicsInput{},
- mock.MatchedBy(func(callback func(res *sns.ListTopicsOutput, lastPage bool) bool) bool {
- callback(&sns.ListTopicsOutput{
- Topics: []*sns.Topic{
- {TopicArn: aws.String("arn1")},
- {TopicArn: aws.String("arn2")},
- {TopicArn: aws.String("arn3")},
- },
- }, false)
- callback(&sns.ListTopicsOutput{
- Topics: []*sns.Topic{
- {TopicArn: aws.String("arn4")},
- {TopicArn: aws.String("arn5")},
- {TopicArn: aws.String("arn6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*sns.Topic{
- {TopicArn: aws.String("arn1")},
- {TopicArn: aws.String("arn2")},
- {TopicArn: aws.String("arn3")},
- {TopicArn: aws.String("arn4")},
- {TopicArn: aws.String("arn5")},
- {TopicArn: aws.String("arn6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeSNS{}
- tt.mocks(client)
- r := &snsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllTopics()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllTopics()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*sns.Topic{}, store.Get("snsListAllTopics"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_snsRepository_ListAllSubscriptions(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeSNS)
- want []*sns.Subscription
- wantErr error
- }{
- {
- name: "List with 2 pages",
- mocks: func(client *awstest.MockFakeSNS) {
- client.On("ListSubscriptionsPages",
- &sns.ListSubscriptionsInput{},
- mock.MatchedBy(func(callback func(res *sns.ListSubscriptionsOutput, lastPage bool) bool) bool {
- callback(&sns.ListSubscriptionsOutput{
- Subscriptions: []*sns.Subscription{
- {TopicArn: aws.String("arn1"), SubscriptionArn: aws.String("SubArn1")},
- {TopicArn: aws.String("arn2"), SubscriptionArn: aws.String("SubArn2")},
- {TopicArn: aws.String("arn3"), SubscriptionArn: aws.String("SubArn3")},
- },
- }, false)
- callback(&sns.ListSubscriptionsOutput{
- Subscriptions: []*sns.Subscription{
- {TopicArn: aws.String("arn4"), SubscriptionArn: aws.String("SubArn4")},
- {TopicArn: aws.String("arn5"), SubscriptionArn: aws.String("SubArn5")},
- {TopicArn: aws.String("arn6"), SubscriptionArn: aws.String("SubArn6")},
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*sns.Subscription{
- {TopicArn: aws.String("arn1"), SubscriptionArn: aws.String("SubArn1")},
- {TopicArn: aws.String("arn2"), SubscriptionArn: aws.String("SubArn2")},
- {TopicArn: aws.String("arn3"), SubscriptionArn: aws.String("SubArn3")},
- {TopicArn: aws.String("arn4"), SubscriptionArn: aws.String("SubArn4")},
- {TopicArn: aws.String("arn5"), SubscriptionArn: aws.String("SubArn5")},
- {TopicArn: aws.String("arn6"), SubscriptionArn: aws.String("SubArn6")},
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeSNS{}
- tt.mocks(client)
- r := &snsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllSubscriptions()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllSubscriptions()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*sns.Subscription{}, store.Get("snsListAllSubscriptions"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/repository/sqs_repository.go b/enumeration/remote/aws/repository/sqs_repository.go
deleted file mode 100644
index dbf46bc21..000000000
--- a/enumeration/remote/aws/repository/sqs_repository.go
+++ /dev/null
@@ -1,72 +0,0 @@
-package repository
-
-import (
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/sqs"
- "github.com/aws/aws-sdk-go/service/sqs/sqsiface"
-)
-
-type SQSRepository interface {
- ListAllQueues() ([]*string, error)
- GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error)
-}
-
-type sqsRepository struct {
- client sqsiface.SQSAPI
- cache cache.Cache
-}
-
-func NewSQSRepository(session *session.Session, c cache.Cache) *sqsRepository {
- return &sqsRepository{
- sqs.New(session),
- c,
- }
-}
-
-func (r *sqsRepository) GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error) {
- cacheKey := fmt.Sprintf("sqsGetQueueAttributes_%s", url)
- if v := r.cache.Get(cacheKey); v != nil {
- return v.(*sqs.GetQueueAttributesOutput), nil
- }
-
- attributes, err := r.client.GetQueueAttributes(&sqs.GetQueueAttributesInput{
- AttributeNames: aws.StringSlice([]string{sqs.QueueAttributeNamePolicy}),
- QueueUrl: &url,
- })
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, attributes)
-
- return attributes, nil
-}
-
-func (r *sqsRepository) ListAllQueues() ([]*string, error) {
-
- cacheKey := "sqsListAllQueues"
- v := r.cache.GetAndLock(cacheKey)
- defer r.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*string), nil
- }
-
- var queues []*string
- input := sqs.ListQueuesInput{}
- err := r.client.ListQueuesPages(&input,
- func(resp *sqs.ListQueuesOutput, lastPage bool) bool {
- queues = append(queues, resp.QueueUrls...)
- return !lastPage
- },
- )
- if err != nil {
- return nil, err
- }
-
- r.cache.Put(cacheKey, queues)
- return queues, nil
-}
diff --git a/enumeration/remote/aws/repository/sqs_repository_test.go b/enumeration/remote/aws/repository/sqs_repository_test.go
deleted file mode 100644
index 51889afba..000000000
--- a/enumeration/remote/aws/repository/sqs_repository_test.go
+++ /dev/null
@@ -1,145 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "strings"
- "testing"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/aws/aws-sdk-go/service/sqs"
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_sqsRepository_ListAllQueues(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeSQS)
- want []*string
- wantErr error
- }{
- {
- name: "list with multiple pages",
- mocks: func(client *awstest.MockFakeSQS) {
- client.On("ListQueuesPages",
- &sqs.ListQueuesInput{},
- mock.MatchedBy(func(callback func(res *sqs.ListQueuesOutput, lastPage bool) bool) bool {
- callback(&sqs.ListQueuesOutput{
- QueueUrls: []*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"),
- },
- }, false)
- callback(&sqs.ListQueuesOutput{
- QueueUrls: []*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/baz"),
- },
- }, true)
- return true
- })).Return(nil).Once()
- },
- want: []*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/baz"),
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeSQS{}
- tt.mocks(client)
- r := &sqsRepository{
- client: client,
- cache: store,
- }
- got, err := r.ListAllQueues()
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.ListAllQueues()
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, []*string{}, store.Get("sqsListAllQueues"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
-
-func Test_sqsRepository_GetQueueAttributes(t *testing.T) {
- tests := []struct {
- name string
- mocks func(client *awstest.MockFakeSQS)
- want *sqs.GetQueueAttributesOutput
- wantErr error
- }{
- {
- name: "get attributes",
- mocks: func(client *awstest.MockFakeSQS) {
- client.On(
- "GetQueueAttributes",
- &sqs.GetQueueAttributesInput{
- AttributeNames: awssdk.StringSlice([]string{sqs.QueueAttributeNamePolicy}),
- QueueUrl: awssdk.String("http://example.com"),
- },
- ).Return(
- &sqs.GetQueueAttributesOutput{
- Attributes: map[string]*string{
- sqs.QueueAttributeNamePolicy: awssdk.String("foobar"),
- },
- },
- nil,
- ).Once()
- },
- want: &sqs.GetQueueAttributesOutput{
- Attributes: map[string]*string{
- sqs.QueueAttributeNamePolicy: awssdk.String("foobar"),
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- store := cache.New(1)
- client := &awstest.MockFakeSQS{}
- tt.mocks(client)
- r := &sqsRepository{
- client: client,
- cache: store,
- }
- got, err := r.GetQueueAttributes("http://example.com")
- assert.Equal(t, tt.wantErr, err)
-
- if err == nil {
- // Check that results were cached
- cachedData, err := r.GetQueueAttributes("http://example.com")
- assert.NoError(t, err)
- assert.Equal(t, got, cachedData)
- assert.IsType(t, &sqs.GetQueueAttributesOutput{}, store.Get("sqsGetQueueAttributes_http://example.com"))
- }
-
- changelog, err := diff.Diff(got, tt.want)
- assert.Nil(t, err)
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s: %s -> %s", strings.Join(change.Path, "."), change.From, change.To)
- }
- t.Fail()
- }
- })
- }
-}
diff --git a/enumeration/remote/aws/route53_health_check_enumerator.go b/enumeration/remote/aws/route53_health_check_enumerator.go
deleted file mode 100644
index 15d7019ae..000000000
--- a/enumeration/remote/aws/route53_health_check_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type Route53HealthCheckEnumerator struct {
- repository repository.Route53Repository
- factory resource.ResourceFactory
-}
-
-func NewRoute53HealthCheckEnumerator(repo repository.Route53Repository, factory resource.ResourceFactory) *Route53HealthCheckEnumerator {
- return &Route53HealthCheckEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *Route53HealthCheckEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsRoute53HealthCheckResourceType
-}
-
-func (e *Route53HealthCheckEnumerator) Enumerate() ([]*resource.Resource, error) {
- healthChecks, err := e.repository.ListAllHealthChecks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(healthChecks))
-
- for _, healthCheck := range healthChecks {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *healthCheck.Id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/route53_record_enumerator.go b/enumeration/remote/aws/route53_record_enumerator.go
deleted file mode 100644
index 4cefb5c58..000000000
--- a/enumeration/remote/aws/route53_record_enumerator.go
+++ /dev/null
@@ -1,99 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strconv"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type Route53RecordEnumerator struct {
- client repository.Route53Repository
- factory resource.ResourceFactory
-}
-
-func NewRoute53RecordEnumerator(repo repository.Route53Repository, factory resource.ResourceFactory) *Route53RecordEnumerator {
- return &Route53RecordEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *Route53RecordEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsRoute53RecordResourceType
-}
-
-func (e *Route53RecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.client.ListAllZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsRoute53ZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(zones))
-
- for _, hostedZone := range zones {
- records, err := e.listRecordsForZone(strings.TrimPrefix(*hostedZone.Id, "/hostedzone/"))
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results = append(results, records...)
- }
-
- return results, err
-}
-
-func (e *Route53RecordEnumerator) listRecordsForZone(zoneId string) ([]*resource.Resource, error) {
-
- records, err := e.client.ListRecordsForZone(zoneId)
- if err != nil {
- return nil, err
- }
-
- results := make([]*resource.Resource, 0, len(records))
-
- for _, raw := range records {
- rawType := *raw.Type
- rawName := *raw.Name
- rawSetIdentifier := raw.SetIdentifier
-
- vars := []string{
- zoneId,
- strings.ToLower(strings.TrimSuffix(rawName, ".")),
- rawType,
- }
- if rawSetIdentifier != nil {
- vars = append(vars, *rawSetIdentifier)
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- e.cleanRecordName(strings.Join(vars, "_")),
- map[string]interface{}{
- "type": rawType,
- },
- ),
- )
- }
-
- return results, nil
-}
-
-// cleanRecordName
-// Route 53 stores certain characters with the octal equivalent in ASCII format.
-// This function converts all of these characters back into the original character.
-// E.g. "*" is stored as "\\052" and "@" as "\\100"
-func (e *Route53RecordEnumerator) cleanRecordName(name string) string {
- str := name
- s, err := strconv.Unquote(`"` + str + `"`)
- if err != nil {
- return str
- }
- return s
-}
diff --git a/enumeration/remote/aws/route53_zone_enumerator.go b/enumeration/remote/aws/route53_zone_enumerator.go
deleted file mode 100644
index 7e51bf16f..000000000
--- a/enumeration/remote/aws/route53_zone_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type Route53ZoneSupplier struct {
- client repository.Route53Repository
- factory resource.ResourceFactory
-}
-
-func NewRoute53ZoneEnumerator(repo repository.Route53Repository, factory resource.ResourceFactory) *Route53ZoneSupplier {
- return &Route53ZoneSupplier{
- repo,
- factory,
- }
-}
-
-func (e *Route53ZoneSupplier) SupportedType() resource.ResourceType {
- return resourceaws.AwsRoute53ZoneResourceType
-}
-
-func (e *Route53ZoneSupplier) Enumerate() ([]*resource.Resource, error) {
- zones, err := e.client.ListAllZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(zones))
-
- for _, hostedZone := range zones {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- strings.TrimPrefix(*hostedZone.Id, "/hostedzone/"),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_account_public_access_block_enumerator.go b/enumeration/remote/aws/s3_account_public_access_block_enumerator.go
deleted file mode 100644
index 1bc3ea48f..000000000
--- a/enumeration/remote/aws/s3_account_public_access_block_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package aws
-
-import (
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3AccountPublicAccessBlockEnumerator struct {
- repository repository.S3ControlRepository
- factory resource.ResourceFactory
- accountID string
- alerter alerter.AlerterInterface
-}
-
-func NewS3AccountPublicAccessBlockEnumerator(repo repository.S3ControlRepository, factory resource.ResourceFactory, accountId string, alerter alerter.AlerterInterface) *S3AccountPublicAccessBlockEnumerator {
- return &S3AccountPublicAccessBlockEnumerator{
- repository: repo,
- factory: factory,
- accountID: accountId,
- alerter: alerter,
- }
-}
-
-func (e *S3AccountPublicAccessBlockEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3AccountPublicAccessBlock
-}
-
-func (e *S3AccountPublicAccessBlockEnumerator) Enumerate() ([]*resource.Resource, error) {
- accountPublicAccessBlock, err := e.repository.DescribeAccountPublicAccessBlock(e.accountID)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, 1)
-
- if accountPublicAccessBlock == nil {
- return results, nil
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- e.accountID,
- map[string]interface{}{
- "block_public_acls": awssdk.BoolValue(accountPublicAccessBlock.BlockPublicAcls),
- "block_public_policy": awssdk.BoolValue(accountPublicAccessBlock.BlockPublicPolicy),
- "ignore_public_acls": awssdk.BoolValue(accountPublicAccessBlock.IgnorePublicAcls),
- "restrict_public_buckets": awssdk.BoolValue(accountPublicAccessBlock.RestrictPublicBuckets),
- },
- ),
- )
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_analytic_enumerator.go b/enumeration/remote/aws/s3_bucket_analytic_enumerator.go
deleted file mode 100644
index 05c2b6e8b..000000000
--- a/enumeration/remote/aws/s3_bucket_analytic_enumerator.go
+++ /dev/null
@@ -1,81 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketAnalyticEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketAnalyticEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketAnalyticEnumerator {
- return &S3BucketAnalyticEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketAnalyticEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketAnalyticsConfigurationResourceType
-}
-
-func (e *S3BucketAnalyticEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket analytic")
- continue
- }
-
- analyticsConfigurationList, err := e.repository.ListBucketAnalyticsConfigurations(bucket, region)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, analytics := range analyticsConfigurationList {
- id := fmt.Sprintf("%s:%s", *bucket.Name, *analytics.Id)
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_enumerator.go b/enumeration/remote/aws/s3_bucket_enumerator.go
deleted file mode 100644
index 5e77968f4..000000000
--- a/enumeration/remote/aws/s3_bucket_enumerator.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package aws
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketEnumerator {
- return &S3BucketEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketResourceType
-}
-
-func (e *S3BucketEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *bucket.Name,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_inventory_enumerator.go b/enumeration/remote/aws/s3_bucket_inventory_enumerator.go
deleted file mode 100644
index 2ab4469a6..000000000
--- a/enumeration/remote/aws/s3_bucket_inventory_enumerator.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketInventoryEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketInventoryEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketInventoryEnumerator {
- return &S3BucketInventoryEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketInventoryEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketInventoryResourceType
-}
-
-func (e *S3BucketInventoryEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket inventory")
- continue
- }
-
- inventoryConfigurations, err := e.repository.ListBucketInventoryConfigurations(bucket, region)
- if err != nil {
- // TODO: we should think about a way to ignore just one bucket inventory listing
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, config := range inventoryConfigurations {
- id := fmt.Sprintf("%s:%s", *bucket.Name, *config.Id)
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_metrics_enumerator.go b/enumeration/remote/aws/s3_bucket_metrics_enumerator.go
deleted file mode 100644
index 4fb5a1cf1..000000000
--- a/enumeration/remote/aws/s3_bucket_metrics_enumerator.go
+++ /dev/null
@@ -1,81 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketMetricsEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketMetricsEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketMetricsEnumerator {
- return &S3BucketMetricsEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketMetricsEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketMetricResourceType
-}
-
-func (e *S3BucketMetricsEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket")
- continue
- }
-
- metricsConfigurationList, err := e.repository.ListBucketMetricsConfigurations(bucket, region)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, metric := range metricsConfigurationList {
- id := fmt.Sprintf("%s:%s", *bucket.Name, *metric.Id)
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/s3_bucket_notification_enumerator.go b/enumeration/remote/aws/s3_bucket_notification_enumerator.go
deleted file mode 100644
index ff813b6a0..000000000
--- a/enumeration/remote/aws/s3_bucket_notification_enumerator.go
+++ /dev/null
@@ -1,84 +0,0 @@
-package aws
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketNotificationEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketNotificationEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketNotificationEnumerator {
- return &S3BucketNotificationEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketNotificationEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketNotificationResourceType
-}
-
-func (e *S3BucketNotificationEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket")
- continue
- }
-
- notification, err := e.repository.GetBucketNotification(*bucket.Name, region)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
-
- if notification == nil {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped empty bucket notification")
- continue
- }
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *bucket.Name,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_policy_enumerator.go b/enumeration/remote/aws/s3_bucket_policy_enumerator.go
deleted file mode 100644
index 08f218100..000000000
--- a/enumeration/remote/aws/s3_bucket_policy_enumerator.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package aws
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketPolicyEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketPolicyEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketPolicyEnumerator {
- return &S3BucketPolicyEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketPolicyResourceType
-}
-
-func (e *S3BucketPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket policy")
- continue
- }
-
- policy, err := e.repository.GetBucketPolicy(*bucket.Name, region)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
-
- if policy != nil {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *bucket.Name,
- map[string]interface{}{
- "alias": region,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/s3_bucket_public_access_block_enumerator.go b/enumeration/remote/aws/s3_bucket_public_access_block_enumerator.go
deleted file mode 100644
index be658c3e7..000000000
--- a/enumeration/remote/aws/s3_bucket_public_access_block_enumerator.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package aws
-
-import (
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type S3BucketPublicAccessBlockEnumerator struct {
- repository repository.S3Repository
- factory resource.ResourceFactory
- providerConfig tf.TerraformProviderConfig
- alerter alerter.AlerterInterface
-}
-
-func NewS3BucketPublicAccessBlockEnumerator(repo repository.S3Repository, factory resource.ResourceFactory, providerConfig tf.TerraformProviderConfig, alerter alerter.AlerterInterface) *S3BucketPublicAccessBlockEnumerator {
- return &S3BucketPublicAccessBlockEnumerator{
- repository: repo,
- factory: factory,
- providerConfig: providerConfig,
- alerter: alerter,
- }
-}
-
-func (e *S3BucketPublicAccessBlockEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsS3BucketPublicAccessBlockResourceType
-}
-
-func (e *S3BucketPublicAccessBlockEnumerator) Enumerate() ([]*resource.Resource, error) {
- buckets, err := e.repository.ListAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsS3BucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(buckets))
-
- for _, bucket := range buckets {
- region, err := e.repository.GetBucketLocation(*bucket.Name)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
- if region == "" || region != e.providerConfig.DefaultAlias {
- logrus.WithFields(logrus.Fields{
- "region": region,
- "bucket": *bucket.Name,
- }).Debug("Skipped bucket public access block")
- continue
- }
-
- block, err := e.repository.GetBucketPublicAccessBlock(*bucket.Name, region)
- if err != nil {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, e.alerter, remoteerror.NewResourceScanningError(err, string(e.SupportedType()), *bucket.Name))
- continue
- }
-
- if block != nil {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *bucket.Name,
- map[string]interface{}{
- "block_public_acls": awssdk.BoolValue(block.BlockPublicAcls),
- "block_public_policy": awssdk.BoolValue(block.BlockPublicPolicy),
- "ignore_public_acls": awssdk.BoolValue(block.IgnorePublicAcls),
- "restrict_public_buckets": awssdk.BoolValue(block.RestrictPublicBuckets),
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/sns_topic_enumerator.go b/enumeration/remote/aws/sns_topic_enumerator.go
deleted file mode 100644
index 6e2ed5d1b..000000000
--- a/enumeration/remote/aws/sns_topic_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type SNSTopicEnumerator struct {
- repository repository.SNSRepository
- factory resource.ResourceFactory
-}
-
-func NewSNSTopicEnumerator(repo repository.SNSRepository, factory resource.ResourceFactory) *SNSTopicEnumerator {
- return &SNSTopicEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *SNSTopicEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSnsTopicResourceType
-}
-
-func (e *SNSTopicEnumerator) Enumerate() ([]*resource.Resource, error) {
- topics, err := e.repository.ListAllTopics()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(topics))
-
- for _, topic := range topics {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *topic.TopicArn,
- map[string]interface{}{
- "topic_arn": *topic.TopicArn,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/sns_topic_policy_enumerator.go b/enumeration/remote/aws/sns_topic_policy_enumerator.go
deleted file mode 100644
index 6c143f18c..000000000
--- a/enumeration/remote/aws/sns_topic_policy_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type SNSTopicPolicyEnumerator struct {
- repository repository.SNSRepository
- factory resource.ResourceFactory
-}
-
-func NewSNSTopicPolicyEnumerator(repo repository.SNSRepository, factory resource.ResourceFactory) *SNSTopicPolicyEnumerator {
- return &SNSTopicPolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *SNSTopicPolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSnsTopicPolicyResourceType
-}
-
-func (e *SNSTopicPolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- topics, err := e.repository.ListAllTopics()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsSnsTopicResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(topics))
-
- for _, topic := range topics {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *topic.TopicArn,
- map[string]interface{}{
- "topic_arn": *topic.TopicArn,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/sns_topic_subscription_enumerator.go b/enumeration/remote/aws/sns_topic_subscription_enumerator.go
deleted file mode 100644
index ee64eae71..000000000
--- a/enumeration/remote/aws/sns_topic_subscription_enumerator.go
+++ /dev/null
@@ -1,91 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/arn"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-type wrongArnTopicAlert struct {
- arn string
- endpoint *string
-}
-
-func NewWrongArnTopicAlert(arn string, endpoint *string) *wrongArnTopicAlert {
- return &wrongArnTopicAlert{arn: arn, endpoint: endpoint}
-}
-
-func (p *wrongArnTopicAlert) Message() string {
- return fmt.Sprintf("%s with incorrect subscription arn (%s) for endpoint \"%s\" will be ignored",
- aws.AwsSnsTopicSubscriptionResourceType,
- p.arn,
- awssdk.StringValue(p.endpoint))
-}
-
-func (p *wrongArnTopicAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (p *wrongArnTopicAlert) Resource() *resource.Resource {
- return nil
-}
-
-type SNSTopicSubscriptionEnumerator struct {
- repository repository.SNSRepository
- factory resource.ResourceFactory
- alerter alerter.AlerterInterface
-}
-
-func NewSNSTopicSubscriptionEnumerator(
- repo repository.SNSRepository,
- factory resource.ResourceFactory,
- alerter alerter.AlerterInterface,
-) *SNSTopicSubscriptionEnumerator {
- return &SNSTopicSubscriptionEnumerator{
- repo,
- factory,
- alerter,
- }
-}
-
-func (e *SNSTopicSubscriptionEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSnsTopicSubscriptionResourceType
-}
-
-func (e *SNSTopicSubscriptionEnumerator) Enumerate() ([]*resource.Resource, error) {
- allSubscriptions, err := e.repository.ListAllSubscriptions()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(allSubscriptions))
-
- for _, subscription := range allSubscriptions {
- if subscription.SubscriptionArn == nil || !arn.IsARN(*subscription.SubscriptionArn) {
- e.alerter.SendAlert(
- fmt.Sprintf("%s.%s", e.SupportedType(), *subscription.SubscriptionArn),
- NewWrongArnTopicAlert(*subscription.SubscriptionArn, subscription.Endpoint),
- )
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *subscription.SubscriptionArn,
- map[string]interface{}{
- "SubscriptionId": *subscription.SubscriptionArn,
- },
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/sqs_queue_enumerator.go b/enumeration/remote/aws/sqs_queue_enumerator.go
deleted file mode 100644
index 88af3ad59..000000000
--- a/enumeration/remote/aws/sqs_queue_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
-)
-
-type SQSQueueEnumerator struct {
- repository repository.SQSRepository
- factory resource.ResourceFactory
-}
-
-func NewSQSQueueEnumerator(repo repository.SQSRepository, factory resource.ResourceFactory) *SQSQueueEnumerator {
- return &SQSQueueEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *SQSQueueEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSqsQueueResourceType
-}
-
-func (e *SQSQueueEnumerator) Enumerate() ([]*resource.Resource, error) {
- queues, err := e.repository.ListAllQueues()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(queues))
-
- for _, queue := range queues {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- awssdk.StringValue(queue),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/sqs_queue_policy_enumerator.go b/enumeration/remote/aws/sqs_queue_policy_enumerator.go
deleted file mode 100644
index 3640cc8ee..000000000
--- a/enumeration/remote/aws/sqs_queue_policy_enumerator.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/aws/aws-sdk-go/service/sqs"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
-)
-
-type SQSQueuePolicyEnumerator struct {
- repository repository.SQSRepository
- factory resource.ResourceFactory
-}
-
-func NewSQSQueuePolicyEnumerator(repo repository.SQSRepository, factory resource.ResourceFactory) *SQSQueuePolicyEnumerator {
- return &SQSQueuePolicyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *SQSQueuePolicyEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsSqsQueuePolicyResourceType
-}
-
-func (e *SQSQueuePolicyEnumerator) Enumerate() ([]*resource.Resource, error) {
- queues, err := e.repository.ListAllQueues()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), aws.AwsSqsQueueResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(queues))
-
- for _, queue := range queues {
- attrs := map[string]interface{}{
- "policy": "",
- }
- attributes, err := e.repository.GetQueueAttributes(*queue)
- if err != nil {
- if strings.Contains(err.Error(), "NonExistentQueue") {
- logrus.WithFields(logrus.Fields{
- "queue": *queue,
- "type": aws.AwsSqsQueueResourceType,
- }).Debugf("Ignoring queue that seems to be already deleted: %+v", err)
- continue
- }
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- if attributes.Attributes != nil {
- attrs["policy"] = *attributes.Attributes[sqs.QueueAttributeNamePolicy]
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- awssdk.StringValue(queue),
- attrs,
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket-bucket-martin-test-drift.res.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket-bucket-martin-test-drift.res.golden.json
deleted file mode 100755
index 6e78fa3a7..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket-bucket-martin-test-drift.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYWNjZWxlcmF0aW9uX3N0YXR1cyI6InN0cmluZyIsImFjbCI6InN0cmluZyIsImFybiI6InN0cmluZyIsImJ1Y2tldCI6InN0cmluZyIsImJ1Y2tldF9kb21haW5fbmFtZSI6InN0cmluZyIsImJ1Y2tldF9wcmVmaXgiOiJzdHJpbmciLCJidWNrZXRfcmVnaW9uYWxfZG9tYWluX25hbWUiOiJzdHJpbmciLCJjb3JzX3J1bGUiOlsibGlzdCIsWyJvYmplY3QiLHsiYWxsb3dlZF9oZWFkZXJzIjpbImxpc3QiLCJzdHJpbmciXSwiYWxsb3dlZF9tZXRob2RzIjpbImxpc3QiLCJzdHJpbmciXSwiYWxsb3dlZF9vcmlnaW5zIjpbImxpc3QiLCJzdHJpbmciXSwiZXhwb3NlX2hlYWRlcnMiOlsibGlzdCIsInN0cmluZyJdLCJtYXhfYWdlX3NlY29uZHMiOiJudW1iZXIifV1dLCJmb3JjZV9kZXN0cm95IjoiYm9vbCIsImdyYW50IjpbInNldCIsWyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJwZXJtaXNzaW9ucyI6WyJzZXQiLCJzdHJpbmciXSwidHlwZSI6InN0cmluZyIsInVyaSI6InN0cmluZyJ9XV0sImhvc3RlZF96b25lX2lkIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJsaWZlY3ljbGVfcnVsZSI6WyJsaXN0IixbIm9iamVjdCIseyJhYm9ydF9pbmNvbXBsZXRlX211bHRpcGFydF91cGxvYWRfZGF5cyI6Im51bWJlciIsImVuYWJsZWQiOiJib29sIiwiZXhwaXJhdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJkYXRlIjoic3RyaW5nIiwiZGF5cyI6Im51bWJlciIsImV4cGlyZWRfb2JqZWN0X2RlbGV0ZV9tYXJrZXIiOiJib29sIn1dXSwiaWQiOiJzdHJpbmciLCJub25jdXJyZW50X3ZlcnNpb25fZXhwaXJhdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJkYXlzIjoibnVtYmVyIn1dXSwibm9uY3VycmVudF92ZXJzaW9uX3RyYW5zaXRpb24iOlsic2V0IixbIm9iamVjdCIseyJkYXlzIjoibnVtYmVyIiwic3RvcmFnZV9jbGFzcyI6InN0cmluZyJ9XV0sInByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl0sInRyYW5zaXRpb24iOlsic2V0IixbIm9iamVjdCIseyJkYXRlIjoic3RyaW5nIiwiZGF5cyI6Im51bWJlciIsInN0b3JhZ2VfY2xhc3MiOiJzdHJpbmcifV1dfV1dLCJsb2dnaW5nIjpbInNldCIsWyJvYmplY3QiLHsidGFyZ2V0X2J1Y2tldCI6InN0cmluZyIsInRhcmdldF9wcmVmaXgiOiJzdHJpbmcifV1dLCJvYmplY3RfbG9ja19jb25maWd1cmF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7Im9iamVjdF9sb2NrX2VuYWJsZWQiOiJzdHJpbmciLCJydWxlIjpbImxpc3QiLFsib2JqZWN0Iix7ImRlZmF1bHRfcmV0ZW50aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7ImRheXMiOiJudW1iZXIiLCJtb2RlIjoic3RyaW5nIiwieWVhcnMiOiJudW1iZXIifV1dfV1dfV1dLCJwb2xpY3kiOiJzdHJpbmciLCJyZWdpb24iOiJzdHJpbmciLCJyZXBsaWNhdGlvbl9jb25maWd1cmF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7InJvbGUiOiJzdHJpbmciLCJydWxlcyI6WyJzZXQiLFsib2JqZWN0Iix7ImRlc3RpbmF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7ImFjY2Vzc19jb250cm9sX3RyYW5zbGF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7Im93bmVyIjoic3RyaW5nIn1dXSwiYWNjb3VudF9pZCI6InN0cmluZyIsImJ1Y2tldCI6InN0cmluZyIsInJlcGxpY2Ffa21zX2tleV9pZCI6InN0cmluZyIsInN0b3JhZ2VfY2xhc3MiOiJzdHJpbmcifV1dLCJmaWx0ZXIiOlsibGlzdCIsWyJvYmplY3QiLHsicHJlZml4Ijoic3RyaW5nIiwidGFncyI6WyJtYXAiLCJzdHJpbmciXX1dXSwiaWQiOiJzdHJpbmciLCJwcmVmaXgiOiJzdHJpbmciLCJwcmlvcml0eSI6Im51bWJlciIsInNvdXJjZV9zZWxlY3Rpb25fY3JpdGVyaWEiOlsibGlzdCIsWyJvYmplY3QiLHsic3NlX2ttc19lbmNyeXB0ZWRfb2JqZWN0cyI6WyJsaXN0IixbIm9iamVjdCIseyJlbmFibGVkIjoiYm9vbCJ9XV19XV0sInN0YXR1cyI6InN0cmluZyJ9XV19XV0sInJlcXVlc3RfcGF5ZXIiOiJzdHJpbmciLCJzZXJ2ZXJfc2lkZV9lbmNyeXB0aW9uX2NvbmZpZ3VyYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsicnVsZSI6WyJsaXN0IixbIm9iamVjdCIseyJhcHBseV9zZXJ2ZXJfc2lkZV9lbmNyeXB0aW9uX2J5X2RlZmF1bHQiOlsibGlzdCIsWyJvYmplY3QiLHsia21zX21hc3Rlcl9rZXlfaWQiOiJzdHJpbmciLCJzc2VfYWxnb3JpdGhtIjoic3RyaW5nIn1dXX1dXX1dXSwidGFncyI6WyJtYXAiLCJzdHJpbmciXSwidmVyc2lvbmluZyI6WyJsaXN0IixbIm9iamVjdCIseyJlbmFibGVkIjoiYm9vbCIsIm1mYV9kZWxldGUiOiJib29sIn1dXSwid2Vic2l0ZSI6WyJsaXN0IixbIm9iamVjdCIseyJlcnJvcl9kb2N1bWVudCI6InN0cmluZyIsImluZGV4X2RvY3VtZW50Ijoic3RyaW5nIiwicmVkaXJlY3RfYWxsX3JlcXVlc3RzX3RvIjoic3RyaW5nIiwicm91dGluZ19ydWxlcyI6InN0cmluZyJ9XV0sIndlYnNpdGVfZG9tYWluIjoic3RyaW5nIiwid2Vic2l0ZV9lbmRwb2ludCI6InN0cmluZyJ9XQ==","Val":"eyJhY2NlbGVyYXRpb25fc3RhdHVzIjoiIiwiYWNsIjpudWxsLCJhcm4iOiJhcm46YXdzOnMzOjo6YnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0IiwiYnVja2V0IjoiYnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0IiwiYnVja2V0X2RvbWFpbl9uYW1lIjoiYnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0LnMzLmFtYXpvbmF3cy5jb20iLCJidWNrZXRfcHJlZml4IjpudWxsLCJidWNrZXRfcmVnaW9uYWxfZG9tYWluX25hbWUiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQuczMuZXUtd2VzdC0zLmFtYXpvbmF3cy5jb20iLCJjb3JzX3J1bGUiOltdLCJmb3JjZV9kZXN0cm95IjpudWxsLCJncmFudCI6W10sImhvc3RlZF96b25lX2lkIjoiWjNSMUszNjlHNUFWREciLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdCIsImxpZmVjeWNsZV9ydWxlIjpbXSwibG9nZ2luZyI6W10sIm9iamVjdF9sb2NrX2NvbmZpZ3VyYXRpb24iOltdLCJwb2xpY3kiOm51bGwsInJlZ2lvbiI6ImV1LXdlc3QtMyIsInJlcGxpY2F0aW9uX2NvbmZpZ3VyYXRpb24iOltdLCJyZXF1ZXN0X3BheWVyIjoiQnVja2V0T3duZXIiLCJzZXJ2ZXJfc2lkZV9lbmNyeXB0aW9uX2NvbmZpZ3VyYXRpb24iOltdLCJ0YWdzIjp7fSwidmVyc2lvbmluZyI6W3siZW5hYmxlZCI6ZmFsc2UsIm1mYV9kZWxldGUiOmZhbHNlfV0sIndlYnNpdGUiOltdLCJ3ZWJzaXRlX2RvbWFpbiI6bnVsbCwid2Vic2l0ZV9lbmRwb2ludCI6bnVsbH0=","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_analytics_configuration-bucket-martin-test-drift_Analytics_Bucket.res.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_analytics_configuration-bucket-martin-test-drift_Analytics_Bucket.res.golden.json
deleted file mode 100755
index 43270e579..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_analytics_configuration-bucket-martin-test-drift_Analytics_Bucket.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZmlsdGVyIjpbImxpc3QiLFsib2JqZWN0Iix7InByZWZpeCI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XV0sImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyIsInN0b3JhZ2VfY2xhc3NfYW5hbHlzaXMiOlsibGlzdCIsWyJvYmplY3QiLHsiZGF0YV9leHBvcnQiOlsibGlzdCIsWyJvYmplY3QiLHsiZGVzdGluYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiczNfYnVja2V0X2Rlc3RpbmF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7ImJ1Y2tldF9hY2NvdW50X2lkIjoic3RyaW5nIiwiYnVja2V0X2FybiI6InN0cmluZyIsImZvcm1hdCI6InN0cmluZyIsInByZWZpeCI6InN0cmluZyJ9XV19XV0sIm91dHB1dF9zY2hlbWFfdmVyc2lvbiI6InN0cmluZyJ9XV19XV19XQ==","Val":"eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJmaWx0ZXIiOltdLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdDpBbmFseXRpY3NfQnVja2V0IiwibmFtZSI6IkFuYWx5dGljc19CdWNrZXQiLCJzdG9yYWdlX2NsYXNzX2FuYWx5c2lzIjpbeyJkYXRhX2V4cG9ydCI6W3siZGVzdGluYXRpb24iOlt7InMzX2J1Y2tldF9kZXN0aW5hdGlvbiI6W3siYnVja2V0X2FjY291bnRfaWQiOiIiLCJidWNrZXRfYXJuIjoiYXJuOmF3czpzMzo6OmJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdCIsImZvcm1hdCI6IkNTViIsInByZWZpeCI6IiJ9XX1dLCJvdXRwdXRfc2NoZW1hX3ZlcnNpb24iOiJWXzEifV19XX0=","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_inventory-bucket-martin-test-drift_Inventory_Bucket.res.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_inventory-bucket-martin-test-drift_Inventory_Bucket.res.golden.json
deleted file mode 100755
index 473408622..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_inventory-bucket-martin-test-drift_Inventory_Bucket.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZGVzdGluYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiYnVja2V0IjpbImxpc3QiLFsib2JqZWN0Iix7ImFjY291bnRfaWQiOiJzdHJpbmciLCJidWNrZXRfYXJuIjoic3RyaW5nIiwiZW5jcnlwdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJzc2Vfa21zIjpbImxpc3QiLFsib2JqZWN0Iix7ImtleV9pZCI6InN0cmluZyJ9XV0sInNzZV9zMyI6WyJsaXN0IixbIm9iamVjdCIse31dXX1dXSwiZm9ybWF0Ijoic3RyaW5nIiwicHJlZml4Ijoic3RyaW5nIn1dXX1dXSwiZW5hYmxlZCI6ImJvb2wiLCJmaWx0ZXIiOlsibGlzdCIsWyJvYmplY3QiLHsicHJlZml4Ijoic3RyaW5nIn1dXSwiaWQiOiJzdHJpbmciLCJpbmNsdWRlZF9vYmplY3RfdmVyc2lvbnMiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwib3B0aW9uYWxfZmllbGRzIjpbInNldCIsInN0cmluZyJdLCJzY2hlZHVsZSI6WyJsaXN0IixbIm9iamVjdCIseyJmcmVxdWVuY3kiOiJzdHJpbmcifV1dfV0=","Val":"eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJkZXN0aW5hdGlvbiI6W3siYnVja2V0IjpbeyJhY2NvdW50X2lkIjoiIiwiYnVja2V0X2FybiI6ImFybjphd3M6czM6OjpidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJlbmNyeXB0aW9uIjpbXSwiZm9ybWF0IjoiT1JDIiwicHJlZml4IjoiIn1dfV0sImVuYWJsZWQiOnRydWUsImZpbHRlciI6W10sImlkIjoiYnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0OkludmVudG9yeV9CdWNrZXQiLCJpbmNsdWRlZF9vYmplY3RfdmVyc2lvbnMiOiJBbGwiLCJuYW1lIjoiSW52ZW50b3J5X0J1Y2tldCIsIm9wdGlvbmFsX2ZpZWxkcyI6W10sInNjaGVkdWxlIjpbeyJmcmVxdWVuY3kiOiJEYWlseSJ9XX0=","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_notification-bucket-martin-test-drift.res.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_notification-bucket-martin-test-drift.res.golden.json
deleted file mode 100755
index 91c5a7008..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_notification-bucket-martin-test-drift.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJsYW1iZGFfZnVuY3Rpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiZXZlbnRzIjpbInNldCIsInN0cmluZyJdLCJmaWx0ZXJfcHJlZml4Ijoic3RyaW5nIiwiZmlsdGVyX3N1ZmZpeCI6InN0cmluZyIsImlkIjoic3RyaW5nIiwibGFtYmRhX2Z1bmN0aW9uX2FybiI6InN0cmluZyJ9XV0sInF1ZXVlIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInF1ZXVlX2FybiI6InN0cmluZyJ9XV0sInRvcGljIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInRvcGljX2FybiI6InN0cmluZyJ9XV19XQ==","Val":"eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdCIsImxhbWJkYV9mdW5jdGlvbiI6W10sInF1ZXVlIjpbXSwidG9waWMiOltdfQ==","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_policy-bucket-martin-test-drift.res.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_policy-bucket-martin-test-drift.res.golden.json
deleted file mode 100755
index 5a2eec28c..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/aws_s3_bucket_policy-bucket-martin-test-drift.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmcifV0=","Val":"eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQiLCJpZCI6ImJ1Y2tldC1tYXJ0aW4tdGVzdC1kcmlmdCIsInBvbGljeSI6IntcIlZlcnNpb25cIjpcIjIwMTItMTAtMTdcIixcIlN0YXRlbWVudFwiOlt7XCJTaWRcIjpcIlB1YmxpY1JlYWRHZXRPYmplY3RcIixcIkVmZmVjdFwiOlwiQWxsb3dcIixcIlByaW5jaXBhbFwiOlwiKlwiLFwiQWN0aW9uXCI6XCJzMzpHZXRPYmplY3RcIixcIlJlc291cmNlXCI6XCJhcm46YXdzOnMzOjo6YnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0LypcIn1dfSJ9","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/analytics_inventory_nometrics/results.golden.json b/enumeration/remote/aws/test/analytics_inventory_nometrics/results.golden.json
deleted file mode 100755
index 3afa38afb..000000000
--- a/enumeration/remote/aws/test/analytics_inventory_nometrics/results.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-[{"Bucket":{"AccelerationStatus":"","Acl":null,"Arn":"arn:aws:s3:::bucket-martin-test-drift","Bucket":"bucket-martin-test-drift","BucketDomainName":"bucket-martin-test-drift.s3.amazonaws.com","BucketPrefix":null,"BucketRegionalDomainName":"bucket-martin-test-drift.s3.eu-west-3.amazonaws.com","ForceDestroy":null,"HostedZoneId":"Z3R1K369G5AVDG","Id":"bucket-martin-test-drift","Policy":null,"Region":"eu-west-3","RequestPayer":"BucketOwner","Tags":{},"WebsiteDomain":null,"WebsiteEndpoint":null,"CorsRule":[],"Grant":[],"LifecycleRule":[],"Logging":[],"ObjectLockConfiguration":[],"ReplicationConfiguration":[],"ServerSideEncryptionConfiguration":[],"Versioning":[{"Enabled":false,"MfaDelete":false}],"Website":[]},"AnalyticsConfiguration":[{"Bucket":"bucket-martin-test-drift","Id":"bucket-martin-test-drift:Analytics_Bucket","Name":"Analytics_Bucket","Filter":[],"StorageClassAnalysis":[{"DataExport":[{"OutputSchemaVersion":"V_1","Destination":[{"S3BucketDestination":[{"BucketAccountId":"","BucketArn":"arn:aws:s3:::bucket-martin-test-drift","Format":"CSV","Prefix":""}]}]}]}]}],"Policy":{"Bucket":"bucket-martin-test-drift","Id":"bucket-martin-test-drift","Policy":"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"PublicReadGetObject\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::bucket-martin-test-drift/*\"}]}"},"Inventories":[{"Bucket":"bucket-martin-test-drift","Enabled":true,"Id":"bucket-martin-test-drift:Inventory_Bucket","IncludedObjectVersions":"All","Name":"Inventory_Bucket","OptionalFields":[],"Destination":[{"Bucket":[{"AccountId":"","BucketArn":"arn:aws:s3:::bucket-martin-test-drift","Format":"ORC","Prefix":"","Encryption":[]}]}],"Filter":[],"Schedule":[{"Frequency":"Daily"}]}],"Metrics":[],"Notifications":{"Bucket":"bucket-martin-test-drift","Id":"bucket-martin-test-drift","LambdaFunction":[],"Queue":[],"Topic":[]},"PublicAccessBlock":null}]
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory2_Bucket2.res.golden.json b/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory2_Bucket2.res.golden.json
deleted file mode 100755
index 805afa2d1..000000000
--- a/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory2_Bucket2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZGVzdGluYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiYnVja2V0IjpbImxpc3QiLFsib2JqZWN0Iix7ImFjY291bnRfaWQiOiJzdHJpbmciLCJidWNrZXRfYXJuIjoic3RyaW5nIiwiZW5jcnlwdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJzc2Vfa21zIjpbImxpc3QiLFsib2JqZWN0Iix7ImtleV9pZCI6InN0cmluZyJ9XV0sInNzZV9zMyI6WyJsaXN0IixbIm9iamVjdCIse31dXX1dXSwiZm9ybWF0Ijoic3RyaW5nIiwicHJlZml4Ijoic3RyaW5nIn1dXX1dXSwiZW5hYmxlZCI6ImJvb2wiLCJmaWx0ZXIiOlsibGlzdCIsWyJvYmplY3QiLHsicHJlZml4Ijoic3RyaW5nIn1dXSwiaWQiOiJzdHJpbmciLCJpbmNsdWRlZF9vYmplY3RfdmVyc2lvbnMiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwib3B0aW9uYWxfZmllbGRzIjpbInNldCIsInN0cmluZyJdLCJzY2hlZHVsZSI6WyJsaXN0IixbIm9iamVjdCIseyJmcmVxdWVuY3kiOiJzdHJpbmcifV1dfV0=",
- "Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwiZGVzdGluYXRpb24iOlt7ImJ1Y2tldCI6W3siYWNjb3VudF9pZCI6IiIsImJ1Y2tldF9hcm4iOiJhcm46YXdzOnMzOjo6YnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0MiIsImVuY3J5cHRpb24iOltdLCJmb3JtYXQiOiJPUkMiLCJwcmVmaXgiOiIifV19XSwiZW5hYmxlZCI6dHJ1ZSwiZmlsdGVyIjpbXSwiaWQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyOkludmVudG9yeTJfQnVja2V0MiIsImluY2x1ZGVkX29iamVjdF92ZXJzaW9ucyI6IkFsbCIsIm5hbWUiOiJJbnZlbnRvcnkyX0J1Y2tldDIiLCJvcHRpb25hbF9maWVsZHMiOltdLCJzY2hlZHVsZSI6W3siZnJlcXVlbmN5IjoiRGFpbHkifV19",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory_Bucket2.res.golden.json b/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory_Bucket2.res.golden.json
deleted file mode 100755
index 209d5155d..000000000
--- a/enumeration/remote/aws/test/s3_bucket_list/aws_s3_bucket_inventory-bucket-martin-test-drift2_Inventory_Bucket2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiZGVzdGluYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiYnVja2V0IjpbImxpc3QiLFsib2JqZWN0Iix7ImFjY291bnRfaWQiOiJzdHJpbmciLCJidWNrZXRfYXJuIjoic3RyaW5nIiwiZW5jcnlwdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJzc2Vfa21zIjpbImxpc3QiLFsib2JqZWN0Iix7ImtleV9pZCI6InN0cmluZyJ9XV0sInNzZV9zMyI6WyJsaXN0IixbIm9iamVjdCIse31dXX1dXSwiZm9ybWF0Ijoic3RyaW5nIiwicHJlZml4Ijoic3RyaW5nIn1dXX1dXSwiZW5hYmxlZCI6ImJvb2wiLCJmaWx0ZXIiOlsibGlzdCIsWyJvYmplY3QiLHsicHJlZml4Ijoic3RyaW5nIn1dXSwiaWQiOiJzdHJpbmciLCJpbmNsdWRlZF9vYmplY3RfdmVyc2lvbnMiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwib3B0aW9uYWxfZmllbGRzIjpbInNldCIsInN0cmluZyJdLCJzY2hlZHVsZSI6WyJsaXN0IixbIm9iamVjdCIseyJmcmVxdWVuY3kiOiJzdHJpbmcifV1dfV0=",
- "Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwiZGVzdGluYXRpb24iOlt7ImJ1Y2tldCI6W3siYWNjb3VudF9pZCI6IiIsImJ1Y2tldF9hcm4iOiJhcm46YXdzOnMzOjo6YnVja2V0LW1hcnRpbi10ZXN0LWRyaWZ0MiIsImVuY3J5cHRpb24iOltdLCJmb3JtYXQiOiJPUkMiLCJwcmVmaXgiOiIifV19XSwiZW5hYmxlZCI6dHJ1ZSwiZmlsdGVyIjpbXSwiaWQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyOkludmVudG9yeV9CdWNrZXQyIiwiaW5jbHVkZWRfb2JqZWN0X3ZlcnNpb25zIjoiQWxsIiwibmFtZSI6IkludmVudG9yeV9CdWNrZXQyIiwib3B0aW9uYWxfZmllbGRzIjpbXSwic2NoZWR1bGUiOlt7ImZyZXF1ZW5jeSI6IkRhaWx5In1dfQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/aws/test/s3_bucket_list/results.golden.json b/enumeration/remote/aws/test/s3_bucket_list/results.golden.json
deleted file mode 100755
index d737dedb7..000000000
--- a/enumeration/remote/aws/test/s3_bucket_list/results.golden.json
+++ /dev/null
@@ -1,56 +0,0 @@
-[
- {
- "bucket": "bucket-martin-test-drift2",
- "destination": [
- {
- "bucket": [
- {
- "account_id": "",
- "bucket_arn": "arn:aws:s3:::bucket-martin-test-drift2",
- "encryption": [],
- "format": "ORC",
- "prefix": ""
- }
- ]
- }
- ],
- "enabled": true,
- "filter": [],
- "id": "bucket-martin-test-drift2:Inventory_Bucket2",
- "included_object_versions": "All",
- "name": "Inventory_Bucket2",
- "optional_fields": [],
- "schedule": [
- {
- "frequency": "Daily"
- }
- ]
- },
- {
- "bucket": "bucket-martin-test-drift2",
- "destination": [
- {
- "bucket": [
- {
- "account_id": "",
- "bucket_arn": "arn:aws:s3:::bucket-martin-test-drift2",
- "encryption": [],
- "format": "ORC",
- "prefix": ""
- }
- ]
- }
- ],
- "enabled": true,
- "filter": [],
- "id": "bucket-martin-test-drift2:Inventory2_Bucket2",
- "included_object_versions": "All",
- "name": "Inventory2_Bucket2",
- "optional_fields": [],
- "schedule": [
- {
- "frequency": "Daily"
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/aws/vpc_default_security_group_enumerator.go b/enumeration/remote/aws/vpc_default_security_group_enumerator.go
deleted file mode 100644
index 1f18fb95e..000000000
--- a/enumeration/remote/aws/vpc_default_security_group_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/aws/aws-sdk-go/aws"
-)
-
-type VPCDefaultSecurityGroupEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewVPCDefaultSecurityGroupEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *VPCDefaultSecurityGroupEnumerator {
- return &VPCDefaultSecurityGroupEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *VPCDefaultSecurityGroupEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsDefaultSecurityGroupResourceType
-}
-
-func (e *VPCDefaultSecurityGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- _, defaultSecurityGroups, err := e.repository.ListAllSecurityGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(defaultSecurityGroups))
-
- for _, item := range defaultSecurityGroups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- aws.StringValue(item.GroupId),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/vpc_enumerator.go b/enumeration/remote/aws/vpc_enumerator.go
deleted file mode 100644
index bcac83478..000000000
--- a/enumeration/remote/aws/vpc_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type VPCEnumerator struct {
- repo repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewVPCEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *VPCEnumerator {
- return &VPCEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *VPCEnumerator) SupportedType() resource.ResourceType {
- return aws.AwsVpcResourceType
-}
-
-func (e *VPCEnumerator) Enumerate() ([]*resource.Resource, error) {
- VPCs, _, err := e.repo.ListAllVPCs()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(VPCs))
-
- for _, item := range VPCs {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *item.VpcId,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/vpc_security_group_enumerator.go b/enumeration/remote/aws/vpc_security_group_enumerator.go
deleted file mode 100644
index 47d066999..000000000
--- a/enumeration/remote/aws/vpc_security_group_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/aws/aws-sdk-go/aws"
-)
-
-type VPCSecurityGroupEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-func NewVPCSecurityGroupEnumerator(repo repository.EC2Repository, factory resource.ResourceFactory) *VPCSecurityGroupEnumerator {
- return &VPCSecurityGroupEnumerator{
- repo,
- factory,
- }
-}
-
-func (e *VPCSecurityGroupEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsSecurityGroupResourceType
-}
-
-func (e *VPCSecurityGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- securityGroups, _, err := e.repository.ListAllSecurityGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(securityGroups))
-
- for _, item := range securityGroups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- aws.StringValue(item.GroupId),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, nil
-}
diff --git a/enumeration/remote/aws/vpc_security_group_rule_enumerator.go b/enumeration/remote/aws/vpc_security_group_rule_enumerator.go
deleted file mode 100644
index 5bcdc3231..000000000
--- a/enumeration/remote/aws/vpc_security_group_rule_enumerator.go
+++ /dev/null
@@ -1,169 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/ec2"
-)
-
-const (
- sgRuleTypeIngress = "ingress"
- sgRuleTypeEgress = "egress"
-)
-
-type VPCSecurityGroupRuleEnumerator struct {
- repository repository.EC2Repository
- factory resource.ResourceFactory
-}
-
-type securityGroupRule struct {
- Type string
- SecurityGroupId string
- Protocol string
- FromPort float64
- ToPort float64
- Self bool
- SourceSecurityGroupId string
- CidrBlocks []string
- Ipv6CidrBlocks []string
- PrefixListIds []string
-}
-
-func (s *securityGroupRule) getId() string {
- attrs := s.getAttrs()
- return resourceaws.CreateSecurityGroupRuleIdHash(&attrs)
-}
-
-func (s *securityGroupRule) getAttrs() resource.Attributes {
- attrs := resource.Attributes{
- "type": s.Type,
- "security_group_id": s.SecurityGroupId,
- "protocol": s.Protocol,
- "from_port": int(s.FromPort),
- "to_port": int(s.ToPort),
- "self": s.Self,
- "source_security_group_id": s.SourceSecurityGroupId,
- "cidr_blocks": toInterfaceSlice(s.CidrBlocks),
- "ipv6_cidr_blocks": toInterfaceSlice(s.Ipv6CidrBlocks),
- "prefix_list_ids": toInterfaceSlice(s.PrefixListIds),
- }
-
- return attrs
-}
-
-func toInterfaceSlice(val []string) []interface{} {
- var res []interface{}
- for _, v := range val {
- res = append(res, v)
- }
- return res
-}
-
-func NewVPCSecurityGroupRuleEnumerator(repository repository.EC2Repository, factory resource.ResourceFactory) *VPCSecurityGroupRuleEnumerator {
- return &VPCSecurityGroupRuleEnumerator{
- repository,
- factory,
- }
-}
-
-func (e *VPCSecurityGroupRuleEnumerator) SupportedType() resource.ResourceType {
- return resourceaws.AwsSecurityGroupRuleResourceType
-}
-
-func (e *VPCSecurityGroupRuleEnumerator) Enumerate() ([]*resource.Resource, error) {
- securityGroups, defaultSecurityGroups, err := e.repository.ListAllSecurityGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), resourceaws.AwsSecurityGroupResourceType)
- }
-
- secGroups := make([]*ec2.SecurityGroup, 0, len(securityGroups)+len(defaultSecurityGroups))
- secGroups = append(secGroups, securityGroups...)
- secGroups = append(secGroups, defaultSecurityGroups...)
- securityGroupsRules := e.listSecurityGroupsRules(secGroups)
-
- results := make([]*resource.Resource, 0, len(securityGroupsRules))
- for _, rule := range securityGroupsRules {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- rule.getId(),
- rule.getAttrs(),
- ),
- )
- }
-
- return results, nil
-}
-
-func (e *VPCSecurityGroupRuleEnumerator) listSecurityGroupsRules(securityGroups []*ec2.SecurityGroup) []securityGroupRule {
- var securityGroupsRules []securityGroupRule
- for _, sg := range securityGroups {
- for _, rule := range sg.IpPermissions {
- securityGroupsRules = append(securityGroupsRules, e.addSecurityGroupRule(sgRuleTypeIngress, rule, sg)...)
- }
- for _, rule := range sg.IpPermissionsEgress {
- securityGroupsRules = append(securityGroupsRules, e.addSecurityGroupRule(sgRuleTypeEgress, rule, sg)...)
- }
- }
- return securityGroupsRules
-}
-
-// addSecurityGroupRule will iterate through each "Source" as per Aws definition and create a
-// rule with custom attributes
-func (e *VPCSecurityGroupRuleEnumerator) addSecurityGroupRule(ruleType string, rule *ec2.IpPermission, sg *ec2.SecurityGroup) []securityGroupRule {
- var rules []securityGroupRule
- for _, groupPair := range rule.UserIdGroupPairs {
- r := securityGroupRule{
- Type: ruleType,
- SecurityGroupId: aws.StringValue(sg.GroupId),
- Protocol: aws.StringValue(rule.IpProtocol),
- FromPort: float64(aws.Int64Value(rule.FromPort)),
- ToPort: float64(aws.Int64Value(rule.ToPort)),
- }
- if aws.StringValue(groupPair.GroupId) == aws.StringValue(sg.GroupId) {
- r.Self = true
- } else {
- r.SourceSecurityGroupId = aws.StringValue(groupPair.GroupId)
- }
- rules = append(rules, r)
- }
- for _, ipRange := range rule.IpRanges {
- r := securityGroupRule{
- Type: ruleType,
- SecurityGroupId: aws.StringValue(sg.GroupId),
- Protocol: aws.StringValue(rule.IpProtocol),
- FromPort: float64(aws.Int64Value(rule.FromPort)),
- ToPort: float64(aws.Int64Value(rule.ToPort)),
- CidrBlocks: []string{aws.StringValue(ipRange.CidrIp)},
- }
- rules = append(rules, r)
- }
- for _, ipRange := range rule.Ipv6Ranges {
- r := securityGroupRule{
- Type: ruleType,
- SecurityGroupId: aws.StringValue(sg.GroupId),
- Protocol: aws.StringValue(rule.IpProtocol),
- FromPort: float64(aws.Int64Value(rule.FromPort)),
- ToPort: float64(aws.Int64Value(rule.ToPort)),
- Ipv6CidrBlocks: []string{aws.StringValue(ipRange.CidrIpv6)},
- }
- rules = append(rules, r)
- }
- for _, listId := range rule.PrefixListIds {
- r := securityGroupRule{
- Type: ruleType,
- SecurityGroupId: aws.StringValue(sg.GroupId),
- Protocol: aws.StringValue(rule.IpProtocol),
- FromPort: float64(aws.Int64Value(rule.FromPort)),
- ToPort: float64(aws.Int64Value(rule.ToPort)),
- PrefixListIds: []string{aws.StringValue(listId.PrefixListId)},
- }
- rules = append(rules, r)
- }
- return rules
-}
diff --git a/enumeration/remote/aws_api_gateway_scanner_test.go b/enumeration/remote/aws_api_gateway_scanner_test.go
deleted file mode 100644
index 14ff45f13..000000000
--- a/enumeration/remote/aws_api_gateway_scanner_test.go
+++ /dev/null
@@ -1,1654 +0,0 @@
-package remote
-
-import (
- "testing"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/apigateway"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/enumeration/terraform"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/remote"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestApiGatewayRestApi(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway rest apis",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRestApis").Return([]*apigateway.RestApi{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway rest apis",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRestApis").Return([]*apigateway.RestApi{
- {Id: awssdk.String("3of73v5ob4")},
- {Id: awssdk.String("1jitcobwol")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "3of73v5ob4")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayRestApiResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "1jitcobwol")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayRestApiResourceType)
- },
- },
- {
- test: "cannot list api gateway rest apis",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayRestApiResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRestApiResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayRestApiEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayAccount(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway account",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("GetAccount").Return(nil, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "empty api gateway account",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("GetAccount").Return(&apigateway.Account{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "api-gateway-account")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayAccountResourceType)
- },
- },
- {
- test: "cannot get api gateway account",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("GetAccount").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayAccountResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayAccountResourceType, resourceaws.AwsApiGatewayAccountResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayAccountResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayAccountEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayApiKey(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway api keys",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApiKeys").Return([]*apigateway.ApiKey{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway api keys",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApiKeys").Return([]*apigateway.ApiKey{
- {Id: awssdk.String("fuwnl8lrva")},
- {Id: awssdk.String("9ge737dd45")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "fuwnl8lrva")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayApiKeyResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "9ge737dd45")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayApiKeyResourceType)
- },
- },
- {
- test: "cannot list api gateway api keys",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApiKeys").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayApiKeyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayApiKeyResourceType, resourceaws.AwsApiGatewayApiKeyResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayApiKeyResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayApiKeyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayAuthorizer(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("3of73v5ob4")},
- {Id: awssdk.String("1jitcobwol")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway authorizers",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiAuthorizers", *apis[0].Id).Return([]*apigateway.Authorizer{}, nil).Once()
- repo.On("ListAllRestApiAuthorizers", *apis[1].Id).Return([]*apigateway.Authorizer{}, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway authorizers",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiAuthorizers", *apis[0].Id).Return([]*apigateway.Authorizer{
- {Id: awssdk.String("ypcpde")},
- }, nil).Once()
- repo.On("ListAllRestApiAuthorizers", *apis[1].Id).Return([]*apigateway.Authorizer{
- {Id: awssdk.String("bwhebj")},
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "ypcpde")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayAuthorizerResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "bwhebj")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayAuthorizerResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayAuthorizerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayAuthorizerResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayAuthorizerResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiAuthorizers", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayAuthorizerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayAuthorizerResourceType, resourceaws.AwsApiGatewayAuthorizerResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayAuthorizerResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayAuthorizerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayStage(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("3of73v5ob4")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway stages",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return([]*apigateway.Stage{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway stages",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return([]*apigateway.Stage{
- {StageName: awssdk.String("foo")},
- {StageName: awssdk.String("baz")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "ags-3of73v5ob4-foo")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayStageResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "ags-3of73v5ob4-baz")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayStageResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayStageResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayStageResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayStageResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway stages",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayStageResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayStageResourceType, resourceaws.AwsApiGatewayStageResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayStageResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayStageEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayResource(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("3of73v5ob4")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("21zk4y"), Path: awssdk.String("/")},
- {Id: awssdk.String("2ltv32p058"), Path: awssdk.String("/")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "21zk4y")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayResourceResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "2ltv32p058")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayResourceResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayResourceResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayResourceResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayResourceResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayResourceResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayResourceResourceType, resourceaws.AwsApiGatewayResourceResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayResourceResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayResourceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayDomainName(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway domain names",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return([]*apigateway.DomainName{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway domain name",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return([]*apigateway.DomainName{
- {DomainName: awssdk.String("example-driftctl.com")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "example-driftctl.com")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayDomainNameResourceType)
- },
- },
- {
- test: "cannot list api gateway domain names",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayDomainNameResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayDomainNameResourceType, resourceaws.AwsApiGatewayDomainNameResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayDomainNameResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayDomainNameEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayVpcLink(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway vpc links",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return([]*apigateway.UpdateVpcLinkOutput{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway vpc link",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return([]*apigateway.UpdateVpcLinkOutput{
- {Id: awssdk.String("ipu24n")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "ipu24n")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayVpcLinkResourceType)
- },
- },
- {
- test: "cannot list api gateway vpc links",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayVpcLinkResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayVpcLinkResourceType, resourceaws.AwsApiGatewayVpcLinkResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayVpcLinkResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayVpcLinkEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayRequestValidator(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway request validators",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiRequestValidators", *apis[0].Id).Return([]*apigateway.UpdateRequestValidatorOutput{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway request validators",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiRequestValidators", *apis[0].Id).Return([]*apigateway.UpdateRequestValidatorOutput{
- {Id: awssdk.String("ywlcuf")},
- {Id: awssdk.String("qmpbs8")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "ywlcuf")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayRequestValidatorResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "qmpbs8")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayRequestValidatorResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayRequestValidatorResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRequestValidatorResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRequestValidatorResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway request validators",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiRequestValidators", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayRequestValidatorResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRequestValidatorResourceType, resourceaws.AwsApiGatewayRequestValidatorResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayRequestValidatorResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayRequestValidatorEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayRestApiPolicy(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway rest api policies",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRestApis").Return([]*apigateway.RestApi{
- {Id: awssdk.String("3of73v5ob4")},
- {Id: awssdk.String("9x7kq9pbyh"), Policy: awssdk.String("")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway rest api policies",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRestApis").Return([]*apigateway.RestApi{
- {Id: awssdk.String("c3n3aqga5d"), Policy: awssdk.String("{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:111111111111:c3n3aqga5d/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"123.123.123.123/32\"}}}]}")},
- {Id: awssdk.String("9y1eus3hr7"), Policy: awssdk.String("{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:111111111111:9y1eus3hr7/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"123.123.123.123/32\"}}}]}")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "c3n3aqga5d")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayRestApiPolicyResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "9y1eus3hr7")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayRestApiPolicyResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayRestApiPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRestApiPolicyResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayRestApiPolicyResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayRestApiPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayBasePathMapping(t *testing.T) {
- dummyError := errors.New("this is an error")
- domainNames := []*apigateway.DomainName{
- {DomainName: awssdk.String("example-driftctl.com")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no domain name base path mappings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllDomainNames").Return(domainNames, nil)
- repo.On("ListAllDomainNameBasePathMappings", *domainNames[0].DomainName).Return([]*apigateway.BasePathMapping{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple domain name base path mappings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllDomainNames").Return(domainNames, nil)
- repo.On("ListAllDomainNameBasePathMappings", *domainNames[0].DomainName).Return([]*apigateway.BasePathMapping{
- {BasePath: awssdk.String("foo")},
- {BasePath: awssdk.String("(none)")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "example-driftctl.com/foo")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayBasePathMappingResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "example-driftctl.com/")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayBasePathMappingResourceType)
- },
- },
- {
- test: "cannot list domain names",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllDomainNames").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayBasePathMappingResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayBasePathMappingResourceType, resourceaws.AwsApiGatewayDomainNameResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayBasePathMappingResourceType, resourceaws.AwsApiGatewayDomainNameResourceType),
- },
- {
- test: "cannot list domain name base path mappings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllDomainNames").Return(domainNames, nil)
- repo.On("ListAllDomainNameBasePathMappings", *domainNames[0].DomainName).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayBasePathMappingResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayBasePathMappingResourceType, resourceaws.AwsApiGatewayBasePathMappingResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayBasePathMappingResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayBasePathMappingEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayMethod(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway methods",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("hl7ksq"), Path: awssdk.String("/foo")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway methods",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("hl7ksq"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {},
- "POST": {},
- "DELETE": {},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "agm-vryjzimtj1-hl7ksq-DELETE")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayMethodResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "agm-vryjzimtj1-hl7ksq-GET")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayMethodResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "agm-vryjzimtj1-hl7ksq-POST")
- assert.Equal(t, got[2].ResourceType(), resourceaws.AwsApiGatewayMethodResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResourceType, resourceaws.AwsApiGatewayResourceResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResourceType, resourceaws.AwsApiGatewayResourceResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayMethodEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := remote.NewSortableScanner(NewScanner(remoteLibrary, alerter, testFilter))
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayModel(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway models",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiModels", *apis[0].Id).Return([]*apigateway.Model{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway models",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiModels", *apis[0].Id).Return([]*apigateway.Model{
- {Id: awssdk.String("g68a4s")},
- {Id: awssdk.String("85v536")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "g68a4s")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayModelResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "85v536")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayModelResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayModelResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayModelResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayModelResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway models",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiModels", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayModelResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayModelResourceType, resourceaws.AwsApiGatewayModelResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayModelResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayModelEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayMethodResponse(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway method responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("hl7ksq"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway method responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("hl7ksq"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {MethodResponses: map[string]*apigateway.MethodResponse{
- "200": {},
- "404": {},
- "503": {},
- }},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "agmr-vryjzimtj1-hl7ksq-GET-200")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayMethodResponseResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "agmr-vryjzimtj1-hl7ksq-GET-404")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayMethodResponseResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "agmr-vryjzimtj1-hl7ksq-GET-503")
- assert.Equal(t, got[2].ResourceType(), resourceaws.AwsApiGatewayMethodResponseResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResponseResourceType, resourceaws.AwsApiGatewayResourceResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodResponseResourceType, resourceaws.AwsApiGatewayResourceResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayMethodResponseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := remote.NewSortableScanner(NewScanner(remoteLibrary, alerter, testFilter))
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayGatewayResponse(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway gateway responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiGatewayResponses", *apis[0].Id).Return([]*apigateway.UpdateGatewayResponseOutput{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway gateway responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiGatewayResponses", *apis[0].Id).Return([]*apigateway.UpdateGatewayResponseOutput{
- {ResponseType: awssdk.String("UNAUTHORIZED")},
- {ResponseType: awssdk.String("ACCESS_DENIED")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "aggr-vryjzimtj1-UNAUTHORIZED")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayGatewayResponseResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "aggr-vryjzimtj1-ACCESS_DENIED")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayGatewayResponseResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayGatewayResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayGatewayResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayGatewayResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway gateway responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiGatewayResponses", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayGatewayResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayGatewayResponseResourceType, resourceaws.AwsApiGatewayGatewayResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayGatewayResponseResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayGatewayResponseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayMethodSettings(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("vryjzimtj1")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway method settings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return([]*apigateway.Stage{
- {StageName: awssdk.String("foo"), MethodSettings: map[string]*apigateway.MethodSetting{}},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway method settings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return([]*apigateway.Stage{
- {StageName: awssdk.String("foo"), MethodSettings: map[string]*apigateway.MethodSetting{
- "*/*": {},
- "foo/GET": {},
- "foo/DELETE": {},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "vryjzimtj1-foo-*/*")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayMethodSettingsResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "vryjzimtj1-foo-foo/DELETE")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayMethodSettingsResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "vryjzimtj1-foo-foo/GET")
- assert.Equal(t, got[2].ResourceType(), resourceaws.AwsApiGatewayMethodSettingsResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodSettingsResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodSettingsResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodSettingsResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway settings",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiStages", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayMethodSettingsResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodSettingsResourceType, resourceaws.AwsApiGatewayStageResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayMethodSettingsResourceType, resourceaws.AwsApiGatewayStageResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayMethodSettingsEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := remote.NewSortableScanner(NewScanner(remoteLibrary, alerter, testFilter))
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayIntegration(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("u7jce3lokk")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway integrations",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("z9ag20"), Path: awssdk.String("/foo")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway integrations",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("z9ag20"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {},
- "POST": {},
- "DELETE": {},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "agi-u7jce3lokk-z9ag20-DELETE")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayIntegrationResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "agi-u7jce3lokk-z9ag20-GET")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayIntegrationResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "agi-u7jce3lokk-z9ag20-POST")
- assert.Equal(t, got[2].ResourceType(), resourceaws.AwsApiGatewayIntegrationResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayIntegrationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayIntegrationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResourceType, resourceaws.AwsApiGatewayResourceResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResourceType, resourceaws.AwsApiGatewayResourceResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayIntegrationEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := remote.NewSortableScanner(NewScanner(remoteLibrary, alerter, testFilter))
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayIntegrationResponse(t *testing.T) {
- dummyError := errors.New("this is an error")
- apis := []*apigateway.RestApi{
- {Id: awssdk.String("u7jce3lokk")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway integration responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("z9ag20"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {},
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway integration responses",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return([]*apigateway.Resource{
- {Id: awssdk.String("z9ag20"), Path: awssdk.String("/foo"), ResourceMethods: map[string]*apigateway.Method{
- "GET": {
- MethodIntegration: &apigateway.Integration{
- IntegrationResponses: map[string]*apigateway.IntegrationResponse{
- "200": {},
- "302": {},
- },
- },
- },
- }},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "agir-u7jce3lokk-z9ag20-GET-200")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayIntegrationResponseResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "agir-u7jce3lokk-z9ag20-GET-302")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayIntegrationResponseResourceType)
- },
- },
- {
- test: "cannot list rest apis",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayIntegrationResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResponseResourceType, resourceaws.AwsApiGatewayRestApiResourceType),
- },
- {
- test: "cannot list api gateway resources",
- mocks: func(repo *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRestApis").Return(apis, nil)
- repo.On("ListAllRestApiResources", *apis[0].Id).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayIntegrationResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResponseResourceType, resourceaws.AwsApiGatewayResourceResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayIntegrationResponseResourceType, resourceaws.AwsApiGatewayResourceResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayIntegrationResponseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := remote.NewSortableScanner(NewScanner(remoteLibrary, alerter, testFilter))
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_apigatewayv2_scanner_test.go b/enumeration/remote/aws_apigatewayv2_scanner_test.go
deleted file mode 100644
index 6c93a82a8..000000000
--- a/enumeration/remote/aws_apigatewayv2_scanner_test.go
+++ /dev/null
@@ -1,1182 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestApiGatewayV2Api(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 api",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 api",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("f5vdrg12tk")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "f5vdrg12tk")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2ApiResourceType)
- },
- },
- {
- test: "cannot list api gateway v2 apis",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2ApiResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2ApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2ApiEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Route(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 api",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 api with a single route",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("a-gateway")},
- }, nil)
- repository.On("ListAllApiRoutes", awssdk.String("a-gateway")).
- Return([]*apigatewayv2.Route{{
- RouteId: awssdk.String("a-route"),
- RouteKey: awssdk.String("POST /an-example"),
- }}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "a-route", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2RouteResourceType, got[0].ResourceType())
- expectedAttrs := &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "POST /an-example",
- }
- assert.Equal(t, expectedAttrs, got[0].Attributes())
- },
- },
- {
- test: "cannot list api gateway v2 apis",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2RouteResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2RouteResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2RouteEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Deployment(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "single api gateway v2 api with a single deployment",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("a-gateway")},
- }, nil)
- repository.On("ListAllApiDeployments", awssdk.String("a-gateway")).
- Return([]*apigatewayv2.Deployment{{
- DeploymentId: awssdk.String("a-deployment"),
- }}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "a-deployment", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2DeploymentResourceType, got[0].ResourceType())
- expectedAttrs := &resource.Attributes{}
- assert.Equal(t, expectedAttrs, got[0].Attributes())
- },
- },
- {
- test: "no API gateways",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single API gateway with no deployments",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("a-gateway")},
- }, nil)
- repository.On("ListAllApiDeployments", awssdk.String("a-gateway")).
- Return([]*apigatewayv2.Deployment{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing API gateways",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2DeploymentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2RouteResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2DeploymentResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "error listing deployments of an API",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("a-gateway")},
- }, nil)
- repository.On("ListAllApiDeployments", awssdk.String("a-gateway")).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2DeploymentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2DeploymentResourceType, resourceaws.AwsApiGatewayV2DeploymentResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2DeploymentResourceType, resourceaws.AwsApiGatewayV2DeploymentResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2DeploymentEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2VpcLink(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 vpc links",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return([]*apigatewayv2.VpcLink{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 vpc link",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return([]*apigatewayv2.VpcLink{
- {VpcLinkId: awssdk.String("b8r351")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "b8r351")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2VpcLinkResourceType)
- },
- },
- {
- test: "cannot list api gateway v2 vpc links",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVpcLinks").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2VpcLinkResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2VpcLinkResourceType, resourceaws.AwsApiGatewayV2VpcLinkResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2VpcLinkResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2VpcLinkEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Authorizer(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- apis := []*apigatewayv2.Api{
- {ApiId: awssdk.String("bmyl5c6huh")},
- {ApiId: awssdk.String("blghshbgte")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 authorizers",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiAuthorizers", *apis[0].ApiId).Return([]*apigatewayv2.Authorizer{}, nil).Once()
- repo.On("ListAllApiAuthorizers", *apis[1].ApiId).Return([]*apigatewayv2.Authorizer{}, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway v2 authorizers",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiAuthorizers", *apis[0].ApiId).Return([]*apigatewayv2.Authorizer{
- {AuthorizerId: awssdk.String("xaappu")},
- }, nil).Once()
- repo.On("ListAllApiAuthorizers", *apis[1].ApiId).Return([]*apigatewayv2.Authorizer{
- {AuthorizerId: awssdk.String("bwhebj")},
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "xaappu")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2AuthorizerResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "bwhebj")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayV2AuthorizerResourceType)
- },
- },
- {
- test: "cannot list apis",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2AuthorizerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2AuthorizerResourceType, resourceaws.AwsApiGatewayV2ApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2AuthorizerResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "cannot list api gateway v2 authorizers",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiAuthorizers", *apis[0].ApiId).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2AuthorizerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2AuthorizerResourceType, resourceaws.AwsApiGatewayV2AuthorizerResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2AuthorizerResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2AuthorizerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Integration(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- apis := []*apigatewayv2.Api{
- {ApiId: awssdk.String("bmyl5c6huh")},
- {ApiId: awssdk.String("blghshbgte")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 integrations",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiIntegrations", *apis[0].ApiId).Return([]*apigatewayv2.Integration{}, nil).Once()
- repo.On("ListAllApiIntegrations", *apis[1].ApiId).Return([]*apigatewayv2.Integration{}, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway v2 integrations",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiIntegrations", *apis[0].ApiId).Return([]*apigatewayv2.Integration{
- {
- IntegrationId: awssdk.String("xaappu"),
- IntegrationType: awssdk.String("MOCK"),
- },
- }, nil).Once()
- repo.On("ListAllApiIntegrations", *apis[1].ApiId).Return([]*apigatewayv2.Integration{
- {
- IntegrationId: awssdk.String("bwhebj"),
- IntegrationType: awssdk.String("MOCK"),
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "xaappu")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2IntegrationResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "bwhebj")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayV2IntegrationResourceType)
- },
- },
- {
- test: "cannot list apis",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2IntegrationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResourceType, resourceaws.AwsApiGatewayV2ApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "cannot list api gateway v2 integrations",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiIntegrations", *apis[0].ApiId).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2IntegrationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResourceType, resourceaws.AwsApiGatewayV2IntegrationResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2IntegrationResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2IntegrationEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Model(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- apis := []*apigatewayv2.Api{
- {ApiId: awssdk.String("bmyl5c6huh")},
- {ApiId: awssdk.String("blghshbgte")},
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 models",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiModels", *apis[0].ApiId).Return([]*apigatewayv2.Model{}, nil).Once()
- repo.On("ListAllApiModels", *apis[1].ApiId).Return([]*apigatewayv2.Model{}, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple api gateway v2 models",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiModels", *apis[0].ApiId).Return([]*apigatewayv2.Model{
- {
- ModelId: awssdk.String("vdw6up"),
- Name: awssdk.String("model1"),
- },
- }, nil).Once()
- repo.On("ListAllApiModels", *apis[1].ApiId).Return([]*apigatewayv2.Model{
- {
- ModelId: awssdk.String("bwhebj"),
- Name: awssdk.String("model2"),
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "vdw6up")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2ModelResourceType)
- assert.Equal(t, "model1", *got[0].Attributes().GetString("name"))
-
- assert.Equal(t, got[1].ResourceId(), "bwhebj")
- assert.Equal(t, got[1].ResourceType(), resourceaws.AwsApiGatewayV2ModelResourceType)
- assert.Equal(t, "model2", *got[1].Attributes().GetString("name"))
-
- },
- },
- {
- test: "cannot list apis",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2ModelResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ModelResourceType, resourceaws.AwsApiGatewayV2ApiResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ModelResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "cannot list api gateway v2 model",
- mocks: func(repo *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllApis").Return(apis, nil)
- repo.On("ListAllApiModels", *apis[0].ApiId).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2ModelResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ModelResourceType, resourceaws.AwsApiGatewayV2ModelResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2ModelResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2ModelEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Stage(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 api",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 api with a single stage",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("a-gateway")},
- }, nil)
- repository.On("ListAllApiStages", "a-gateway").
- Return([]*apigatewayv2.Stage{{
- StageName: awssdk.String("a-stage"),
- }}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "a-stage", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2StageResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list api gateway v2 apis",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2StageResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2StageResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2StageResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2StageEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2RouteResponse(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 route responses",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("77ooqulkke")},
- }, nil)
- repository.On("ListAllApiRoutes", awssdk.String("77ooqulkke")).
- Return([]*apigatewayv2.Route{
- {RouteId: awssdk.String("liqc5u4")},
- }, nil)
- repository.On("ListAllApiRouteResponses", "77ooqulkke", "liqc5u4").
- Return([]*apigatewayv2.RouteResponse{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 route with one route response",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("77ooqulkke")},
- }, nil)
- repository.On("ListAllApiRoutes", awssdk.String("77ooqulkke")).
- Return([]*apigatewayv2.Route{
- {RouteId: awssdk.String("liqc5u4")},
- }, nil)
- repository.On("ListAllApiRouteResponses", "77ooqulkke", "liqc5u4").
- Return([]*apigatewayv2.RouteResponse{
- {RouteResponseId: awssdk.String("nbw7vw")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "nbw7vw")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2RouteResponseResourceType)
- },
- },
- {
- test: "cannot list api gateway v2 apis",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2RouteResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2RouteResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResponseResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "cannot list api gateway v2 routes",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("77ooqulkke")},
- }, nil)
- repository.On("ListAllApiRoutes", awssdk.String("77ooqulkke")).Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2RouteResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResourceType, resourceaws.AwsApiGatewayV2RouteResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResponseResourceType, resourceaws.AwsApiGatewayV2RouteResourceType),
- },
- {
- test: "cannot list api gateway v2 route responses",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("77ooqulkke")},
- }, nil)
- repository.On("ListAllApiRoutes", awssdk.String("77ooqulkke")).
- Return([]*apigatewayv2.Route{
- {RouteId: awssdk.String("liqc5u4")},
- }, nil)
- repository.On("ListAllApiRouteResponses", "77ooqulkke", "liqc5u4").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2RouteResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResponseResourceType, resourceaws.AwsApiGatewayV2RouteResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2RouteResponseResourceType, resourceaws.AwsApiGatewayV2RouteResponseResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2RouteResponseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2Mapping(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 domains",
- mocks: func(repositoryV1 *repository.MockApiGatewayRepository, repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repositoryV1.On("ListAllDomainNames").Return([]*apigateway.DomainName{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 domain with a single mapping",
- mocks: func(repositoryV1 *repository.MockApiGatewayRepository, repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repositoryV1.On("ListAllDomainNames").Return([]*apigateway.DomainName{
- {DomainName: awssdk.String("example.com")},
- }, nil)
- repository.On("ListAllApiMappings", "example.com").
- Return([]*apigatewayv2.ApiMapping{{
- Stage: awssdk.String("a-stage"),
- ApiId: awssdk.String("foobar"),
- ApiMappingId: awssdk.String("barfoo"),
- }}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "barfoo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2MappingResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list api gateway v2 domains",
- mocks: func(repositoryV1 *repository.MockApiGatewayRepository, repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repositoryV1.On("ListAllDomainNames").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2MappingResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayDomainNameResourceType, resourceaws.AwsApiGatewayV2MappingResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2MappingResourceType, resourceaws.AwsApiGatewayDomainNameResourceType),
- },
- {
- test: "cannot list api gateway v2 mappings",
- mocks: func(repositoryV1 *repository.MockApiGatewayRepository, repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repositoryV1.On("ListAllDomainNames").Return([]*apigateway.DomainName{
- {DomainName: awssdk.String("example.com")},
- }, nil)
- repository.On("ListAllApiMappings", "example.com").
- Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2MappingResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2MappingResourceType, resourceaws.AwsApiGatewayV2MappingResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2MappingResourceType),
- },
- {
- test: "returning mapping with invalid attributes",
- mocks: func(repositoryV1 *repository.MockApiGatewayRepository, repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repositoryV1.On("ListAllDomainNames").Return([]*apigateway.DomainName{
- {DomainName: awssdk.String("example.com")},
- }, nil)
- repository.On("ListAllApiMappings", "example.com").
- Return([]*apigatewayv2.ApiMapping{
- {
- ApiMappingId: awssdk.String("barfoo"),
- },
- {
- Stage: awssdk.String("a-stage"),
- ApiId: awssdk.String("foobar"),
- ApiMappingId: awssdk.String("foobar"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "barfoo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2MappingResourceType, got[0].ResourceType())
-
- assert.Equal(t, "foobar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsApiGatewayV2MappingResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepoV1 := &repository.MockApiGatewayRepository{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepoV1, fakeRepo, alerter)
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2MappingEnumerator(fakeRepo, fakeRepoV1, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- fakeRepoV1.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2DomainName(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 domain names",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return([]*apigateway.DomainName{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 domain name",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return([]*apigateway.DomainName{
- {DomainName: awssdk.String("b8r351.example.com")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "b8r351.example.com")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2DomainNameResourceType)
- },
- },
- {
- test: "cannot list api gateway v2 domain names",
- mocks: func(repository *repository.MockApiGatewayRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDomainNames").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2DomainNameResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2DomainNameResourceType, resourceaws.AwsApiGatewayV2DomainNameResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsApiGatewayV2DomainNameResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2DomainNameEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestApiGatewayV2IntegrationResponse(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockApiGatewayV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no api gateway v2 integration responses",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("yw28nwdf34")},
- }, nil)
- repository.On("ListAllApiIntegrations", "yw28nwdf34").
- Return([]*apigatewayv2.Integration{
- {IntegrationId: awssdk.String("fmezvlh")},
- }, nil)
- repository.On("ListAllApiIntegrationResponses", "yw28nwdf34", "fmezvlh").
- Return([]*apigatewayv2.IntegrationResponse{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single api gateway v2 integration with one integration response",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("yw28nwdf34")},
- }, nil)
- repository.On("ListAllApiIntegrations", "yw28nwdf34").
- Return([]*apigatewayv2.Integration{
- {IntegrationId: awssdk.String("fmezvlh")},
- }, nil)
- repository.On("ListAllApiIntegrationResponses", "yw28nwdf34", "fmezvlh").
- Return([]*apigatewayv2.IntegrationResponse{
- {IntegrationResponseId: awssdk.String("sf67ti7")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "sf67ti7")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsApiGatewayV2IntegrationResponseResourceType)
- },
- },
- {
- test: "cannot list api gateway v2 apis",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2ApiResourceType, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, resourceaws.AwsApiGatewayV2ApiResourceType),
- },
- {
- test: "cannot list api gateway v2 integrations",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("yw28nwdf34")},
- }, nil)
- repository.On("ListAllApiIntegrations", "yw28nwdf34").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResourceType, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, resourceaws.AwsApiGatewayV2IntegrationResourceType),
- },
- {
- test: "cannot list api gateway v2 integration responses",
- mocks: func(repository *repository.MockApiGatewayV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllApis").Return([]*apigatewayv2.Api{
- {ApiId: awssdk.String("yw28nwdf34")},
- }, nil)
- repository.On("ListAllApiIntegrations", "yw28nwdf34").
- Return([]*apigatewayv2.Integration{
- {IntegrationId: awssdk.String("fmezvlh")},
- }, nil)
- repository.On("ListAllApiIntegrationResponses", "yw28nwdf34", "fmezvlh").Return(nil, dummyError)
- alerter.On("SendAlert", resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType, resourceaws.AwsApiGatewayV2IntegrationResponseResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockApiGatewayV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ApiGatewayV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewApiGatewayV2IntegrationResponseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_applicationautoscaling_scanner_test.go b/enumeration/remote/aws_applicationautoscaling_scanner_test.go
deleted file mode 100644
index e6ba0612d..000000000
--- a/enumeration/remote/aws_applicationautoscaling_scanner_test.go
+++ /dev/null
@@ -1,327 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/aws/aws-sdk-go/service/applicationautoscaling"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAppAutoScalingTarget(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockAppAutoScalingRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "should return one target",
- dirName: "aws_appautoscaling_target_single",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScalableTargets", "dynamodb").Return([]*applicationautoscaling.ScalableTarget{
- {
- ResourceId: awssdk.String("table/GameScores"),
- RoleARN: awssdk.String("arn:aws:iam::533948124879:role/aws-service-role/dynamodb.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_DynamoDBTable"),
- ScalableDimension: awssdk.String("dynamodb:table:ReadCapacityUnits"),
- ServiceNamespace: awssdk.String("dynamodb"),
- MaxCapacity: awssdk.Int64(100),
- MinCapacity: awssdk.Int64(5),
- },
- }, nil).Once()
-
- client.On("DescribeScalableTargets", mock.AnythingOfType("string")).Return([]*applicationautoscaling.ScalableTarget{}, nil).Times(len(applicationautoscaling.ServiceNamespace_Values()) - 1)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "table/GameScores")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsAppAutoscalingTargetResourceType)
- },
- wantErr: nil,
- },
- {
- test: "should return remote error",
- dirName: "aws_appautoscaling_target_single",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScalableTargets", mock.AnythingOfType("string")).Return(nil, errors.New("remote error")).Once()
- },
- wantErr: remoteerror.NewResourceListingError(errors.New("remote error"), resourceaws.AwsAppAutoscalingTargetResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockAppAutoScalingRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.AppAutoScalingRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewAppAutoScalingRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewAppAutoscalingTargetEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- if err != nil {
- assert.EqualError(tt, c.wantErr, err.Error())
- } else {
- assert.Equal(tt, err, c.wantErr)
- }
-
- if err != nil {
- return
- }
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAppAutoScalingPolicy(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockAppAutoScalingRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "should return one policy",
- dirName: "aws_appautoscaling_policy_single",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScalingPolicies", "dynamodb").Return([]*applicationautoscaling.ScalingPolicy{
- {
- PolicyName: awssdk.String("DynamoDBReadCapacityUtilization:table/GameScores"),
- ResourceId: awssdk.String("table/GameScores"),
- ScalableDimension: awssdk.String("dynamodb:table:ReadCapacityUnits"),
- ServiceNamespace: awssdk.String("dynamodb"),
- },
- }, nil).Once()
-
- client.On("DescribeScalingPolicies", mock.AnythingOfType("string")).Return([]*applicationautoscaling.ScalingPolicy{}, nil).Times(len(applicationautoscaling.ServiceNamespace_Values()) - 1)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "DynamoDBReadCapacityUtilization:table/GameScores")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsAppAutoscalingPolicyResourceType)
- },
- wantErr: nil,
- },
- {
- test: "should return remote error",
- dirName: "aws_appautoscaling_policy_single",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScalingPolicies", mock.AnythingOfType("string")).Return(nil, errors.New("remote error")).Once()
- },
- wantErr: remoteerror.NewResourceListingError(errors.New("remote error"), resourceaws.AwsAppAutoscalingPolicyResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockAppAutoScalingRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.AppAutoScalingRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewAppAutoScalingRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewAppAutoscalingPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- if err != nil {
- assert.EqualError(tt, c.wantErr, err.Error())
- } else {
- assert.Equal(tt, err, c.wantErr)
- }
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAppAutoScalingScheduledAction(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockAppAutoScalingRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "should return one scheduled action",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- matchServiceNamespaceFunc := func(ns string) bool {
- for _, n := range applicationautoscaling.ServiceNamespace_Values() {
- if n == ns {
- return true
- }
- }
- return false
- }
-
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScheduledActions", mock.MatchedBy(matchServiceNamespaceFunc)).Return([]*applicationautoscaling.ScheduledAction{
- {
- ScheduledActionName: awssdk.String("action"),
- ResourceId: awssdk.String("table/GameScores"),
- ScalableDimension: awssdk.String("dynamodb:table:ReadCapacityUnits"),
- ServiceNamespace: awssdk.String("dynamodb"),
- },
- }, nil).Once()
-
- client.On("DescribeScheduledActions", mock.MatchedBy(matchServiceNamespaceFunc)).Return([]*applicationautoscaling.ScheduledAction{}, nil).Times(len(applicationautoscaling.ServiceNamespace_Values()) - 1)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "action-dynamodb-table/GameScores", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsAppAutoscalingScheduledActionResourceType, got[0].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "should return remote error",
- mocks: func(client *repository.MockAppAutoScalingRepository, alerter *mocks.AlerterInterface) {
- client.On("ServiceNamespaceValues").Return(applicationautoscaling.ServiceNamespace_Values()).Once()
-
- client.On("DescribeScheduledActions", mock.AnythingOfType("string")).Return(nil, dummyError).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerror.NewResourceListingError(dummyError, resourceaws.AwsAppAutoscalingScheduledActionResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockAppAutoScalingRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.AppAutoScalingRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewAppAutoscalingScheduledActionEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_autoscaling_scanner_test.go b/enumeration/remote/aws_autoscaling_scanner_test.go
deleted file mode 100644
index cd2897972..000000000
--- a/enumeration/remote/aws_autoscaling_scanner_test.go
+++ /dev/null
@@ -1,105 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/autoscaling"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAutoscaling_LaunchConfiguration(t *testing.T) {
- tests := []struct {
- test string
- mocks func(*repository.MockAutoScalingRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no launch configuration",
- mocks: func(repository *repository.MockAutoScalingRepository, alerter *mocks.AlerterInterface) {
- repository.On("DescribeLaunchConfigurations").Return([]*autoscaling.LaunchConfiguration{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple launch configurations",
- mocks: func(repository *repository.MockAutoScalingRepository, alerter *mocks.AlerterInterface) {
- repository.On("DescribeLaunchConfigurations").Return([]*autoscaling.LaunchConfiguration{
- {LaunchConfigurationName: awssdk.String("web_config_1")},
- {LaunchConfigurationName: awssdk.String("web_config_2")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "web_config_1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLaunchConfigurationResourceType, got[0].ResourceType())
-
- assert.Equal(t, "web_config_2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsLaunchConfigurationResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list launch configurations",
- mocks: func(repository *repository.MockAutoScalingRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("DescribeLaunchConfigurations").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLaunchConfigurationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLaunchConfigurationResourceType, resourceaws.AwsLaunchConfigurationResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockAutoScalingRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.AutoScalingRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewLaunchConfigurationEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_cloudformation_scanner_test.go b/enumeration/remote/aws_cloudformation_scanner_test.go
deleted file mode 100644
index 452b3e956..000000000
--- a/enumeration/remote/aws_cloudformation_scanner_test.go
+++ /dev/null
@@ -1,138 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestCloudformationStack(t *testing.T) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, "")
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockCloudformationRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no cloudformation stacks",
- dirName: "aws_cloudformation_stack_empty",
- mocks: func(repository *repository.MockCloudformationRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStacks").Return([]*cloudformation.Stack{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple cloudformation stacks",
- dirName: "aws_cloudformation_stack_multiple",
- mocks: func(repository *repository.MockCloudformationRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStacks").Return([]*cloudformation.Stack{
- {StackId: awssdk.String("arn:aws:cloudformation:us-east-1:047081014315:stack/bar-stack/c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab")},
- {StackId: awssdk.String("arn:aws:cloudformation:us-east-1:047081014315:stack/foo-stack/c7aa0ab0-0f21-11ec-ba25-129d8c0b3757")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "arn:aws:cloudformation:us-east-1:047081014315:stack/bar-stack/c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsCloudformationStackResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:cloudformation:us-east-1:047081014315:stack/foo-stack/c7aa0ab0-0f21-11ec-ba25-129d8c0b3757", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsCloudformationStackResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list cloudformation stacks",
- dirName: "aws_cloudformation_stack_list",
- mocks: func(repository *repository.MockCloudformationRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStacks").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsCloudformationStackResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsCloudformationStackResourceType, resourceaws.AwsCloudformationStackResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockCloudformationRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.CloudformationRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewCloudformationRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewCloudformationStackEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_cloudfront_scanner_test.go b/enumeration/remote/aws_cloudfront_scanner_test.go
deleted file mode 100644
index 0a7dcd14a..000000000
--- a/enumeration/remote/aws_cloudfront_scanner_test.go
+++ /dev/null
@@ -1,133 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/cloudfront"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestCloudfrontDistribution(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockCloudfrontRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no cloudfront distributions",
- dirName: "aws_cloudfront_distribution_empty",
- mocks: func(repository *repository.MockCloudfrontRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDistributions").Return([]*cloudfront.DistributionSummary{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single cloudfront distribution",
- dirName: "aws_cloudfront_distribution_single",
- mocks: func(repository *repository.MockCloudfrontRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDistributions").Return([]*cloudfront.DistributionSummary{
- {Id: awssdk.String("E1M9CNS0XSHI19")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "E1M9CNS0XSHI19", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsCloudfrontDistributionResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list cloudfront distributions",
- dirName: "aws_cloudfront_distribution_list",
- mocks: func(repository *repository.MockCloudfrontRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, "")
- repository.On("ListAllDistributions").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsCloudfrontDistributionResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsCloudfrontDistributionResourceType, resourceaws.AwsCloudfrontDistributionResourceType), alerts.EnumerationPhase)).Return()
- },
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockCloudfrontRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.CloudfrontRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewCloudfrontRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewCloudfrontDistributionEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_dynamodb_scanner_test.go b/enumeration/remote/aws_dynamodb_scanner_test.go
deleted file mode 100644
index e8ea52e4f..000000000
--- a/enumeration/remote/aws_dynamodb_scanner_test.go
+++ /dev/null
@@ -1,138 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestDynamoDBTable(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockDynamoDBRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no DynamoDB Table",
- dirName: "aws_dynamodb_table_empty",
- mocks: func(client *repository.MockDynamoDBRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTables").Return([]*string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "Multiple DynamoDB Table",
- dirName: "aws_dynamodb_table_multiple",
- mocks: func(client *repository.MockDynamoDBRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTables").Return([]*string{
- awssdk.String("GameScores"),
- awssdk.String("example"),
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "GameScores", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDynamodbTableResourceType, got[0].ResourceType())
-
- assert.Equal(t, "example", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsDynamodbTableResourceType, got[1].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list DynamoDB Table",
- dirName: "aws_dynamodb_table_list",
- mocks: func(client *repository.MockDynamoDBRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, "")
- client.On("ListAllTables").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDynamodbTableResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDynamodbTableResourceType, resourceaws.AwsDynamodbTableResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockDynamoDBRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.DynamoDBRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewDynamoDBRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewDynamoDBTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_ec2_scanner_test.go b/enumeration/remote/aws_ec2_scanner_test.go
deleted file mode 100644
index bca0eb395..000000000
--- a/enumeration/remote/aws_ec2_scanner_test.go
+++ /dev/null
@@ -1,3203 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestEC2EbsVolume(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no volumes",
- dirName: "aws_ec2_ebs_volume_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVolumes").Return([]*ec2.Volume{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple volumes",
- dirName: "aws_ec2_ebs_volume_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVolumes").Return([]*ec2.Volume{
- {VolumeId: awssdk.String("vol-081c7272a57a09db1")},
- {VolumeId: awssdk.String("vol-01ddc91d3d9d1318b")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "vol-081c7272a57a09db1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEbsVolumeResourceType, got[0].ResourceType())
-
- assert.Equal(t, "vol-01ddc91d3d9d1318b", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsEbsVolumeResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list volumes",
- dirName: "aws_ec2_ebs_volume_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllVolumes").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEbsVolumeResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEbsVolumeResourceType, resourceaws.AwsEbsVolumeResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2EbsVolumeEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2EbsSnapshot(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no snapshots",
- dirName: "aws_ec2_ebs_snapshot_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSnapshots").Return([]*ec2.Snapshot{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple snapshots",
- dirName: "aws_ec2_ebs_snapshot_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSnapshots").Return([]*ec2.Snapshot{
- {SnapshotId: awssdk.String("snap-0c509a2a880d95a39")},
- {SnapshotId: awssdk.String("snap-00672558cecd93a61")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "snap-0c509a2a880d95a39", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEbsSnapshotResourceType, got[0].ResourceType())
-
- assert.Equal(t, "snap-00672558cecd93a61", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsEbsSnapshotResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list snapshots",
- dirName: "aws_ec2_ebs_snapshot_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllSnapshots").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEbsSnapshotResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEbsSnapshotResourceType, resourceaws.AwsEbsSnapshotResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2EbsSnapshotEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2Eip(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no eips",
- dirName: "aws_ec2_eip_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAddresses").Return([]*ec2.Address{
- {}, // Test Eip without AllocationId because it can happen (seen in sentry)
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple eips",
- dirName: "aws_ec2_eip_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAddresses").Return([]*ec2.Address{
- {AllocationId: awssdk.String("eipalloc-017d5267e4dda73f1")},
- {AllocationId: awssdk.String("eipalloc-0cf714dc097c992cc")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "eipalloc-017d5267e4dda73f1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEipResourceType, got[0].ResourceType())
-
- assert.Equal(t, "eipalloc-0cf714dc097c992cc", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsEipResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list eips",
- dirName: "aws_ec2_eip_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllAddresses").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEipResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEipResourceType, resourceaws.AwsEipResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2EipEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2Ami(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no amis",
- dirName: "aws_ec2_ami_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllImages").Return([]*ec2.Image{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple amis",
- dirName: "aws_ec2_ami_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllImages").Return([]*ec2.Image{
- {ImageId: awssdk.String("ami-03a578b46f4c3081b")},
- {ImageId: awssdk.String("ami-025962fd8b456731f")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "ami-03a578b46f4c3081b", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsAmiResourceType, got[0].ResourceType())
-
- assert.Equal(t, "ami-025962fd8b456731f", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsAmiResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list ami",
- dirName: "aws_ec2_ami_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllImages").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsAmiResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsAmiResourceType, resourceaws.AwsAmiResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2AmiEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2KeyPair(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no key pairs",
- dirName: "aws_ec2_key_pair_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllKeyPairs").Return([]*ec2.KeyPairInfo{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple key pairs",
- dirName: "aws_ec2_key_pair_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllKeyPairs").Return([]*ec2.KeyPairInfo{
- {KeyName: awssdk.String("test")},
- {KeyName: awssdk.String("bar")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "test", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsKeyPairResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsKeyPairResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list key pairs",
- dirName: "aws_ec2_key_pair_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllKeyPairs").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsKeyPairResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsKeyPairResourceType, resourceaws.AwsKeyPairResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2KeyPairEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2EipAssociation(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no eip associations",
- dirName: "aws_ec2_eip_association_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAddressesAssociation").Return([]*ec2.Address{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single eip association",
- dirName: "aws_ec2_eip_association_single",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAddressesAssociation").Return([]*ec2.Address{
- {
- AssociationId: awssdk.String("eipassoc-0e9a7356e30f0c3d1"),
- AllocationId: awssdk.String("eipalloc-017d5267e4dda73f1"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "eipassoc-0e9a7356e30f0c3d1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEipAssociationResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list eip associations",
- dirName: "aws_ec2_eip_association_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllAddressesAssociation").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEipAssociationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEipAssociationResourceType, resourceaws.AwsEipAssociationResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2EipAssociationEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2Instance(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no instances",
- dirName: "aws_ec2_instance_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllInstances").Return([]*ec2.Instance{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple instances",
- dirName: "aws_ec2_instance_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllInstances").Return([]*ec2.Instance{
- {InstanceId: awssdk.String("i-0d3650a23f4e45dc0")},
- {InstanceId: awssdk.String("i-010376047a71419f1")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "i-0d3650a23f4e45dc0", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsInstanceResourceType, got[0].ResourceType())
-
- assert.Equal(t, "i-010376047a71419f1", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsInstanceResourceType, got[1].ResourceType())
- },
- },
- {
- test: "terminated instances",
- dirName: "aws_ec2_instance_terminated",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllInstances").Return([]*ec2.Instance{
- {InstanceId: awssdk.String("i-0e1543baf4f2cd990")},
- {InstanceId: awssdk.String("i-0a3a7ed51ae2b4fa0")}, // Nil
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "i-0e1543baf4f2cd990", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsInstanceResourceType, got[0].ResourceType())
-
- assert.Equal(t, "i-0a3a7ed51ae2b4fa0", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsInstanceResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list instances",
- dirName: "aws_ec2_instance_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllInstances").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsInstanceResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsInstanceResourceType, resourceaws.AwsInstanceResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2InstanceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2InternetGateway(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no internet gateways",
- dirName: "aws_ec2_internet_gateway_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllInternetGateways").Return([]*ec2.InternetGateway{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple internet gateways",
- dirName: "aws_ec2_internet_gateway_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllInternetGateways").Return([]*ec2.InternetGateway{
- {InternetGatewayId: awssdk.String("igw-0184eb41aadc62d1c")},
- {InternetGatewayId: awssdk.String("igw-047b487f5c60fca99")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "igw-0184eb41aadc62d1c", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsInternetGatewayResourceType, got[0].ResourceType())
-
- assert.Equal(t, "igw-047b487f5c60fca99", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsInternetGatewayResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list internet gateways",
- dirName: "aws_ec2_internet_gateway_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllInternetGateways").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsInternetGatewayResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsInternetGatewayResourceType, resourceaws.AwsInternetGatewayResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2InternetGatewayEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestVPC(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no VPC",
- dirName: "aws_vpc_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllVPCs").Once().Return([]*ec2.Vpc{}, []*ec2.Vpc{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "VPC results",
- dirName: "aws_vpc",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllVPCs").Once().Return([]*ec2.Vpc{
- {
- VpcId: awssdk.String("vpc-0768e1fd0029e3fc3"),
- },
- {
- VpcId: awssdk.String("vpc-020b072316a95b97f"),
- IsDefault: awssdk.Bool(false),
- },
- {
- VpcId: awssdk.String("vpc-02c50896b59598761"),
- IsDefault: awssdk.Bool(false),
- },
- }, []*ec2.Vpc{
- {
- VpcId: awssdk.String("vpc-a8c5d4c1"),
- IsDefault: awssdk.Bool(false),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "vpc-0768e1fd0029e3fc3", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsVpcResourceType, got[0].ResourceType())
-
- assert.Equal(t, "vpc-020b072316a95b97f", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsVpcResourceType, got[1].ResourceType())
-
- assert.Equal(t, "vpc-02c50896b59598761", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsVpcResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list VPC",
- dirName: "aws_vpc_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllVPCs").Once().Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsVpcResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsVpcResourceType, resourceaws.AwsVpcResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewVPCEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestDefaultVPC(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no VPC",
- dirName: "aws_vpc_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllVPCs").Once().Return([]*ec2.Vpc{}, []*ec2.Vpc{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "default VPC results",
- dirName: "aws_default_vpc",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllVPCs").Once().Return([]*ec2.Vpc{
- {
- VpcId: awssdk.String("vpc-0768e1fd0029e3fc3"),
- IsDefault: awssdk.Bool(false),
- },
- {
- VpcId: awssdk.String("vpc-020b072316a95b97f"),
- IsDefault: awssdk.Bool(false),
- },
- }, []*ec2.Vpc{
- {
- VpcId: awssdk.String("vpc-a8c5d4c1"),
- IsDefault: awssdk.Bool(true),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "vpc-a8c5d4c1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultVpcResourceType, got[0].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list VPC",
- dirName: "aws_vpc_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllVPCs").Once().Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDefaultVpcResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDefaultVpcResourceType, resourceaws.AwsDefaultVpcResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewDefaultVPCEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2RouteTableAssociation(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no route table associations (test for nil values)",
- dirName: "aws_ec2_route_table_association_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{
- {
- RouteTableId: awssdk.String("assoc_with_nil"),
- Associations: []*ec2.RouteTableAssociation{
- {
- AssociationState: nil,
- GatewayId: nil,
- Main: nil,
- RouteTableAssociationId: nil,
- RouteTableId: nil,
- SubnetId: nil,
- },
- },
- },
- {RouteTableId: awssdk.String("nil_assoc")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple route table associations (mixed subnet and gateway associations)",
- dirName: "aws_ec2_route_table_association_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{
- {
- RouteTableId: awssdk.String("rtb-05aa6c5673311a17b"), // route
- Associations: []*ec2.RouteTableAssociation{
- { // Should be ignored
- AssociationState: &ec2.RouteTableAssociationState{
- State: awssdk.String("disassociated"),
- },
- GatewayId: awssdk.String("dummy-id"),
- },
- { // Should be ignored
- SubnetId: nil,
- GatewayId: nil,
- },
- { // assoc_route_subnet1
- AssociationState: &ec2.RouteTableAssociationState{
- State: awssdk.String("associated"),
- },
- Main: awssdk.Bool(false),
- RouteTableAssociationId: awssdk.String("rtbassoc-0809598f92dbec03b"),
- RouteTableId: awssdk.String("rtb-05aa6c5673311a17b"),
- SubnetId: awssdk.String("subnet-05185af647b2eeda3"),
- },
- { // assoc_route_subnet
- AssociationState: &ec2.RouteTableAssociationState{
- State: awssdk.String("associated"),
- },
- Main: awssdk.Bool(false),
- RouteTableAssociationId: awssdk.String("rtbassoc-01957791b2cfe6ea4"),
- RouteTableId: awssdk.String("rtb-05aa6c5673311a17b"),
- SubnetId: awssdk.String("subnet-0e93dbfa2e5dd8282"),
- },
- { // assoc_route_subnet2
- AssociationState: &ec2.RouteTableAssociationState{
- State: awssdk.String("associated"),
- },
- GatewayId: nil,
- Main: awssdk.Bool(false),
- RouteTableAssociationId: awssdk.String("rtbassoc-0b4f97ea57490e213"),
- RouteTableId: awssdk.String("rtb-05aa6c5673311a17b"),
- SubnetId: awssdk.String("subnet-0fd966efd884d0362"),
- },
- },
- },
- {
- RouteTableId: awssdk.String("rtb-09df7cc9d16de9f8f"), // route2
- Associations: []*ec2.RouteTableAssociation{
- { // assoc_route2_gateway
- AssociationState: &ec2.RouteTableAssociationState{
- State: awssdk.String("associated"),
- },
- RouteTableAssociationId: awssdk.String("rtbassoc-0a79ccacfceb4944b"),
- RouteTableId: awssdk.String("rtb-09df7cc9d16de9f8f"),
- GatewayId: awssdk.String("igw-0238f6e09185ac954"),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- assert.Equal(t, "rtbassoc-0809598f92dbec03b", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableAssociationResourceType, got[0].ResourceType())
-
- assert.Equal(t, "rtbassoc-01957791b2cfe6ea4", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableAssociationResourceType, got[1].ResourceType())
-
- assert.Equal(t, "rtbassoc-0b4f97ea57490e213", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableAssociationResourceType, got[2].ResourceType())
-
- assert.Equal(t, "rtbassoc-0a79ccacfceb4944b", got[3].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableAssociationResourceType, got[3].ResourceType())
- },
- },
- {
- test: "cannot list route table associations",
- dirName: "aws_ec2_route_table_association_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllRouteTables").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRouteTableAssociationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRouteTableAssociationResourceType, resourceaws.AwsRouteTableResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2RouteTableAssociationEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2Subnet(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no subnets",
- dirName: "aws_ec2_subnet_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSubnets").Return([]*ec2.Subnet{}, []*ec2.Subnet{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple subnets",
- dirName: "aws_ec2_subnet_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSubnets").Return([]*ec2.Subnet{
- {
- SubnetId: awssdk.String("subnet-05810d3f933925f6d"), // subnet1
- DefaultForAz: awssdk.Bool(false),
- },
- {
- SubnetId: awssdk.String("subnet-0b13f1e0eacf67424"), // subnet2
- DefaultForAz: awssdk.Bool(false),
- },
- {
- SubnetId: awssdk.String("subnet-0c9b78001fe186e22"), // subnet3
- DefaultForAz: awssdk.Bool(false),
- },
- }, []*ec2.Subnet{
- {
- SubnetId: awssdk.String("subnet-44fe0c65"), // us-east-1a
- DefaultForAz: awssdk.Bool(true),
- },
- {
- SubnetId: awssdk.String("subnet-65e16628"), // us-east-1b
- DefaultForAz: awssdk.Bool(true),
- },
- {
- SubnetId: awssdk.String("subnet-afa656f0"), // us-east-1c
- DefaultForAz: awssdk.Bool(true),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "subnet-05810d3f933925f6d", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSubnetResourceType, got[0].ResourceType())
-
- assert.Equal(t, "subnet-0b13f1e0eacf67424", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSubnetResourceType, got[1].ResourceType())
-
- assert.Equal(t, "subnet-0c9b78001fe186e22", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsSubnetResourceType, got[2].ResourceType())
- },
- },
- {
- test: "cannot list subnets",
- dirName: "aws_ec2_subnet_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllSubnets").Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSubnetResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSubnetResourceType, resourceaws.AwsSubnetResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2SubnetEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2DefaultSubnet(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no default subnets",
- dirName: "aws_ec2_default_subnet_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSubnets").Return([]*ec2.Subnet{}, []*ec2.Subnet{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple default subnets",
- dirName: "aws_ec2_default_subnet_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSubnets").Return([]*ec2.Subnet{
- {
- SubnetId: awssdk.String("subnet-05810d3f933925f6d"), // subnet1
- DefaultForAz: awssdk.Bool(false),
- },
- {
- SubnetId: awssdk.String("subnet-0b13f1e0eacf67424"), // subnet2
- DefaultForAz: awssdk.Bool(false),
- },
- {
- SubnetId: awssdk.String("subnet-0c9b78001fe186e22"), // subnet3
- DefaultForAz: awssdk.Bool(false),
- },
- }, []*ec2.Subnet{
- {
- SubnetId: awssdk.String("subnet-44fe0c65"), // us-east-1a
- DefaultForAz: awssdk.Bool(true),
- },
- {
- SubnetId: awssdk.String("subnet-65e16628"), // us-east-1b
- DefaultForAz: awssdk.Bool(true),
- },
- {
- SubnetId: awssdk.String("subnet-afa656f0"), // us-east-1c
- DefaultForAz: awssdk.Bool(true),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "subnet-44fe0c65", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultSubnetResourceType, got[0].ResourceType())
-
- assert.Equal(t, "subnet-65e16628", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultSubnetResourceType, got[1].ResourceType())
-
- assert.Equal(t, "subnet-afa656f0", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultSubnetResourceType, got[2].ResourceType())
- },
- },
- {
- test: "cannot list default subnets",
- dirName: "aws_ec2_default_subnet_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllSubnets").Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDefaultSubnetResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDefaultSubnetResourceType, resourceaws.AwsDefaultSubnetResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2DefaultSubnetEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2RouteTable(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no route tables",
- dirName: "aws_ec2_route_table_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple route tables",
- dirName: "aws_ec2_route_table_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{
- {RouteTableId: awssdk.String("rtb-08b7b71af15e183ce")}, // table1
- {RouteTableId: awssdk.String("rtb-0002ac731f6fdea55")}, // table2
- {RouteTableId: awssdk.String("rtb-0c55d55593f33fbac")}, // table3
- {
- RouteTableId: awssdk.String("rtb-0eabf071c709c0976"), // default_table
- VpcId: awssdk.String("vpc-0b4a6b3536da20ecd"),
- Associations: []*ec2.RouteTableAssociation{
- {
- Main: awssdk.Bool(true),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "rtb-08b7b71af15e183ce", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableResourceType, got[0].ResourceType())
-
- assert.Equal(t, "rtb-0002ac731f6fdea55", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableResourceType, got[1].ResourceType())
-
- assert.Equal(t, "rtb-0c55d55593f33fbac", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteTableResourceType, got[2].ResourceType())
- },
- },
- {
- test: "cannot list route tables",
- dirName: "aws_ec2_route_table_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllRouteTables").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRouteTableResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRouteTableResourceType, resourceaws.AwsRouteTableResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2RouteTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2DefaultRouteTable(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no default route tables",
- dirName: "aws_ec2_default_route_table_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple default route tables",
- dirName: "aws_ec2_default_route_table_single",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{
- {RouteTableId: awssdk.String("rtb-08b7b71af15e183ce")}, // table1
- {RouteTableId: awssdk.String("rtb-0002ac731f6fdea55")}, // table2
- {RouteTableId: awssdk.String("rtb-0c55d55593f33fbac")}, // table3
- {
- RouteTableId: awssdk.String("rtb-0eabf071c709c0976"), // default_table
- VpcId: awssdk.String("vpc-0b4a6b3536da20ecd"),
- Associations: []*ec2.RouteTableAssociation{
- {
- Main: awssdk.Bool(true),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "rtb-0eabf071c709c0976", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultRouteTableResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list default route tables",
- dirName: "aws_ec2_default_route_table_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllRouteTables").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDefaultRouteTableResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDefaultRouteTableResourceType, resourceaws.AwsDefaultRouteTableResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2DefaultRouteTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestVpcSecurityGroup(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no security groups",
- dirName: "aws_vpc_security_group_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{}, []*ec2.SecurityGroup{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "with security groups",
- dirName: "aws_vpc_security_group_multiple",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-0254c038e32f25530"),
- GroupName: awssdk.String("foo"),
- },
- }, []*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-9e0204ff"),
- GroupName: awssdk.String("default"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "sg-0254c038e32f25530", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSecurityGroupResourceType, got[0].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list security groups",
- dirName: "aws_vpc_security_group_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllSecurityGroups").Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSecurityGroupResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSecurityGroupResourceType, resourceaws.AwsSecurityGroupResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewVPCSecurityGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestVpcDefaultSecurityGroup(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no security groups",
- dirName: "aws_vpc_default_security_group_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{}, []*ec2.SecurityGroup{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "with security groups",
- dirName: "aws_vpc_default_security_group_multiple",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-0254c038e32f25530"),
- GroupName: awssdk.String("foo"),
- },
- }, []*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-9e0204ff"),
- GroupName: awssdk.String("default"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "sg-9e0204ff", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultSecurityGroupResourceType, got[0].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list security groups",
- dirName: "aws_vpc_default_security_group_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllSecurityGroups").Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDefaultSecurityGroupResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDefaultSecurityGroupResourceType, resourceaws.AwsDefaultSecurityGroupResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewVPCDefaultSecurityGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2NatGateway(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no nat gateways",
- dirName: "aws_ec2_nat_gateway_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNatGateways").Return([]*ec2.NatGateway{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single nat gateway",
- dirName: "aws_ec2_nat_gateway_single",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNatGateways").Return([]*ec2.NatGateway{
- {NatGatewayId: awssdk.String("nat-0a5408508b19ef490")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "nat-0a5408508b19ef490", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsNatGatewayResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list nat gateways",
- dirName: "aws_ec2_nat_gateway_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllNatGateways").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsNatGatewayResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsNatGatewayResourceType, resourceaws.AwsNatGatewayResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2NatGatewayEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2NetworkACL(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no network ACL",
- dirName: "aws_ec2_network_acl_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "network acl",
- dirName: "aws_ec2_network_acl",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{
- {
- NetworkAclId: awssdk.String("acl-043880b4682d2366b"),
- IsDefault: awssdk.Bool(false),
- },
- {
- NetworkAclId: awssdk.String("acl-07a565dbe518c0713"),
- IsDefault: awssdk.Bool(false),
- },
- {
- NetworkAclId: awssdk.String("acl-e88ee595"),
- IsDefault: awssdk.Bool(true),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "acl-043880b4682d2366b", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsNetworkACLResourceType, got[0].ResourceType())
-
- assert.Equal(t, "acl-07a565dbe518c0713", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsNetworkACLResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list network acl",
- dirName: "aws_ec2_network_acl_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllNetworkACLs").Return(nil, awsError)
-
- alerter.On("SendAlert",
- resourceaws.AwsNetworkACLResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteAWSTerraform,
- remoteerr.NewResourceListingErrorWithType(
- awsError,
- resourceaws.AwsNetworkACLResourceType,
- resourceaws.AwsNetworkACLResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2NetworkACLEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2NetworkACLRule(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no network ACL",
- dirName: "aws_ec2_network_acl_rule_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "network acl rules",
- dirName: "aws_ec2_network_acl_rule",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{
- {
- NetworkAclId: awssdk.String("acl-0ad6d657494d17ee2"), // test
- IsDefault: awssdk.Bool(false),
- Entries: []*ec2.NetworkAclEntry{
- {
- Egress: awssdk.Bool(false),
- RuleNumber: awssdk.Int64(100),
- Protocol: awssdk.String("6"), // tcp
- RuleAction: awssdk.String("deny"),
- CidrBlock: awssdk.String("0.0.0.0/0"),
- },
- {
- Egress: awssdk.Bool(false),
- RuleNumber: awssdk.Int64(200),
- Protocol: awssdk.String("6"), // tcp
- RuleAction: awssdk.String("allow"),
- Ipv6CidrBlock: awssdk.String("::/0"),
- },
- {
- Egress: awssdk.Bool(true),
- RuleNumber: awssdk.Int64(100),
- Protocol: awssdk.String("17"), // udp
- RuleAction: awssdk.String("allow"),
- CidrBlock: awssdk.String("172.16.1.0/0"),
- },
- },
- },
- {
- NetworkAclId: awssdk.String("acl-0de54ef59074b622e"), // test2
- IsDefault: awssdk.Bool(false),
- Entries: []*ec2.NetworkAclEntry{
- {
- Egress: awssdk.Bool(false),
- RuleNumber: awssdk.Int64(100),
- Protocol: awssdk.String("17"), // udp
- RuleAction: awssdk.String("deny"),
- CidrBlock: awssdk.String("0.0.0.0/0"),
- },
- {
- Egress: awssdk.Bool(true),
- RuleNumber: awssdk.Int64(100),
- Protocol: awssdk.String("17"), // udp
- RuleAction: awssdk.String("allow"),
- CidrBlock: awssdk.String("172.16.1.0/0"),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 5)
-
- assert.Equal(t, "nacl-4293207588", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsNetworkACLRuleResourceType, got[0].ResourceType())
-
- assert.Equal(t, "nacl-4268384215", got[4].ResourceId())
- assert.Equal(t, resourceaws.AwsNetworkACLRuleResourceType, got[4].ResourceType())
- },
- },
- {
- test: "cannot list network acl",
- dirName: "aws_ec2_network_acl_rule_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllNetworkACLs").Return(nil, awsError)
-
- alerter.On("SendAlert",
- resourceaws.AwsNetworkACLRuleResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteAWSTerraform,
- remoteerr.NewResourceListingErrorWithType(
- awsError,
- resourceaws.AwsNetworkACLRuleResourceType,
- resourceaws.AwsNetworkACLResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, "3.19.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2NetworkACLRuleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2DefaultNetworkACL(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no network ACL",
- dirName: "aws_ec2_default_network_acl_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "default network acl",
- dirName: "aws_ec2_default_network_acl",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllNetworkACLs").Return([]*ec2.NetworkAcl{
- {
- NetworkAclId: awssdk.String("acl-043880b4682d2366b"),
- IsDefault: awssdk.Bool(false),
- },
- {
- NetworkAclId: awssdk.String("acl-07a565dbe518c0713"),
- IsDefault: awssdk.Bool(false),
- },
- {
- NetworkAclId: awssdk.String("acl-e88ee595"),
- IsDefault: awssdk.Bool(true),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "acl-e88ee595", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDefaultNetworkACLResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list default network acl",
- dirName: "aws_ec2_default_network_acl_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllNetworkACLs").Return(nil, awsError)
-
- alerter.On("SendAlert",
- resourceaws.AwsDefaultNetworkACLResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteAWSTerraform,
- remoteerr.NewResourceListingErrorWithType(
- awsError,
- resourceaws.AwsDefaultNetworkACLResourceType,
- resourceaws.AwsDefaultNetworkACLResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2DefaultNetworkACLEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2Route(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- // route table with no routes case is not possible
- // as a default route will always be present in each route table
- test: "no routes",
- dirName: "aws_ec2_route_empty",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple routes (mixed default_route_table and route_table)",
- dirName: "aws_ec2_route_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*ec2.RouteTable{
- {
- RouteTableId: awssdk.String("rtb-096bdfb69309c54c3"), // table1
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: awssdk.String("10.0.0.0/16"),
- Origin: awssdk.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: awssdk.String("1.1.1.1/32"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- {
- DestinationIpv6CidrBlock: awssdk.String("::/0"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- },
- },
- {
- RouteTableId: awssdk.String("rtb-0169b0937fd963ddc"), // table2
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: awssdk.String("10.0.0.0/16"),
- Origin: awssdk.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: awssdk.String("0.0.0.0/0"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- {
- DestinationIpv6CidrBlock: awssdk.String("::/0"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- },
- },
- {
- RouteTableId: awssdk.String("rtb-02780c485f0be93c5"), // default_table
- VpcId: awssdk.String("vpc-09fe5abc2309ba49d"),
- Associations: []*ec2.RouteTableAssociation{
- {
- Main: awssdk.Bool(true),
- },
- },
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: awssdk.String("10.0.0.0/16"),
- Origin: awssdk.String("CreateRouteTable"), // default route
- },
- {
- DestinationCidrBlock: awssdk.String("10.1.1.0/24"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- {
- DestinationCidrBlock: awssdk.String("10.1.2.0/24"),
- GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
- Origin: awssdk.String("CreateRoute"),
- },
- },
- },
- {
- RouteTableId: awssdk.String(""), // table3
- Routes: []*ec2.Route{
- {
- DestinationCidrBlock: awssdk.String("10.0.0.0/16"),
- Origin: awssdk.String("CreateRouteTable"), // default route
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 10)
-
- assert.Equal(t, "r-rtb-096bdfb69309c54c3179966490", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteResourceType, got[0].ResourceType())
-
- assert.Equal(t, "r-179966490", got[9].ResourceId())
- assert.Equal(t, resourceaws.AwsRouteResourceType, got[9].ResourceType())
- },
- },
- {
- test: "cannot list routes",
- dirName: "aws_ec2_route_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllRouteTables").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRouteResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRouteResourceType, resourceaws.AwsRouteTableResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2RouteEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestVpcSecurityGroupRule(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no security group rules",
- dirName: "aws_vpc_security_group_rule_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-0254c038e32f25530"),
- IpPermissions: []*ec2.IpPermission{},
- IpPermissionsEgress: []*ec2.IpPermission{},
- },
- }, nil, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "with security group rules",
- dirName: "aws_vpc_security_group_rule_multiple",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSecurityGroups").Once().Return([]*ec2.SecurityGroup{
- {
- GroupId: awssdk.String("sg-0254c038e32f25530"),
- IpPermissions: []*ec2.IpPermission{
- {
- FromPort: awssdk.Int64(0),
- ToPort: awssdk.Int64(65535),
- IpProtocol: awssdk.String("tcp"),
- UserIdGroupPairs: []*ec2.UserIdGroupPair{
- {
- GroupId: awssdk.String("sg-0254c038e32f25530"),
- },
- {
- GroupId: awssdk.String("sg-9e0204ff"),
- },
- },
- },
- {
- IpProtocol: awssdk.String("-1"),
- IpRanges: []*ec2.IpRange{
- {
- CidrIp: awssdk.String("1.2.0.0/16"),
- },
- {
- CidrIp: awssdk.String("5.6.7.0/24"),
- },
- },
- Ipv6Ranges: []*ec2.Ipv6Range{
- {
- CidrIpv6: awssdk.String("::/0"),
- },
- },
- },
- },
- IpPermissionsEgress: []*ec2.IpPermission{
- {
- IpProtocol: awssdk.String("-1"),
- IpRanges: []*ec2.IpRange{
- {
- CidrIp: awssdk.String("0.0.0.0/0"),
- },
- },
- Ipv6Ranges: []*ec2.Ipv6Range{
- {
- CidrIpv6: awssdk.String("::/0"),
- },
- },
- },
- },
- },
- {
- GroupId: awssdk.String("sg-0cc8b3c3c2851705a"),
- IpPermissions: []*ec2.IpPermission{
- {
- FromPort: awssdk.Int64(443),
- ToPort: awssdk.Int64(443),
- IpProtocol: awssdk.String("tcp"),
- IpRanges: []*ec2.IpRange{
- {
- CidrIp: awssdk.String("0.0.0.0/0"),
- },
- },
- },
- },
- IpPermissionsEgress: []*ec2.IpPermission{
- {
- IpProtocol: awssdk.String("-1"),
- IpRanges: []*ec2.IpRange{
- {
- CidrIp: awssdk.String("0.0.0.0/0"),
- },
- },
- Ipv6Ranges: []*ec2.Ipv6Range{
- {
- CidrIpv6: awssdk.String("::/0"),
- },
- },
- },
- {
- IpProtocol: awssdk.String("5"),
- IpRanges: []*ec2.IpRange{
- {
- CidrIp: awssdk.String("0.0.0.0/0"),
- },
- },
- },
- },
- },
- }, nil, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 11)
-
- assert.Equal(t, "sgrule-3970541193", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSecurityGroupRuleResourceType, got[0].ResourceType())
-
- assert.Equal(t, "sgrule-850043874", got[10].ResourceId())
- assert.Equal(t, resourceaws.AwsSecurityGroupRuleResourceType, got[10].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list security group rules",
- dirName: "aws_vpc_security_group_rule_empty",
- mocks: func(client *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllSecurityGroups").Once().Return(nil, nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSecurityGroupRuleResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSecurityGroupRuleResourceType, resourceaws.AwsSecurityGroupResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewVPCSecurityGroupRuleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2LaunchTemplate(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no launch template",
- dirName: "aws_launch_template",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("DescribeLaunchTemplates").Return([]*ec2.LaunchTemplate{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple launch templates",
- dirName: "aws_launch_template_multiple",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- launchTemplates := []*ec2.LaunchTemplate{
- {LaunchTemplateId: awssdk.String("lt-0ed993d09ce6afc67"), LatestVersionNumber: awssdk.Int64(1)},
- {LaunchTemplateId: awssdk.String("lt-00b2d18c6cee7fe23"), LatestVersionNumber: awssdk.Int64(1)},
- }
-
- repository.On("DescribeLaunchTemplates").Return(launchTemplates, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "lt-0ed993d09ce6afc67", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLaunchTemplateResourceType, got[0].ResourceType())
-
- assert.Equal(t, "lt-00b2d18c6cee7fe23", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsLaunchTemplateResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list launch templates",
- dirName: "aws_launch_template",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("DescribeLaunchTemplates").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLaunchTemplateResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLaunchTemplateResourceType, resourceaws.AwsLaunchTemplateResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewLaunchTemplateEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestEC2EbsEncryptionByDefault(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockEC2Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no encryption by default resource",
- dirName: "aws_ebs_encryption_by_default_list",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- repository.On("IsEbsEncryptionEnabledByDefault").Return(false, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "ebs_encryption_default", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEbsEncryptionByDefaultResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list encryption by default resources",
- dirName: "aws_ebs_encryption_by_default_error",
- mocks: func(repository *repository.MockEC2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("IsEbsEncryptionEnabledByDefault").Return(false, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEbsEncryptionByDefaultResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEbsEncryptionByDefaultResourceType, resourceaws.AwsEbsEncryptionByDefaultResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockEC2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.EC2Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewEC2Repository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewEC2EbsEncryptionByDefaultEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_ecr_scanner_test.go b/enumeration/remote/aws_ecr_scanner_test.go
deleted file mode 100644
index f4c668f00..000000000
--- a/enumeration/remote/aws_ecr_scanner_test.go
+++ /dev/null
@@ -1,205 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/ecr"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestECRRepository(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockECRRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no repository",
- dirName: "aws_ecr_repository_empty",
- mocks: func(client *repository.MockECRRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllRepositories").Return([]*ecr.Repository{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "multiple repositories",
- dirName: "aws_ecr_repository_multiple",
- mocks: func(client *repository.MockECRRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllRepositories").Return([]*ecr.Repository{
- {RepositoryName: awssdk.String("test_ecr")},
- {RepositoryName: awssdk.String("bar")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "test_ecr", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsEcrRepositoryResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsEcrRepositoryResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list repository",
- dirName: "aws_ecr_repository_empty",
- mocks: func(client *repository.MockECRRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllRepositories").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsEcrRepositoryResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsEcrRepositoryResourceType, resourceaws.AwsEcrRepositoryResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockECRRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ECRRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewECRRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewECRRepositoryEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestECRRepositoryPolicy(t *testing.T) {
- tests := []struct {
- test string
- mocks func(*repository.MockECRRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- err error
- }{
- {
- test: "single repository policy",
- mocks: func(client *repository.MockECRRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllRepositories").Return([]*ecr.Repository{
- {RepositoryName: awssdk.String("test_ecr_repo_policy")},
- {RepositoryName: awssdk.String("test_ecr_repo_without_policy")},
- }, nil)
- client.On("GetRepositoryPolicy", &ecr.Repository{
- RepositoryName: awssdk.String("test_ecr_repo_policy"),
- }).Return(&ecr.GetRepositoryPolicyOutput{
- RegistryId: awssdk.String("1"),
- RepositoryName: awssdk.String("test_ecr_repo_policy"),
- }, nil)
- client.On("GetRepositoryPolicy", &ecr.Repository{
- RepositoryName: awssdk.String("test_ecr_repo_without_policy"),
- }).Return(nil, &ecr.RepositoryPolicyNotFoundException{})
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, got[0].ResourceId(), "test_ecr_repo_policy")
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockECRRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ECRRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewECRRepositoryPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_elasticache_scanner_test.go b/enumeration/remote/aws_elasticache_scanner_test.go
deleted file mode 100644
index f7e47b79e..000000000
--- a/enumeration/remote/aws_elasticache_scanner_test.go
+++ /dev/null
@@ -1,106 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestElastiCacheCluster(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockElastiCacheRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no elasticache clusters",
- mocks: func(repository *repository.MockElastiCacheRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllCacheClusters").Return([]*elasticache.CacheCluster{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "should list elasticache clusters",
- mocks: func(repository *repository.MockElastiCacheRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllCacheClusters").Return([]*elasticache.CacheCluster{
- {CacheClusterId: awssdk.String("cluster-foo")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, got[0].ResourceId(), "cluster-foo")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsElastiCacheClusterResourceType)
- },
- },
- {
- test: "cannot list elasticache clusters (403)",
- mocks: func(repository *repository.MockElastiCacheRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllCacheClusters").Return(nil, awsError)
- alerter.On("SendAlert", resourceaws.AwsElastiCacheClusterResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsElastiCacheClusterResourceType, resourceaws.AwsElastiCacheClusterResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "cannot list elasticache clusters (dummy error)",
- mocks: func(repository *repository.MockElastiCacheRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllCacheClusters").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceScanningError(dummyError, resourceaws.AwsElastiCacheClusterResourceType, ""),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockElastiCacheRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ElastiCacheRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewElastiCacheClusterEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_elb_scanner_test.go b/enumeration/remote/aws_elb_scanner_test.go
deleted file mode 100644
index f3e78d2a1..000000000
--- a/enumeration/remote/aws_elb_scanner_test.go
+++ /dev/null
@@ -1,113 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/elb"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestELB_LoadBalancer(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockELBRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no load balancer",
- mocks: func(repository *repository.MockELBRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elb.LoadBalancerDescription{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "should list load balancers",
- mocks: func(repository *repository.MockELBRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elb.LoadBalancerDescription{
- {
- LoadBalancerName: awssdk.String("acc-test-lb-tf"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "acc-test-lb-tf", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsClassicLoadBalancerResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list load balancers",
- mocks: func(repository *repository.MockELBRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllLoadBalancers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsClassicLoadBalancerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsClassicLoadBalancerResourceType, resourceaws.AwsClassicLoadBalancerResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "cannot list load balancers (dummy error)",
- mocks: func(repository *repository.MockELBRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceScanningError(dummyError, resourceaws.AwsClassicLoadBalancerResourceType, ""),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockELBRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ELBRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewClassicLoadBalancerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_elbv2_scanner_test.go b/enumeration/remote/aws_elbv2_scanner_test.go
deleted file mode 100644
index d85759d3a..000000000
--- a/enumeration/remote/aws_elbv2_scanner_test.go
+++ /dev/null
@@ -1,238 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awserr"
- "github.com/aws/aws-sdk-go/service/elbv2"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestELBV2_LoadBalancer(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockELBV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no load balancer",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "should list load balancers",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{
- {
- LoadBalancerArn: awssdk.String("arn:aws:elasticloadbalancing:us-east-1:533948124879:loadbalancer/app/acc-test-lb-tf/9114c60e08560420"),
- LoadBalancerName: awssdk.String("acc-test-lb-tf"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "arn:aws:elasticloadbalancing:us-east-1:533948124879:loadbalancer/app/acc-test-lb-tf/9114c60e08560420", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLoadBalancerResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list load balancers (403)",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllLoadBalancers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLoadBalancerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLoadBalancerResourceType, resourceaws.AwsLoadBalancerResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "cannot list load balancers (dummy error)",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceScanningError(dummyError, resourceaws.AwsLoadBalancerResourceType, ""),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockELBV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ELBV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewLoadBalancerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestELBV2_LoadBalancerListener(t *testing.T) {
- dummyError := errors.New("dummy error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockELBV2Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no load balancer listener",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{
- {
- LoadBalancerArn: awssdk.String("test-lb"),
- },
- }, nil)
- repository.On("ListAllLoadBalancerListeners", "test-lb").Return([]*elbv2.Listener{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "should list load balancer listener",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{
- {
- LoadBalancerArn: awssdk.String("test-lb"),
- },
- }, nil)
-
- repository.On("ListAllLoadBalancerListeners", "test-lb").Return([]*elbv2.Listener{
- {
- ListenerArn: awssdk.String("test-lb-listener-1"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "test-lb-listener-1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLoadBalancerListenerResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list load balancer listeners (403)",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{
- {
- LoadBalancerArn: awssdk.String("test-lb"),
- },
- }, nil)
-
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllLoadBalancerListeners", "test-lb").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLoadBalancerListenerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingError(awsError, resourceaws.AwsLoadBalancerListenerResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "cannot list load balancers (403)",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllLoadBalancers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLoadBalancerListenerResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLoadBalancerListenerResourceType, resourceaws.AwsLoadBalancerResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "cannot list load balancer listeners (dummy error)",
- mocks: func(repository *repository.MockELBV2Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*elbv2.LoadBalancer{
- {
- LoadBalancerArn: awssdk.String("test-lb"),
- },
- }, nil)
-
- repository.On("ListAllLoadBalancerListeners", "test-lb").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceScanningError(dummyError, resourceaws.AwsLoadBalancerListenerResourceType, ""),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockELBV2Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ELBV2Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewLoadBalancerListenerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_iam_scanner_test.go b/enumeration/remote/aws_iam_scanner_test.go
deleted file mode 100644
index 6db6acb0e..000000000
--- a/enumeration/remote/aws_iam_scanner_test.go
+++ /dev/null
@@ -1,1439 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- aws2 "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "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"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestIamUser(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam user",
- dirName: "aws_iam_user_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllUsers").Return([]*iam.User{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples users",
- dirName: "aws_iam_user_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllUsers").Return([]*iam.User{
- {
- UserName: aws.String("test-driftctl-0"),
- },
- {
- UserName: aws.String("test-driftctl-1"),
- },
- {
- UserName: aws.String("test-driftctl-2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "test-driftctl-0", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserResourceType, got[0].ResourceType())
-
- assert.Equal(t, "test-driftctl-1", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserResourceType, got[1].ResourceType())
-
- assert.Equal(t, "test-driftctl-2", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list iam user",
- dirName: "aws_iam_user_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUsers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamUserResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamUserResourceType, resourceaws.AwsIamUserResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamUserEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamUserPolicy(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam user policy",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllUserPolicies", users).Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples users multiple policies",
- dirName: "aws_iam_user_policy_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- {
- UserName: aws.String("loadbalancer2"),
- },
- {
- UserName: aws.String("loadbalancer3"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllUserPolicies", users).Once().Return([]string{
- *aws.String("loadbalancer:test"),
- *aws.String("loadbalancer:test2"),
- *aws.String("loadbalancer:test3"),
- *aws.String("loadbalancer:test4"),
- *aws.String("loadbalancer2:test2"),
- *aws.String("loadbalancer2:test22"),
- *aws.String("loadbalancer2:test23"),
- *aws.String("loadbalancer2:test24"),
- *aws.String("loadbalancer3:test3"),
- *aws.String("loadbalancer3:test32"),
- *aws.String("loadbalancer3:test33"),
- *aws.String("loadbalancer3:test34"),
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 12)
-
- assert.Equal(t, "loadbalancer:test", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserPolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "loadbalancer3:test34", got[11].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserPolicyResourceType, got[11].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list user",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUsers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamUserPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamUserPolicyResourceType, resourceaws.AwsIamUserResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list user policy",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllUsers").Once().Return([]*iam.User{}, nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUserPolicies", mock.Anything).Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamUserPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamUserPolicyResourceType, resourceaws.AwsIamUserPolicyResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamUserPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamPolicy(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam custom policies",
- dirName: "aws_iam_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllPolicies").Once().Return([]*iam.Policy{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples custom policies",
- dirName: "aws_iam_policy_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllPolicies").Once().Return([]*iam.Policy{
- {
- Arn: aws.String("arn:aws:iam::929327065333:policy/policy-0"),
- },
- {
- Arn: aws.String("arn:aws:iam::929327065333:policy/policy-1"),
- },
- {
- Arn: aws.String("arn:aws:iam::929327065333:policy/policy-2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "arn:aws:iam::929327065333:policy/policy-0", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamPolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:iam::929327065333:policy/policy-1", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsIamPolicyResourceType, got[1].ResourceType())
-
- assert.Equal(t, "arn:aws:iam::929327065333:policy/policy-2", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsIamPolicyResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list iam custom policies",
- dirName: "aws_iam_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllPolicies").Once().Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamPolicyResourceType, resourceaws.AwsIamPolicyResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamRole(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam roles",
- dirName: "aws_iam_role_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRoles").Return([]*iam.Role{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples roles",
- dirName: "aws_iam_role_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRoles").Return([]*iam.Role{
- {
- RoleName: aws.String("test_role_0"),
- Path: aws.String("/"),
- },
- {
- RoleName: aws.String("test_role_1"),
- Path: aws.String("/"),
- },
- {
- RoleName: aws.String("test_role_2"),
- Path: aws.String("/"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "test_role_0", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRoleResourceType, got[0].ResourceType())
-
- assert.Equal(t, "test_role_1", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRoleResourceType, got[1].ResourceType())
-
- assert.Equal(t, "test_role_2", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRoleResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "iam roles ignore services roles",
- dirName: "aws_iam_role_ignore_services_roles",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRoles").Return([]*iam.Role{
- {
- RoleName: aws.String("AWSServiceRoleForOrganizations"),
- Path: aws.String("/aws-service-role/organizations.amazonaws.com/"),
- },
- {
- RoleName: aws.String("AWSServiceRoleForSupport"),
- Path: aws.String("/aws-service-role/support.amazonaws.com/"),
- },
- {
- RoleName: aws.String("AWSServiceRoleForTrustedAdvisor"),
- Path: aws.String("/aws-service-role/trustedadvisor.amazonaws.com/"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamRoleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamRolePolicyAttachment(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no iam role policy",
- dirName: "aws_aws_iam_role_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- roles := []*iam.Role{
- {
- RoleName: aws.String("test-role"),
- },
- }
- repo.On("ListAllRoles").Return(roles, nil)
- repo.On("ListAllRolePolicyAttachments", roles).Return([]*repository.AttachedRolePolicy{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "iam multiples roles multiple policies",
- dirName: "aws_iam_role_policy_attachment_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- roles := []*iam.Role{
- {
- RoleName: aws.String("test-role"),
- },
- {
- RoleName: aws.String("test-role2"),
- },
- }
- repo.On("ListAllRoles").Return(roles, nil)
- repo.On("ListAllRolePolicyAttachments", roles).Return([]*repository.AttachedRolePolicy{
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy"),
- PolicyName: aws.String("test-policy"),
- },
- RoleName: *aws.String("test-role"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy2"),
- PolicyName: aws.String("test-policy2"),
- },
- RoleName: *aws.String("test-role"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy3"),
- PolicyName: aws.String("test-policy3"),
- },
- RoleName: *aws.String("test-role"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy"),
- PolicyName: aws.String("test-policy"),
- },
- RoleName: *aws.String("test-role2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy2"),
- PolicyName: aws.String("test-policy2"),
- },
- RoleName: *aws.String("test-role2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::929327065333:policy/test-policy3"),
- PolicyName: aws.String("test-policy3"),
- },
- RoleName: *aws.String("test-role2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 6)
-
- assert.Equal(t, "test-policy-test-role", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRolePolicyAttachmentResourceType, got[0].ResourceType())
-
- assert.Equal(t, "test-policy3-test-role2", got[5].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRolePolicyAttachmentResourceType, got[5].ResourceType())
- },
- err: nil,
- },
- {
- test: "iam multiples roles for ignored roles",
- dirName: "aws_iam_role_policy_attachment_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- roles := []*iam.Role{
- {
- RoleName: aws.String("AWSServiceRoleForSupport"),
- },
- {
- RoleName: aws.String("AWSServiceRoleForOrganizations"),
- },
- {
- RoleName: aws.String("AWSServiceRoleForTrustedAdvisor"),
- },
- }
- repo.On("ListAllRoles").Return(roles, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "Cannot list roles",
- dirName: "aws_iam_role_policy_attachment_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllRoles").Once().Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamRolePolicyAttachmentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamRolePolicyAttachmentResourceType, resourceaws.AwsIamRoleResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "Cannot list roles policy attachment",
- dirName: "aws_iam_role_policy_attachment_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRoles").Once().Return([]*iam.Role{{RoleName: aws.String("test")}}, nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllRolePolicyAttachments", mock.Anything).Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamRolePolicyAttachmentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamRolePolicyAttachmentResourceType, resourceaws.AwsIamRolePolicyAttachmentResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamRolePolicyAttachmentEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamAccessKey(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam access_key",
- dirName: "aws_iam_access_key_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllAccessKeys", users).Return([]*iam.AccessKeyMetadata{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples keys for multiples users",
- dirName: "aws_iam_access_key_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("test-driftctl"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllAccessKeys", users).Return([]*iam.AccessKeyMetadata{
- {
- AccessKeyId: aws.String("AKIA5QYBVVD223VWU32A"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2QYI36UZP"),
- UserName: aws.String("test-driftctl"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD26EJME25D"),
- UserName: aws.String("test-driftctl2"),
- },
- {
- AccessKeyId: aws.String("AKIA5QYBVVD2SWDFVVMG"),
- UserName: aws.String("test-driftctl2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- assert.Equal(t, "AKIA5QYBVVD223VWU32A", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamAccessKeyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "AKIA5QYBVVD2SWDFVVMG", got[3].ResourceId())
- assert.Equal(t, resourceaws.AwsIamAccessKeyResourceType, got[3].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "Cannot list iam user",
- dirName: "aws_iam_access_key_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUsers").Once().Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamAccessKeyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamAccessKeyResourceType, resourceaws.AwsIamUserResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "Cannot list iam access_key",
- dirName: "aws_iam_access_key_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllUsers").Once().Return([]*iam.User{}, nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllAccessKeys", mock.Anything).Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamAccessKeyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamAccessKeyResourceType, resourceaws.AwsIamAccessKeyResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamAccessKeyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamUserPolicyAttachment(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam user policy",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllUserPolicyAttachments", users).Return([]*repository.AttachedUserPolicy{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "iam multiples users multiple policies",
- dirName: "aws_iam_user_policy_attachment_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- users := []*iam.User{
- {
- UserName: aws.String("loadbalancer"),
- },
- {
- UserName: aws.String("loadbalancer2"),
- },
- {
- UserName: aws.String("loadbalancer3"),
- },
- }
- repo.On("ListAllUsers").Return(users, nil)
- repo.On("ListAllUserPolicyAttachments", users).Return([]*repository.AttachedUserPolicy{
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test"),
- PolicyName: aws.String("test"),
- },
- UserName: *aws.String("loadbalancer"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test2"),
- PolicyName: aws.String("test2"),
- },
- UserName: *aws.String("loadbalancer"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test3"),
- PolicyName: aws.String("test3"),
- },
- UserName: *aws.String("loadbalancer"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test4"),
- PolicyName: aws.String("test4"),
- },
- UserName: *aws.String("loadbalancer"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test"),
- PolicyName: aws.String("test"),
- },
- UserName: *aws.String("loadbalancer2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test2"),
- PolicyName: aws.String("test2"),
- },
- UserName: *aws.String("loadbalancer2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test3"),
- PolicyName: aws.String("test3"),
- },
- UserName: *aws.String("loadbalancer2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test4"),
- PolicyName: aws.String("test4"),
- },
- UserName: *aws.String("loadbalancer2"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test"),
- PolicyName: aws.String("test"),
- },
- UserName: *aws.String("loadbalancer3"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test2"),
- PolicyName: aws.String("test2"),
- },
- UserName: *aws.String("loadbalancer3"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test3"),
- PolicyName: aws.String("test3"),
- },
- UserName: *aws.String("loadbalancer3"),
- },
- {
- AttachedPolicy: iam.AttachedPolicy{
- PolicyArn: aws.String("arn:aws:iam::726421854799:policy/test4"),
- PolicyName: aws.String("test4"),
- },
- UserName: *aws.String("loadbalancer3"),
- },
- }, nil)
-
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 12)
-
- assert.Equal(t, "test-loadbalancer", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserPolicyAttachmentResourceType, got[0].ResourceType())
-
- assert.Equal(t, "test4-loadbalancer3", got[11].ResourceId())
- assert.Equal(t, resourceaws.AwsIamUserPolicyAttachmentResourceType, got[11].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list user",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUsers").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamUserPolicyAttachmentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamUserPolicyAttachmentResourceType, resourceaws.AwsIamUserResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list user policies attachment",
- dirName: "aws_iam_user_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllUsers").Once().Return([]*iam.User{}, nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllUserPolicyAttachments", mock.Anything).Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamUserPolicyAttachmentResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamUserPolicyAttachmentResourceType, resourceaws.AwsIamUserPolicyAttachmentResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamUserPolicyAttachmentEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamRolePolicy(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockIAMRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no iam role policy",
- dirName: "aws_iam_role_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- roles := []*iam.Role{
- {
- RoleName: aws.String("test_role"),
- },
- }
- repo.On("ListAllRoles").Return(roles, nil)
- repo.On("ListAllRolePolicies", roles).Return([]repository.RolePolicy{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiples roles with inline policies",
- dirName: "aws_iam_role_policy_multiple",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- roles := []*iam.Role{
- {
- RoleName: aws.String("test_role_0"),
- },
- {
- RoleName: aws.String("test_role_1"),
- },
- }
- repo.On("ListAllRoles").Return(roles, nil)
- repo.On("ListAllRolePolicies", roles).Return([]repository.RolePolicy{
- {Policy: "policy-role0-0", RoleName: "test_role_0"},
- {Policy: "policy-role0-1", RoleName: "test_role_0"},
- {Policy: "policy-role0-2", RoleName: "test_role_0"},
- {Policy: "policy-role1-0", RoleName: "test_role_1"},
- {Policy: "policy-role1-1", RoleName: "test_role_1"},
- {Policy: "policy-role1-2", RoleName: "test_role_1"},
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 6)
-
- assert.Equal(t, "test_role_0:policy-role0-0", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRolePolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "test_role_1:policy-role1-2", got[5].ResourceId())
- assert.Equal(t, resourceaws.AwsIamRolePolicyResourceType, got[5].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "Cannot list roles",
- dirName: "aws_iam_role_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllRoles").Once().Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamRolePolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamRolePolicyResourceType, resourceaws.AwsIamRoleResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list role policy",
- dirName: "aws_iam_role_policy_empty",
- mocks: func(repo *repository.MockIAMRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllRoles").Once().Return([]*iam.Role{}, nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllRolePolicies", mock.Anything).Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsIamRolePolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsIamRolePolicyResourceType, resourceaws.AwsIamRolePolicyResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.IAMRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewIAMRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws2.NewIamRolePolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamGroupPolicy(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockIAMRepository)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple groups, with multiples policies",
- mocks: func(repository *repository.MockIAMRepository) {
- repository.On("ListAllGroups").Return(nil, nil)
- repository.On("ListAllGroupPolicies", []*iam.Group(nil)).
- Return([]string{"group1:policy1", "group2:policy2"}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, resourceaws.AwsIamGroupPolicyResourceType, got[0].ResourceType())
- assert.Equal(t, "group1:policy1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamGroupPolicyResourceType, got[1].ResourceType())
- assert.Equal(t, "group2:policy2", got[1].ResourceId())
- },
- },
- {
- test: "cannot list groups",
- mocks: func(repository *repository.MockIAMRepository) {
- repository.On("ListAllGroups").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsIamGroupPolicyResourceType, resourceaws.AwsIamGroupResourceType),
- },
- {
- test: "cannot list policies",
- mocks: func(repository *repository.MockIAMRepository) {
- repository.On("ListAllGroups").Return(nil, nil)
- repository.On("ListAllGroupPolicies", []*iam.Group(nil)).Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsIamGroupPolicyResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo)
-
- var repo repository.IAMRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws2.NewIamGroupPolicyEnumerator(
- repo, factory,
- ))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestIamGroup(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockIAMRepository)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple groups, with multiples groups",
- mocks: func(repository *repository.MockIAMRepository) {
- repository.On("ListAllGroups").Return([]*iam.Group{
- {
- GroupName: aws.String("group1"),
- },
- {
- GroupName: aws.String("group2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, resourceaws.AwsIamGroupResourceType, got[0].ResourceType())
- assert.Equal(t, "group1", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsIamGroupResourceType, got[1].ResourceType())
- assert.Equal(t, "group2", got[1].ResourceId())
- },
- },
- {
- test: "cannot list groups",
- mocks: func(repository *repository.MockIAMRepository) {
- repository.On("ListAllGroups").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsIamGroupResourceType),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockIAMRepository{}
- c.mocks(fakeRepo)
-
- var repo repository.IAMRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws2.NewIamGroupEnumerator(
- repo, factory,
- ))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_kms_scanner_test.go b/enumeration/remote/aws_kms_scanner_test.go
deleted file mode 100644
index c67ee958d..000000000
--- a/enumeration/remote/aws_kms_scanner_test.go
+++ /dev/null
@@ -1,254 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestKMSKey(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockKMSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no keys",
- dirName: "aws_kms_key_empty",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllKeys").Return([]*kms.KeyListEntry{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple keys",
- dirName: "aws_kms_key_multiple",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllKeys").Return([]*kms.KeyListEntry{
- {KeyId: awssdk.String("8ee21d91-c000-428c-8032-235aac55da36")},
- {KeyId: awssdk.String("5d765f32-bfdc-4610-b6ab-f82db5d0601b")},
- {KeyId: awssdk.String("89d2c023-ea53-40a5-b20a-d84905c622d7")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "8ee21d91-c000-428c-8032-235aac55da36", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsKeyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "5d765f32-bfdc-4610-b6ab-f82db5d0601b", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsKeyResourceType, got[1].ResourceType())
-
- assert.Equal(t, "89d2c023-ea53-40a5-b20a-d84905c622d7", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsKeyResourceType, got[2].ResourceType())
- },
- },
- {
- test: "cannot list keys",
- dirName: "aws_kms_key_list",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllKeys").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsKmsKeyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsKmsKeyResourceType, resourceaws.AwsKmsKeyResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockKMSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.KMSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewKMSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewKMSKeyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestKMSAlias(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockKMSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no aliases",
- dirName: "aws_kms_alias_empty",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAliases").Return([]*kms.AliasListEntry{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple aliases",
- dirName: "aws_kms_alias_multiple",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllAliases").Return([]*kms.AliasListEntry{
- {AliasName: awssdk.String("alias/foo")},
- {AliasName: awssdk.String("alias/bar")},
- {AliasName: awssdk.String("alias/baz20210225124429210500000001")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "alias/foo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsAliasResourceType, got[0].ResourceType())
-
- assert.Equal(t, "alias/bar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsAliasResourceType, got[1].ResourceType())
-
- assert.Equal(t, "alias/baz20210225124429210500000001", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsKmsAliasResourceType, got[2].ResourceType())
- },
- },
- {
- test: "cannot list aliases",
- dirName: "aws_kms_alias_list",
- mocks: func(repository *repository.MockKMSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllAliases").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsKmsAliasResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsKmsAliasResourceType, resourceaws.AwsKmsAliasResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockKMSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.KMSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewKMSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewKMSAliasEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_lambda_scanner_test.go b/enumeration/remote/aws_lambda_scanner_test.go
deleted file mode 100644
index 68411a9c2..000000000
--- a/enumeration/remote/aws_lambda_scanner_test.go
+++ /dev/null
@@ -1,296 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/lambda"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/mocks"
-
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanLambdaFunction(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockLambdaRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no lambda functions",
- dirName: "aws_lambda_function_empty",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaFunctions").Return([]*lambda.FunctionConfiguration{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "with lambda functions",
- dirName: "aws_lambda_function_multiple",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaFunctions").Return([]*lambda.FunctionConfiguration{
- {
- FunctionName: awssdk.String("foo"),
- },
- {
- FunctionName: awssdk.String("bar"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "foo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaFunctionResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaFunctionResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "One lambda with signing",
- dirName: "aws_lambda_function_signed",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaFunctions").Return([]*lambda.FunctionConfiguration{
- {
- FunctionName: awssdk.String("foo"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "foo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaFunctionResourceType, got[0].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list lambda functions",
- dirName: "aws_lambda_function_empty",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllLambdaFunctions").Return([]*lambda.FunctionConfiguration{}, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLambdaFunctionResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLambdaFunctionResourceType, resourceaws.AwsLambdaFunctionResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockLambdaRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.LambdaRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewLambdaRepository(session, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewLambdaFunctionEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestScanLambdaEventSourceMapping(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockLambdaRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no EventSourceMapping",
- dirName: "aws_lambda_source_mapping_empty",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaEventSourceMappings").Return([]*lambda.EventSourceMappingConfiguration{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "with 2 sqs EventSourceMapping",
- dirName: "aws_lambda_source_mapping_sqs_multiple",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaEventSourceMappings").Return([]*lambda.EventSourceMappingConfiguration{
- {
- UUID: awssdk.String("13ff66f8-37eb-4ad6-a0a8-594fea72df4f"),
- },
- {
- UUID: awssdk.String("4ad7e2b3-79e9-4713-9d9d-5af2c01d9058"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "13ff66f8-37eb-4ad6-a0a8-594fea72df4f", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaEventSourceMappingResourceType, got[0].ResourceType())
-
- assert.Equal(t, "4ad7e2b3-79e9-4713-9d9d-5af2c01d9058", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaEventSourceMappingResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "with dynamo EventSourceMapping",
- dirName: "aws_lambda_source_mapping_dynamo_multiple",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- repo.On("ListAllLambdaEventSourceMappings").Return([]*lambda.EventSourceMappingConfiguration{
- {
- UUID: awssdk.String("1aa9c4a0-060b-41c1-a9ae-dc304ebcdb00"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "1aa9c4a0-060b-41c1-a9ae-dc304ebcdb00", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsLambdaEventSourceMappingResourceType, got[0].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list lambda functions",
- dirName: "aws_lambda_function_empty",
- mocks: func(repo *repository.MockLambdaRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repo.On("ListAllLambdaEventSourceMappings").Return([]*lambda.EventSourceMappingConfiguration{}, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsLambdaEventSourceMappingResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsLambdaEventSourceMappingResourceType, resourceaws.AwsLambdaEventSourceMappingResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockLambdaRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.LambdaRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewLambdaRepository(session, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewLambdaEventSourceMappingEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_rds_scanner_test.go b/enumeration/remote/aws_rds_scanner_test.go
deleted file mode 100644
index 8471c2926..000000000
--- a/enumeration/remote/aws_rds_scanner_test.go
+++ /dev/null
@@ -1,375 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/rds"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestRDSDBInstance(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRDSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no db instances",
- dirName: "aws_rds_db_instance_empty",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBInstances").Return([]*rds.DBInstance{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "single db instance",
- dirName: "aws_rds_db_instance_single",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBInstances").Return([]*rds.DBInstance{
- {DBInstanceIdentifier: awssdk.String("terraform-20201015115018309600000001")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "terraform-20201015115018309600000001", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDbInstanceResourceType, got[0].ResourceType())
- },
- },
- {
- test: "multiple mixed db instances",
- dirName: "aws_rds_db_instance_multiple",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBInstances").Return([]*rds.DBInstance{
- {DBInstanceIdentifier: awssdk.String("terraform-20201015115018309600000001")},
- {DBInstanceIdentifier: awssdk.String("database-1")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "terraform-20201015115018309600000001", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDbInstanceResourceType, got[0].ResourceType())
-
- assert.Equal(t, "database-1", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsDbInstanceResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list db instances",
- dirName: "aws_rds_db_instance_list",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllDBInstances").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDbInstanceResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDbInstanceResourceType, resourceaws.AwsDbInstanceResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRDSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.RDSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRDSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRDSDBInstanceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestRDSDBSubnetGroup(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRDSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no db subnet groups",
- dirName: "aws_rds_db_subnet_group_empty",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBSubnetGroups").Return([]*rds.DBSubnetGroup{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple db subnet groups",
- dirName: "aws_rds_db_subnet_group_multiple",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBSubnetGroups").Return([]*rds.DBSubnetGroup{
- {DBSubnetGroupName: awssdk.String("foo")},
- {DBSubnetGroupName: awssdk.String("bar")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "foo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsDbSubnetGroupResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bar", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsDbSubnetGroupResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list db subnet groups",
- dirName: "aws_rds_db_subnet_group_list",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllDBSubnetGroups").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsDbSubnetGroupResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsDbSubnetGroupResourceType, resourceaws.AwsDbSubnetGroupResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRDSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.RDSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRDSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRDSDBSubnetGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestRDSCluster(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRDSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no cluster",
- dirName: "aws_rds_cluster_empty",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBClusters").Return([]*rds.DBCluster{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "should return results",
- dirName: "aws_rds_clusters_results",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllDBClusters").Return([]*rds.DBCluster{
- {
- DBClusterIdentifier: awssdk.String("aurora-cluster-demo"),
- DatabaseName: awssdk.String("mydb"),
- },
- {
- DBClusterIdentifier: awssdk.String("aurora-cluster-demo-2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "aurora-cluster-demo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRDSClusterResourceType, got[0].ResourceType())
-
- assert.Equal(t, "aurora-cluster-demo-2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsRDSClusterResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list clusters",
- dirName: "aws_rds_cluster_denied",
- mocks: func(repository *repository.MockRDSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, "")
- repository.On("ListAllDBClusters").Return(nil, awsError).Once()
-
- alerter.On("SendAlert", resourceaws.AwsRDSClusterResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRDSClusterResourceType, resourceaws.AwsRDSClusterResourceType), alerts.EnumerationPhase)).Return().Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRDSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.RDSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRDSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRDSClusterEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_route53_scanner_test.go b/enumeration/remote/aws_route53_scanner_test.go
deleted file mode 100644
index 88f595417..000000000
--- a/enumeration/remote/aws_route53_scanner_test.go
+++ /dev/null
@@ -1,532 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/route53"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/mocks"
-
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestRoute53_HealthCheck(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRoute53Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no health check",
- dirName: "aws_route53_health_check_empty",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllHealthChecks").Return([]*route53.HealthCheck{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple health check",
- dirName: "aws_route53_health_check_multiple",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllHealthChecks").Return([]*route53.HealthCheck{
- {Id: awssdk.String("7001a9df-ded4-4802-9909-668eb80b972b")},
- {Id: awssdk.String("84fc318a-2e0d-41d6-b638-280e2f0f4e26")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "7001a9df-ded4-4802-9909-668eb80b972b", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53HealthCheckResourceType, got[0].ResourceType())
-
- assert.Equal(t, "84fc318a-2e0d-41d6-b638-280e2f0f4e26", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53HealthCheckResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list health check",
- dirName: "aws_route53_health_check_empty",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllHealthChecks").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRoute53HealthCheckResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRoute53HealthCheckResourceType, resourceaws.AwsRoute53HealthCheckResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRoute53Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.Route53Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRoute53Repository(session, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRoute53HealthCheckEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestRoute53_Zone(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRoute53Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no zones",
- dirName: "aws_route53_zone_empty",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{},
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "single zone",
- dirName: "aws_route53_zone_single",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z08068311RGDXPHF8KE62"),
- Name: awssdk.String("foo.bar"),
- },
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "Z08068311RGDXPHF8KE62", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53ZoneResourceType, got[0].ResourceType())
- },
- err: nil,
- },
- {
- test: "multiples zone (test pagination)",
- dirName: "aws_route53_zone_multiples",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z01809283VH9BBALZHO7B"),
- Name: awssdk.String("foo-0.com"),
- },
- {
- Id: awssdk.String("Z01804312AV8PHE3C43AD"),
- Name: awssdk.String("foo-1.com"),
- },
- {
- Id: awssdk.String("Z01874941AR1TCGV5K65C"),
- Name: awssdk.String("foo-2.com"),
- },
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "Z01809283VH9BBALZHO7B", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53ZoneResourceType, got[0].ResourceType())
-
- assert.Equal(t, "Z01804312AV8PHE3C43AD", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53ZoneResourceType, got[1].ResourceType())
-
- assert.Equal(t, "Z01874941AR1TCGV5K65C", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53ZoneResourceType, got[2].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list zones",
- dirName: "aws_route53_zone_empty",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllZones").Return(
- []*route53.HostedZone{},
- awsError,
- )
-
- alerter.On("SendAlert", resourceaws.AwsRoute53ZoneResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRoute53ZoneResourceType, resourceaws.AwsRoute53ZoneResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRoute53Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.Route53Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRoute53Repository(session, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRoute53ZoneEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestRoute53_Record(t *testing.T) {
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockRoute53Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no records",
- dirName: "aws_route53_zone_with_no_record",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z1035360GLIB82T1EH2G"),
- Name: awssdk.String("foo-0.com"),
- },
- },
- nil,
- )
- client.On("ListRecordsForZone", "Z1035360GLIB82T1EH2G").Return([]*route53.ResourceRecordSet{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "multiples records in multiples zones",
- dirName: "aws_route53_record_multiples",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z1035360GLIB82T1EH2G"),
- Name: awssdk.String("foo-0.com"),
- },
- {
- Id: awssdk.String("Z10347383HV75H96J919W"),
- Name: awssdk.String("foo-1.com"),
- },
- },
- nil,
- )
- client.On("ListRecordsForZone", "Z1035360GLIB82T1EH2G").Return([]*route53.ResourceRecordSet{
- {
- Name: awssdk.String("foo-0.com"),
- Type: awssdk.String("NS"),
- },
- {
- Name: awssdk.String("test0"),
- Type: awssdk.String("A"),
- },
- {
- Name: awssdk.String("test1"),
- Type: awssdk.String("A"),
- },
- {
- Name: awssdk.String("test2"),
- Type: awssdk.String("A"),
- },
- {
- Name: awssdk.String("\\052.test4."),
- Type: awssdk.String("A"),
- },
- }, nil)
- client.On("ListRecordsForZone", "Z10347383HV75H96J919W").Return([]*route53.ResourceRecordSet{
- {
- Name: awssdk.String("test2"),
- Type: awssdk.String("A"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 6)
-
- assert.Equal(t, "Z1035360GLIB82T1EH2G_foo-0.com_NS", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53RecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "Z10347383HV75H96J919W_test2_A", got[5].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53RecordResourceType, got[5].ResourceType())
- },
- err: nil,
- },
- {
- test: "explicit subdomain records",
- dirName: "aws_route53_record_explicit_subdomain",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z06486383UC8WYSBZTWFM"),
- Name: awssdk.String("foo-2.com"),
- },
- },
- nil,
- )
- client.On("ListRecordsForZone", "Z06486383UC8WYSBZTWFM").Return([]*route53.ResourceRecordSet{
- {
- Name: awssdk.String("test0"),
- Type: awssdk.String("TXT"),
- },
- {
- Name: awssdk.String("test0"),
- Type: awssdk.String("A"),
- },
- {
- Name: awssdk.String("test1.foo-2.com"),
- Type: awssdk.String("TXT"),
- },
- {
- Name: awssdk.String("test1.foo-2.com"),
- Type: awssdk.String("A"),
- },
- {
- Name: awssdk.String("_test2.foo-2.com"),
- Type: awssdk.String("TXT"),
- },
- {
- Name: awssdk.String("_test2.foo-2.com"),
- Type: awssdk.String("A"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 6)
-
- assert.Equal(t, "Z06486383UC8WYSBZTWFM_test0_TXT", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53RecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "Z06486383UC8WYSBZTWFM__test2.foo-2.com_A", got[5].ResourceId())
- assert.Equal(t, resourceaws.AwsRoute53RecordResourceType, got[5].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list zones",
- dirName: "aws_route53_zone_with_no_record",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllZones").Return(
- []*route53.HostedZone{},
- awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRoute53RecordResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRoute53RecordResourceType, resourceaws.AwsRoute53ZoneResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "cannot list records",
- dirName: "aws_route53_zone_with_no_record",
- mocks: func(client *repository.MockRoute53Repository, alerter *mocks.AlerterInterface) {
- client.On("ListAllZones").Return(
- []*route53.HostedZone{
- {
- Id: awssdk.String("Z06486383UC8WYSBZTWFM"),
- Name: awssdk.String("foo-2.com"),
- },
- },
- nil)
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListRecordsForZone", "Z06486383UC8WYSBZTWFM").Return(
- []*route53.ResourceRecordSet{}, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsRoute53RecordResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsRoute53RecordResourceType, resourceaws.AwsRoute53RecordResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockRoute53Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.Route53Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewRoute53Repository(session, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewRoute53RecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_s3_scanner_test.go b/enumeration/remote/aws_s3_scanner_test.go
deleted file mode 100644
index e3adca90b..000000000
--- a/enumeration/remote/aws_s3_scanner_test.go
+++ /dev/null
@@ -1,1214 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/aws/aws-sdk-go/service/s3control"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/client"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- tf "github.com/snyk/driftctl/enumeration/remote/terraform"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/s3"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/mocks"
-
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestS3Bucket(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple bucket", dirName: "aws_s3_bucket_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "ap-northeast-1",
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "bucket-martin-test-drift2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list bucket", dirName: "aws_s3_bucket_list",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketInventory(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple bucket with multiple inventories", dirName: "aws_s3_bucket_inventories_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "ListBucketInventoryConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift2")},
- "eu-west-3",
- ).Return(
- []*s3.InventoryConfiguration{
- {Id: awssdk.String("Inventory_Bucket2")},
- {Id: awssdk.String("Inventory2_Bucket2")},
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "bucket-martin-test-drift2:Inventory_Bucket2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketInventoryResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bucket-martin-test-drift2:Inventory2_Bucket2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketInventoryResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list bucket", dirName: "aws_s3_bucket_inventories_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketInventoryResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketInventoryResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list bucket inventories", dirName: "aws_s3_bucket_inventories_list_inventories",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return(
- []*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- },
- nil,
- )
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-3",
- nil,
- )
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On(
- "ListBucketInventoryConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift")},
- "eu-west-3",
- ).Return(
- nil,
- awsError,
- )
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketInventoryResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketInventoryResourceType, resourceaws.AwsS3BucketInventoryResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketInventoryEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketNotification(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "single bucket without notifications",
- dirName: "aws_s3_bucket_notifications_no_notif",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("dritftctl-test-no-notifications")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "dritftctl-test-no-notifications",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketNotification",
- "dritftctl-test-no-notifications",
- "eu-west-3",
- ).Return(
- nil,
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple bucket with notifications", dirName: "aws_s3_bucket_notifications_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketNotification",
- "bucket-martin-test-drift2",
- "eu-west-3",
- ).Return(
- &s3.NotificationConfiguration{
- LambdaFunctionConfigurations: []*s3.LambdaFunctionConfiguration{
- {
- Id: awssdk.String("tf-s3-lambda-20201103165354926600000001"),
- },
- {
- Id: awssdk.String("tf-s3-lambda-20201103165354926600000002"),
- },
- },
- },
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "ap-northeast-1",
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "bucket-martin-test-drift2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketNotificationResourceType, got[0].ResourceType())
- },
- },
- {
- test: "Cannot get bucket notification", dirName: "aws_s3_bucket_notifications_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("dritftctl-test-notifications-error")},
- }, nil)
- repository.On(
- "GetBucketLocation",
- "dritftctl-test-notifications-error",
- ).Return(
- "eu-west-3",
- nil,
- )
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("GetBucketNotification", "dritftctl-test-notifications-error", "eu-west-3").Return(nil, awsError)
-
- alerter.On("SendAlert", "aws_s3_bucket_notification.dritftctl-test-notifications-error", alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, "aws_s3_bucket_notification.dritftctl-test-notifications-error", resourceaws.AwsS3BucketNotificationResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "Cannot list bucket", dirName: "aws_s3_bucket_notifications_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketNotificationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketNotificationResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketNotificationEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketMetrics(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple bucket with multiple metrics", dirName: "aws_s3_bucket_metrics_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "ap-northeast-1",
- nil,
- )
-
- repository.On(
- "ListBucketMetricsConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift2")},
- "eu-west-3",
- ).Return(
- []*s3.MetricsConfiguration{
- {Id: awssdk.String("Metrics_Bucket2")},
- {Id: awssdk.String("Metrics2_Bucket2")},
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "bucket-martin-test-drift2:Metrics_Bucket2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketMetricResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bucket-martin-test-drift2:Metrics2_Bucket2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketMetricResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list bucket", dirName: "aws_s3_bucket_metrics_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketMetricResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketMetricResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list metrics", dirName: "aws_s3_bucket_metrics_list_metrics",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return(
- []*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- },
- nil,
- )
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On(
- "ListBucketMetricsConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift")},
- "eu-west-3",
- ).Return(
- nil,
- awsError,
- )
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketMetricResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketMetricResourceType, resourceaws.AwsS3BucketMetricResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketMetricsEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketPolicy(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "single bucket without policy",
- dirName: "aws_s3_bucket_policy_no_policy",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("dritftctl-test-no-policy")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "dritftctl-test-no-policy",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketPolicy",
- "dritftctl-test-no-policy",
- "eu-west-3",
- ).Return(
- nil,
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple bucket with policies", dirName: "aws_s3_bucket_policies_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "ap-northeast-1",
- nil,
- )
-
- repository.On(
- "GetBucketPolicy",
- "bucket-martin-test-drift2",
- "eu-west-3",
- ).Return(
- // The value here not matter, we only want something not empty
- // to trigger the detail fetcher
- awssdk.String("foobar"),
- nil,
- )
-
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
-
- assert.Equal(t, "bucket-martin-test-drift2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketPolicyResourceType, got[0].ResourceType())
- },
- },
- {
- test: "cannot list bucket", dirName: "aws_s3_bucket_policies_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketPolicyResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketPolicyEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketPublicAccessBlock(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple bucket, one with access block",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-with-public-access-block")},
- {Name: awssdk.String("bucket-without-public-access-block")},
- }, nil)
-
- repository.On("GetBucketLocation", "bucket-with-public-access-block").
- Return("us-east-1", nil)
- repository.On("GetBucketLocation", "bucket-without-public-access-block").
- Return("us-east-1", nil)
-
- repository.On("GetBucketPublicAccessBlock", "bucket-with-public-access-block", "us-east-1").
- Return(&s3.PublicAccessBlockConfiguration{
- BlockPublicAcls: awssdk.Bool(true),
- BlockPublicPolicy: awssdk.Bool(false),
- }, nil)
-
- repository.On("GetBucketPublicAccessBlock", "bucket-without-public-access-block", "us-east-1").
- Return(nil, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, got[0].ResourceId(), "bucket-with-public-access-block")
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsS3BucketPublicAccessBlockResourceType)
- assert.Equal(t, got[0].Attributes(), &resource.Attributes{
- "block_public_acls": true,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- })
- },
- },
- {
- test: "cannot list bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceaws.AwsS3BucketPublicAccessBlockResourceType, resourceaws.AwsS3BucketResourceType),
- },
- {
- test: "cannot list public access block",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return([]*s3.Bucket{{Name: awssdk.String("foobar")}}, nil)
- repository.On("GetBucketLocation", "foobar").Return("us-east-1", nil)
- repository.On("GetBucketPublicAccessBlock", "foobar", "us-east-1").Return(nil, dummyError)
- alerter.On("SendAlert", "aws_s3_bucket_public_access_block.foobar", alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceScanningError(dummyError, resourceaws.AwsS3BucketPublicAccessBlockResourceType, "foobar"), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.S3Repository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketPublicAccessBlockEnumerator(
- repo, factory,
- tf.TerraformProviderConfig{DefaultAlias: "us-east-1"},
- alerter,
- ))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3BucketAnalytic(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockS3Repository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "multiple bucket with multiple analytics",
- dirName: "aws_s3_bucket_analytics_multiple",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On(
- "ListAllBuckets",
- ).Return([]*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- {Name: awssdk.String("bucket-martin-test-drift2")},
- {Name: awssdk.String("bucket-martin-test-drift3")},
- }, nil)
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-1",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift2",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift3",
- ).Return(
- "ap-northeast-1",
- nil,
- )
-
- repository.On(
- "ListBucketAnalyticsConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift2")},
- "eu-west-3",
- ).Return(
- []*s3.AnalyticsConfiguration{
- {Id: awssdk.String("Analytics_Bucket2")},
- {Id: awssdk.String("Analytics2_Bucket2")},
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "bucket-martin-test-drift2:Analytics_Bucket2", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, got[0].ResourceType())
-
- assert.Equal(t, "bucket-martin-test-drift2:Analytics2_Bucket2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, got[1].ResourceType())
- },
- },
- {
- test: "cannot list bucket", dirName: "aws_s3_bucket_analytics_list_bucket",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On("ListAllBuckets").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, resourceaws.AwsS3BucketResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "cannot list Analytics", dirName: "aws_s3_bucket_analytics_list_analytics",
- mocks: func(repository *repository.MockS3Repository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllBuckets").Return(
- []*s3.Bucket{
- {Name: awssdk.String("bucket-martin-test-drift")},
- },
- nil,
- )
- repository.On(
- "GetBucketLocation",
- "bucket-martin-test-drift",
- ).Return(
- "eu-west-3",
- nil,
- )
-
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- repository.On(
- "ListBucketAnalyticsConfigurations",
- &s3.Bucket{Name: awssdk.String("bucket-martin-test-drift")},
- "eu-west-3",
- ).Return(
- nil,
- awsError,
- )
-
- alerter.On("SendAlert", resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsS3BucketAnalyticsConfigurationResourceType, resourceaws.AwsS3BucketAnalyticsConfigurationResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- session := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3Repository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.S3Repository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewS3Repository(client.NewAWSClientFactory(session), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewS3BucketAnalyticEnumerator(repo, factory, tf.TerraformProviderConfig{
- Name: "test",
- DefaultAlias: "eu-west-3",
- }, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestS3AccountPublicAccessBlock(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- accountID := "123456"
- tests := []struct {
- test string
- mocks func(*repository.MockS3ControlRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "existing access block",
- mocks: func(repository *repository.MockS3ControlRepository, alerter *mocks.AlerterInterface) {
- repository.On("DescribeAccountPublicAccessBlock", accountID).Return(&s3control.PublicAccessBlockConfiguration{
- BlockPublicAcls: awssdk.Bool(false),
- BlockPublicPolicy: awssdk.Bool(true),
- IgnorePublicAcls: awssdk.Bool(false),
- RestrictPublicBuckets: awssdk.Bool(true),
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, got[0].ResourceId(), accountID)
- assert.Equal(t, got[0].ResourceType(), resourceaws.AwsS3AccountPublicAccessBlock)
- assert.Equal(t, got[0].Attributes(), &resource.Attributes{
- "block_public_acls": false,
- "block_public_policy": true,
- "ignore_public_acls": false,
- "restrict_public_buckets": true,
- })
- },
- },
- {
- test: "cannot list access block",
- mocks: func(repository *repository.MockS3ControlRepository, alerter *mocks.AlerterInterface) {
- repository.On("DescribeAccountPublicAccessBlock", accountID).Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceaws.AwsS3AccountPublicAccessBlock),
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockS3ControlRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.S3ControlRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(aws.NewS3AccountPublicAccessBlockEnumerator(
- repo, factory,
- accountID,
- alerter,
- ))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_sns_scanner_test.go b/enumeration/remote/aws_sns_scanner_test.go
deleted file mode 100644
index 8cd1c4d04..000000000
--- a/enumeration/remote/aws_sns_scanner_test.go
+++ /dev/null
@@ -1,393 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/sns"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/mocks"
-
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanSNSTopic(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockSNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no SNS Topic",
- dirName: "aws_sns_topic_empty",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTopics").Return([]*sns.Topic{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple SNSTopic",
- dirName: "aws_sns_topic_multiple",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTopics").Return([]*sns.Topic{
- {TopicArn: awssdk.String("arn:aws:sns:eu-west-3:526954929923:user-updates-topic")},
- {TopicArn: awssdk.String("arn:aws:sns:eu-west-3:526954929923:user-updates-topic2")},
- {TopicArn: awssdk.String("arn:aws:sns:eu-west-3:526954929923:user-updates-topic3")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "arn:aws:sns:eu-west-3:526954929923:user-updates-topic", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:sns:eu-west-3:526954929923:user-updates-topic2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicResourceType, got[1].ResourceType())
-
- assert.Equal(t, "arn:aws:sns:eu-west-3:526954929923:user-updates-topic3", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicResourceType, got[2].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list SNSTopic",
- dirName: "aws_sns_topic_empty",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllTopics").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSnsTopicResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSnsTopicResourceType, resourceaws.AwsSnsTopicResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockSNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.SNSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewSNSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewSNSTopicEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestSNSTopicPolicyScan(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockSNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no SNS Topic policy",
- dirName: "aws_sns_topic_policy_empty",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTopics").Return([]*sns.Topic{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple SNSTopicPolicy",
- dirName: "aws_sns_topic_policy_multiple",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllTopics").Return([]*sns.Topic{
- {TopicArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:my-topic-with-policy")},
- {TopicArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:my-topic-with-policy2")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicPolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy2", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicPolicyResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list SNSTopic",
- dirName: "aws_sns_topic_policy_topic_list",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllTopics").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSnsTopicPolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSnsTopicPolicyResourceType, resourceaws.AwsSnsTopicResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockSNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.SNSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewSNSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewSNSTopicPolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.err, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestSNSTopicSubscriptionScan(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockSNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no SNS Topic Subscription",
- dirName: "aws_sns_topic_subscription_empty",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSubscriptions").Return([]*sns.Subscription{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple SNSTopic Subscription",
- dirName: "aws_sns_topic_subscription_multiple",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSubscriptions").Return([]*sns.Subscription{
- {SubscriptionArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa")},
- {SubscriptionArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e")},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicSubscriptionResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicSubscriptionResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "Multiple SNSTopic Subscription with one pending and one incorrect",
- dirName: "aws_sns_topic_subscription_multiple",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllSubscriptions").Return([]*sns.Subscription{
- {SubscriptionArn: awssdk.String("PendingConfirmation"), Endpoint: awssdk.String("TEST")},
- {SubscriptionArn: awssdk.String("Incorrect"), Endpoint: awssdk.String("INCORRECT")},
- {SubscriptionArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa")},
- {SubscriptionArn: awssdk.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e")},
- }, nil)
-
- alerter.On("SendAlert", "aws_sns_topic_subscription.PendingConfirmation", aws.NewWrongArnTopicAlert("PendingConfirmation", awssdk.String("TEST"))).Return()
-
- alerter.On("SendAlert", "aws_sns_topic_subscription.Incorrect", aws.NewWrongArnTopicAlert("Incorrect", awssdk.String("INCORRECT"))).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicSubscriptionResourceType, got[0].ResourceType())
-
- assert.Equal(t, "arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSnsTopicSubscriptionResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list SNSTopic subscription",
- dirName: "aws_sns_topic_subscription_list",
- mocks: func(client *repository.MockSNSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllSubscriptions").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSnsTopicSubscriptionResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSnsTopicSubscriptionResourceType, resourceaws.AwsSnsTopicSubscriptionResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockSNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.SNSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewSNSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewSNSTopicSubscriptionEnumerator(repo, factory, alerter))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/aws_sqs_scanner_test.go b/enumeration/remote/aws_sqs_scanner_test.go
deleted file mode 100644
index bb91e4519..000000000
--- a/enumeration/remote/aws_sqs_scanner_test.go
+++ /dev/null
@@ -1,292 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/aws/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- awssdk "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/sqs"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestSQSQueue(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockSQSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no sqs queues",
- dirName: "aws_sqs_queue_empty",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllQueues").Return([]*string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiple sqs queues",
- dirName: "aws_sqs_queue_multiple",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllQueues").Return([]*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"),
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueueResourceType, got[0].ResourceType())
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/foo", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueueResourceType, got[1].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list sqs queues",
- dirName: "aws_sqs_queue_empty",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllQueues").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSqsQueueResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSqsQueueResourceType, resourceaws.AwsSqsQueueResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockSQSRepository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.SQSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewSQSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewSQSQueueEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- fakeRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
-
-func TestSQSQueuePolicy(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*repository.MockSQSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- // sqs queue with no policy case is not possible
- // as a default SQSDefaultPolicy (e.g. policy="") will always be present in each queue
- test: "no sqs queue policies",
- dirName: "aws_sqs_queue_policy_empty",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllQueues").Return([]*string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiple sqs queue policies (default or not)",
- dirName: "aws_sqs_queue_policy_multiple",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllQueues").Return([]*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/baz"),
- }, nil)
-
- client.On("GetQueueAttributes", mock.Anything).Return(
- &sqs.GetQueueAttributesOutput{
- Attributes: map[string]*string{
- sqs.QueueAttributeNamePolicy: awssdk.String(""),
- },
- },
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/foo", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[1].ResourceType())
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/baz", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "multiple sqs queue policies (with nil attributes)",
- dirName: "aws_sqs_queue_policy_multiple",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- client.On("ListAllQueues").Return([]*string{
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"),
- awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/baz"),
- }, nil)
-
- client.On("GetQueueAttributes", mock.Anything).Return(
- &sqs.GetQueueAttributesOutput{},
- nil,
- )
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo", got[0].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/foo", got[1].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[1].ResourceType())
-
- assert.Equal(t, "https://sqs.eu-west-3.amazonaws.com/047081014315/baz", got[2].ResourceId())
- assert.Equal(t, resourceaws.AwsSqsQueuePolicyResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list sqs queues, thus sqs queue policies",
- dirName: "aws_sqs_queue_policy_empty",
- mocks: func(client *repository.MockSQSRepository, alerter *mocks.AlerterInterface) {
- awsError := awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, "")
- client.On("ListAllQueues").Return(nil, awsError)
-
- alerter.On("SendAlert", resourceaws.AwsSqsQueuePolicyResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awsError, resourceaws.AwsSqsQueuePolicyResourceType, resourceaws.AwsSqsQueueResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockSQSRepository{}
- c.mocks(fakeRepo, alerter)
- var repo repository.SQSRepository = fakeRepo
- providerVersion := "3.19.0"
- realProvider, err := terraform2.InitTestAwsProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = repository.NewSQSRepository(sess, cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(aws.NewSQSQueuePolicyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- fakeRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm/azurerm_container_registry_enumerator.go b/enumeration/remote/azurerm/azurerm_container_registry_enumerator.go
deleted file mode 100644
index 66ed08e91..000000000
--- a/enumeration/remote/azurerm/azurerm_container_registry_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermContainerRegistryEnumerator struct {
- repository repository.ContainerRegistryRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermContainerRegistryEnumerator(repo repository.ContainerRegistryRepository, factory resource.ResourceFactory) *AzurermContainerRegistryEnumerator {
- return &AzurermContainerRegistryEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermContainerRegistryEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureContainerRegistryResourceType
-}
-
-func (e *AzurermContainerRegistryEnumerator) Enumerate() ([]*resource.Resource, error) {
- registries, err := e.repository.ListAllContainerRegistries()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
- for _, registry := range registries {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *registry.ID,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_firewalls_enumerator.go b/enumeration/remote/azurerm/azurerm_firewalls_enumerator.go
deleted file mode 100644
index 6487acdde..000000000
--- a/enumeration/remote/azurerm/azurerm_firewalls_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermFirewallsEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermFirewallsEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermFirewallsEnumerator {
- return &AzurermFirewallsEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermFirewallsEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureFirewallResourceType
-}
-
-func (e *AzurermFirewallsEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllFirewalls()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_image_enumerator.go b/enumeration/remote/azurerm/azurerm_image_enumerator.go
deleted file mode 100644
index 0fe11379d..000000000
--- a/enumeration/remote/azurerm/azurerm_image_enumerator.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "strings"
-
- "github.com/Azure/go-autorest/autorest/azure"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermImageEnumerator struct {
- repository repository.ComputeRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermImageEnumerator(repo repository.ComputeRepository, factory resource.ResourceFactory) *AzurermImageEnumerator {
- return &AzurermImageEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermImageEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureImageResourceType
-}
-
-func (e *AzurermImageEnumerator) Enumerate() ([]*resource.Resource, error) {
- images, err := e.repository.ListAllImages()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(images))
-
- for _, res := range images {
- r, err := azure.ParseResourceID(*res.ID)
- if err != nil {
- logrus.WithFields(map[string]interface{}{
- "id": *res.ID,
- "type": string(e.SupportedType()),
- }).Error("Failed to parse Azure resource ID")
- continue
- }
-
- // Here we turn the resource group into lowercase because for some reason the API returns it in uppercase.
- resourceId := strings.Replace(*res.ID, r.ResourceGroup, strings.ToLower(r.ResourceGroup), 1)
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- resourceId,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_lb_enumerator.go b/enumeration/remote/azurerm/azurerm_lb_enumerator.go
deleted file mode 100644
index 5ea34df32..000000000
--- a/enumeration/remote/azurerm/azurerm_lb_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermLoadBalancerEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermLoadBalancerEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermLoadBalancerEnumerator {
- return &AzurermLoadBalancerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermLoadBalancerEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureLoadBalancerResourceType
-}
-
-func (e *AzurermLoadBalancerEnumerator) Enumerate() ([]*resource.Resource, error) {
- loadBalancers, err := e.repository.ListAllLoadBalancers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(loadBalancers))
-
- for _, res := range loadBalancers {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_lb_rule_enumerator.go b/enumeration/remote/azurerm/azurerm_lb_rule_enumerator.go
deleted file mode 100644
index 01a781fec..000000000
--- a/enumeration/remote/azurerm/azurerm_lb_rule_enumerator.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermLoadBalancerRuleEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermLoadBalancerRuleEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermLoadBalancerRuleEnumerator {
- return &AzurermLoadBalancerRuleEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermLoadBalancerRuleEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureLoadBalancerRuleResourceType
-}
-
-func (e *AzurermLoadBalancerRuleEnumerator) Enumerate() ([]*resource.Resource, error) {
- loadBalancers, err := e.repository.ListAllLoadBalancers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzureLoadBalancerResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, res := range loadBalancers {
- rules, err := e.repository.ListLoadBalancerRules(res)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, rule := range rules {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *rule.ID,
- map[string]interface{}{
- "name": *rule.Name,
- "loadbalancer_id": *res.ID,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_network_security_group_enumerator.go b/enumeration/remote/azurerm/azurerm_network_security_group_enumerator.go
deleted file mode 100644
index aede96440..000000000
--- a/enumeration/remote/azurerm/azurerm_network_security_group_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermNetworkSecurityGroupEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermNetworkSecurityGroupEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermNetworkSecurityGroupEnumerator {
- return &AzurermNetworkSecurityGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermNetworkSecurityGroupEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureNetworkSecurityGroupResourceType
-}
-
-func (e *AzurermNetworkSecurityGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- securityGroups, err := e.repository.ListAllSecurityGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzureNetworkSecurityGroupResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(securityGroups))
-
- for _, res := range securityGroups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_postgresql_database_enumerator.go b/enumeration/remote/azurerm/azurerm_postgresql_database_enumerator.go
deleted file mode 100644
index 2283ec38b..000000000
--- a/enumeration/remote/azurerm/azurerm_postgresql_database_enumerator.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPostgresqlDatabaseEnumerator struct {
- repository repository.PostgresqlRespository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPostgresqlDatabaseEnumerator(repo repository.PostgresqlRespository, factory resource.ResourceFactory) *AzurermPostgresqlDatabaseEnumerator {
- return &AzurermPostgresqlDatabaseEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPostgresqlDatabaseEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePostgresqlDatabaseResourceType
-}
-
-func (e *AzurermPostgresqlDatabaseEnumerator) Enumerate() ([]*resource.Resource, error) {
- servers, err := e.repository.ListAllServers()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePostgresqlServerResourceType)
- }
-
- results := make([]*resource.Resource, 0)
- for _, server := range servers {
- databases, err := e.repository.ListAllDatabasesByServer(server)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, db := range databases {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *db.ID,
- map[string]interface{}{
- "name": *db.Name,
- },
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_postgresql_server_enumerator.go b/enumeration/remote/azurerm/azurerm_postgresql_server_enumerator.go
deleted file mode 100644
index a874f921a..000000000
--- a/enumeration/remote/azurerm/azurerm_postgresql_server_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPostgresqlServerEnumerator struct {
- repository repository.PostgresqlRespository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPostgresqlServerEnumerator(repo repository.PostgresqlRespository, factory resource.ResourceFactory) *AzurermPostgresqlServerEnumerator {
- return &AzurermPostgresqlServerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPostgresqlServerEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePostgresqlServerResourceType
-}
-
-func (e *AzurermPostgresqlServerEnumerator) Enumerate() ([]*resource.Resource, error) {
- servers, err := e.repository.ListAllServers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
- for _, server := range servers {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *server.ID,
- map[string]interface{}{
- "name": *server.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_private_dns_cname_record_enumerator.go b/enumeration/remote/azurerm/azurerm_private_dns_cname_record_enumerator.go
deleted file mode 100644
index 0a69dac14..000000000
--- a/enumeration/remote/azurerm/azurerm_private_dns_cname_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSCNameRecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSCNameRecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSCNameRecordEnumerator {
- return &AzurermPrivateDNSCNameRecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSCNameRecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSCNameRecordResourceType
-}
-
-func (e *AzurermPrivateDNSCNameRecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllCNAMERecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_a_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_a_record_enumerator.go
deleted file mode 100644
index 6dc1fb250..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_a_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSARecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSARecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSARecordEnumerator {
- return &AzurermPrivateDNSARecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSARecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSARecordResourceType
-}
-
-func (e *AzurermPrivateDNSARecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllARecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_aaaa_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_aaaa_record_enumerator.go
deleted file mode 100644
index b14223bb3..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_aaaa_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSAAAARecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSAAAARecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSAAAARecordEnumerator {
- return &AzurermPrivateDNSAAAARecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSAAAARecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSAAAARecordResourceType
-}
-
-func (e *AzurermPrivateDNSAAAARecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllAAAARecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_mx_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_mx_record_enumerator.go
deleted file mode 100644
index 5c532e832..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_mx_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSMXRecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSMXRecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSMXRecordEnumerator {
- return &AzurermPrivateDNSMXRecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSMXRecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSMXRecordResourceType
-}
-
-func (e *AzurermPrivateDNSMXRecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllMXRecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_ptr_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_ptr_record_enumerator.go
deleted file mode 100644
index fdfbd1361..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_ptr_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSPTRRecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSPTRRecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSPTRRecordEnumerator {
- return &AzurermPrivateDNSPTRRecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSPTRRecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSPTRRecordResourceType
-}
-
-func (e *AzurermPrivateDNSPTRRecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllPTRRecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_srv_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_srv_record_enumerator.go
deleted file mode 100644
index fdb998535..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_srv_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSSRVRecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSSRVRecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSSRVRecordEnumerator {
- return &AzurermPrivateDNSSRVRecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSSRVRecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSSRVRecordResourceType
-}
-
-func (e *AzurermPrivateDNSSRVRecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllSRVRecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_txt_record_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_txt_record_enumerator.go
deleted file mode 100644
index ec0047fb8..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_txt_record_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSTXTRecordEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSTXTRecordEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSTXTRecordEnumerator {
- return &AzurermPrivateDNSTXTRecordEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSTXTRecordEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSTXTRecordResourceType
-}
-
-func (e *AzurermPrivateDNSTXTRecordEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzurePrivateDNSZoneResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
- records, err := e.repository.ListAllTXTRecords(zone)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, record := range records {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *record.ID,
- map[string]interface{}{
- "name": *record.Name,
- "zone_name": *zone.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_privatedns_zone_enumerator.go b/enumeration/remote/azurerm/azurerm_privatedns_zone_enumerator.go
deleted file mode 100644
index afa152a04..000000000
--- a/enumeration/remote/azurerm/azurerm_privatedns_zone_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPrivateDNSZoneEnumerator struct {
- repository repository.PrivateDNSRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPrivateDNSZoneEnumerator(repo repository.PrivateDNSRepository, factory resource.ResourceFactory) *AzurermPrivateDNSZoneEnumerator {
- return &AzurermPrivateDNSZoneEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPrivateDNSZoneEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePrivateDNSZoneResourceType
-}
-
-func (e *AzurermPrivateDNSZoneEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- zones, err := e.repository.ListAllPrivateZones()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, zone := range zones {
-
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *zone.ID,
- map[string]interface{}{},
- ),
- )
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_public_ip_enumerator.go b/enumeration/remote/azurerm/azurerm_public_ip_enumerator.go
deleted file mode 100644
index 9b9dfe748..000000000
--- a/enumeration/remote/azurerm/azurerm_public_ip_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermPublicIPEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermPublicIPEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermPublicIPEnumerator {
- return &AzurermPublicIPEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermPublicIPEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzurePublicIPResourceType
-}
-
-func (e *AzurermPublicIPEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllPublicIPAddresses()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_resource_group_enumerator.go b/enumeration/remote/azurerm/azurerm_resource_group_enumerator.go
deleted file mode 100644
index 07a0a23b2..000000000
--- a/enumeration/remote/azurerm/azurerm_resource_group_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermResourceGroupEnumerator struct {
- repository repository.ResourcesRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermResourceGroupEnumerator(repo repository.ResourcesRepository, factory resource.ResourceFactory) *AzurermResourceGroupEnumerator {
- return &AzurermResourceGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermResourceGroupEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureResourceGroupResourceType
-}
-
-func (e *AzurermResourceGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- groups, err := e.repository.ListAllResourceGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0)
- for _, group := range groups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *group.ID,
- map[string]interface{}{
- "name": *group.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_route_enumerator.go b/enumeration/remote/azurerm/azurerm_route_enumerator.go
deleted file mode 100644
index 72883051b..000000000
--- a/enumeration/remote/azurerm/azurerm_route_enumerator.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermRouteEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermRouteEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermRouteEnumerator {
- return &AzurermRouteEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermRouteEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureRouteResourceType
-}
-
-func (e *AzurermRouteEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzureRouteTableResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- for _, route := range res.Properties.Routes {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *route.ID,
- map[string]interface{}{
- "name": *route.Name,
- "route_table_name": *res.Name,
- },
- ),
- )
- }
-
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_route_table_enumerator.go b/enumeration/remote/azurerm/azurerm_route_table_enumerator.go
deleted file mode 100644
index 85a5bec4b..000000000
--- a/enumeration/remote/azurerm/azurerm_route_table_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermRouteTableEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermRouteTableEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermRouteTableEnumerator {
- return &AzurermRouteTableEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermRouteTableEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureRouteTableResourceType
-}
-
-func (e *AzurermRouteTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllRouteTables()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_ssh_public_key_enumerator.go b/enumeration/remote/azurerm/azurerm_ssh_public_key_enumerator.go
deleted file mode 100644
index 0ea0326de..000000000
--- a/enumeration/remote/azurerm/azurerm_ssh_public_key_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermSSHPublicKeyEnumerator struct {
- repository repository.ComputeRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermSSHPublicKeyEnumerator(repo repository.ComputeRepository, factory resource.ResourceFactory) *AzurermSSHPublicKeyEnumerator {
- return &AzurermSSHPublicKeyEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermSSHPublicKeyEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureSSHPublicKeyResourceType
-}
-
-func (e *AzurermSSHPublicKeyEnumerator) Enumerate() ([]*resource.Resource, error) {
- keys, err := e.repository.ListAllSSHPublicKeys()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(keys))
-
- for _, res := range keys {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_storage_account_enumerator.go b/enumeration/remote/azurerm/azurerm_storage_account_enumerator.go
deleted file mode 100644
index 0b1a8947e..000000000
--- a/enumeration/remote/azurerm/azurerm_storage_account_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermStorageAccountEnumerator struct {
- repository repository.StorageRespository
- factory resource.ResourceFactory
-}
-
-func NewAzurermStorageAccountEnumerator(repo repository.StorageRespository, factory resource.ResourceFactory) *AzurermStorageAccountEnumerator {
- return &AzurermStorageAccountEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermStorageAccountEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureStorageAccountResourceType
-}
-
-func (e *AzurermStorageAccountEnumerator) Enumerate() ([]*resource.Resource, error) {
- accounts, err := e.repository.ListAllStorageAccount()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(accounts))
-
- for _, account := range accounts {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *account.ID,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_storage_container_enumerator.go b/enumeration/remote/azurerm/azurerm_storage_container_enumerator.go
deleted file mode 100644
index 58729e6ef..000000000
--- a/enumeration/remote/azurerm/azurerm_storage_container_enumerator.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermStorageContainerEnumerator struct {
- repository repository.StorageRespository
- factory resource.ResourceFactory
-}
-
-func NewAzurermStorageContainerEnumerator(repo repository.StorageRespository, factory resource.ResourceFactory) *AzurermStorageContainerEnumerator {
- return &AzurermStorageContainerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermStorageContainerEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureStorageContainerResourceType
-}
-
-func (e *AzurermStorageContainerEnumerator) Enumerate() ([]*resource.Resource, error) {
-
- accounts, err := e.repository.ListAllStorageAccount()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzureStorageAccountResourceType)
- }
-
- results := make([]*resource.Resource, 0)
-
- for _, account := range accounts {
- containers, err := e.repository.ListAllStorageContainer(account)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- for _, container := range containers {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- container,
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_subnets_enumerator.go b/enumeration/remote/azurerm/azurerm_subnets_enumerator.go
deleted file mode 100644
index 4f2bffa59..000000000
--- a/enumeration/remote/azurerm/azurerm_subnets_enumerator.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermSubnetEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermSubnetEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermSubnetEnumerator {
- return &AzurermSubnetEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermSubnetEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureSubnetResourceType
-}
-
-func (e *AzurermSubnetEnumerator) Enumerate() ([]*resource.Resource, error) {
- networks, err := e.repository.ListAllVirtualNetworks()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), azurerm.AzureVirtualNetworkResourceType)
- }
-
- results := make([]*resource.Resource, 0)
- for _, network := range networks {
- resources, err := e.repository.ListAllSubnets(network)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{},
- ),
- )
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/azurerm_virtual_network_enumerator.go b/enumeration/remote/azurerm/azurerm_virtual_network_enumerator.go
deleted file mode 100644
index b55c8a78d..000000000
--- a/enumeration/remote/azurerm/azurerm_virtual_network_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package azurerm
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-type AzurermVirtualNetworkEnumerator struct {
- repository repository.NetworkRepository
- factory resource.ResourceFactory
-}
-
-func NewAzurermVirtualNetworkEnumerator(repo repository.NetworkRepository, factory resource.ResourceFactory) *AzurermVirtualNetworkEnumerator {
- return &AzurermVirtualNetworkEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *AzurermVirtualNetworkEnumerator) SupportedType() resource.ResourceType {
- return azurerm.AzureVirtualNetworkResourceType
-}
-
-func (e *AzurermVirtualNetworkEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.ListAllVirtualNetworks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- *res.ID,
- map[string]interface{}{
- "name": *res.Name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/azurerm/common/config.go b/enumeration/remote/azurerm/common/config.go
deleted file mode 100644
index e38ca7138..000000000
--- a/enumeration/remote/azurerm/common/config.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package common
-
-type AzureProviderConfig struct {
- SubscriptionID,
- ClientID,
- TenantID,
- ClientSecret string
-}
diff --git a/enumeration/remote/azurerm/init.go b/enumeration/remote/azurerm/init.go
deleted file mode 100644
index 8be9823d4..000000000
--- a/enumeration/remote/azurerm/init.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package azurerm
-
-import (
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-func Init(version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, factory resource.ResourceFactory, configDir string) error {
-
- provider, err := NewAzureTerraformProvider(version, progress, configDir)
- if err != nil {
- return err
- }
- err = provider.CheckCredentialsExist()
- if err != nil {
- return err
- }
- err = provider.Init()
- if err != nil {
- return err
- }
-
- providerConfig := provider.GetConfig()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- return err
- }
- clientOptions := &arm.ClientOptions{}
-
- c := cache.New(100)
-
- storageAccountRepo := repository.NewStorageRepository(cred, clientOptions, providerConfig, c)
- networkRepo := repository.NewNetworkRepository(cred, clientOptions, providerConfig, c)
- resourcesRepo := repository.NewResourcesRepository(cred, clientOptions, providerConfig, c)
- containerRegistryRepo := repository.NewContainerRegistryRepository(cred, clientOptions, providerConfig, c)
- postgresqlRepo := repository.NewPostgresqlRepository(cred, clientOptions, providerConfig, c)
- privateDNSRepo := repository.NewPrivateDNSRepository(cred, clientOptions, providerConfig, c)
- computeRepo := repository.NewComputeRepository(cred, clientOptions, providerConfig, c)
-
- providerLibrary.AddProvider(terraform.AZURE, provider)
-
- remoteLibrary.AddEnumerator(NewAzurermStorageAccountEnumerator(storageAccountRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermStorageContainerEnumerator(storageAccountRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermVirtualNetworkEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermRouteTableEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermRouteEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermResourceGroupEnumerator(resourcesRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermSubnetEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermContainerRegistryEnumerator(containerRegistryRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermFirewallsEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPostgresqlServerEnumerator(postgresqlRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPublicIPEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPostgresqlDatabaseEnumerator(postgresqlRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermNetworkSecurityGroupEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermLoadBalancerEnumerator(networkRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermLoadBalancerRuleEnumerator(networkRepo, factory))
-
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSZoneEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSARecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSAAAARecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSMXRecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSCNameRecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSPTRRecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSSRVRecordEnumerator(privateDNSRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermPrivateDNSTXTRecordEnumerator(privateDNSRepo, factory))
-
- remoteLibrary.AddEnumerator(NewAzurermImageEnumerator(computeRepo, factory))
- remoteLibrary.AddEnumerator(NewAzurermSSHPublicKeyEnumerator(computeRepo, factory))
-
- return nil
-}
diff --git a/enumeration/remote/azurerm/provider.go b/enumeration/remote/azurerm/provider.go
deleted file mode 100644
index a22ff3d16..000000000
--- a/enumeration/remote/azurerm/provider.go
+++ /dev/null
@@ -1,95 +0,0 @@
-package azurerm
-
-import (
- "context"
- "errors"
- "os"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/terraform"
- tf "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-type AzureTerraformProvider struct {
- *terraform.TerraformProvider
- name string
- version string
-}
-
-func NewAzureTerraformProvider(version string, progress enumeration.ProgressCounter, configDir string) (*AzureTerraformProvider, error) {
- if version == "" {
- version = "2.71.0"
- }
- // Just pass your version and name
- p := &AzureTerraformProvider{
- version: version,
- name: tf.AZURE,
- }
- // Use TerraformProviderInstaller to retrieve the provider if needed
- installer, err := tf.NewProviderInstaller(tf.ProviderConfig{
- Key: p.name,
- Version: version,
- ConfigDir: configDir,
- })
- if err != nil {
- return nil, err
- }
-
- tfProvider, err := terraform.NewTerraformProvider(installer, terraform.TerraformProviderConfig{
- Name: p.name,
- GetProviderConfig: func(_ string) interface{} {
- c := p.GetConfig()
- return map[string]interface{}{
- "subscription_id": c.SubscriptionID,
- "tenant_id": c.TenantID,
- "client_id": c.ClientID,
- "client_secret": c.ClientSecret,
- "skip_provider_registration": true,
- }
- },
- }, progress)
- if err != nil {
- return nil, err
- }
- p.TerraformProvider = tfProvider
- return p, err
-}
-
-func (p *AzureTerraformProvider) GetConfig() common.AzureProviderConfig {
- return common.AzureProviderConfig{
- SubscriptionID: os.Getenv("AZURE_SUBSCRIPTION_ID"),
- TenantID: os.Getenv("AZURE_TENANT_ID"),
- ClientID: os.Getenv("AZURE_CLIENT_ID"),
- ClientSecret: os.Getenv("AZURE_CLIENT_SECRET"),
- }
-}
-
-func (p *AzureTerraformProvider) Name() string {
- return p.name
-}
-
-func (p *AzureTerraformProvider) Version() string {
- return p.version
-}
-
-func (p *AzureTerraformProvider) CheckCredentialsExist() error {
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- return err
- }
-
- _, err = cred.GetToken(context.Background(), policy.TokenRequestOptions{Scopes: []string{"https://management.azure.com//.default"}})
- if err != nil {
- return errors.New("Could not find any authentication method for Azure.\n" +
- "For more information, please check the official Azure documentation: https://docs.microsoft.com/en-us/azure/developer/go/azure-sdk-authorization#use-environment-based-authentication")
- }
-
- if p.GetConfig().SubscriptionID == "" {
- return errors.New("Please provide an Azure subscription ID by setting the `AZURE_SUBSCRIPTION_ID` environment variable.")
- }
-
- return nil
-}
diff --git a/enumeration/remote/azurerm/repository/compute.go b/enumeration/remote/azurerm/repository/compute.go
deleted file mode 100644
index 414995329..000000000
--- a/enumeration/remote/azurerm/repository/compute.go
+++ /dev/null
@@ -1,110 +0,0 @@
-package repository
-
-import (
- "context"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
-)
-
-type ComputeRepository interface {
- ListAllImages() ([]*armcompute.Image, error)
- ListAllSSHPublicKeys() ([]*armcompute.SSHPublicKeyResource, error)
-}
-
-type imagesListPager interface {
- pager
- PageResponse() armcompute.ImagesListResponse
-}
-
-type imagesClient interface {
- List(options *armcompute.ImagesListOptions) imagesListPager
-}
-
-type imagesClientImpl struct {
- client *armcompute.ImagesClient
-}
-
-func (c imagesClientImpl) List(options *armcompute.ImagesListOptions) imagesListPager {
- return c.client.List(options)
-}
-
-type sshPublicKeyListPager interface {
- pager
- PageResponse() armcompute.SSHPublicKeysListBySubscriptionResponse
-}
-
-type sshPublicKeyClient interface {
- ListBySubscription(options *armcompute.SSHPublicKeysListBySubscriptionOptions) sshPublicKeyListPager
-}
-
-type sshPublicKeyClientImpl struct {
- client *armcompute.SSHPublicKeysClient
-}
-
-func (c sshPublicKeyClientImpl) ListBySubscription(options *armcompute.SSHPublicKeysListBySubscriptionOptions) sshPublicKeyListPager {
- return c.client.ListBySubscription(options)
-}
-
-type computeRepository struct {
- imagesClient imagesClient
- sshPublicKeyClient sshPublicKeyClient
- cache cache.Cache
-}
-
-func NewComputeRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *computeRepository {
- return &computeRepository{
- &imagesClientImpl{armcompute.NewImagesClient(config.SubscriptionID, cred, options)},
- &sshPublicKeyClientImpl{armcompute.NewSSHPublicKeysClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *computeRepository) ListAllImages() ([]*armcompute.Image, error) {
- cacheKey := "computeListAllImages"
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armcompute.Image), nil
- }
-
- pager := s.imagesClient.List(nil)
- results := make([]*armcompute.Image, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
- return results, nil
-}
-
-func (s *computeRepository) ListAllSSHPublicKeys() ([]*armcompute.SSHPublicKeyResource, error) {
- cacheKey := "computeListAllSSHPublicKeys"
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armcompute.SSHPublicKeyResource), nil
- }
-
- pager := s.sshPublicKeyClient.ListBySubscription(nil)
- results := make([]*armcompute.SSHPublicKeyResource, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
- return results, nil
-}
diff --git a/enumeration/remote/azurerm/repository/compute_test.go b/enumeration/remote/azurerm/repository/compute_test.go
deleted file mode 100644
index 2769be5d3..000000000
--- a/enumeration/remote/azurerm/repository/compute_test.go
+++ /dev/null
@@ -1,275 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- "github.com/pkg/errors"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_Compute_ListAllImages(t *testing.T) {
- expectedResults := []*armcompute.Image{
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/2c361f34-30fb-47ae-a227-83a5d3a26c66/resourceGroups/tfvmex-resources/providers/Microsoft.Compute/images/image1"),
- Name: to.StringPtr("image1"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/2c361f34-30fb-47ae-a227-83a5d3a26c66/resourceGroups/tfvmex-resources/providers/Microsoft.Compute/images/image2"),
- Name: to.StringPtr("image2"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/2c361f34-30fb-47ae-a227-83a5d3a26c66/resourceGroups/tfvmex-resources/providers/Microsoft.Compute/images/image3"),
- Name: to.StringPtr("image3"),
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockImagesListPager, *cache.MockCache)
- expected []*armcompute.Image
- wantErr string
- }{
- {
- name: "should return images",
- mocks: func(mockPager *mockImagesListPager, mockCache *cache.MockCache) {
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcompute.ImagesListResponse{
- ImagesListResult: armcompute.ImagesListResult{
- ImageListResult: armcompute.ImageListResult{
- Value: expectedResults[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armcompute.ImagesListResponse{
- ImagesListResult: armcompute.ImagesListResult{
- ImageListResult: armcompute.ImageListResult{
- Value: expectedResults[2:],
- },
- },
- }).Times(1)
-
- mockCache.On("Get", "computeListAllImages").Return(nil).Times(1)
- mockCache.On("Put", "computeListAllImages", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return images",
- mocks: func(mockPager *mockImagesListPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "computeListAllImages").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(mockPager *mockImagesListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armcompute.ImagesListResponse{
- ImagesListResult: armcompute.ImagesListResult{
- ImageListResult: armcompute.ImageListResult{
- Value: []*armcompute.Image{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "computeListAllImages").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- {
- name: "should return remote error after fetching all pages",
- mocks: func(mockPager *mockImagesListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcompute.ImagesListResponse{
- ImagesListResult: armcompute.ImagesListResult{
- ImageListResult: armcompute.ImageListResult{
- Value: []*armcompute.Image{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(nil).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "computeListAllImages").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockImagesClient{}
- mockPager := &mockImagesListPager{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("List", mock.Anything).Maybe().Return(mockPager)
-
- tt.mocks(mockPager, mockCache)
-
- s := &computeRepository{
- imagesClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllImages()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
-
-func Test_Compute_ListAllSSHPublicKeys(t *testing.T) {
- expectedResults := []*armcompute.SSHPublicKeyResource{
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/key1"),
- Name: to.StringPtr("key1"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/key2"),
- Name: to.StringPtr("key2"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/key3"),
- Name: to.StringPtr("key3"),
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockSshPublicKeyListPager, *cache.MockCache)
- expected []*armcompute.SSHPublicKeyResource
- wantErr string
- }{
- {
- name: "should return SSH public keys",
- mocks: func(mockPager *mockSshPublicKeyListPager, mockCache *cache.MockCache) {
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcompute.SSHPublicKeysListBySubscriptionResponse{
- SSHPublicKeysListBySubscriptionResult: armcompute.SSHPublicKeysListBySubscriptionResult{
- SSHPublicKeysGroupListResult: armcompute.SSHPublicKeysGroupListResult{
- Value: expectedResults[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armcompute.SSHPublicKeysListBySubscriptionResponse{
- SSHPublicKeysListBySubscriptionResult: armcompute.SSHPublicKeysListBySubscriptionResult{
- SSHPublicKeysGroupListResult: armcompute.SSHPublicKeysGroupListResult{
- Value: expectedResults[2:],
- },
- },
- }).Times(1)
-
- mockCache.On("Get", "computeListAllSSHPublicKeys").Return(nil).Times(1)
- mockCache.On("Put", "computeListAllSSHPublicKeys", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return SSH public keys",
- mocks: func(mockPager *mockSshPublicKeyListPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "computeListAllSSHPublicKeys").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(mockPager *mockSshPublicKeyListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armcompute.SSHPublicKeysListBySubscriptionResponse{
- SSHPublicKeysListBySubscriptionResult: armcompute.SSHPublicKeysListBySubscriptionResult{
- SSHPublicKeysGroupListResult: armcompute.SSHPublicKeysGroupListResult{
- Value: []*armcompute.SSHPublicKeyResource{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "computeListAllSSHPublicKeys").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- {
- name: "should return remote error after fetching all pages",
- mocks: func(mockPager *mockSshPublicKeyListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcompute.SSHPublicKeysListBySubscriptionResponse{
- SSHPublicKeysListBySubscriptionResult: armcompute.SSHPublicKeysListBySubscriptionResult{
- SSHPublicKeysGroupListResult: armcompute.SSHPublicKeysGroupListResult{
- Value: []*armcompute.SSHPublicKeyResource{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(nil).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "computeListAllSSHPublicKeys").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockSshPublicKeyClient{}
- mockPager := &mockSshPublicKeyListPager{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("ListBySubscription", mock.Anything).Maybe().Return(mockPager)
-
- tt.mocks(mockPager, mockCache)
-
- s := &computeRepository{
- sshPublicKeyClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllSSHPublicKeys()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
diff --git a/enumeration/remote/azurerm/repository/containerregistry.go b/enumeration/remote/azurerm/repository/containerregistry.go
deleted file mode 100644
index 99245a9b5..000000000
--- a/enumeration/remote/azurerm/repository/containerregistry.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package repository
-
-import (
- "context"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
-)
-
-type ContainerRegistryRepository interface {
- ListAllContainerRegistries() ([]*armcontainerregistry.Registry, error)
-}
-
-type registryClient interface {
- List(options *armcontainerregistry.RegistriesListOptions) registryListAllPager
-}
-
-type registryListAllPager interface {
- pager
- PageResponse() armcontainerregistry.RegistriesListResponse
-}
-
-type registryClientImpl struct {
- client *armcontainerregistry.RegistriesClient
-}
-
-func (c registryClientImpl) List(options *armcontainerregistry.RegistriesListOptions) registryListAllPager {
- return c.client.List(options)
-}
-
-type containerRegistryRepository struct {
- registryClient registryClient
- cache cache.Cache
-}
-
-func NewContainerRegistryRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *containerRegistryRepository {
- return &containerRegistryRepository{
- ®istryClientImpl{client: armcontainerregistry.NewRegistriesClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *containerRegistryRepository) ListAllContainerRegistries() ([]*armcontainerregistry.Registry, error) {
-
- if v := s.cache.Get("ListAllContainerRegistries"); v != nil {
- return v.([]*armcontainerregistry.Registry), nil
- }
-
- pager := s.registryClient.List(nil)
- results := make([]*armcontainerregistry.Registry, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put("ListAllContainerRegistries", results)
-
- return results, nil
-}
diff --git a/enumeration/remote/azurerm/repository/containerregistry_test.go b/enumeration/remote/azurerm/repository/containerregistry_test.go
deleted file mode 100644
index a204b2948..000000000
--- a/enumeration/remote/azurerm/repository/containerregistry_test.go
+++ /dev/null
@@ -1,144 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
- "github.com/pkg/errors"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_Resources_ListAllContainerRegistries(t *testing.T) {
- expectedResults := []*armcontainerregistry.Registry{
- {
- Resource: armcontainerregistry.Resource{
- ID: to.StringPtr("/subscriptions/2c361f34-30fb-47ae-a227-83a5d3a26c66/resourceGroups/my-group/providers/Microsoft.ContainerRegistry/registries/containerRegistry1"),
- Name: to.StringPtr("containerRegistry1"),
- },
- },
- {
- Resource: armcontainerregistry.Resource{
- ID: to.StringPtr("/subscriptions/2c361f34-30fb-47ae-a227-83a5d3a26c66/resourceGroups/my-group/providers/Microsoft.ContainerRegistry/registries/containerRegistry1"),
- Name: to.StringPtr("containerRegistry2"),
- },
- },
- {
- Resource: armcontainerregistry.Resource{
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/-/resource-3"),
- Name: to.StringPtr("resource-3"),
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockRegistryListAllPager, *cache.MockCache)
- expected []*armcontainerregistry.Registry
- wantErr string
- }{
- {
- name: "should return container registries",
- mocks: func(mockPager *mockRegistryListAllPager, mockCache *cache.MockCache) {
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcontainerregistry.RegistriesListResponse{
- RegistriesListResult: armcontainerregistry.RegistriesListResult{
- RegistryListResult: armcontainerregistry.RegistryListResult{
- Value: expectedResults[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armcontainerregistry.RegistriesListResponse{
- RegistriesListResult: armcontainerregistry.RegistriesListResult{
- RegistryListResult: armcontainerregistry.RegistryListResult{
- Value: expectedResults[2:],
- },
- },
- }).Times(1)
-
- mockCache.On("Get", "ListAllContainerRegistries").Return(nil).Times(1)
- mockCache.On("Put", "ListAllContainerRegistries", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return container registries",
- mocks: func(mockPager *mockRegistryListAllPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "ListAllContainerRegistries").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(mockPager *mockRegistryListAllPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armcontainerregistry.RegistriesListResponse{
- RegistriesListResult: armcontainerregistry.RegistriesListResult{
- RegistryListResult: armcontainerregistry.RegistryListResult{
- Value: []*armcontainerregistry.Registry{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "ListAllContainerRegistries").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- {
- name: "should return remote error after fetching all pages",
- mocks: func(mockPager *mockRegistryListAllPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armcontainerregistry.RegistriesListResponse{
- RegistriesListResult: armcontainerregistry.RegistriesListResult{
- RegistryListResult: armcontainerregistry.RegistryListResult{
- Value: []*armcontainerregistry.Registry{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(nil).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "ListAllContainerRegistries").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockRegistryClient{}
- mockPager := &mockRegistryListAllPager{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("List", mock.Anything).Maybe().Return(mockPager)
-
- tt.mocks(mockPager, mockCache)
-
- s := &containerRegistryRepository{
- registryClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllContainerRegistries()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
diff --git a/enumeration/remote/azurerm/repository/mock_ComputeRepository.go b/enumeration/remote/azurerm/repository/mock_ComputeRepository.go
deleted file mode 100644
index fa383406e..000000000
--- a/enumeration/remote/azurerm/repository/mock_ComputeRepository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockComputeRepository is an autogenerated mock type for the ComputeRepository type
-type MockComputeRepository struct {
- mock.Mock
-}
-
-// ListAllImages provides a mock function with given fields:
-func (_m *MockComputeRepository) ListAllImages() ([]*armcompute.Image, error) {
- ret := _m.Called()
-
- var r0 []*armcompute.Image
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armcompute.Image, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armcompute.Image); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armcompute.Image)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSSHPublicKeys provides a mock function with given fields:
-func (_m *MockComputeRepository) ListAllSSHPublicKeys() ([]*armcompute.SSHPublicKeyResource, error) {
- ret := _m.Called()
-
- var r0 []*armcompute.SSHPublicKeyResource
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armcompute.SSHPublicKeyResource, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armcompute.SSHPublicKeyResource); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armcompute.SSHPublicKeyResource)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockComputeRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockComputeRepository creates a new instance of MockComputeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockComputeRepository(t mockConstructorTestingTNewMockComputeRepository) *MockComputeRepository {
- mock := &MockComputeRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_ContainerRegistryRepository.go b/enumeration/remote/azurerm/repository/mock_ContainerRegistryRepository.go
deleted file mode 100644
index c7c5b7268..000000000
--- a/enumeration/remote/azurerm/repository/mock_ContainerRegistryRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armcontainerregistry "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockContainerRegistryRepository is an autogenerated mock type for the ContainerRegistryRepository type
-type MockContainerRegistryRepository struct {
- mock.Mock
-}
-
-// ListAllContainerRegistries provides a mock function with given fields:
-func (_m *MockContainerRegistryRepository) ListAllContainerRegistries() ([]*armcontainerregistry.Registry, error) {
- ret := _m.Called()
-
- var r0 []*armcontainerregistry.Registry
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armcontainerregistry.Registry, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armcontainerregistry.Registry); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armcontainerregistry.Registry)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockContainerRegistryRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockContainerRegistryRepository creates a new instance of MockContainerRegistryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockContainerRegistryRepository(t mockConstructorTestingTNewMockContainerRegistryRepository) *MockContainerRegistryRepository {
- mock := &MockContainerRegistryRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_NetworkRepository.go b/enumeration/remote/azurerm/repository/mock_NetworkRepository.go
deleted file mode 100644
index f2e80626b..000000000
--- a/enumeration/remote/azurerm/repository/mock_NetworkRepository.go
+++ /dev/null
@@ -1,236 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockNetworkRepository is an autogenerated mock type for the NetworkRepository type
-type MockNetworkRepository struct {
- mock.Mock
-}
-
-// ListAllFirewalls provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllFirewalls() ([]*armnetwork.AzureFirewall, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.AzureFirewall
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.AzureFirewall, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.AzureFirewall); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.AzureFirewall)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllLoadBalancers provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.LoadBalancer
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.LoadBalancer, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.LoadBalancer); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.LoadBalancer)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllPublicIPAddresses provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.PublicIPAddress
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.PublicIPAddress, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.PublicIPAddress); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.PublicIPAddress)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllRouteTables provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllRouteTables() ([]*armnetwork.RouteTable, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.RouteTable
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.RouteTable, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.RouteTable); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.RouteTable)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSecurityGroups provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.NetworkSecurityGroup
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.NetworkSecurityGroup, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.NetworkSecurityGroup); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.NetworkSecurityGroup)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSubnets provides a mock function with given fields: virtualNetwork
-func (_m *MockNetworkRepository) ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error) {
- ret := _m.Called(virtualNetwork)
-
- var r0 []*armnetwork.Subnet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error)); ok {
- return rf(virtualNetwork)
- }
- if rf, ok := ret.Get(0).(func(*armnetwork.VirtualNetwork) []*armnetwork.Subnet); ok {
- r0 = rf(virtualNetwork)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.Subnet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armnetwork.VirtualNetwork) error); ok {
- r1 = rf(virtualNetwork)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllVirtualNetworks provides a mock function with given fields:
-func (_m *MockNetworkRepository) ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error) {
- ret := _m.Called()
-
- var r0 []*armnetwork.VirtualNetwork
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armnetwork.VirtualNetwork, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armnetwork.VirtualNetwork); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.VirtualNetwork)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListLoadBalancerRules provides a mock function with given fields: _a0
-func (_m *MockNetworkRepository) ListLoadBalancerRules(_a0 *armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error) {
- ret := _m.Called(_a0)
-
- var r0 []*armnetwork.LoadBalancingRule
- var r1 error
- if rf, ok := ret.Get(0).(func(*armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*armnetwork.LoadBalancer) []*armnetwork.LoadBalancingRule); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armnetwork.LoadBalancingRule)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armnetwork.LoadBalancer) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockNetworkRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockNetworkRepository creates a new instance of MockNetworkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockNetworkRepository(t mockConstructorTestingTNewMockNetworkRepository) *MockNetworkRepository {
- mock := &MockNetworkRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_PostgresqlRespository.go b/enumeration/remote/azurerm/repository/mock_PostgresqlRespository.go
deleted file mode 100644
index adadcbdb9..000000000
--- a/enumeration/remote/azurerm/repository/mock_PostgresqlRespository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armpostgresql "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockPostgresqlRespository is an autogenerated mock type for the PostgresqlRespository type
-type MockPostgresqlRespository struct {
- mock.Mock
-}
-
-// ListAllDatabasesByServer provides a mock function with given fields: server
-func (_m *MockPostgresqlRespository) ListAllDatabasesByServer(server *armpostgresql.Server) ([]*armpostgresql.Database, error) {
- ret := _m.Called(server)
-
- var r0 []*armpostgresql.Database
- var r1 error
- if rf, ok := ret.Get(0).(func(*armpostgresql.Server) ([]*armpostgresql.Database, error)); ok {
- return rf(server)
- }
- if rf, ok := ret.Get(0).(func(*armpostgresql.Server) []*armpostgresql.Database); ok {
- r0 = rf(server)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armpostgresql.Database)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armpostgresql.Server) error); ok {
- r1 = rf(server)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllServers provides a mock function with given fields:
-func (_m *MockPostgresqlRespository) ListAllServers() ([]*armpostgresql.Server, error) {
- ret := _m.Called()
-
- var r0 []*armpostgresql.Server
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armpostgresql.Server, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armpostgresql.Server); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armpostgresql.Server)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockPostgresqlRespository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockPostgresqlRespository creates a new instance of MockPostgresqlRespository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockPostgresqlRespository(t mockConstructorTestingTNewMockPostgresqlRespository) *MockPostgresqlRespository {
- mock := &MockPostgresqlRespository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_PrivateDNSRepository.go b/enumeration/remote/azurerm/repository/mock_PrivateDNSRepository.go
deleted file mode 100644
index 4b0bcc2ce..000000000
--- a/enumeration/remote/azurerm/repository/mock_PrivateDNSRepository.go
+++ /dev/null
@@ -1,236 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armprivatedns "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockPrivateDNSRepository is an autogenerated mock type for the PrivateDNSRepository type
-type MockPrivateDNSRepository struct {
- mock.Mock
-}
-
-// ListAllAAAARecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllARecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllCNAMERecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllMXRecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllPTRRecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllPrivateZones provides a mock function with given fields:
-func (_m *MockPrivateDNSRepository) ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error) {
- ret := _m.Called()
-
- var r0 []*armprivatedns.PrivateZone
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armprivatedns.PrivateZone, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armprivatedns.PrivateZone); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.PrivateZone)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllSRVRecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllTXTRecords provides a mock function with given fields: zone
-func (_m *MockPrivateDNSRepository) ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- ret := _m.Called(zone)
-
- var r0 []*armprivatedns.RecordSet
- var r1 error
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)); ok {
- return rf(zone)
- }
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZone) []*armprivatedns.RecordSet); ok {
- r0 = rf(zone)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armprivatedns.RecordSet)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armprivatedns.PrivateZone) error); ok {
- r1 = rf(zone)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockPrivateDNSRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockPrivateDNSRepository creates a new instance of MockPrivateDNSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockPrivateDNSRepository(t mockConstructorTestingTNewMockPrivateDNSRepository) *MockPrivateDNSRepository {
- mock := &MockPrivateDNSRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_ResourcesRepository.go b/enumeration/remote/azurerm/repository/mock_ResourcesRepository.go
deleted file mode 100644
index 65ee7b464..000000000
--- a/enumeration/remote/azurerm/repository/mock_ResourcesRepository.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armresources "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockResourcesRepository is an autogenerated mock type for the ResourcesRepository type
-type MockResourcesRepository struct {
- mock.Mock
-}
-
-// ListAllResourceGroups provides a mock function with given fields:
-func (_m *MockResourcesRepository) ListAllResourceGroups() ([]*armresources.ResourceGroup, error) {
- ret := _m.Called()
-
- var r0 []*armresources.ResourceGroup
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armresources.ResourceGroup, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armresources.ResourceGroup); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armresources.ResourceGroup)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockResourcesRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockResourcesRepository creates a new instance of MockResourcesRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockResourcesRepository(t mockConstructorTestingTNewMockResourcesRepository) *MockResourcesRepository {
- mock := &MockResourcesRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_StorageRespository.go b/enumeration/remote/azurerm/repository/mock_StorageRespository.go
deleted file mode 100644
index d16a201e6..000000000
--- a/enumeration/remote/azurerm/repository/mock_StorageRespository.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armstorage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockStorageRespository is an autogenerated mock type for the StorageRespository type
-type MockStorageRespository struct {
- mock.Mock
-}
-
-// ListAllStorageAccount provides a mock function with given fields:
-func (_m *MockStorageRespository) ListAllStorageAccount() ([]*armstorage.StorageAccount, error) {
- ret := _m.Called()
-
- var r0 []*armstorage.StorageAccount
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*armstorage.StorageAccount, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*armstorage.StorageAccount); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*armstorage.StorageAccount)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllStorageContainer provides a mock function with given fields: account
-func (_m *MockStorageRespository) ListAllStorageContainer(account *armstorage.StorageAccount) ([]string, error) {
- ret := _m.Called(account)
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func(*armstorage.StorageAccount) ([]string, error)); ok {
- return rf(account)
- }
- if rf, ok := ret.Get(0).(func(*armstorage.StorageAccount) []string); ok {
- r0 = rf(account)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*armstorage.StorageAccount) error); ok {
- r1 = rf(account)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockStorageRespository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockStorageRespository creates a new instance of MockStorageRespository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockStorageRespository(t mockConstructorTestingTNewMockStorageRespository) *MockStorageRespository {
- mock := &MockStorageRespository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_blobContainerClient.go b/enumeration/remote/azurerm/repository/mock_blobContainerClient.go
deleted file mode 100644
index 0f28307a5..000000000
--- a/enumeration/remote/azurerm/repository/mock_blobContainerClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armstorage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockBlobContainerClient is an autogenerated mock type for the blobContainerClient type
-type mockBlobContainerClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: resourceGroupName, accountName, options
-func (_m *mockBlobContainerClient) List(resourceGroupName string, accountName string, options *armstorage.BlobContainersListOptions) blobContainerListPager {
- ret := _m.Called(resourceGroupName, accountName, options)
-
- var r0 blobContainerListPager
- if rf, ok := ret.Get(0).(func(string, string, *armstorage.BlobContainersListOptions) blobContainerListPager); ok {
- r0 = rf(resourceGroupName, accountName, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(blobContainerListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockBlobContainerClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockBlobContainerClient creates a new instance of mockBlobContainerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockBlobContainerClient(t mockConstructorTestingTnewMockBlobContainerClient) *mockBlobContainerClient {
- mock := &mockBlobContainerClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_blobContainerListPager.go b/enumeration/remote/azurerm/repository/mock_blobContainerListPager.go
deleted file mode 100644
index d894e9131..000000000
--- a/enumeration/remote/azurerm/repository/mock_blobContainerListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armstorage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockBlobContainerListPager is an autogenerated mock type for the blobContainerListPager type
-type mockBlobContainerListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockBlobContainerListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockBlobContainerListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockBlobContainerListPager) PageResponse() armstorage.BlobContainersListResponse {
- ret := _m.Called()
-
- var r0 armstorage.BlobContainersListResponse
- if rf, ok := ret.Get(0).(func() armstorage.BlobContainersListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armstorage.BlobContainersListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockBlobContainerListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockBlobContainerListPager creates a new instance of mockBlobContainerListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockBlobContainerListPager(t mockConstructorTestingTnewMockBlobContainerListPager) *mockBlobContainerListPager {
- mock := &mockBlobContainerListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_firewallsClient.go b/enumeration/remote/azurerm/repository/mock_firewallsClient.go
deleted file mode 100644
index 336de87f3..000000000
--- a/enumeration/remote/azurerm/repository/mock_firewallsClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockFirewallsClient is an autogenerated mock type for the firewallsClient type
-type mockFirewallsClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockFirewallsClient) ListAll(options *armnetwork.AzureFirewallsListAllOptions) firewallsListAllPager {
- ret := _m.Called(options)
-
- var r0 firewallsListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.AzureFirewallsListAllOptions) firewallsListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(firewallsListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockFirewallsClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockFirewallsClient creates a new instance of mockFirewallsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockFirewallsClient(t mockConstructorTestingTnewMockFirewallsClient) *mockFirewallsClient {
- mock := &mockFirewallsClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_firewallsListAllPager.go b/enumeration/remote/azurerm/repository/mock_firewallsListAllPager.go
deleted file mode 100644
index a64b7b24f..000000000
--- a/enumeration/remote/azurerm/repository/mock_firewallsListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockFirewallsListAllPager is an autogenerated mock type for the firewallsListAllPager type
-type mockFirewallsListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockFirewallsListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockFirewallsListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockFirewallsListAllPager) PageResponse() armnetwork.AzureFirewallsListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.AzureFirewallsListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.AzureFirewallsListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.AzureFirewallsListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockFirewallsListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockFirewallsListAllPager creates a new instance of mockFirewallsListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockFirewallsListAllPager(t mockConstructorTestingTnewMockFirewallsListAllPager) *mockFirewallsListAllPager {
- mock := &mockFirewallsListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_imagesClient.go b/enumeration/remote/azurerm/repository/mock_imagesClient.go
deleted file mode 100644
index 1138070f0..000000000
--- a/enumeration/remote/azurerm/repository/mock_imagesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockImagesClient is an autogenerated mock type for the imagesClient type
-type mockImagesClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: options
-func (_m *mockImagesClient) List(options *armcompute.ImagesListOptions) imagesListPager {
- ret := _m.Called(options)
-
- var r0 imagesListPager
- if rf, ok := ret.Get(0).(func(*armcompute.ImagesListOptions) imagesListPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(imagesListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockImagesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockImagesClient creates a new instance of mockImagesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockImagesClient(t mockConstructorTestingTnewMockImagesClient) *mockImagesClient {
- mock := &mockImagesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_imagesListPager.go b/enumeration/remote/azurerm/repository/mock_imagesListPager.go
deleted file mode 100644
index f269243f3..000000000
--- a/enumeration/remote/azurerm/repository/mock_imagesListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockImagesListPager is an autogenerated mock type for the imagesListPager type
-type mockImagesListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockImagesListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockImagesListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockImagesListPager) PageResponse() armcompute.ImagesListResponse {
- ret := _m.Called()
-
- var r0 armcompute.ImagesListResponse
- if rf, ok := ret.Get(0).(func() armcompute.ImagesListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armcompute.ImagesListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockImagesListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockImagesListPager creates a new instance of mockImagesListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockImagesListPager(t mockConstructorTestingTnewMockImagesListPager) *mockImagesListPager {
- mock := &mockImagesListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_loadBalancerRulesClient.go b/enumeration/remote/azurerm/repository/mock_loadBalancerRulesClient.go
deleted file mode 100644
index 85da56f1f..000000000
--- a/enumeration/remote/azurerm/repository/mock_loadBalancerRulesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockLoadBalancerRulesClient is an autogenerated mock type for the loadBalancerRulesClient type
-type mockLoadBalancerRulesClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: _a0, _a1, _a2
-func (_m *mockLoadBalancerRulesClient) List(_a0 string, _a1 string, _a2 *armnetwork.LoadBalancerLoadBalancingRulesListOptions) loadBalancerRulesListAllPager {
- ret := _m.Called(_a0, _a1, _a2)
-
- var r0 loadBalancerRulesListAllPager
- if rf, ok := ret.Get(0).(func(string, string, *armnetwork.LoadBalancerLoadBalancingRulesListOptions) loadBalancerRulesListAllPager); ok {
- r0 = rf(_a0, _a1, _a2)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(loadBalancerRulesListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockLoadBalancerRulesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockLoadBalancerRulesClient creates a new instance of mockLoadBalancerRulesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockLoadBalancerRulesClient(t mockConstructorTestingTnewMockLoadBalancerRulesClient) *mockLoadBalancerRulesClient {
- mock := &mockLoadBalancerRulesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_loadBalancerRulesListAllPager.go b/enumeration/remote/azurerm/repository/mock_loadBalancerRulesListAllPager.go
deleted file mode 100644
index 42d632fcf..000000000
--- a/enumeration/remote/azurerm/repository/mock_loadBalancerRulesListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockLoadBalancerRulesListAllPager is an autogenerated mock type for the loadBalancerRulesListAllPager type
-type mockLoadBalancerRulesListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockLoadBalancerRulesListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockLoadBalancerRulesListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockLoadBalancerRulesListAllPager) PageResponse() armnetwork.LoadBalancerLoadBalancingRulesListResponse {
- ret := _m.Called()
-
- var r0 armnetwork.LoadBalancerLoadBalancingRulesListResponse
- if rf, ok := ret.Get(0).(func() armnetwork.LoadBalancerLoadBalancingRulesListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.LoadBalancerLoadBalancingRulesListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockLoadBalancerRulesListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockLoadBalancerRulesListAllPager creates a new instance of mockLoadBalancerRulesListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockLoadBalancerRulesListAllPager(t mockConstructorTestingTnewMockLoadBalancerRulesListAllPager) *mockLoadBalancerRulesListAllPager {
- mock := &mockLoadBalancerRulesListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_loadBalancersClient.go b/enumeration/remote/azurerm/repository/mock_loadBalancersClient.go
deleted file mode 100644
index e5108fa3b..000000000
--- a/enumeration/remote/azurerm/repository/mock_loadBalancersClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockLoadBalancersClient is an autogenerated mock type for the loadBalancersClient type
-type mockLoadBalancersClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockLoadBalancersClient) ListAll(options *armnetwork.LoadBalancersListAllOptions) loadBalancersListAllPager {
- ret := _m.Called(options)
-
- var r0 loadBalancersListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.LoadBalancersListAllOptions) loadBalancersListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(loadBalancersListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockLoadBalancersClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockLoadBalancersClient creates a new instance of mockLoadBalancersClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockLoadBalancersClient(t mockConstructorTestingTnewMockLoadBalancersClient) *mockLoadBalancersClient {
- mock := &mockLoadBalancersClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_loadBalancersListAllPager.go b/enumeration/remote/azurerm/repository/mock_loadBalancersListAllPager.go
deleted file mode 100644
index 339df9dd8..000000000
--- a/enumeration/remote/azurerm/repository/mock_loadBalancersListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockLoadBalancersListAllPager is an autogenerated mock type for the loadBalancersListAllPager type
-type mockLoadBalancersListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockLoadBalancersListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockLoadBalancersListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockLoadBalancersListAllPager) PageResponse() armnetwork.LoadBalancersListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.LoadBalancersListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.LoadBalancersListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.LoadBalancersListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockLoadBalancersListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockLoadBalancersListAllPager creates a new instance of mockLoadBalancersListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockLoadBalancersListAllPager(t mockConstructorTestingTnewMockLoadBalancersListAllPager) *mockLoadBalancersListAllPager {
- mock := &mockLoadBalancersListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsClient.go b/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsClient.go
deleted file mode 100644
index d6975039c..000000000
--- a/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockNetworkSecurityGroupsClient is an autogenerated mock type for the networkSecurityGroupsClient type
-type mockNetworkSecurityGroupsClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockNetworkSecurityGroupsClient) ListAll(options *armnetwork.NetworkSecurityGroupsListAllOptions) networkSecurityGroupsListAllPager {
- ret := _m.Called(options)
-
- var r0 networkSecurityGroupsListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.NetworkSecurityGroupsListAllOptions) networkSecurityGroupsListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(networkSecurityGroupsListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockNetworkSecurityGroupsClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockNetworkSecurityGroupsClient creates a new instance of mockNetworkSecurityGroupsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockNetworkSecurityGroupsClient(t mockConstructorTestingTnewMockNetworkSecurityGroupsClient) *mockNetworkSecurityGroupsClient {
- mock := &mockNetworkSecurityGroupsClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsListAllPager.go b/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsListAllPager.go
deleted file mode 100644
index abf4c76b1..000000000
--- a/enumeration/remote/azurerm/repository/mock_networkSecurityGroupsListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockNetworkSecurityGroupsListAllPager is an autogenerated mock type for the networkSecurityGroupsListAllPager type
-type mockNetworkSecurityGroupsListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockNetworkSecurityGroupsListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockNetworkSecurityGroupsListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockNetworkSecurityGroupsListAllPager) PageResponse() armnetwork.NetworkSecurityGroupsListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.NetworkSecurityGroupsListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.NetworkSecurityGroupsListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.NetworkSecurityGroupsListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockNetworkSecurityGroupsListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockNetworkSecurityGroupsListAllPager creates a new instance of mockNetworkSecurityGroupsListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockNetworkSecurityGroupsListAllPager(t mockConstructorTestingTnewMockNetworkSecurityGroupsListAllPager) *mockNetworkSecurityGroupsListAllPager {
- mock := &mockNetworkSecurityGroupsListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_postgresqlDatabaseClient.go b/enumeration/remote/azurerm/repository/mock_postgresqlDatabaseClient.go
deleted file mode 100644
index 3d21fb635..000000000
--- a/enumeration/remote/azurerm/repository/mock_postgresqlDatabaseClient.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armpostgresql "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPostgresqlDatabaseClient is an autogenerated mock type for the postgresqlDatabaseClient type
-type mockPostgresqlDatabaseClient struct {
- mock.Mock
-}
-
-// ListByServer provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *mockPostgresqlDatabaseClient) ListByServer(_a0 context.Context, _a1 string, _a2 string, _a3 *armpostgresql.DatabasesListByServerOptions) (armpostgresql.DatabasesListByServerResponse, error) {
- ret := _m.Called(_a0, _a1, _a2, _a3)
-
- var r0 armpostgresql.DatabasesListByServerResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, string, string, *armpostgresql.DatabasesListByServerOptions) (armpostgresql.DatabasesListByServerResponse, error)); ok {
- return rf(_a0, _a1, _a2, _a3)
- }
- if rf, ok := ret.Get(0).(func(context.Context, string, string, *armpostgresql.DatabasesListByServerOptions) armpostgresql.DatabasesListByServerResponse); ok {
- r0 = rf(_a0, _a1, _a2, _a3)
- } else {
- r0 = ret.Get(0).(armpostgresql.DatabasesListByServerResponse)
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, string, string, *armpostgresql.DatabasesListByServerOptions) error); ok {
- r1 = rf(_a0, _a1, _a2, _a3)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTnewMockPostgresqlDatabaseClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPostgresqlDatabaseClient creates a new instance of mockPostgresqlDatabaseClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPostgresqlDatabaseClient(t mockConstructorTestingTnewMockPostgresqlDatabaseClient) *mockPostgresqlDatabaseClient {
- mock := &mockPostgresqlDatabaseClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_postgresqlServersClient.go b/enumeration/remote/azurerm/repository/mock_postgresqlServersClient.go
deleted file mode 100644
index 19c810098..000000000
--- a/enumeration/remote/azurerm/repository/mock_postgresqlServersClient.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armpostgresql "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPostgresqlServersClient is an autogenerated mock type for the postgresqlServersClient type
-type mockPostgresqlServersClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: _a0, _a1
-func (_m *mockPostgresqlServersClient) List(_a0 context.Context, _a1 *armpostgresql.ServersListOptions) (armpostgresql.ServersListResponse, error) {
- ret := _m.Called(_a0, _a1)
-
- var r0 armpostgresql.ServersListResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *armpostgresql.ServersListOptions) (armpostgresql.ServersListResponse, error)); ok {
- return rf(_a0, _a1)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *armpostgresql.ServersListOptions) armpostgresql.ServersListResponse); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Get(0).(armpostgresql.ServersListResponse)
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *armpostgresql.ServersListOptions) error); ok {
- r1 = rf(_a0, _a1)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTnewMockPostgresqlServersClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPostgresqlServersClient creates a new instance of mockPostgresqlServersClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPostgresqlServersClient(t mockConstructorTestingTnewMockPostgresqlServersClient) *mockPostgresqlServersClient {
- mock := &mockPostgresqlServersClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_privateDNSRecordSetListPager.go b/enumeration/remote/azurerm/repository/mock_privateDNSRecordSetListPager.go
deleted file mode 100644
index 608eee345..000000000
--- a/enumeration/remote/azurerm/repository/mock_privateDNSRecordSetListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armprivatedns "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPrivateDNSRecordSetListPager is an autogenerated mock type for the privateDNSRecordSetListPager type
-type mockPrivateDNSRecordSetListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockPrivateDNSRecordSetListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockPrivateDNSRecordSetListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockPrivateDNSRecordSetListPager) PageResponse() armprivatedns.RecordSetsListResponse {
- ret := _m.Called()
-
- var r0 armprivatedns.RecordSetsListResponse
- if rf, ok := ret.Get(0).(func() armprivatedns.RecordSetsListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armprivatedns.RecordSetsListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPrivateDNSRecordSetListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPrivateDNSRecordSetListPager creates a new instance of mockPrivateDNSRecordSetListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPrivateDNSRecordSetListPager(t mockConstructorTestingTnewMockPrivateDNSRecordSetListPager) *mockPrivateDNSRecordSetListPager {
- mock := &mockPrivateDNSRecordSetListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_privateDNSZoneListPager.go b/enumeration/remote/azurerm/repository/mock_privateDNSZoneListPager.go
deleted file mode 100644
index 2b2556b19..000000000
--- a/enumeration/remote/azurerm/repository/mock_privateDNSZoneListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armprivatedns "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPrivateDNSZoneListPager is an autogenerated mock type for the privateDNSZoneListPager type
-type mockPrivateDNSZoneListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockPrivateDNSZoneListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockPrivateDNSZoneListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockPrivateDNSZoneListPager) PageResponse() armprivatedns.PrivateZonesListResponse {
- ret := _m.Called()
-
- var r0 armprivatedns.PrivateZonesListResponse
- if rf, ok := ret.Get(0).(func() armprivatedns.PrivateZonesListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armprivatedns.PrivateZonesListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPrivateDNSZoneListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPrivateDNSZoneListPager creates a new instance of mockPrivateDNSZoneListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPrivateDNSZoneListPager(t mockConstructorTestingTnewMockPrivateDNSZoneListPager) *mockPrivateDNSZoneListPager {
- mock := &mockPrivateDNSZoneListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_privateRecordSetClient.go b/enumeration/remote/azurerm/repository/mock_privateRecordSetClient.go
deleted file mode 100644
index 9855aa9ff..000000000
--- a/enumeration/remote/azurerm/repository/mock_privateRecordSetClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armprivatedns "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPrivateRecordSetClient is an autogenerated mock type for the privateRecordSetClient type
-type mockPrivateRecordSetClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: resourceGroupName, privateZoneName, options
-func (_m *mockPrivateRecordSetClient) List(resourceGroupName string, privateZoneName string, options *armprivatedns.RecordSetsListOptions) privateDNSRecordSetListPager {
- ret := _m.Called(resourceGroupName, privateZoneName, options)
-
- var r0 privateDNSRecordSetListPager
- if rf, ok := ret.Get(0).(func(string, string, *armprivatedns.RecordSetsListOptions) privateDNSRecordSetListPager); ok {
- r0 = rf(resourceGroupName, privateZoneName, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(privateDNSRecordSetListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPrivateRecordSetClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPrivateRecordSetClient creates a new instance of mockPrivateRecordSetClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPrivateRecordSetClient(t mockConstructorTestingTnewMockPrivateRecordSetClient) *mockPrivateRecordSetClient {
- mock := &mockPrivateRecordSetClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_privateZonesClient.go b/enumeration/remote/azurerm/repository/mock_privateZonesClient.go
deleted file mode 100644
index 0d2bb3fee..000000000
--- a/enumeration/remote/azurerm/repository/mock_privateZonesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armprivatedns "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPrivateZonesClient is an autogenerated mock type for the privateZonesClient type
-type mockPrivateZonesClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: options
-func (_m *mockPrivateZonesClient) List(options *armprivatedns.PrivateZonesListOptions) privateDNSZoneListPager {
- ret := _m.Called(options)
-
- var r0 privateDNSZoneListPager
- if rf, ok := ret.Get(0).(func(*armprivatedns.PrivateZonesListOptions) privateDNSZoneListPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(privateDNSZoneListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPrivateZonesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPrivateZonesClient creates a new instance of mockPrivateZonesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPrivateZonesClient(t mockConstructorTestingTnewMockPrivateZonesClient) *mockPrivateZonesClient {
- mock := &mockPrivateZonesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_publicIPAddressesClient.go b/enumeration/remote/azurerm/repository/mock_publicIPAddressesClient.go
deleted file mode 100644
index ffc8e4217..000000000
--- a/enumeration/remote/azurerm/repository/mock_publicIPAddressesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPublicIPAddressesClient is an autogenerated mock type for the publicIPAddressesClient type
-type mockPublicIPAddressesClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockPublicIPAddressesClient) ListAll(options *armnetwork.PublicIPAddressesListAllOptions) publicIPAddressesListAllPager {
- ret := _m.Called(options)
-
- var r0 publicIPAddressesListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.PublicIPAddressesListAllOptions) publicIPAddressesListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(publicIPAddressesListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPublicIPAddressesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPublicIPAddressesClient creates a new instance of mockPublicIPAddressesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPublicIPAddressesClient(t mockConstructorTestingTnewMockPublicIPAddressesClient) *mockPublicIPAddressesClient {
- mock := &mockPublicIPAddressesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_publicIPAddressesListAllPager.go b/enumeration/remote/azurerm/repository/mock_publicIPAddressesListAllPager.go
deleted file mode 100644
index d7142d6b7..000000000
--- a/enumeration/remote/azurerm/repository/mock_publicIPAddressesListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockPublicIPAddressesListAllPager is an autogenerated mock type for the publicIPAddressesListAllPager type
-type mockPublicIPAddressesListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockPublicIPAddressesListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockPublicIPAddressesListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockPublicIPAddressesListAllPager) PageResponse() armnetwork.PublicIPAddressesListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.PublicIPAddressesListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.PublicIPAddressesListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.PublicIPAddressesListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockPublicIPAddressesListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockPublicIPAddressesListAllPager creates a new instance of mockPublicIPAddressesListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockPublicIPAddressesListAllPager(t mockConstructorTestingTnewMockPublicIPAddressesListAllPager) *mockPublicIPAddressesListAllPager {
- mock := &mockPublicIPAddressesListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_registryClient.go b/enumeration/remote/azurerm/repository/mock_registryClient.go
deleted file mode 100644
index ed9d821b8..000000000
--- a/enumeration/remote/azurerm/repository/mock_registryClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armcontainerregistry "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockRegistryClient is an autogenerated mock type for the registryClient type
-type mockRegistryClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: options
-func (_m *mockRegistryClient) List(options *armcontainerregistry.RegistriesListOptions) registryListAllPager {
- ret := _m.Called(options)
-
- var r0 registryListAllPager
- if rf, ok := ret.Get(0).(func(*armcontainerregistry.RegistriesListOptions) registryListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(registryListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockRegistryClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockRegistryClient creates a new instance of mockRegistryClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockRegistryClient(t mockConstructorTestingTnewMockRegistryClient) *mockRegistryClient {
- mock := &mockRegistryClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_registryListAllPager.go b/enumeration/remote/azurerm/repository/mock_registryListAllPager.go
deleted file mode 100644
index b00c9aaaa..000000000
--- a/enumeration/remote/azurerm/repository/mock_registryListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armcontainerregistry "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockRegistryListAllPager is an autogenerated mock type for the registryListAllPager type
-type mockRegistryListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockRegistryListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockRegistryListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockRegistryListAllPager) PageResponse() armcontainerregistry.RegistriesListResponse {
- ret := _m.Called()
-
- var r0 armcontainerregistry.RegistriesListResponse
- if rf, ok := ret.Get(0).(func() armcontainerregistry.RegistriesListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armcontainerregistry.RegistriesListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockRegistryListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockRegistryListAllPager creates a new instance of mockRegistryListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockRegistryListAllPager(t mockConstructorTestingTnewMockRegistryListAllPager) *mockRegistryListAllPager {
- mock := &mockRegistryListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_resourcesClient.go b/enumeration/remote/azurerm/repository/mock_resourcesClient.go
deleted file mode 100644
index 8d5cb5944..000000000
--- a/enumeration/remote/azurerm/repository/mock_resourcesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armresources "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockResourcesClient is an autogenerated mock type for the resourcesClient type
-type mockResourcesClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: options
-func (_m *mockResourcesClient) List(options *armresources.ResourceGroupsListOptions) resourcesListPager {
- ret := _m.Called(options)
-
- var r0 resourcesListPager
- if rf, ok := ret.Get(0).(func(*armresources.ResourceGroupsListOptions) resourcesListPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(resourcesListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockResourcesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockResourcesClient creates a new instance of mockResourcesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockResourcesClient(t mockConstructorTestingTnewMockResourcesClient) *mockResourcesClient {
- mock := &mockResourcesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_resourcesListPager.go b/enumeration/remote/azurerm/repository/mock_resourcesListPager.go
deleted file mode 100644
index e78876dec..000000000
--- a/enumeration/remote/azurerm/repository/mock_resourcesListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armresources "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockResourcesListPager is an autogenerated mock type for the resourcesListPager type
-type mockResourcesListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockResourcesListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockResourcesListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockResourcesListPager) PageResponse() armresources.ResourceGroupsListResponse {
- ret := _m.Called()
-
- var r0 armresources.ResourceGroupsListResponse
- if rf, ok := ret.Get(0).(func() armresources.ResourceGroupsListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armresources.ResourceGroupsListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockResourcesListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockResourcesListPager creates a new instance of mockResourcesListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockResourcesListPager(t mockConstructorTestingTnewMockResourcesListPager) *mockResourcesListPager {
- mock := &mockResourcesListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_routeTablesClient.go b/enumeration/remote/azurerm/repository/mock_routeTablesClient.go
deleted file mode 100644
index db71f93cd..000000000
--- a/enumeration/remote/azurerm/repository/mock_routeTablesClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockRouteTablesClient is an autogenerated mock type for the routeTablesClient type
-type mockRouteTablesClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockRouteTablesClient) ListAll(options *armnetwork.RouteTablesListAllOptions) routeTablesListAllPager {
- ret := _m.Called(options)
-
- var r0 routeTablesListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.RouteTablesListAllOptions) routeTablesListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(routeTablesListAllPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockRouteTablesClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockRouteTablesClient creates a new instance of mockRouteTablesClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockRouteTablesClient(t mockConstructorTestingTnewMockRouteTablesClient) *mockRouteTablesClient {
- mock := &mockRouteTablesClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_routeTablesListAllPager.go b/enumeration/remote/azurerm/repository/mock_routeTablesListAllPager.go
deleted file mode 100644
index b6d37d985..000000000
--- a/enumeration/remote/azurerm/repository/mock_routeTablesListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockRouteTablesListAllPager is an autogenerated mock type for the routeTablesListAllPager type
-type mockRouteTablesListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockRouteTablesListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockRouteTablesListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockRouteTablesListAllPager) PageResponse() armnetwork.RouteTablesListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.RouteTablesListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.RouteTablesListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.RouteTablesListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockRouteTablesListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockRouteTablesListAllPager creates a new instance of mockRouteTablesListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockRouteTablesListAllPager(t mockConstructorTestingTnewMockRouteTablesListAllPager) *mockRouteTablesListAllPager {
- mock := &mockRouteTablesListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_sshPublicKeyClient.go b/enumeration/remote/azurerm/repository/mock_sshPublicKeyClient.go
deleted file mode 100644
index 256e3c4cc..000000000
--- a/enumeration/remote/azurerm/repository/mock_sshPublicKeyClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockSshPublicKeyClient is an autogenerated mock type for the sshPublicKeyClient type
-type mockSshPublicKeyClient struct {
- mock.Mock
-}
-
-// ListBySubscription provides a mock function with given fields: options
-func (_m *mockSshPublicKeyClient) ListBySubscription(options *armcompute.SSHPublicKeysListBySubscriptionOptions) sshPublicKeyListPager {
- ret := _m.Called(options)
-
- var r0 sshPublicKeyListPager
- if rf, ok := ret.Get(0).(func(*armcompute.SSHPublicKeysListBySubscriptionOptions) sshPublicKeyListPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(sshPublicKeyListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockSshPublicKeyClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockSshPublicKeyClient creates a new instance of mockSshPublicKeyClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockSshPublicKeyClient(t mockConstructorTestingTnewMockSshPublicKeyClient) *mockSshPublicKeyClient {
- mock := &mockSshPublicKeyClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_sshPublicKeyListPager.go b/enumeration/remote/azurerm/repository/mock_sshPublicKeyListPager.go
deleted file mode 100644
index 58c3afc87..000000000
--- a/enumeration/remote/azurerm/repository/mock_sshPublicKeyListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockSshPublicKeyListPager is an autogenerated mock type for the sshPublicKeyListPager type
-type mockSshPublicKeyListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockSshPublicKeyListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockSshPublicKeyListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockSshPublicKeyListPager) PageResponse() armcompute.SSHPublicKeysListBySubscriptionResponse {
- ret := _m.Called()
-
- var r0 armcompute.SSHPublicKeysListBySubscriptionResponse
- if rf, ok := ret.Get(0).(func() armcompute.SSHPublicKeysListBySubscriptionResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armcompute.SSHPublicKeysListBySubscriptionResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockSshPublicKeyListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockSshPublicKeyListPager creates a new instance of mockSshPublicKeyListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockSshPublicKeyListPager(t mockConstructorTestingTnewMockSshPublicKeyListPager) *mockSshPublicKeyListPager {
- mock := &mockSshPublicKeyListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_storageAccountClient.go b/enumeration/remote/azurerm/repository/mock_storageAccountClient.go
deleted file mode 100644
index 4eb82e4d1..000000000
--- a/enumeration/remote/azurerm/repository/mock_storageAccountClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armstorage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockStorageAccountClient is an autogenerated mock type for the storageAccountClient type
-type mockStorageAccountClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: options
-func (_m *mockStorageAccountClient) List(options *armstorage.StorageAccountsListOptions) storageAccountListPager {
- ret := _m.Called(options)
-
- var r0 storageAccountListPager
- if rf, ok := ret.Get(0).(func(*armstorage.StorageAccountsListOptions) storageAccountListPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(storageAccountListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockStorageAccountClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockStorageAccountClient creates a new instance of mockStorageAccountClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockStorageAccountClient(t mockConstructorTestingTnewMockStorageAccountClient) *mockStorageAccountClient {
- mock := &mockStorageAccountClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_storageAccountListPager.go b/enumeration/remote/azurerm/repository/mock_storageAccountListPager.go
deleted file mode 100644
index 2f585ab97..000000000
--- a/enumeration/remote/azurerm/repository/mock_storageAccountListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armstorage "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockStorageAccountListPager is an autogenerated mock type for the storageAccountListPager type
-type mockStorageAccountListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockStorageAccountListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockStorageAccountListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockStorageAccountListPager) PageResponse() armstorage.StorageAccountsListResponse {
- ret := _m.Called()
-
- var r0 armstorage.StorageAccountsListResponse
- if rf, ok := ret.Get(0).(func() armstorage.StorageAccountsListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armstorage.StorageAccountsListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockStorageAccountListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockStorageAccountListPager creates a new instance of mockStorageAccountListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockStorageAccountListPager(t mockConstructorTestingTnewMockStorageAccountListPager) *mockStorageAccountListPager {
- mock := &mockStorageAccountListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_subnetsClient.go b/enumeration/remote/azurerm/repository/mock_subnetsClient.go
deleted file mode 100644
index 4218123cf..000000000
--- a/enumeration/remote/azurerm/repository/mock_subnetsClient.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockSubnetsClient is an autogenerated mock type for the subnetsClient type
-type mockSubnetsClient struct {
- mock.Mock
-}
-
-// List provides a mock function with given fields: resourceGroupName, virtualNetworkName, options
-func (_m *mockSubnetsClient) List(resourceGroupName string, virtualNetworkName string, options *armnetwork.SubnetsListOptions) subnetsListPager {
- ret := _m.Called(resourceGroupName, virtualNetworkName, options)
-
- var r0 subnetsListPager
- if rf, ok := ret.Get(0).(func(string, string, *armnetwork.SubnetsListOptions) subnetsListPager); ok {
- r0 = rf(resourceGroupName, virtualNetworkName, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(subnetsListPager)
- }
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockSubnetsClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockSubnetsClient creates a new instance of mockSubnetsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockSubnetsClient(t mockConstructorTestingTnewMockSubnetsClient) *mockSubnetsClient {
- mock := &mockSubnetsClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_subnetsListPager.go b/enumeration/remote/azurerm/repository/mock_subnetsListPager.go
deleted file mode 100644
index f458dc254..000000000
--- a/enumeration/remote/azurerm/repository/mock_subnetsListPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockSubnetsListPager is an autogenerated mock type for the subnetsListPager type
-type mockSubnetsListPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockSubnetsListPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockSubnetsListPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockSubnetsListPager) PageResponse() armnetwork.SubnetsListResponse {
- ret := _m.Called()
-
- var r0 armnetwork.SubnetsListResponse
- if rf, ok := ret.Get(0).(func() armnetwork.SubnetsListResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.SubnetsListResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockSubnetsListPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockSubnetsListPager creates a new instance of mockSubnetsListPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockSubnetsListPager(t mockConstructorTestingTnewMockSubnetsListPager) *mockSubnetsListPager {
- mock := &mockSubnetsListPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/mock_virtualNetworkClient.go b/enumeration/remote/azurerm/repository/mock_virtualNetworkClient.go
deleted file mode 100644
index fc41e657b..000000000
--- a/enumeration/remote/azurerm/repository/mock_virtualNetworkClient.go
+++ /dev/null
@@ -1,29 +0,0 @@
-// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
-
-package repository
-
-import (
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockVirtualNetworkClient is an autogenerated mock type for the virtualNetworksClient type
-type mockVirtualNetworkClient struct {
- mock.Mock
-}
-
-// ListAll provides a mock function with given fields: options
-func (_m *mockVirtualNetworkClient) ListAll(options *armnetwork.VirtualNetworksListAllOptions) virtualNetworksListAllPager {
- ret := _m.Called(options)
-
- var r0 virtualNetworksListAllPager
- if rf, ok := ret.Get(0).(func(*armnetwork.VirtualNetworksListAllOptions) virtualNetworksListAllPager); ok {
- r0 = rf(options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(virtualNetworksListAllPager)
- }
- }
-
- return r0
-}
diff --git a/enumeration/remote/azurerm/repository/mock_virtualNetworksListAllPager.go b/enumeration/remote/azurerm/repository/mock_virtualNetworksListAllPager.go
deleted file mode 100644
index 6811accf3..000000000
--- a/enumeration/remote/azurerm/repository/mock_virtualNetworksListAllPager.go
+++ /dev/null
@@ -1,73 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- context "context"
-
- armnetwork "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// mockVirtualNetworksListAllPager is an autogenerated mock type for the virtualNetworksListAllPager type
-type mockVirtualNetworksListAllPager struct {
- mock.Mock
-}
-
-// Err provides a mock function with given fields:
-func (_m *mockVirtualNetworksListAllPager) Err() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// NextPage provides a mock function with given fields: ctx
-func (_m *mockVirtualNetworksListAllPager) NextPage(ctx context.Context) bool {
- ret := _m.Called(ctx)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// PageResponse provides a mock function with given fields:
-func (_m *mockVirtualNetworksListAllPager) PageResponse() armnetwork.VirtualNetworksListAllResponse {
- ret := _m.Called()
-
- var r0 armnetwork.VirtualNetworksListAllResponse
- if rf, ok := ret.Get(0).(func() armnetwork.VirtualNetworksListAllResponse); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(armnetwork.VirtualNetworksListAllResponse)
- }
-
- return r0
-}
-
-type mockConstructorTestingTnewMockVirtualNetworksListAllPager interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// newMockVirtualNetworksListAllPager creates a new instance of mockVirtualNetworksListAllPager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func newMockVirtualNetworksListAllPager(t mockConstructorTestingTnewMockVirtualNetworksListAllPager) *mockVirtualNetworksListAllPager {
- mock := &mockVirtualNetworksListAllPager{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/azurerm/repository/network.go b/enumeration/remote/azurerm/repository/network.go
deleted file mode 100644
index 3c65d112e..000000000
--- a/enumeration/remote/azurerm/repository/network.go
+++ /dev/null
@@ -1,405 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- "github.com/Azure/go-autorest/autorest/azure"
-)
-
-type NetworkRepository interface {
- ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error)
- ListAllRouteTables() ([]*armnetwork.RouteTable, error)
- ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error)
- ListAllFirewalls() ([]*armnetwork.AzureFirewall, error)
- ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error)
- ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error)
- ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error)
- ListLoadBalancerRules(*armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error)
-}
-
-type publicIPAddressesClient interface {
- ListAll(options *armnetwork.PublicIPAddressesListAllOptions) publicIPAddressesListAllPager
-}
-
-type publicIPAddressesListAllPager interface {
- pager
- PageResponse() armnetwork.PublicIPAddressesListAllResponse
-}
-
-type publicIPAddressesClientImpl struct {
- client *armnetwork.PublicIPAddressesClient
-}
-
-func (p publicIPAddressesClientImpl) ListAll(options *armnetwork.PublicIPAddressesListAllOptions) publicIPAddressesListAllPager {
- return p.client.ListAll(options)
-}
-
-type firewallsListAllPager interface {
- pager
- PageResponse() armnetwork.AzureFirewallsListAllResponse
-}
-
-type firewallsClient interface {
- ListAll(options *armnetwork.AzureFirewallsListAllOptions) firewallsListAllPager
-}
-
-type firewallsClientImpl struct {
- client *armnetwork.AzureFirewallsClient
-}
-
-func (s firewallsClientImpl) ListAll(options *armnetwork.AzureFirewallsListAllOptions) firewallsListAllPager {
- return s.client.ListAll(options)
-}
-
-type subnetsListPager interface {
- pager
- PageResponse() armnetwork.SubnetsListResponse
-}
-
-type subnetsClient interface {
- List(resourceGroupName, virtualNetworkName string, options *armnetwork.SubnetsListOptions) subnetsListPager
-}
-
-type subnetsClientImpl struct {
- client *armnetwork.SubnetsClient
-}
-
-func (s subnetsClientImpl) List(resourceGroupName, virtualNetworkName string, options *armnetwork.SubnetsListOptions) subnetsListPager {
- return s.client.List(resourceGroupName, virtualNetworkName, options)
-}
-
-type virtualNetworksClient interface {
- ListAll(options *armnetwork.VirtualNetworksListAllOptions) virtualNetworksListAllPager
-}
-
-type virtualNetworksListAllPager interface {
- pager
- PageResponse() armnetwork.VirtualNetworksListAllResponse
-}
-
-type virtualNetworksClientImpl struct {
- client *armnetwork.VirtualNetworksClient
-}
-
-func (c virtualNetworksClientImpl) ListAll(options *armnetwork.VirtualNetworksListAllOptions) virtualNetworksListAllPager {
- return c.client.ListAll(options)
-}
-
-type routeTablesClient interface {
- ListAll(options *armnetwork.RouteTablesListAllOptions) routeTablesListAllPager
-}
-
-type routeTablesListAllPager interface {
- pager
- PageResponse() armnetwork.RouteTablesListAllResponse
-}
-
-type routeTablesClientImpl struct {
- client *armnetwork.RouteTablesClient
-}
-
-func (c routeTablesClientImpl) ListAll(options *armnetwork.RouteTablesListAllOptions) routeTablesListAllPager {
- return c.client.ListAll(options)
-}
-
-type networkSecurityGroupsListAllPager interface {
- pager
- PageResponse() armnetwork.NetworkSecurityGroupsListAllResponse
-}
-
-type networkSecurityGroupsClient interface {
- ListAll(options *armnetwork.NetworkSecurityGroupsListAllOptions) networkSecurityGroupsListAllPager
-}
-
-type networkSecurityGroupsClientImpl struct {
- client *armnetwork.NetworkSecurityGroupsClient
-}
-
-func (s networkSecurityGroupsClientImpl) ListAll(options *armnetwork.NetworkSecurityGroupsListAllOptions) networkSecurityGroupsListAllPager {
- return s.client.ListAll(options)
-}
-
-type loadBalancersListAllPager interface {
- pager
- PageResponse() armnetwork.LoadBalancersListAllResponse
-}
-
-type loadBalancersClient interface {
- ListAll(options *armnetwork.LoadBalancersListAllOptions) loadBalancersListAllPager
-}
-
-type loadBalancersClientImpl struct {
- client *armnetwork.LoadBalancersClient
-}
-
-func (s loadBalancersClientImpl) ListAll(options *armnetwork.LoadBalancersListAllOptions) loadBalancersListAllPager {
- return s.client.ListAll(options)
-}
-
-type loadBalancerRulesListAllPager interface {
- pager
- PageResponse() armnetwork.LoadBalancerLoadBalancingRulesListResponse
-}
-
-type loadBalancerRulesClient interface {
- List(string, string, *armnetwork.LoadBalancerLoadBalancingRulesListOptions) loadBalancerRulesListAllPager
-}
-
-type loadBalancerRulesClientImpl struct {
- client *armnetwork.LoadBalancerLoadBalancingRulesClient
-}
-
-func (s loadBalancerRulesClientImpl) List(resourceGroupName string, loadBalancerName string, options *armnetwork.LoadBalancerLoadBalancingRulesListOptions) loadBalancerRulesListAllPager {
- return s.client.List(resourceGroupName, loadBalancerName, options)
-}
-
-type networkRepository struct {
- virtualNetworksClient virtualNetworksClient
- routeTableClient routeTablesClient
- subnetsClient subnetsClient
- firewallsClient firewallsClient
- publicIPAddressesClient publicIPAddressesClient
- networkSecurityGroupsClient networkSecurityGroupsClient
- loadBalancersClient loadBalancersClient
- loadBalancerRulesClient loadBalancerRulesClient
- cache cache.Cache
-}
-
-func NewNetworkRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *networkRepository {
- return &networkRepository{
- &virtualNetworksClientImpl{client: armnetwork.NewVirtualNetworksClient(config.SubscriptionID, cred, options)},
- &routeTablesClientImpl{client: armnetwork.NewRouteTablesClient(config.SubscriptionID, cred, options)},
- &subnetsClientImpl{client: armnetwork.NewSubnetsClient(config.SubscriptionID, cred, options)},
- &firewallsClientImpl{client: armnetwork.NewAzureFirewallsClient(config.SubscriptionID, cred, options)},
- &publicIPAddressesClientImpl{client: armnetwork.NewPublicIPAddressesClient(config.SubscriptionID, cred, options)},
- &networkSecurityGroupsClientImpl{client: armnetwork.NewNetworkSecurityGroupsClient(config.SubscriptionID, cred, options)},
- &loadBalancersClientImpl{client: armnetwork.NewLoadBalancersClient(config.SubscriptionID, cred, options)},
- &loadBalancerRulesClientImpl{armnetwork.NewLoadBalancerLoadBalancingRulesClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *networkRepository) ListAllVirtualNetworks() ([]*armnetwork.VirtualNetwork, error) {
-
- cacheKey := "ListAllVirtualNetworks"
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*armnetwork.VirtualNetwork), nil
- }
-
- pager := s.virtualNetworksClient.ListAll(nil)
- results := make([]*armnetwork.VirtualNetwork, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.VirtualNetworksListAllResult.VirtualNetworkListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllRouteTables() ([]*armnetwork.RouteTable, error) {
- cacheKey := "ListAllRouteTables"
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*armnetwork.RouteTable), nil
- }
-
- pager := s.routeTableClient.ListAll(nil)
- results := make([]*armnetwork.RouteTable, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.RouteTablesListAllResult.RouteTableListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllSubnets(virtualNetwork *armnetwork.VirtualNetwork) ([]*armnetwork.Subnet, error) {
-
- cacheKey := fmt.Sprintf("ListAllSubnets_%s", *virtualNetwork.ID)
-
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armnetwork.Subnet), nil
- }
-
- res, err := azure.ParseResourceID(*virtualNetwork.ID)
- if err != nil {
- return nil, err
- }
-
- pager := s.subnetsClient.List(res.ResourceGroup, *virtualNetwork.Name, nil)
- results := make([]*armnetwork.Subnet, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.SubnetsListResult.SubnetListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllFirewalls() ([]*armnetwork.AzureFirewall, error) {
-
- cacheKey := "ListAllFirewalls"
-
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armnetwork.AzureFirewall), nil
- }
-
- pager := s.firewallsClient.ListAll(nil)
- results := make([]*armnetwork.AzureFirewall, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.AzureFirewallsListAllResult.AzureFirewallListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllPublicIPAddresses() ([]*armnetwork.PublicIPAddress, error) {
- cacheKey := "ListAllPublicIPAddresses"
-
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armnetwork.PublicIPAddress), nil
- }
-
- pager := s.publicIPAddressesClient.ListAll(nil)
- results := make([]*armnetwork.PublicIPAddress, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.PublicIPAddressesListAllResult.PublicIPAddressListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllSecurityGroups() ([]*armnetwork.NetworkSecurityGroup, error) {
- cacheKey := "networkListAllSecurityGroups"
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armnetwork.NetworkSecurityGroup), nil
- }
-
- pager := s.networkSecurityGroupsClient.ListAll(nil)
- results := make([]*armnetwork.NetworkSecurityGroup, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *networkRepository) ListAllLoadBalancers() ([]*armnetwork.LoadBalancer, error) {
- cacheKey := "networkListAllLoadBalancers"
- defer s.cache.Unlock(cacheKey)
- if v := s.cache.GetAndLock(cacheKey); v != nil {
- return v.([]*armnetwork.LoadBalancer), nil
- }
-
- pager := s.loadBalancersClient.ListAll(nil)
- results := make([]*armnetwork.LoadBalancer, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
- return results, nil
-}
-
-func (s *networkRepository) ListLoadBalancerRules(loadBalancer *armnetwork.LoadBalancer) ([]*armnetwork.LoadBalancingRule, error) {
- cacheKey := fmt.Sprintf("networkListLoadBalancerRules_%s", *loadBalancer.ID)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armnetwork.LoadBalancingRule), nil
- }
-
- loadBalancerResource, err := azure.ParseResourceID(*loadBalancer.ID)
- if err != nil {
- return nil, err
- }
-
- pager := s.loadBalancerRulesClient.List(loadBalancerResource.ResourceGroup, loadBalancerResource.ResourceName, &armnetwork.LoadBalancerLoadBalancingRulesListOptions{})
- results := make([]*armnetwork.LoadBalancingRule, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
- return results, nil
-}
diff --git a/enumeration/remote/azurerm/repository/network_test.go b/enumeration/remote/azurerm/repository/network_test.go
deleted file mode 100644
index 27f8e2b85..000000000
--- a/enumeration/remote/azurerm/repository/network_test.go
+++ /dev/null
@@ -1,1172 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_ListAllVirtualNetwork_MultiplesResults(t *testing.T) {
-
- expected := []*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network2"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network3"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network4"),
- },
- },
- }
-
- fakeClient := &mockVirtualNetworkClient{}
-
- mockPager := &mockVirtualNetworksListAllPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.VirtualNetworksListAllResponse{
- VirtualNetworksListAllResult: armnetwork.VirtualNetworksListAllResult{
- VirtualNetworkListResult: armnetwork.VirtualNetworkListResult{
- Value: []*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network2"),
- },
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.VirtualNetworksListAllResponse{
- VirtualNetworksListAllResult: armnetwork.VirtualNetworksListAllResult{
- VirtualNetworkListResult: armnetwork.VirtualNetworkListResult{
- Value: []*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network3"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network4"),
- },
- },
- },
- },
- },
- }).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllVirtualNetworks").Return(nil).Times(1)
- c.On("Unlock", "ListAllVirtualNetworks").Times(1)
- c.On("Put", "ListAllVirtualNetworks", expected).Return(true).Times(1)
- s := &networkRepository{
- virtualNetworksClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllVirtualNetworks()
- if err != nil {
- t.Errorf("ListAllVirtualNetworks() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllVirtualNetworks() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllVirtualNetwork_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network3"),
- },
- },
- }
-
- fakeClient := &mockVirtualNetworkClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllVirtualNetworks").Return(expected).Times(1)
- c.On("Unlock", "ListAllVirtualNetworks").Times(1)
- s := &networkRepository{
- virtualNetworksClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllVirtualNetworks()
- if err != nil {
- t.Errorf("ListAllVirtualNetworks() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllVirtualNetworks() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllVirtualNetwork_Error_OnPageResponse(t *testing.T) {
-
- fakeClient := &mockVirtualNetworkClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockVirtualNetworksListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.VirtualNetworksListAllResponse{}).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- virtualNetworksClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllVirtualNetworks()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllVirtualNetwork_Error(t *testing.T) {
-
- fakeClient := &mockVirtualNetworkClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockVirtualNetworksListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- virtualNetworksClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllVirtualNetworks()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllRouteTables_MultiplesResults(t *testing.T) {
-
- expected := []*armnetwork.RouteTable{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("table1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("table2"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("table3"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("table4"),
- },
- },
- }
-
- fakeClient := &mockRouteTablesClient{}
-
- mockPager := &mockRouteTablesListAllPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.RouteTablesListAllResponse{
- RouteTablesListAllResult: armnetwork.RouteTablesListAllResult{
- RouteTableListResult: armnetwork.RouteTableListResult{
- Value: expected[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.RouteTablesListAllResponse{
- RouteTablesListAllResult: armnetwork.RouteTablesListAllResult{
- RouteTableListResult: armnetwork.RouteTableListResult{
- Value: expected[2:],
- },
- },
- }).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllRouteTables").Return(nil).Times(1)
- c.On("Unlock", "ListAllRouteTables").Times(1)
- c.On("Put", "ListAllRouteTables", expected).Return(true).Times(1)
- s := &networkRepository{
- routeTableClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllRouteTables()
- if err != nil {
- t.Errorf("ListAllRouteTables() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllRouteTables() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllRouteTables_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armnetwork.RouteTable{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("table1"),
- },
- },
- }
-
- fakeClient := &mockRouteTablesClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllRouteTables").Return(expected).Times(1)
- c.On("Unlock", "ListAllRouteTables").Times(1)
- s := &networkRepository{
- routeTableClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllRouteTables()
- if err != nil {
- t.Errorf("ListAllRouteTables() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllRouteTables() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllRouteTables_Error_OnPageResponse(t *testing.T) {
-
- fakeClient := &mockRouteTablesClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockRouteTablesListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.RouteTablesListAllResponse{}).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- routeTableClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllRouteTables()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllRouteTables_Error(t *testing.T) {
-
- fakeClient := &mockRouteTablesClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockRouteTablesListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- routeTableClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllRouteTables()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllSubnets_MultiplesResults(t *testing.T) {
-
- network := &armnetwork.VirtualNetwork{
- Resource: armnetwork.Resource{
- Name: to.StringPtr("network1"),
- ID: to.StringPtr("/subscriptions/7bfb2c5c-0000-0000-0000-fffa356eb406/resourceGroups/test-dev/providers/Microsoft.Network/virtualNetworks/network1"),
- },
- }
-
- expected := []*armnetwork.Subnet{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet1"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet2"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet3"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet4"),
- },
- },
- }
-
- fakeClient := &mockSubnetsClient{}
-
- mockPager := &mockSubnetsListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.SubnetsListResponse{
- SubnetsListResult: armnetwork.SubnetsListResult{
- SubnetListResult: armnetwork.SubnetListResult{
- Value: []*armnetwork.Subnet{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet1"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet2"),
- },
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.SubnetsListResponse{
- SubnetsListResult: armnetwork.SubnetsListResult{
- SubnetListResult: armnetwork.SubnetListResult{
- Value: []*armnetwork.Subnet{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet3"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet4"),
- },
- },
- },
- },
- },
- }).Times(1)
-
- fakeClient.On("List", "test-dev", "network1", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- cacheKey := fmt.Sprintf("ListAllSubnets_%s", *network.ID)
- c.On("Get", cacheKey).Return(nil).Times(1)
- c.On("Put", cacheKey, expected).Return(true).Times(1)
- s := &networkRepository{
- subnetsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllSubnets(network)
- if err != nil {
- t.Errorf("ListAllSubnets() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllSubnets() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllSubnets_MultiplesResults_WithCache(t *testing.T) {
-
- network := &armnetwork.VirtualNetwork{
- Resource: armnetwork.Resource{
- ID: to.StringPtr("networkID"),
- },
- }
-
- expected := []*armnetwork.Subnet{
- {
- Name: to.StringPtr("network1"),
- },
- }
- fakeClient := &mockSubnetsClient{}
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllSubnets_networkID").Return(expected).Times(1)
- s := &networkRepository{
- subnetsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllSubnets(network)
- if err != nil {
- t.Errorf("ListAllSubnets() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllSubnets() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllSubnets_Error_OnPageResponse(t *testing.T) {
-
- network := &armnetwork.VirtualNetwork{
- Resource: armnetwork.Resource{
- Name: to.StringPtr("network1"),
- ID: to.StringPtr("/subscriptions/7bfb2c5c-0000-0000-0000-fffa356eb406/resourceGroups/test-dev/providers/Microsoft.Network/virtualNetworks/network1"),
- },
- }
-
- fakeClient := &mockSubnetsClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockSubnetsListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.SubnetsListResponse{}).Times(1)
-
- fakeClient.On("List", "test-dev", "network1", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- subnetsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllSubnets(network)
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllSubnets_Error(t *testing.T) {
-
- network := &armnetwork.VirtualNetwork{
- Resource: armnetwork.Resource{
- Name: to.StringPtr("network1"),
- ID: to.StringPtr("/subscriptions/7bfb2c5c-0000-0000-0000-fffa356eb406/resourceGroups/test-dev/providers/Microsoft.Network/virtualNetworks/network1"),
- },
- }
-
- fakeClient := &mockSubnetsClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockSubnetsListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
-
- fakeClient.On("List", "test-dev", "network1", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- subnetsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllSubnets(network)
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllSubnets_ErrorOnInvalidNetworkID(t *testing.T) {
-
- network := &armnetwork.VirtualNetwork{
- Resource: armnetwork.Resource{
- Name: to.StringPtr("network1"),
- ID: to.StringPtr("foobar"),
- },
- }
-
- fakeClient := &mockSubnetsClient{}
-
- expectedErr := errors.New("parsing failed for foobar. Invalid resource Id format")
-
- s := &networkRepository{
- subnetsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllSubnets(network)
-
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr.Error(), err.Error())
- assert.Nil(t, got)
-}
-
-func Test_ListAllFirewalls_MultiplesResults(t *testing.T) {
-
- expected := []*armnetwork.AzureFirewall{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall2"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall3"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall4"),
- },
- },
- }
-
- fakeClient := &mockFirewallsClient{}
-
- mockPager := &mockFirewallsListAllPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.AzureFirewallsListAllResponse{
- AzureFirewallsListAllResult: armnetwork.AzureFirewallsListAllResult{
- AzureFirewallListResult: armnetwork.AzureFirewallListResult{
- Value: expected[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.AzureFirewallsListAllResponse{
- AzureFirewallsListAllResult: armnetwork.AzureFirewallsListAllResult{
- AzureFirewallListResult: armnetwork.AzureFirewallListResult{
- Value: expected[2:],
- },
- },
- }).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllFirewalls").Return(nil).Times(1)
- c.On("Put", "ListAllFirewalls", expected).Return(true).Times(1)
- s := &networkRepository{
- firewallsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllFirewalls()
- if err != nil {
- t.Errorf("ListAllFirewalls() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllFirewalls() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllFirewalls_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armnetwork.AzureFirewall{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall1"),
- },
- },
- }
-
- fakeClient := &mockFirewallsClient{}
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllFirewalls").Return(expected).Times(1)
- s := &networkRepository{
- firewallsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllFirewalls()
- if err != nil {
- t.Errorf("ListAllFirewalls() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllFirewalls() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllFirewalls_Error_OnPageResponse(t *testing.T) {
-
- fakeClient := &mockFirewallsClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockFirewallsListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.AzureFirewallsListAllResponse{}).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- firewallsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllFirewalls()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllFirewalls_Error(t *testing.T) {
-
- fakeClient := &mockFirewallsClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockFirewallsListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- firewallsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllFirewalls()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllPublicIPAddresses_MultiplesResults(t *testing.T) {
-
- expected := []*armnetwork.PublicIPAddress{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip2"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip3"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip4"),
- },
- },
- }
-
- fakeClient := &mockPublicIPAddressesClient{}
-
- mockPager := &mockPublicIPAddressesListAllPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.PublicIPAddressesListAllResponse{
- PublicIPAddressesListAllResult: armnetwork.PublicIPAddressesListAllResult{
- PublicIPAddressListResult: armnetwork.PublicIPAddressListResult{
- Value: expected[:2],
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.PublicIPAddressesListAllResponse{
- PublicIPAddressesListAllResult: armnetwork.PublicIPAddressesListAllResult{
- PublicIPAddressListResult: armnetwork.PublicIPAddressListResult{
- Value: expected[2:],
- },
- },
- }).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllPublicIPAddresses").Return(nil).Times(1)
- c.On("Put", "ListAllPublicIPAddresses", expected).Return(true).Times(1)
- s := &networkRepository{
- publicIPAddressesClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllPublicIPAddresses()
- if err != nil {
- t.Errorf("ListAllPublicIPAddresses() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPublicIPAddresses() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPublicIPAddresses_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armnetwork.PublicIPAddress{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip1"),
- },
- },
- }
-
- fakeClient := &mockPublicIPAddressesClient{}
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllPublicIPAddresses").Return(expected).Times(1)
- s := &networkRepository{
- publicIPAddressesClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllPublicIPAddresses()
- if err != nil {
- t.Errorf("ListAllPublicIPAddresses() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPublicIPAddresses() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPublicIPAddresses_Error_OnPageResponse(t *testing.T) {
-
- fakeClient := &mockPublicIPAddressesClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPublicIPAddressesListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armnetwork.PublicIPAddressesListAllResponse{}).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- publicIPAddressesClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllPublicIPAddresses()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllPublicIPAddresses_Error(t *testing.T) {
-
- fakeClient := &mockPublicIPAddressesClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPublicIPAddressesListAllPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
-
- fakeClient.On("ListAll", mock.Anything).Return(mockPager)
-
- s := &networkRepository{
- publicIPAddressesClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllPublicIPAddresses()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_Network_ListAllSecurityGroups(t *testing.T) {
- expectedResults := []*armnetwork.NetworkSecurityGroup{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("sgroup-1"),
- Name: to.StringPtr("sgroup-1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("sgroup-2"),
- Name: to.StringPtr("sgroup-2"),
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockNetworkSecurityGroupsListAllPager, *cache.MockCache)
- expected []*armnetwork.NetworkSecurityGroup
- wantErr string
- }{
- {
- name: "should return security groups",
- mocks: func(pager *mockNetworkSecurityGroupsListAllPager, mockCache *cache.MockCache) {
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.NetworkSecurityGroupsListAllResponse{
- NetworkSecurityGroupsListAllResult: armnetwork.NetworkSecurityGroupsListAllResult{
- NetworkSecurityGroupListResult: armnetwork.NetworkSecurityGroupListResult{
- Value: expectedResults,
- },
- },
- }).Times(1)
- pager.On("Err").Return(nil).Times(2)
-
- mockCache.On("Get", "networkListAllSecurityGroups").Return(nil).Times(1)
- mockCache.On("Put", "networkListAllSecurityGroups", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return security groups",
- mocks: func(pager *mockNetworkSecurityGroupsListAllPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "networkListAllSecurityGroups").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(pager *mockNetworkSecurityGroupsListAllPager, mockCache *cache.MockCache) {
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.NetworkSecurityGroupsListAllResponse{}).Times(1)
- pager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "networkListAllSecurityGroups").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakePager := &mockNetworkSecurityGroupsListAllPager{}
- fakeClient := &mockNetworkSecurityGroupsClient{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("ListAll", (*armnetwork.NetworkSecurityGroupsListAllOptions)(nil)).Return(fakePager).Maybe()
-
- tt.mocks(fakePager, mockCache)
-
- s := &networkRepository{
- networkSecurityGroupsClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllSecurityGroups()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllSecurityGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
-
-func Test_Network_ListAllLoadBalancers(t *testing.T) {
- expectedResults := []*armnetwork.LoadBalancer{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("lb-1"),
- Name: to.StringPtr("lb-1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("lb-2"),
- Name: to.StringPtr("lb-2"),
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockLoadBalancersListAllPager, *cache.MockCache)
- expected []*armnetwork.LoadBalancer
- wantErr string
- }{
- {
- name: "should return load balancers",
- mocks: func(pager *mockLoadBalancersListAllPager, mockCache *cache.MockCache) {
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.LoadBalancersListAllResponse{
- LoadBalancersListAllResult: armnetwork.LoadBalancersListAllResult{
- LoadBalancerListResult: armnetwork.LoadBalancerListResult{
- Value: expectedResults,
- },
- },
- }).Times(1)
- pager.On("Err").Return(nil).Times(2)
-
- mockCache.On("GetAndLock", "networkListAllLoadBalancers").Return(nil).Times(1)
- mockCache.On("Put", "networkListAllLoadBalancers", expectedResults).Return(false).Times(1)
- mockCache.On("Unlock", "networkListAllLoadBalancers").Return(nil).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return load balancers",
- mocks: func(pager *mockLoadBalancersListAllPager, mockCache *cache.MockCache) {
- mockCache.On("GetAndLock", "networkListAllLoadBalancers").Return(expectedResults).Times(1)
- mockCache.On("Unlock", "networkListAllLoadBalancers").Return(nil).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(pager *mockLoadBalancersListAllPager, mockCache *cache.MockCache) {
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.LoadBalancersListAllResponse{}).Times(1)
- pager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("GetAndLock", "networkListAllLoadBalancers").Return(nil).Times(1)
- mockCache.On("Unlock", "networkListAllLoadBalancers").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakePager := &mockLoadBalancersListAllPager{}
- fakeClient := &mockLoadBalancersClient{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("ListAll", (*armnetwork.LoadBalancersListAllOptions)(nil)).Return(fakePager).Maybe()
-
- tt.mocks(fakePager, mockCache)
-
- s := &networkRepository{
- loadBalancersClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllLoadBalancers()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllLoadBalancers() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
-
-func Test_Network_ListLoadBalancerRules(t *testing.T) {
- expectedResults := []*armnetwork.LoadBalancingRule{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("lbrule-1"),
- },
- Name: to.StringPtr("lbrule-1"),
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("lbrule-1"),
- },
- Name: to.StringPtr("lbrule-1"),
- },
- }
-
- testcases := []struct {
- name string
- loadBalancer *armnetwork.LoadBalancer
- mocks func(*mockLoadBalancerRulesClient, *mockLoadBalancerRulesListAllPager, *cache.MockCache)
- expected []*armnetwork.LoadBalancingRule
- wantErr string
- }{
- {
- name: "should return load balancer rules",
- loadBalancer: &armnetwork.LoadBalancer{
- Resource: armnetwork.Resource{ID: to.StringPtr("/subscriptions/xxx/resourceGroups/driftctl/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress")},
- },
- mocks: func(client *mockLoadBalancerRulesClient, pager *mockLoadBalancerRulesListAllPager, mockCache *cache.MockCache) {
- client.On("List", "driftctl", "PublicIPAddress", &armnetwork.LoadBalancerLoadBalancingRulesListOptions{}).Return(pager)
-
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.LoadBalancerLoadBalancingRulesListResponse{
- LoadBalancerLoadBalancingRulesListResult: armnetwork.LoadBalancerLoadBalancingRulesListResult{
- LoadBalancerLoadBalancingRuleListResult: armnetwork.LoadBalancerLoadBalancingRuleListResult{
- Value: expectedResults,
- },
- },
- }).Times(1)
- pager.On("Err").Return(nil).Times(2)
-
- mockCache.On("Get", "networkListLoadBalancerRules_/subscriptions/xxx/resourceGroups/driftctl/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress").Return(nil).Times(1)
- mockCache.On("Put", "networkListLoadBalancerRules_/subscriptions/xxx/resourceGroups/driftctl/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return load balancers",
- loadBalancer: &armnetwork.LoadBalancer{
- Resource: armnetwork.Resource{ID: to.StringPtr("lb-1")},
- },
- mocks: func(client *mockLoadBalancerRulesClient, pager *mockLoadBalancerRulesListAllPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "networkListLoadBalancerRules_lb-1").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- loadBalancer: &armnetwork.LoadBalancer{
- Resource: armnetwork.Resource{ID: to.StringPtr("/subscriptions/xxx/resourceGroups/driftctl/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress")},
- },
- mocks: func(client *mockLoadBalancerRulesClient, pager *mockLoadBalancerRulesListAllPager, mockCache *cache.MockCache) {
- client.On("List", "driftctl", "PublicIPAddress", &armnetwork.LoadBalancerLoadBalancingRulesListOptions{}).Return(pager)
-
- pager.On("NextPage", context.Background()).Return(true).Times(1)
- pager.On("NextPage", context.Background()).Return(false).Times(1)
- pager.On("PageResponse").Return(armnetwork.LoadBalancerLoadBalancingRulesListResponse{}).Times(1)
- pager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "networkListLoadBalancerRules_/subscriptions/xxx/resourceGroups/driftctl/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakePager := &mockLoadBalancerRulesListAllPager{}
- fakeClient := &mockLoadBalancerRulesClient{}
- mockCache := &cache.MockCache{}
-
- tt.mocks(fakeClient, fakePager, mockCache)
-
- s := &networkRepository{
- loadBalancerRulesClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListLoadBalancerRules(tt.loadBalancer)
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllLoadBalancers() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
diff --git a/enumeration/remote/azurerm/repository/pager.go b/enumeration/remote/azurerm/repository/pager.go
deleted file mode 100644
index 376328c0e..000000000
--- a/enumeration/remote/azurerm/repository/pager.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package repository
-
-import "context"
-
-type pager interface {
- Err() error
- NextPage(ctx context.Context) bool
-}
diff --git a/enumeration/remote/azurerm/repository/postgresql.go b/enumeration/remote/azurerm/repository/postgresql.go
deleted file mode 100644
index f9024eaf7..000000000
--- a/enumeration/remote/azurerm/repository/postgresql.go
+++ /dev/null
@@ -1,93 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
- "github.com/Azure/go-autorest/autorest/azure"
-)
-
-type PostgresqlRespository interface {
- ListAllServers() ([]*armpostgresql.Server, error)
- ListAllDatabasesByServer(server *armpostgresql.Server) ([]*armpostgresql.Database, error)
-}
-
-type postgresqlServersClientImpl struct {
- client *armpostgresql.ServersClient
-}
-
-type postgresqlServersClient interface {
- List(context.Context, *armpostgresql.ServersListOptions) (armpostgresql.ServersListResponse, error)
-}
-
-func (c postgresqlServersClientImpl) List(ctx context.Context, options *armpostgresql.ServersListOptions) (armpostgresql.ServersListResponse, error) {
- return c.client.List(ctx, options)
-}
-
-type postgresqlDatabaseClientImpl struct {
- client *armpostgresql.DatabasesClient
-}
-
-type postgresqlDatabaseClient interface {
- ListByServer(context.Context, string, string, *armpostgresql.DatabasesListByServerOptions) (armpostgresql.DatabasesListByServerResponse, error)
-}
-
-func (c postgresqlDatabaseClientImpl) ListByServer(ctx context.Context, resGroup string, serverName string, options *armpostgresql.DatabasesListByServerOptions) (armpostgresql.DatabasesListByServerResponse, error) {
- return c.client.ListByServer(ctx, resGroup, serverName, options)
-}
-
-type postgresqlRepository struct {
- serversClient postgresqlServersClient
- databaseClient postgresqlDatabaseClient
- cache cache.Cache
-}
-
-func NewPostgresqlRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *postgresqlRepository {
- return &postgresqlRepository{
- postgresqlServersClientImpl{client: armpostgresql.NewServersClient(config.SubscriptionID, cred, options)},
- postgresqlDatabaseClientImpl{client: armpostgresql.NewDatabasesClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *postgresqlRepository) ListAllServers() ([]*armpostgresql.Server, error) {
- cacheKey := "postgresqlListAllServers"
-
- defer s.cache.Unlock(cacheKey)
- if v := s.cache.GetAndLock(cacheKey); v != nil {
- return v.([]*armpostgresql.Server), nil
- }
-
- res, err := s.serversClient.List(context.Background(), nil)
- if err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, res.Value)
- return res.Value, nil
-}
-
-func (s *postgresqlRepository) ListAllDatabasesByServer(server *armpostgresql.Server) ([]*armpostgresql.Database, error) {
- res, err := azure.ParseResourceID(*server.ID)
- if err != nil {
- return nil, err
- }
-
- cacheKey := fmt.Sprintf("postgresqlListAllDatabases_%s_%s", res.ResourceGroup, *server.Name)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armpostgresql.Database), nil
- }
-
- result, err := s.databaseClient.ListByServer(context.Background(), res.ResourceGroup, *server.Name, nil)
- if err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, result.Value)
- return result.Value, nil
-}
diff --git a/enumeration/remote/azurerm/repository/postgresql_test.go b/enumeration/remote/azurerm/repository/postgresql_test.go
deleted file mode 100644
index 2d6ac1703..000000000
--- a/enumeration/remote/azurerm/repository/postgresql_test.go
+++ /dev/null
@@ -1,196 +0,0 @@
-package repository
-
-import (
- "context"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
- "github.com/pkg/errors"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_Postgresql_ListAllServers(t *testing.T) {
- expectedResults := []*armpostgresql.Server{
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("postgresql-server-1"),
- },
- },
- },
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("postgresql-server-2"),
- },
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockPostgresqlServersClient, *cache.MockCache)
- expected []*armpostgresql.Server
- wantErr string
- }{
- {
- name: "should return postgres servers",
- mocks: func(client *mockPostgresqlServersClient, mockCache *cache.MockCache) {
- client.On("List", context.Background(), mock.Anything).Return(armpostgresql.ServersListResponse{
- ServersListResult: armpostgresql.ServersListResult{
- ServerListResult: armpostgresql.ServerListResult{
- Value: expectedResults,
- },
- },
- }, nil).Times(1)
-
- mockCache.On("GetAndLock", "postgresqlListAllServers").Return(nil).Times(1)
- mockCache.On("Unlock", "postgresqlListAllServers").Return().Times(1)
- mockCache.On("Put", "postgresqlListAllServers", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return postgres servers",
- mocks: func(client *mockPostgresqlServersClient, mockCache *cache.MockCache) {
- mockCache.On("GetAndLock", "postgresqlListAllServers").Return(expectedResults).Times(1)
- mockCache.On("Unlock", "postgresqlListAllServers").Return().Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(client *mockPostgresqlServersClient, mockCache *cache.MockCache) {
- client.On("List", context.Background(), mock.Anything).Return(armpostgresql.ServersListResponse{}, errors.New("remote error")).Times(1)
-
- mockCache.On("GetAndLock", "postgresqlListAllServers").Return(nil).Times(1)
- mockCache.On("Unlock", "postgresqlListAllServers").Return().Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockPostgresqlServersClient{}
- mockCache := &cache.MockCache{}
-
- tt.mocks(fakeClient, mockCache)
-
- s := &postgresqlRepository{
- serversClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllServers()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
-
-func Test_Postgresql_ListAllDatabases(t *testing.T) {
- expectedResults := []*armpostgresql.Database{
- {
- ProxyResource: armpostgresql.ProxyResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/res-group/providers/Microsoft.DBforPostgreSQL/servers/postgresql-server-1/databases/postgresql-db-1"),
- },
- },
- },
- {
- ProxyResource: armpostgresql.ProxyResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/res-group/providers/Microsoft.DBforPostgreSQL/servers/postgresql-server-1/databases/postgresql-db-2"),
- },
- },
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockPostgresqlDatabaseClient, *cache.MockCache)
- expected []*armpostgresql.Database
- wantErr string
- }{
- {
- name: "should return postgres servers",
- mocks: func(client *mockPostgresqlDatabaseClient, mockCache *cache.MockCache) {
- client.On("ListByServer", context.Background(), "res-group", "postgresql-server-1", (*armpostgresql.DatabasesListByServerOptions)(nil)).Return(armpostgresql.DatabasesListByServerResponse{
- DatabasesListByServerResult: armpostgresql.DatabasesListByServerResult{
- DatabaseListResult: armpostgresql.DatabaseListResult{
- Value: expectedResults,
- },
- },
- }, nil).Times(1)
-
- mockCache.On("Get", "postgresqlListAllDatabases_res-group_postgresql-server-1").Return(nil).Times(1)
- mockCache.On("Put", "postgresqlListAllDatabases_res-group_postgresql-server-1", expectedResults).Return(false).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return postgres servers",
- mocks: func(client *mockPostgresqlDatabaseClient, mockCache *cache.MockCache) {
- mockCache.On("Get", "postgresqlListAllDatabases_res-group_postgresql-server-1").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(client *mockPostgresqlDatabaseClient, mockCache *cache.MockCache) {
- mockCache.On("Get", "postgresqlListAllDatabases_res-group_postgresql-server-1").Return(nil).Times(1)
-
- client.On("ListByServer", context.Background(), "res-group", "postgresql-server-1", (*armpostgresql.DatabasesListByServerOptions)(nil)).Return(armpostgresql.DatabasesListByServerResponse{}, errors.New("remote error")).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockPostgresqlDatabaseClient{}
- mockCache := &cache.MockCache{}
-
- tt.mocks(fakeClient, mockCache)
-
- s := &postgresqlRepository{
- databaseClient: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllDatabasesByServer(&armpostgresql.Server{
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/res-group/providers/Microsoft.DBforPostgreSQL/servers/postgresql-server-1"),
- Name: to.StringPtr("postgresql-server-1"),
- },
- },
- })
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
diff --git a/enumeration/remote/azurerm/repository/privatedns.go b/enumeration/remote/azurerm/repository/privatedns.go
deleted file mode 100644
index 59a9a333c..000000000
--- a/enumeration/remote/azurerm/repository/privatedns.go
+++ /dev/null
@@ -1,243 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- "github.com/Azure/go-autorest/autorest/azure"
-)
-
-type PrivateDNSRepository interface {
- ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error)
- ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
- ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error)
-}
-
-type privateDNSZoneListPager interface {
- pager
- PageResponse() armprivatedns.PrivateZonesListResponse
-}
-
-type privateDNSRecordSetListPager interface {
- pager
- PageResponse() armprivatedns.RecordSetsListResponse
-}
-
-type privateRecordSetClient interface {
- List(resourceGroupName string, privateZoneName string, options *armprivatedns.RecordSetsListOptions) privateDNSRecordSetListPager
-}
-
-type privateRecordSetClientImpl struct {
- client *armprivatedns.RecordSetsClient
-}
-
-func (c *privateRecordSetClientImpl) List(resourceGroupName string, privateZoneName string, options *armprivatedns.RecordSetsListOptions) privateDNSRecordSetListPager {
- return c.client.List(resourceGroupName, privateZoneName, options)
-}
-
-type privateZonesClient interface {
- List(options *armprivatedns.PrivateZonesListOptions) privateDNSZoneListPager
-}
-
-type privateZonesClientImpl struct {
- client *armprivatedns.PrivateZonesClient
-}
-
-func (c *privateZonesClientImpl) List(options *armprivatedns.PrivateZonesListOptions) privateDNSZoneListPager {
- return c.client.List(options)
-}
-
-type privateDNSRepository struct {
- zoneClient privateZonesClient
- recordClient privateRecordSetClient
- cache cache.Cache
-}
-
-func NewPrivateDNSRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *privateDNSRepository {
- return &privateDNSRepository{
- &privateZonesClientImpl{armprivatedns.NewPrivateZonesClient(config.SubscriptionID, cred, options)},
- &privateRecordSetClientImpl{armprivatedns.NewRecordSetsClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *privateDNSRepository) listAllRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- cacheKey := fmt.Sprintf("privateDNSlistAllRecords-%s", *zone.ID)
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*armprivatedns.RecordSet), nil
- }
-
- res, err := azure.ParseResourceID(*zone.ID)
- if err != nil {
- return nil, err
- }
-
- pager := s.recordClient.List(res.ResourceGroup, *zone.Name, nil)
- results := make([]*armprivatedns.RecordSet, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.ARecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllAAAARecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.AaaaRecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllPTRRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.PtrRecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllCNAMERecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.CnameRecord == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllMXRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.MxRecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllSRVRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.SrvRecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllTXTRecords(zone *armprivatedns.PrivateZone) ([]*armprivatedns.RecordSet, error) {
- records, err := s.listAllRecords(zone)
- if err != nil {
- return nil, err
- }
- results := make([]*armprivatedns.RecordSet, 0)
- for _, record := range records {
- if record.Properties.TxtRecords == nil {
- continue
- }
- results = append(results, record)
-
- }
- return results, nil
-}
-
-func (s *privateDNSRepository) ListAllPrivateZones() ([]*armprivatedns.PrivateZone, error) {
- cacheKey := "privateDNSListAllPrivateZones"
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*armprivatedns.PrivateZone), nil
- }
-
- pager := s.zoneClient.List(nil)
- results := make([]*armprivatedns.PrivateZone, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
diff --git a/enumeration/remote/azurerm/repository/privatedns_test.go b/enumeration/remote/azurerm/repository/privatedns_test.go
deleted file mode 100644
index 93cb41786..000000000
--- a/enumeration/remote/azurerm/repository/privatedns_test.go
+++ /dev/null
@@ -1,1639 +0,0 @@
-package repository
-
-import (
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-// region PrivateZone
-func Test_ListAllPrivateZones_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone1"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone2"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone3"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone4"),
- },
- },
- },
- }
-
- fakeClient := &mockPrivateZonesClient{}
-
- mockPager := &mockPrivateDNSZoneListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.PrivateZonesListResponse{
- PrivateZonesListResult: armprivatedns.PrivateZonesListResult{
- PrivateZoneListResult: armprivatedns.PrivateZoneListResult{
- Value: []*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone1"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone2"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.PrivateZonesListResponse{
- PrivateZonesListResult: armprivatedns.PrivateZonesListResult{
- PrivateZoneListResult: armprivatedns.PrivateZoneListResult{
- Value: []*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone3"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone4"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
-
- fakeClient.On("List", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSListAllPrivateZones").Return(nil).Times(1)
- c.On("Unlock", "privateDNSListAllPrivateZones").Times(1)
- c.On("Put", "privateDNSListAllPrivateZones", expected).Return(true).Times(1)
- s := &privateDNSRepository{
- zoneClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllPrivateZones()
- if err != nil {
- t.Errorf("ListAllPrivateZones() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPrivateZones() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPrivateZones_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("zone1"),
- },
- },
- },
- }
-
- fakeClient := &mockPrivateZonesClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSListAllPrivateZones").Return(expected).Times(1)
- c.On("Unlock", "privateDNSListAllPrivateZones").Times(1)
-
- s := &privateDNSRepository{
- zoneClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllPrivateZones()
- if err != nil {
- t.Errorf("ListAllPrivateZones() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPrivateZones() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPrivateZones_Error(t *testing.T) {
-
- fakeClient := &mockPrivateZonesClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSZoneListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.PrivateZonesListResponse{}).Times(1)
-
- fakeClient.On("List", mock.Anything).Return(mockPager)
-
- s := &privateDNSRepository{
- zoneClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllPrivateZones()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region ARecord
-func Test_ListAllARecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("ip")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllARecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllARecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllARecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("ip")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllARecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllARecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllARecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region AAAAAAARecord
-func Test_ListAllAAAARecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("ip")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("ip")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllAAAARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllAAAARecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllAAAARecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllAAAARecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("ip")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllAAAARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllAAAARecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllAAAARecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllAAAARecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllAAAARecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region CNAMERecord
-func Test_ListAllCNAMERecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- CnameRecord: &armprivatedns.CnameRecord{
- Cname: to.StringPtr("cname"),
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- CnameRecord: &armprivatedns.CnameRecord{
- Cname: to.StringPtr("cname"),
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- CnameRecord: &armprivatedns.CnameRecord{
- Cname: to.StringPtr("cname"),
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- CnameRecord: &armprivatedns.CnameRecord{
- Cname: to.StringPtr("cname"),
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllCNAMERecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllCNAMERecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllCNAMERecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllCNAMERecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- CnameRecord: &armprivatedns.CnameRecord{
- Cname: to.StringPtr("cname"),
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
-
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
-
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllCNAMERecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllCNAMERecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllCNAMERecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllCNAMERecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllCNAMERecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region PTRRecord
-func Test_ListAllPTRRecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptrdname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptrdname")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptrdname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptrdname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllPTRRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllPTRRecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPTRRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPTRRecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptrdname")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllPTRRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllPTRRecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllPTRRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllPTRRecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllPTRRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region MXRecord
-func Test_ListAllMXRecords_MultiplesResults(t *testing.T) {
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllMXRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllMXRecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllMXRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllMXRecords_MultiplesResults_WithCache(t *testing.T) {
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
-
- got, err := s.ListAllMXRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
-
- t.Errorf("ListAllMXRecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllMXRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllMXRecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
-
- got, err := s.ListAllMXRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region SRVRecord
-func Test_ListAllSRVRecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("targetname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("targetname")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("targetname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("targetname")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllSRVRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllSRVRecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllSRVRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllSRVRecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("targetname")},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllSRVRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllSRVRecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllSRVRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllSRVRecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllSRVRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
-
-// region TXTRecord
-func Test_ListAllTXTRecords_MultiplesResults(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("value")}},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("value")}},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("value")}},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record2"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{
- RecordSetsListResult: armprivatedns.RecordSetsListResult{
- RecordSetListResult: armprivatedns.RecordSetListResult{
- Value: []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record3"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("value")}},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record4"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{},
- },
- },
- },
- },
- }).Times(1)
-
- fakeRecordSetClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(nil).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return().Times(1)
- c.On("Put", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com", mock.Anything).Return(true).Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllTXTRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllTXTRecords() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllTXTRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllTXTRecords_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("record1"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("value")}},
- },
- },
- },
- }
-
- fakeRecordSetClient := &mockPrivateRecordSetClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Return(expected).Times(1)
- c.On("Unlock", "privateDNSlistAllRecords-/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com").Times(1)
- s := &privateDNSRepository{
- recordClient: fakeRecordSetClient,
- cache: c,
- }
- got, err := s.ListAllTXTRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
- if err != nil {
- t.Errorf("ListAllTXTRecords() error = %v", err)
- return
- }
-
- fakeRecordSetClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllTXTRecords() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllTXTRecords_Error(t *testing.T) {
-
- fakeClient := &mockPrivateRecordSetClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockPrivateDNSRecordSetListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armprivatedns.RecordSetsListResponse{}).Times(1)
-
- fakeClient.On("List", "rgid", "zone", (*armprivatedns.RecordSetsListOptions)(nil)).Return(mockPager)
-
- s := &privateDNSRepository{
- recordClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllTXTRecords(&armprivatedns.PrivateZone{
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/subid/resourceGroups/rgid/providers/Microsoft.Network/privateDnsZones/zone.com"),
- Name: to.StringPtr("zone"),
- },
- },
- })
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-// endregion
diff --git a/enumeration/remote/azurerm/repository/resources.go b/enumeration/remote/azurerm/repository/resources.go
deleted file mode 100644
index 768e91e01..000000000
--- a/enumeration/remote/azurerm/repository/resources.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package repository
-
-import (
- "context"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
-)
-
-type ResourcesRepository interface {
- ListAllResourceGroups() ([]*armresources.ResourceGroup, error)
-}
-
-type resourcesListPager interface {
- pager
- PageResponse() armresources.ResourceGroupsListResponse
-}
-
-type resourcesClient interface {
- List(options *armresources.ResourceGroupsListOptions) resourcesListPager
-}
-
-type resourcesClientImpl struct {
- client *armresources.ResourceGroupsClient
-}
-
-func (c resourcesClientImpl) List(options *armresources.ResourceGroupsListOptions) resourcesListPager {
- return c.client.List(options)
-}
-
-type resourcesRepository struct {
- client resourcesClient
- cache cache.Cache
-}
-
-func NewResourcesRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *resourcesRepository {
- return &resourcesRepository{
- &resourcesClientImpl{armresources.NewResourceGroupsClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *resourcesRepository) ListAllResourceGroups() ([]*armresources.ResourceGroup, error) {
- cacheKey := "resourcesListAllResourceGroups"
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]*armresources.ResourceGroup), nil
- }
-
- pager := s.client.List(nil)
- results := make([]*armresources.ResourceGroup, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.ResourceGroupsListResult.Value...)
- }
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
diff --git a/enumeration/remote/azurerm/repository/resources_test.go b/enumeration/remote/azurerm/repository/resources_test.go
deleted file mode 100644
index dcc97d945..000000000
--- a/enumeration/remote/azurerm/repository/resources_test.go
+++ /dev/null
@@ -1,152 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
- "github.com/pkg/errors"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_Resources_ListAllResourceGroups(t *testing.T) {
- expectedResults := []*armresources.ResourceGroup{
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/elie-dev"),
- Name: to.StringPtr("elie-dev"),
- },
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/william-dev"),
- Name: to.StringPtr("william-dev"),
- },
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/driftctl-sj-tests"),
- Name: to.StringPtr("driftctl-sj-tests"),
- },
- }
-
- testcases := []struct {
- name string
- mocks func(*mockResourcesListPager, *cache.MockCache)
- expected []*armresources.ResourceGroup
- wantErr string
- }{
- {
- name: "should return resource groups",
- mocks: func(mockPager *mockResourcesListPager, mockCache *cache.MockCache) {
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armresources.ResourceGroupsListResponse{
- ResourceGroupsListResult: armresources.ResourceGroupsListResult{
- ResourceGroupListResult: armresources.ResourceGroupListResult{
- Value: []*armresources.ResourceGroup{
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/elie-dev"),
- Name: to.StringPtr("elie-dev"),
- },
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/william-dev"),
- Name: to.StringPtr("william-dev"),
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armresources.ResourceGroupsListResponse{
- ResourceGroupsListResult: armresources.ResourceGroupsListResult{
- ResourceGroupListResult: armresources.ResourceGroupListResult{
- Value: []*armresources.ResourceGroup{
- {
- ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/driftctl-sj-tests"),
- Name: to.StringPtr("driftctl-sj-tests"),
- },
- },
- },
- },
- }).Times(1)
-
- mockCache.On("Get", "resourcesListAllResourceGroups").Return(nil).Times(1)
- mockCache.On("Put", "resourcesListAllResourceGroups", expectedResults).Return(true).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should hit cache and return resource groups",
- mocks: func(mockPager *mockResourcesListPager, mockCache *cache.MockCache) {
- mockCache.On("Get", "resourcesListAllResourceGroups").Return(expectedResults).Times(1)
- },
- expected: expectedResults,
- },
- {
- name: "should return remote error",
- mocks: func(mockPager *mockResourcesListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armresources.ResourceGroupsListResponse{
- ResourceGroupsListResult: armresources.ResourceGroupsListResult{
- ResourceGroupListResult: armresources.ResourceGroupListResult{
- Value: []*armresources.ResourceGroup{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "resourcesListAllResourceGroups").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- {
- name: "should return remote error after fetching all pages",
- mocks: func(mockPager *mockResourcesListPager, mockCache *cache.MockCache) {
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armresources.ResourceGroupsListResponse{
- ResourceGroupsListResult: armresources.ResourceGroupsListResult{
- ResourceGroupListResult: armresources.ResourceGroupListResult{
- Value: []*armresources.ResourceGroup{},
- },
- },
- }).Times(1)
- mockPager.On("Err").Return(nil).Times(1)
- mockPager.On("Err").Return(errors.New("remote error")).Times(1)
-
- mockCache.On("Get", "resourcesListAllResourceGroups").Return(nil).Times(1)
- },
- wantErr: "remote error",
- },
- }
-
- for _, tt := range testcases {
- t.Run(tt.name, func(t *testing.T) {
- fakeClient := &mockResourcesClient{}
- mockPager := &mockResourcesListPager{}
- mockCache := &cache.MockCache{}
-
- fakeClient.On("List", mock.Anything).Maybe().Return(mockPager)
-
- tt.mocks(mockPager, mockCache)
-
- s := &resourcesRepository{
- client: fakeClient,
- cache: mockCache,
- }
- got, err := s.ListAllResourceGroups()
- if tt.wantErr != "" {
- assert.EqualError(t, err, tt.wantErr)
- } else {
- assert.Nil(t, err)
- }
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
- mockCache.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, tt.expected) {
- t.Errorf("ListAllResourceGroups() got = %v, want %v", got, tt.expected)
- }
- })
- }
-}
diff --git a/enumeration/remote/azurerm/repository/storage.go b/enumeration/remote/azurerm/repository/storage.go
deleted file mode 100644
index 595db2cc4..000000000
--- a/enumeration/remote/azurerm/repository/storage.go
+++ /dev/null
@@ -1,152 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "strings"
-
- "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/common"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- "github.com/Azure/go-autorest/autorest/azure"
-)
-
-type StorageRespository interface {
- ListAllStorageAccount() ([]*armstorage.StorageAccount, error)
- ListAllStorageContainer(account *armstorage.StorageAccount) ([]string, error)
-}
-
-type blobContainerListPager interface {
- pager
- PageResponse() armstorage.BlobContainersListResponse
-}
-
-// Interfaces are only used to create mock on Azure SDK
-type blobContainerClient interface {
- List(resourceGroupName string, accountName string, options *armstorage.BlobContainersListOptions) blobContainerListPager
-}
-
-type blobContainerClientImpl struct {
- client *armstorage.BlobContainersClient
-}
-
-func (c blobContainerClientImpl) List(resourceGroupName string, accountName string, options *armstorage.BlobContainersListOptions) blobContainerListPager {
- return c.client.List(resourceGroupName, accountName, options)
-}
-
-type storageAccountListPager interface {
- pager
- PageResponse() armstorage.StorageAccountsListResponse
-}
-
-type storageAccountClient interface {
- List(options *armstorage.StorageAccountsListOptions) storageAccountListPager
-}
-
-type storageAccountClientImpl struct {
- client *armstorage.StorageAccountsClient
-}
-
-func (c storageAccountClientImpl) List(options *armstorage.StorageAccountsListOptions) storageAccountListPager {
- return c.client.List(options)
-}
-
-type storageRepository struct {
- storageAccountsClient storageAccountClient
- blobContainerClient blobContainerClient
- cache cache.Cache
-}
-
-func NewStorageRepository(cred azcore.TokenCredential, options *arm.ClientOptions, config common.AzureProviderConfig, cache cache.Cache) *storageRepository {
- return &storageRepository{
- storageAccountClientImpl{client: armstorage.NewStorageAccountsClient(config.SubscriptionID, cred, options)},
- blobContainerClientImpl{client: armstorage.NewBlobContainersClient(config.SubscriptionID, cred, options)},
- cache,
- }
-}
-
-func (s *storageRepository) ListAllStorageAccount() ([]*armstorage.StorageAccount, error) {
-
- cacheKey := "ListAllStorageAccount"
- v := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if v != nil {
- return v.([]*armstorage.StorageAccount), nil
- }
-
- pager := s.storageAccountsClient.List(nil)
- results := make([]*armstorage.StorageAccount, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- return nil, err
- }
- results = append(results, resp.StorageAccountsListResult.StorageAccountListResult.Value...)
- }
-
- if err := pager.Err(); err != nil {
- return nil, err
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func (s *storageRepository) ListAllStorageContainer(account *armstorage.StorageAccount) ([]string, error) {
-
- cacheKey := fmt.Sprintf("ListAllStorageContainer_%s", *account.Name)
- if v := s.cache.Get(cacheKey); v != nil {
- return v.([]string), nil
- }
-
- res, err := azure.ParseResourceID(*account.ID)
- if err != nil {
- return nil, err
- }
-
- pager := s.blobContainerClient.List(res.ResourceGroup, *account.Name, nil)
- results := make([]string, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- if err := pager.Err(); err != nil {
- if !shouldIgnoreStorageContainerError(err) {
- return nil, err
- }
- }
- for _, item := range resp.BlobContainersListResult.ListContainerItems.Value {
- results = append(results, fmt.Sprintf("%s%s", *account.Properties.PrimaryEndpoints.Blob, *item.Name))
- }
- }
-
- if err := pager.Err(); err != nil {
- if !shouldIgnoreStorageContainerError(err) {
- return nil, err
- }
- }
-
- s.cache.Put(cacheKey, results)
-
- return results, nil
-}
-
-func shouldIgnoreStorageContainerError(err error) bool {
- azureErr, ok := err.(azblob.ResponseError)
- if !ok {
- return false
- }
- unwrapped := azureErr.Unwrap().Error()
- if strings.Contains(unwrapped, "FeatureNotSupportedForAccount") {
- logrus.WithFields(logrus.Fields{
- "repository": "StorageRepository",
- "error": err,
- }).Debug("Ignoring ListStorageContainer error ...")
- return true
- }
- return false
-}
diff --git a/enumeration/remote/azurerm/repository/storage_test.go b/enumeration/remote/azurerm/repository/storage_test.go
deleted file mode 100644
index c8e4461ea..000000000
--- a/enumeration/remote/azurerm/repository/storage_test.go
+++ /dev/null
@@ -1,408 +0,0 @@
-package repository
-
-import (
- "reflect"
- "testing"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_ListAllStorageAccount_MultiplesResults(t *testing.T) {
-
- expected := []*armstorage.StorageAccount{
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account1"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account2"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account3"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account4"),
- },
- },
- },
- }
-
- fakeClient := &mockStorageAccountClient{}
-
- mockPager := &mockStorageAccountListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armstorage.StorageAccountsListResponse{
- StorageAccountsListResult: armstorage.StorageAccountsListResult{
- StorageAccountListResult: armstorage.StorageAccountListResult{
- Value: []*armstorage.StorageAccount{
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account1"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account2"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armstorage.StorageAccountsListResponse{
- StorageAccountsListResult: armstorage.StorageAccountsListResult{
- StorageAccountListResult: armstorage.StorageAccountListResult{
- Value: []*armstorage.StorageAccount{
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account3"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account4"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
-
- fakeClient.On("List", mock.Anything).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllStorageAccount").Return(nil).Times(1)
- c.On("Unlock", "ListAllStorageAccount").Times(1)
- c.On("Put", "ListAllStorageAccount", expected).Return(true).Times(1)
- s := &storageRepository{
- storageAccountsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllStorageAccount()
- if err != nil {
- t.Errorf("ListAllStorageAccount() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllStorageAccount() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllStorageAccount_MultiplesResults_WithCache(t *testing.T) {
-
- expected := []*armstorage.StorageAccount{
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("account1"),
- },
- },
- },
- }
-
- fakeClient := &mockStorageAccountClient{}
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "ListAllStorageAccount").Return(expected).Times(1)
- c.On("Unlock", "ListAllStorageAccount").Times(1)
- s := &storageRepository{
- storageAccountsClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllStorageAccount()
- if err != nil {
- t.Errorf("ListAllStorageAccount() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListAllStorageAccount() got = %v, want %v", got, expected)
- }
-}
-
-func Test_ListAllStorageAccount_Error(t *testing.T) {
-
- fakeClient := &mockStorageAccountClient{}
-
- expectedErr := errors.New("unexpected error")
-
- mockPager := &mockStorageAccountListPager{}
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("PageResponse").Return(armstorage.StorageAccountsListResponse{}).Times(1)
-
- fakeClient.On("List", mock.Anything).Return(mockPager)
-
- s := &storageRepository{
- storageAccountsClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllStorageAccount()
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
-
- assert.Equal(t, expectedErr, err)
- assert.Nil(t, got)
-}
-
-func Test_ListAllStorageContainer_MultiplesResults(t *testing.T) {
-
- account := armstorage.StorageAccount{
- Properties: &armstorage.StorageAccountProperties{
- PrimaryEndpoints: &armstorage.Endpoints{
- Blob: to.StringPtr("https://testeliedriftctl.blob.core.windows.net/"),
- },
- },
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/foobar/providers/Microsoft.Storage/storageAccounts/testeliedriftctl"),
- Name: to.StringPtr("testeliedriftctl"),
- },
- },
- }
-
- expected := []string{
- "https://testeliedriftctl.blob.core.windows.net/container1",
- "https://testeliedriftctl.blob.core.windows.net/container2",
- "https://testeliedriftctl.blob.core.windows.net/container3",
- "https://testeliedriftctl.blob.core.windows.net/container4",
- }
-
- fakeClient := &mockBlobContainerClient{}
-
- mockPager := &mockBlobContainerListPager{}
- mockPager.On("Err").Return(nil).Times(3)
- mockPager.On("NextPage", mock.Anything).Return(true).Times(2)
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("PageResponse").Return(armstorage.BlobContainersListResponse{
- BlobContainersListResult: armstorage.BlobContainersListResult{
- ListContainerItems: armstorage.ListContainerItems{
- Value: []*armstorage.ListContainerItem{
- {
- AzureEntityResource: armstorage.AzureEntityResource{
- Resource: armstorage.Resource{
- Name: to.StringPtr("container1"),
- },
- },
- },
- {
- AzureEntityResource: armstorage.AzureEntityResource{
- Resource: armstorage.Resource{
- Name: to.StringPtr("container2"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
- mockPager.On("PageResponse").Return(armstorage.BlobContainersListResponse{
- BlobContainersListResult: armstorage.BlobContainersListResult{
- ListContainerItems: armstorage.ListContainerItems{
- Value: []*armstorage.ListContainerItem{
- {
- AzureEntityResource: armstorage.AzureEntityResource{
- Resource: armstorage.Resource{
- Name: to.StringPtr("container3"),
- },
- },
- },
- {
- AzureEntityResource: armstorage.AzureEntityResource{
- Resource: armstorage.Resource{
- Name: to.StringPtr("container4"),
- },
- },
- },
- },
- },
- },
- }).Times(1)
-
- fakeClient.On("List", "foobar", "testeliedriftctl", (*armstorage.BlobContainersListOptions)(nil)).Return(mockPager)
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllStorageContainer_testeliedriftctl").Return(nil).Times(1)
- c.On("Put", "ListAllStorageContainer_testeliedriftctl", expected).Return(true).Times(1)
- s := &storageRepository{
- blobContainerClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllStorageContainer(&account)
- if err != nil {
- t.Errorf("ListAllStorageAccount() error = %v", err)
- return
- }
-
- mockPager.AssertExpectations(t)
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- assert.Equal(t, expected, got)
-}
-
-func Test_ListAllStorageContainer_MultiplesResults_WithCache(t *testing.T) {
-
- account := armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/foobar/providers/Microsoft.Storage/storageAccounts/testeliedriftctl"),
- Name: to.StringPtr("testeliedriftctl"),
- },
- },
- }
-
- expected := []string{
- "https://testeliedriftctl.blob.core.windows.net/container1",
- }
-
- fakeClient := &mockBlobContainerClient{}
-
- c := &cache.MockCache{}
- c.On("Get", "ListAllStorageContainer_testeliedriftctl").Return(expected).Times(1)
- s := &storageRepository{
- blobContainerClient: fakeClient,
- cache: c,
- }
- got, err := s.ListAllStorageContainer(&account)
- if err != nil {
- t.Errorf("ListAllStorageAccount() error = %v", err)
- return
- }
-
- fakeClient.AssertExpectations(t)
- c.AssertExpectations(t)
-
- assert.Equal(t, expected, got)
-}
-
-func Test_ListAllStorageContainer_InvalidStorageAccountResourceID(t *testing.T) {
-
- account := armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: to.StringPtr("foobar"),
- Name: to.StringPtr(""),
- },
- },
- }
-
- fakeClient := &mockBlobContainerClient{}
-
- s := &storageRepository{
- blobContainerClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllStorageContainer(&account)
-
- fakeClient.AssertExpectations(t)
-
- assert.Nil(t, got)
- assert.Equal(t, "parsing failed for foobar. Invalid resource Id format", err.Error())
-}
-
-func Test_ListAllStorageContainer_Error(t *testing.T) {
-
- account := armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/foobar/providers/Microsoft.Storage/storageAccounts/testeliedriftctl"),
- Name: to.StringPtr("testeliedriftctl"),
- },
- },
- }
-
- expectedErr := errors.New("sample error")
-
- fakeClient := &mockBlobContainerClient{}
- mockPager := &mockBlobContainerListPager{}
- mockPager.On("NextPage", mock.Anything).Return(true).Times(1)
- mockPager.On("Err").Return(expectedErr).Times(1)
- mockPager.On("PageResponse").Return(armstorage.BlobContainersListResponse{}).Times(1)
-
- fakeClient.On("List", "foobar", "testeliedriftctl", (*armstorage.BlobContainersListOptions)(nil)).Return(mockPager)
-
- s := &storageRepository{
- blobContainerClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllStorageContainer(&account)
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
-
- assert.Nil(t, got)
- assert.Equal(t, expectedErr, err)
-}
-
-func Test_ListAllStorageContainer_IgnoredError(t *testing.T) {
-
- account := armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: to.StringPtr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/foobar/providers/Microsoft.Storage/storageAccounts/testeliedriftctl"),
- Name: to.StringPtr("testeliedriftctl"),
- },
- },
- }
-
- fakeClient := &mockBlobContainerClient{}
- mockPager := &mockBlobContainerListPager{}
- mockPager.On("NextPage", mock.Anything).Return(false).Times(1)
- mockPager.On("Err").Return(runtime.NewResponseError(
- errors.New("{\"error\":{\"code\":\"FeatureNotSupportedForAccount\",\"message\":\"Blob is not supported for the account.\"}}"),
- nil),
- ).Times(1)
-
- fakeClient.On("List", "foobar", "testeliedriftctl", (*armstorage.BlobContainersListOptions)(nil)).Return(mockPager)
-
- s := &storageRepository{
- blobContainerClient: fakeClient,
- cache: cache.New(0),
- }
- got, err := s.ListAllStorageContainer(&account)
-
- fakeClient.AssertExpectations(t)
- mockPager.AssertExpectations(t)
-
- assert.Empty(t, got)
- assert.Equal(t, nil, err)
-}
diff --git a/enumeration/remote/azurerm_compute_scanner_test.go b/enumeration/remote/azurerm_compute_scanner_test.go
deleted file mode 100644
index b51ec0e44..000000000
--- a/enumeration/remote/azurerm_compute_scanner_test.go
+++ /dev/null
@@ -1,238 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermCompute_Image(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockComputeRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no images",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllImages").Return([]*armcompute.Image{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing images",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllImages").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzureImageResourceType),
- },
- {
- test: "multiple images including an invalid ID",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllImages").Return([]*armcompute.Image{
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/4e411884-65b0-4911-bc80-52f9a21942a2/resourceGroups/testgroup/providers/Microsoft.Compute/images/image1"),
- Name: to.StringPtr("image1"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/4e411884-65b0-4911-bc80-52f9a21942a2/resourceGroups/testgroup/providers/Microsoft.Compute/images/image2"),
- Name: to.StringPtr("image2"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/invalid-id/image3"),
- Name: to.StringPtr("image3"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "/subscriptions/4e411884-65b0-4911-bc80-52f9a21942a2/resourceGroups/testgroup/providers/Microsoft.Compute/images/image1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureImageResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "/subscriptions/4e411884-65b0-4911-bc80-52f9a21942a2/resourceGroups/testgroup/providers/Microsoft.Compute/images/image2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureImageResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockComputeRepository{}
- c.mocks(fakeRepo, alerter)
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermImageEnumerator(fakeRepo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermCompute_SSHPublicKey(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockComputeRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no public key",
- dirName: "azurerm_ssh_public_key_empty",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSSHPublicKeys").Return([]*armcompute.SSHPublicKeyResource{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing public keys",
- dirName: "azurerm_ssh_public_key_empty",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSSHPublicKeys").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzureSSHPublicKeyResourceType),
- },
- {
- test: "multiple public keys",
- dirName: "azurerm_ssh_public_key_multiple",
- mocks: func(repository *repository.MockComputeRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSSHPublicKeys").Return([]*armcompute.SSHPublicKeyResource{
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/example-key"),
- Name: to.StringPtr("example-key"),
- },
- },
- {
- Resource: armcompute.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/example-key2"),
- Name: to.StringPtr("example-key2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/example-key", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzureSSHPublicKeyResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/TESTRESGROUP/providers/Microsoft.Compute/sshPublicKeys/example-key2", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzureSSHPublicKeyResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockComputeRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ComputeRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraform2.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewComputeRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermSSHPublicKeyEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_containerregistry_scanner_test.go b/enumeration/remote/azurerm_containerregistry_scanner_test.go
deleted file mode 100644
index 16dc76fd7..000000000
--- a/enumeration/remote/azurerm_containerregistry_scanner_test.go
+++ /dev/null
@@ -1,108 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- error2 "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermContainerRegistry(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockContainerRegistryRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no container registry",
- mocks: func(repository *repository.MockContainerRegistryRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllContainerRegistries").Return([]*armcontainerregistry.Registry{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing container registry",
- mocks: func(repository *repository.MockContainerRegistryRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllContainerRegistries").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureContainerRegistryResourceType),
- },
- {
- test: "multiple container registries",
- mocks: func(repository *repository.MockContainerRegistryRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllContainerRegistries").Return([]*armcontainerregistry.Registry{
- {
- Resource: armcontainerregistry.Resource{
- ID: to.StringPtr("registry1"),
- },
- },
- {
- Resource: armcontainerregistry.Resource{
- ID: to.StringPtr("registry2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "registry1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureContainerRegistryResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "registry2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureContainerRegistryResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockContainerRegistryRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ContainerRegistryRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermContainerRegistryEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_network_scanner_test.go b/enumeration/remote/azurerm_network_scanner_test.go
deleted file mode 100644
index 255ce5a16..000000000
--- a/enumeration/remote/azurerm_network_scanner_test.go
+++ /dev/null
@@ -1,988 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- error2 "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermVirtualNetwork(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no virtual network",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return([]*armnetwork.VirtualNetwork{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing virtual network",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureVirtualNetworkResourceType),
- },
- {
- test: "multiple virtual network",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return([]*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network1"),
- Name: to.StringPtr("network1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network2"),
- Name: to.StringPtr("network2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "network1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureVirtualNetworkResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "network2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureVirtualNetworkResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermVirtualNetworkEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermRouteTables(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no route tables",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*armnetwork.RouteTable{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing route tables",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureRouteTableResourceType),
- },
- {
- test: "multiple route tables",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*armnetwork.RouteTable{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("route1"),
- Name: to.StringPtr("route1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("route2"),
- Name: to.StringPtr("route2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "route1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureRouteTableResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "route2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureRouteTableResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermRouteTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermRoutes(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no route tables",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*armnetwork.RouteTable{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "no routes",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*armnetwork.RouteTable{
- {
- Properties: &armnetwork.RouteTablePropertiesFormat{
- Routes: []*armnetwork.Route{},
- },
- },
- {
- Properties: &armnetwork.RouteTablePropertiesFormat{
- Routes: []*armnetwork.Route{},
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing route tables",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingErrorWithType(dummyError, resourceazure.AzureRouteResourceType, resourceazure.AzureRouteTableResourceType),
- },
- {
- test: "multiple routes",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllRouteTables").Return([]*armnetwork.RouteTable{
- {
- Resource: armnetwork.Resource{
- Name: to.StringPtr("table1"),
- },
- Properties: &armnetwork.RouteTablePropertiesFormat{
- Routes: []*armnetwork.Route{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("route1"),
- },
- Name: to.StringPtr("route1"),
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("route2"),
- },
- Name: to.StringPtr("route2"),
- },
- },
- },
- },
- {
- Resource: armnetwork.Resource{
- Name: to.StringPtr("table2"),
- },
- Properties: &armnetwork.RouteTablePropertiesFormat{
- Routes: []*armnetwork.Route{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("route3"),
- },
- Name: to.StringPtr("route3"),
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("route4"),
- },
- Name: to.StringPtr("route4"),
- },
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- assert.Equal(t, "route1", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzureRouteResourceType, got[0].ResourceType())
-
- assert.Equal(t, "route2", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzureRouteResourceType, got[1].ResourceType())
-
- assert.Equal(t, "route3", got[2].ResourceId())
- assert.Equal(t, resourceazure.AzureRouteResourceType, got[2].ResourceType())
-
- assert.Equal(t, "route4", got[3].ResourceId())
- assert.Equal(t, resourceazure.AzureRouteResourceType, got[3].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermRouteEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermSubnets(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- networks := []*armnetwork.VirtualNetwork{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("network2"),
- },
- },
- }
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no subnets",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return(networks, nil)
- repository.On("ListAllSubnets", networks[0]).Return([]*armnetwork.Subnet{}, nil).Times(1)
- repository.On("ListAllSubnets", networks[1]).Return([]*armnetwork.Subnet{}, nil).Times(1)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing virtual network",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingErrorWithType(dummyError, resourceazure.AzureSubnetResourceType, resourceazure.AzureVirtualNetworkResourceType),
- },
- {
- test: "error listing subnets",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return(networks, nil)
- repository.On("ListAllSubnets", networks[0]).Return(nil, dummyError).Times(1)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureSubnetResourceType),
- },
- {
- test: "multiple subnets",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllVirtualNetworks").Return(networks, nil)
- repository.On("ListAllSubnets", networks[0]).Return([]*armnetwork.Subnet{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet1"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet2"),
- },
- },
- }, nil).Times(1)
- repository.On("ListAllSubnets", networks[1]).Return([]*armnetwork.Subnet{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet3"),
- },
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("subnet4"),
- },
- },
- }, nil).Times(1)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- assert.Equal(t, got[0].ResourceId(), "subnet1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureSubnetResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "subnet2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureSubnetResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "subnet3")
- assert.Equal(t, got[2].ResourceType(), resourceazure.AzureSubnetResourceType)
-
- assert.Equal(t, got[3].ResourceId(), "subnet4")
- assert.Equal(t, got[3].ResourceType(), resourceazure.AzureSubnetResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermSubnetEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermFirewalls(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no firewall",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllFirewalls").Return([]*armnetwork.AzureFirewall{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing firewalls",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllFirewalls").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureFirewallResourceType),
- },
- {
- test: "multiple firewalls",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllFirewalls").Return([]*armnetwork.AzureFirewall{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall1"), // Here we don't care to have a valid ID, it is for testing purpose only
- Name: to.StringPtr("firewall1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("firewall2"),
- Name: to.StringPtr("firewall2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "firewall1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureFirewallResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "firewall2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureFirewallResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermFirewallsEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPublicIP(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no public IP",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPublicIPAddresses").Return([]*armnetwork.PublicIPAddress{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing public IPs",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPublicIPAddresses").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzurePublicIPResourceType),
- },
- {
- test: "multiple public IP",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPublicIPAddresses").Return([]*armnetwork.PublicIPAddress{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip1"), // Here we don't care to have a valid ID, it is for testing purpose only
- Name: to.StringPtr("ip1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("ip2"),
- Name: to.StringPtr("ip2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "ip1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzurePublicIPResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "ip2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzurePublicIPResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPublicIPEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermSecurityGroups(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no security group",
- dirName: "azurerm_network_security_group_empty",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSecurityGroups").Return([]*armnetwork.NetworkSecurityGroup{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing security groups",
- dirName: "azurerm_network_security_group_empty",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSecurityGroups").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureNetworkSecurityGroupResourceType),
- },
- {
- test: "multiple security groups",
- dirName: "azurerm_network_security_group_multiple",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllSecurityGroups").Return([]*armnetwork.NetworkSecurityGroup{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/example-resources/providers/Microsoft.Network/networkSecurityGroups/acceptanceTestSecurityGroup1"),
- Name: to.StringPtr("acceptanceTestSecurityGroup1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/example-resources/providers/Microsoft.Network/networkSecurityGroups/acceptanceTestSecurityGroup2"),
- Name: to.StringPtr("acceptanceTestSecurityGroup2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/example-resources/providers/Microsoft.Network/networkSecurityGroups/acceptanceTestSecurityGroup1", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzureNetworkSecurityGroupResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/example-resources/providers/Microsoft.Network/networkSecurityGroups/acceptanceTestSecurityGroup2", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzureNetworkSecurityGroupResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraform2.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewNetworkRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermNetworkSecurityGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermLoadBalancers(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no load balancer",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*armnetwork.LoadBalancer{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing load balancers",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureLoadBalancerResourceType),
- },
- {
- test: "multiple load balancers",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return([]*armnetwork.LoadBalancer{
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("lb-1"), // Here we don't care to have a valid ID, it is for testing purpose only
- Name: to.StringPtr("lb-1"),
- },
- },
- {
- Resource: armnetwork.Resource{
- ID: to.StringPtr("lb-2"),
- Name: to.StringPtr("lb-2"),
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "lb-1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureLoadBalancerResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "lb-2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureLoadBalancerResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermLoadBalancerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermLoadBalancerRules(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockNetworkRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no load balancer rule",
- dirName: "azurerm_lb_rule_empty",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- loadbalancer := &armnetwork.LoadBalancer{
- Resource: armnetwork.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress"),
- Name: to.StringPtr("testlb"),
- },
- }
-
- repository.On("ListAllLoadBalancers").Return([]*armnetwork.LoadBalancer{loadbalancer}, nil)
-
- repository.On("ListLoadBalancerRules", loadbalancer).Return([]*armnetwork.LoadBalancingRule{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing load balancer rules",
- dirName: "azurerm_lb_rule_empty",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllLoadBalancers").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: error2.NewResourceListingErrorWithType(dummyError, resourceazure.AzureLoadBalancerRuleResourceType, resourceazure.AzureLoadBalancerResourceType),
- },
- {
- test: "multiple load balancer rules",
- dirName: "azurerm_lb_rule_multiple",
- mocks: func(repository *repository.MockNetworkRepository, alerter *mocks.AlerterInterface) {
- loadbalancer := &armnetwork.LoadBalancer{
- Resource: armnetwork.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/frontendIPConfigurations/PublicIPAddress"),
- Name: to.StringPtr("TestLoadBalancer"),
- },
- }
-
- repository.On("ListAllLoadBalancers").Return([]*armnetwork.LoadBalancer{loadbalancer}, nil)
-
- repository.On("ListLoadBalancerRules", loadbalancer).Return([]*armnetwork.LoadBalancingRule{
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/loadBalancingRules/LBRule"),
- },
- Name: to.StringPtr("LBRule"),
- },
- {
- SubResource: armnetwork.SubResource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/loadBalancingRules/LBRule2"),
- },
- Name: to.StringPtr("LBRule2"),
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/loadBalancingRules/LBRule", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzureLoadBalancerRuleResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/raphael-dev/providers/Microsoft.Network/loadBalancers/TestLoadBalancer/loadBalancingRules/LBRule2", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzureLoadBalancerRuleResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockNetworkRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.NetworkRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraform2.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewNetworkRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermLoadBalancerRuleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_postgresql_scanner_test.go b/enumeration/remote/azurerm_postgresql_scanner_test.go
deleted file mode 100644
index 87651a5a9..000000000
--- a/enumeration/remote/azurerm_postgresql_scanner_test.go
+++ /dev/null
@@ -1,235 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermPostgresqlServer(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockPostgresqlRespository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no postgres server",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return([]*armpostgresql.Server{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing postgres servers",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePostgresqlServerResourceType),
- },
- {
- test: "multiple postgres servers",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return([]*armpostgresql.Server{
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("server1"),
- Name: to.StringPtr("server1"),
- },
- },
- },
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("server2"),
- Name: to.StringPtr("server2"),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "server1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzurePostgresqlServerResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "server2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzurePostgresqlServerResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPostgresqlRespository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PostgresqlRespository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPostgresqlServerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPostgresqlDatabase(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockPostgresqlRespository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no postgres database",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return([]*armpostgresql.Server{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing postgres servers",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return(nil, dummyError)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePostgresqlDatabaseResourceType, resourceazure.AzurePostgresqlServerResourceType),
- },
- {
- test: "error listing postgres databases",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return([]*armpostgresql.Server{
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/api-rg-pro/providers/Microsoft.DBforPostgreSQL/servers/postgresql-server-8791542"),
- Name: to.StringPtr("postgresql-server-8791542"),
- },
- },
- },
- }, nil).Once()
-
- repository.On("ListAllDatabasesByServer", mock.IsType(&armpostgresql.Server{})).Return(nil, dummyError).Once()
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePostgresqlDatabaseResourceType),
- },
- {
- test: "multiple postgres databases",
- mocks: func(repository *repository.MockPostgresqlRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllServers").Return([]*armpostgresql.Server{
- {
- TrackedResource: armpostgresql.TrackedResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/api-rg-pro/providers/Microsoft.DBforPostgreSQL/servers/postgresql-server-8791542"),
- Name: to.StringPtr("postgresql-server-8791542"),
- },
- },
- },
- }, nil).Once()
-
- repository.On("ListAllDatabasesByServer", mock.IsType(&armpostgresql.Server{})).Return([]*armpostgresql.Database{
- {
- ProxyResource: armpostgresql.ProxyResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("db1"),
- Name: to.StringPtr("db1"),
- },
- },
- },
- {
- ProxyResource: armpostgresql.ProxyResource{
- Resource: armpostgresql.Resource{
- ID: to.StringPtr("db2"),
- Name: to.StringPtr("db2"),
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "db1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzurePostgresqlDatabaseResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "db2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzurePostgresqlDatabaseResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPostgresqlRespository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PostgresqlRespository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPostgresqlDatabaseEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_privatedns_scanner_test.go b/enumeration/remote/azurerm_privatedns_scanner_test.go
deleted file mode 100644
index 88c4057e4..000000000
--- a/enumeration/remote/azurerm_privatedns_scanner_test.go
+++ /dev/null
@@ -1,1323 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test/goldenfile"
-
- terraformtest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermPrivateDNSZone(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private zone",
- dirName: "azurerm_private_dns_private_zone_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zones",
- dirName: "azurerm_private_dns_private_zone_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "multiple private zones",
- dirName: "azurerm_private_dns_private_zone_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf2.com"),
- Name: to.StringPtr("thisisatestusingtf2.com"),
- },
- },
- },
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/testmartin.com"),
- Name: to.StringPtr("testmartin.com"),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSZoneResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf2.com", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSZoneResourceType, got[1].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/testmartin.com", got[2].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSZoneResourceType, got[2].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSZoneEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSARecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private a record",
- dirName: "azurerm_private_dns_a_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_a_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSARecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private a records",
- dirName: "azurerm_private_dns_a_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllARecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSARecordResourceType),
- },
- {
- test: "multiple private a records",
- dirName: "azurerm_private_dns_a_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllARecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/A/test"),
- Name: to.StringPtr("test"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("10.0.180.17")},
- {IPv4Address: to.StringPtr("10.0.180.20")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/A/othertest"),
- Name: to.StringPtr("othertest"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- ARecords: []*armprivatedns.ARecord{
- {IPv4Address: to.StringPtr("10.0.180.20")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/A/test", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSARecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/A/othertest", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSARecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSARecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSAAAARecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private aaaa record",
- dirName: "azurerm_private_dns_aaaa_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_aaaa_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSAAAARecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private aaaa records",
- dirName: "azurerm_private_dns_aaaa_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllAAAARecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSAAAARecordResourceType),
- },
- {
- test: "multiple private aaaaa records",
- dirName: "azurerm_private_dns_aaaaa_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllAAAARecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/AAAA/test"),
- Name: to.StringPtr("test"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("fd5d:70bc:930e:d008:0000:0000:0000:7334")},
- {IPv6Address: to.StringPtr("fd5d:70bc:930e:d008::7335")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/AAAA/othertest"),
- Name: to.StringPtr("othertest"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- AaaaRecords: []*armprivatedns.AaaaRecord{
- {IPv6Address: to.StringPtr("fd5d:70bc:930e:d008:0000:0000:0000:7334")},
- {IPv6Address: to.StringPtr("fd5d:70bc:930e:d008::7335")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/AAAA/test", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSAAAARecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/AAAA/othertest", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSAAAARecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSAAAARecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSCNAMERecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private cname record",
- dirName: "azurerm_private_dns_cname_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_cname_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSCNameRecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private cname records",
- dirName: "azurerm_private_dns_cname_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllCNAMERecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSCNameRecordResourceType),
- },
- {
- test: "multiple private cname records",
- dirName: "azurerm_private_dns_cname_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllCNAMERecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/CNAME/test"),
- Name: to.StringPtr("test"),
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/CNAME/othertest"),
- Name: to.StringPtr("othertest"),
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/CNAME/test", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSCNameRecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/CNAME/othertest", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSCNameRecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSCNameRecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSPTRRecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private ptr record",
- dirName: "azurerm_private_dns_ptr_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_ptr_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSPTRRecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private ptr records",
- dirName: "azurerm_private_dns_ptr_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllPTRRecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSPTRRecordResourceType),
- },
- {
- test: "multiple private ptra records",
- dirName: "azurerm_private_dns_ptr_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllPTRRecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/PTR/othertestptr"),
- Name: to.StringPtr("othertestptr"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptr1.thisisatestusingtf.com")},
- {Ptrdname: to.StringPtr("ptr2.thisisatestusingtf.com")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/PTR/testptr"),
- Name: to.StringPtr("testptr"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("ptr3.thisisatestusingtf.com")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/PTR/othertestptr", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSPTRRecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/PTR/testptr", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSPTRRecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSPTRRecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSMXRecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private mx record",
- dirName: "azurerm_private_dns_mx_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_mx_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSMXRecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private mx records",
- dirName: "azurerm_private_dns_mx_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllMXRecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSMXRecordResourceType),
- },
- {
- test: "multiple private mx records",
- dirName: "azurerm_private_dns_mx_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllMXRecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/MX/othertestmx"),
- Name: to.StringPtr("othertestmx"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex1")},
- {Exchange: to.StringPtr("ex2")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/MX/testmx"),
- Name: to.StringPtr("testmx"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- MxRecords: []*armprivatedns.MxRecord{
- {Exchange: to.StringPtr("ex1")},
- {Exchange: to.StringPtr("ex2")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/MX/othertestmx", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSMXRecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/MX/testmx", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSMXRecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSMXRecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSSRVRecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private srv record",
- dirName: "azurerm_private_dns_srv_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_srv_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSSRVRecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private srv records",
- dirName: "azurerm_private_dns_srv_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllSRVRecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSSRVRecordResourceType),
- },
- {
- test: "multiple private srv records",
- dirName: "azurerm_private_dns_srv_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllSRVRecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/SRV/othertestptr"),
- Name: to.StringPtr("othertestptr"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- SrvRecords: []*armprivatedns.SrvRecord{
- {Target: to.StringPtr("srv1.thisisatestusingtf.com")},
- {Target: to.StringPtr("srv2.thisisatestusingtf.com")},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/SRV/testptr"),
- Name: to.StringPtr("testptr"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("srv3.thisisatestusingtf.com")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/SRV/othertestptr", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSSRVRecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/SRV/testptr", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSSRVRecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSSRVRecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermPrivateDNSTXTRecord(t *testing.T) {
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- dirName string
- mocks func(*repository.MockPrivateDNSRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no private txt record",
- dirName: "azurerm_private_dns_txt_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing private zone",
- dirName: "azurerm_private_dns_txt_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingErrorWithType(dummyError, resourceazure.AzurePrivateDNSTXTRecordResourceType, resourceazure.AzurePrivateDNSZoneResourceType),
- },
- {
- test: "error listing private txt records",
- dirName: "azurerm_private_dns_txt_record_empty",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
- repository.On("ListAllTXTRecords", mock.Anything).Return(nil, dummyError)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: remoteerr.NewResourceListingError(dummyError, resourceazure.AzurePrivateDNSTXTRecordResourceType),
- },
- {
- test: "multiple private txt records",
- dirName: "azurerm_private_dns_txt_record_multiple",
- mocks: func(repository *repository.MockPrivateDNSRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllPrivateZones").Return([]*armprivatedns.PrivateZone{
- {
- TrackedResource: armprivatedns.TrackedResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/7bfb2c5c-7308-46ed-8ae4-fffa356eb406/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com"),
- Name: to.StringPtr("thisisatestusingtf.com"),
- },
- },
- },
- }, nil)
-
- repository.On("ListAllTXTRecords", mock.Anything).Return([]*armprivatedns.RecordSet{
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/TXT/othertesttxt"),
- Name: to.StringPtr("othertesttxt"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- TxtRecords: []*armprivatedns.TxtRecord{
- {Value: []*string{to.StringPtr("this is value line 1")}},
- {Value: []*string{to.StringPtr("this is value line 2")}},
- },
- },
- },
- {
- ProxyResource: armprivatedns.ProxyResource{
- Resource: armprivatedns.Resource{
- ID: to.StringPtr("/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/TXT/testtxt"),
- Name: to.StringPtr("testtxt"),
- },
- },
- Properties: &armprivatedns.RecordSetProperties{
- PtrRecords: []*armprivatedns.PtrRecord{
- {Ptrdname: to.StringPtr("this is value line 3")},
- },
- },
- },
- }, nil).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/TXT/othertesttxt", got[0].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSTXTRecordResourceType, got[0].ResourceType())
-
- assert.Equal(t, "/subscriptions/8cb43347-a79f-4bb2-a8b4-c838b41fa5a5/resourceGroups/martin-dev/providers/Microsoft.Network/privateDnsZones/thisisatestusingtf.com/TXT/testtxt", got[1].ResourceId())
- assert.Equal(t, resourceazure.AzurePrivateDNSTXTRecordResourceType, got[1].ResourceType())
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockPrivateDNSRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.PrivateDNSRepository = fakeRepo
- providerVersion := "2.71.0"
- realProvider, err := terraformtest.InitTestAzureProvider(providerLibrary, providerVersion)
- if err != nil {
- t.Fatal(err)
- }
- provider := terraformtest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- cred, err := azidentity.NewDefaultAzureCredential(&azidentity.DefaultAzureCredentialOptions{})
- if err != nil {
- t.Fatal(err)
- }
- clientOptions := &arm.ClientOptions{}
- repo = repository.NewPrivateDNSRepository(cred, clientOptions, realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermPrivateDNSTXTRecordEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
-
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_resources_scanner_test.go b/enumeration/remote/azurerm_resources_scanner_test.go
deleted file mode 100644
index f395449c2..000000000
--- a/enumeration/remote/azurerm_resources_scanner_test.go
+++ /dev/null
@@ -1,106 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- error2 "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermResourceGroups(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockResourcesRepository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no resource group",
- mocks: func(repository *repository.MockResourcesRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllResourceGroups").Return([]*armresources.ResourceGroup{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing resource groups",
- mocks: func(repository *repository.MockResourcesRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllResourceGroups").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureResourceGroupResourceType),
- },
- {
- test: "multiple resource groups",
- mocks: func(repository *repository.MockResourcesRepository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllResourceGroups").Return([]*armresources.ResourceGroup{
- {
- ID: to.StringPtr("group1"),
- Name: to.StringPtr("group1"),
- },
- {
- ID: to.StringPtr("group2"),
- Name: to.StringPtr("group2"),
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "group1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureResourceGroupResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "group2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureResourceGroupResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockResourcesRepository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.ResourcesRepository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermResourceGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/azurerm_storage_scanner_test.go b/enumeration/remote/azurerm_storage_scanner_test.go
deleted file mode 100644
index 707108b31..000000000
--- a/enumeration/remote/azurerm_storage_scanner_test.go
+++ /dev/null
@@ -1,251 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/azurerm/repository"
- "github.com/snyk/driftctl/enumeration/remote/common"
- error2 "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resourceazure "github.com/snyk/driftctl/enumeration/resource/azurerm"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAzurermStorageAccount(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockStorageRespository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no storage accounts",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing storage accounts",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStorageAccount").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureStorageAccountResourceType),
- },
- {
- test: "multiple storage accounts",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl1"),
- },
- },
- },
- {
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl2"),
- },
- },
- },
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "testeliedriftctl1")
- assert.Equal(t, got[0].ResourceType(), resourceazure.AzureStorageAccountResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "testeliedriftctl2")
- assert.Equal(t, got[1].ResourceType(), resourceazure.AzureStorageAccountResourceType)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockStorageRespository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.StorageRespository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermStorageAccountEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
-
-func TestAzurermStorageContainer(t *testing.T) {
-
- dummyError := errors.New("this is an error")
-
- tests := []struct {
- test string
- mocks func(*repository.MockStorageRespository, *mocks.AlerterInterface)
- assertExpected func(t *testing.T, got []*resource.Resource)
- wantErr error
- }{
- {
- test: "no storage accounts",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "no storage containers",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- account1 := &armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl1"),
- },
- },
- }
- account2 := &armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl1"),
- },
- },
- }
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{
- account1,
- account2,
- }, nil)
- repository.On("ListAllStorageContainer", account1).Return([]string{}, nil)
- repository.On("ListAllStorageContainer", account2).Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "error listing storage accounts",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- repository.On("ListAllStorageAccount").Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingErrorWithType(dummyError, resourceazure.AzureStorageContainerResourceType, resourceazure.AzureStorageAccountResourceType),
- },
- {
- test: "error listing storage container",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- account := &armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl1"),
- },
- },
- }
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{account}, nil)
- repository.On("ListAllStorageContainer", account).Return(nil, dummyError)
- },
- wantErr: error2.NewResourceListingError(dummyError, resourceazure.AzureStorageContainerResourceType),
- },
- {
- test: "multiple storage containers",
- mocks: func(repository *repository.MockStorageRespository, alerter *mocks.AlerterInterface) {
- account1 := &armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl1"),
- },
- },
- }
- account2 := &armstorage.StorageAccount{
- TrackedResource: armstorage.TrackedResource{
- Resource: armstorage.Resource{
- ID: func(s string) *string { return &s }("testeliedriftctl2"),
- },
- },
- }
- repository.On("ListAllStorageAccount").Return([]*armstorage.StorageAccount{
- account1,
- account2,
- }, nil)
- repository.On("ListAllStorageContainer", account1).Return([]string{"https://testeliedriftctl1.blob.core.windows.net/container1", "https://testeliedriftctl1.blob.core.windows.net/container2"}, nil)
- repository.On("ListAllStorageContainer", account2).Return([]string{"https://testeliedriftctl2.blob.core.windows.net/container3", "https://testeliedriftctl2.blob.core.windows.net/container4"}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- for _, container := range got {
- assert.Equal(t, container.ResourceType(), resourceazure.AzureStorageContainerResourceType)
- }
-
- assert.Equal(t, got[0].ResourceId(), "https://testeliedriftctl1.blob.core.windows.net/container1")
- assert.Equal(t, got[1].ResourceId(), "https://testeliedriftctl1.blob.core.windows.net/container2")
- assert.Equal(t, got[2].ResourceId(), "https://testeliedriftctl2.blob.core.windows.net/container3")
- assert.Equal(t, got[3].ResourceId(), "https://testeliedriftctl2.blob.core.windows.net/container4")
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- fakeRepo := &repository.MockStorageRespository{}
- c.mocks(fakeRepo, alerter)
-
- var repo repository.StorageRespository = fakeRepo
-
- remoteLibrary.AddEnumerator(azurerm.NewAzurermStorageContainerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- alerter.AssertExpectations(tt)
- fakeRepo.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/cache/cache.go b/enumeration/remote/cache/cache.go
deleted file mode 100644
index e2d824d41..000000000
--- a/enumeration/remote/cache/cache.go
+++ /dev/null
@@ -1,102 +0,0 @@
-package cache
-
-import (
- "container/list"
- "sync"
-)
-
-type Cache interface {
- Put(string, interface{}) bool
- Get(string) interface{}
- GetAndLock(string) interface{}
- Unlock(string)
- Len() int
-}
-
-type LRUCache struct {
- cap int
- mu *sync.Mutex
- l *list.List
- m map[string]*list.Element
- lockMap *sync.Map
-}
-
-type pair struct {
- key string
- value interface{}
-}
-
-func New(capacity int) Cache {
- return &LRUCache{
- cap: capacity,
- mu: &sync.Mutex{},
- l: &list.List{},
- m: make(map[string]*list.Element, capacity),
- lockMap: &sync.Map{},
- }
-}
-
-func (c *LRUCache) Get(key string) interface{} {
- c.mu.Lock()
- defer c.mu.Unlock()
-
- // if the key exists, move to front
- if node, ok := c.m[key]; ok {
- val := node.Value.(*list.Element).Value.(pair).value
- c.l.MoveToFront(node)
- return val
- }
- return nil
-}
-
-func (c *LRUCache) Put(key string, value interface{}) bool {
- c.mu.Lock()
- defer c.mu.Unlock()
-
- if c.cap == 0 {
- return false
- }
-
- // if the key already exists, move to front and update the value
- if node, ok := c.m[key]; ok {
- c.l.MoveToFront(node)
- node.Value.(*list.Element).Value = pair{key: key, value: value}
- return true
- }
-
- // if the list is full, delete the last element
- if c.l.Len() == c.cap {
- idx := c.l.Back().Value.(*list.Element).Value.(pair).key
- delete(c.m, idx)
- c.l.Remove(c.l.Back())
- }
-
- // initialize a new list node
- node := &list.Element{
- Value: pair{
- key: key,
- value: value,
- },
- }
- element := c.l.PushFront(node)
- c.m[key] = element
-
- return false
-}
-
-func (c *LRUCache) Len() int {
- return c.l.Len()
-}
-
-func (c *LRUCache) GetAndLock(s string) interface{} {
- lock, _ := c.lockMap.LoadOrStore(s, &sync.Mutex{})
- lock.(*sync.Mutex).Lock()
- return c.Get(s)
-}
-
-func (c *LRUCache) Unlock(s string) {
- lock, exist := c.lockMap.Load(s)
- if exist {
- lock.(*sync.Mutex).Unlock()
- }
-}
diff --git a/enumeration/remote/cache/cache_test.go b/enumeration/remote/cache/cache_test.go
deleted file mode 100644
index 0598bd099..000000000
--- a/enumeration/remote/cache/cache_test.go
+++ /dev/null
@@ -1,157 +0,0 @@
-package cache
-
-import (
- "fmt"
- "sync"
- "testing"
- "time"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/stretchr/testify/assert"
-)
-
-func BenchmarkCache(b *testing.B) {
- cache := New(500)
- for i := 0; i < b.N; i++ {
- key := fmt.Sprintf("test-key-%d", i)
- data := make([]*resource.Resource, 1024)
- assert.Equal(b, false, cache.Put(key, data))
- assert.Equal(b, data, cache.Get(key))
- }
-}
-
-func TestCache(t *testing.T) {
- t.Run("should return nil on non-existing key", func(t *testing.T) {
- cache := New(5)
- assert.Equal(t, nil, cache.Get("test"))
- assert.Equal(t, 0, cache.Len())
- })
-
- t.Run("should retrieve newly added key", func(t *testing.T) {
- cache := New(5)
- assert.Equal(t, false, cache.Put("s3", []string{}))
- assert.Equal(t, []string{}, cache.Get("s3"))
- assert.Equal(t, 1, cache.Len())
- })
-
- t.Run("should override existing key", func(t *testing.T) {
- cache := New(5)
- assert.Equal(t, false, cache.Put("s3", []string{}))
- assert.Equal(t, []string{}, cache.Get("s3"))
-
- assert.Equal(t, true, cache.Put("s3", []string{"test"}))
- assert.Equal(t, []string{"test"}, cache.Get("s3"))
- assert.Equal(t, 1, cache.Len())
- })
-
- t.Run("should delete the least used keys", func(t *testing.T) {
- keys := []struct {
- key string
- value interface{}
- }{
- {key: "test-0", value: nil},
- {key: "test-1", value: nil},
- {key: "test-2", value: nil},
- {key: "test-3", value: nil},
- {key: "test-4", value: nil},
- {key: "test-5", value: nil},
- {key: "test-6", value: "value"},
- {key: "test-7", value: "value"},
- {key: "test-8", value: "value"},
- {key: "test-9", value: "value"},
- {key: "test-10", value: "value"},
- }
-
- cache := New(5)
- for i := 0; i <= 10; i++ {
- cache.Put(fmt.Sprintf("test-%d", i), "value")
- }
- for _, k := range keys {
- assert.Equal(t, k.value, cache.Get(k.key))
- }
- assert.Equal(t, 5, cache.Len())
- })
-
- t.Run("should ignore keys when capacity is 0", func(t *testing.T) {
- keys := []struct {
- key string
- value interface{}
- }{
- {
- "test",
- []string{"slice"},
- },
- {
- "test",
- []string{},
- },
- {
- "test2",
- []*resource.Resource{},
- },
- }
- cache := New(0)
-
- for _, k := range keys {
- assert.Equal(t, false, cache.Put(k.key, k.value))
- assert.Equal(t, nil, cache.Get(k.key))
- }
- assert.Equal(t, 0, cache.Len())
- })
-
- t.Run("cache will not panic for parallel calls", func(t *testing.T) {
- key := "sameKeyForMultiplesRoutines"
-
- cache := New(1)
-
- wg := sync.WaitGroup{}
- missCount := 0
-
- for i := 0; i < 100; i++ {
- wg.Add(1)
- go func() {
- defer wg.Done()
- hit := cache.Get(key)
- if hit != nil {
- return
- }
- missCount++
- time.Sleep(10 * time.Millisecond)
- cache.Put(key, "value")
- }()
- }
-
- wg.Wait()
- assert.Equal(t, cache.Get(key), "value")
- assert.Greater(t, missCount, 1)
- })
-
- t.Run("cache should be missed only once with parallel calls and GetAndLock usage", func(t *testing.T) {
- key := "sameKeyForMultiplesRoutines"
-
- cache := New(1)
-
- nbRoutines := 100
- wg := sync.WaitGroup{}
- wg.Add(nbRoutines)
-
- missCount := 0
- for i := 0; i < nbRoutines; i++ {
- go func() {
- defer wg.Done()
- hit := cache.GetAndLock(key)
- defer cache.Unlock(key)
- if hit != nil {
- return
- }
- missCount++
- time.Sleep(1 * time.Millisecond)
- cache.Put(key, "value")
- }()
- }
-
- wg.Wait()
- assert.Equal(t, cache.Get(key), "value")
- assert.Equal(t, 1, missCount)
- })
-}
diff --git a/enumeration/remote/cache/mock_Cache.go b/enumeration/remote/cache/mock_Cache.go
deleted file mode 100644
index 60e265ce4..000000000
--- a/enumeration/remote/cache/mock_Cache.go
+++ /dev/null
@@ -1,90 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package cache
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockCache is an autogenerated mock type for the Cache type
-type MockCache struct {
- mock.Mock
-}
-
-// Get provides a mock function with given fields: _a0
-func (_m *MockCache) Get(_a0 string) interface{} {
- ret := _m.Called(_a0)
-
- var r0 interface{}
- if rf, ok := ret.Get(0).(func(string) interface{}); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(interface{})
- }
- }
-
- return r0
-}
-
-// GetAndLock provides a mock function with given fields: _a0
-func (_m *MockCache) GetAndLock(_a0 string) interface{} {
- ret := _m.Called(_a0)
-
- var r0 interface{}
- if rf, ok := ret.Get(0).(func(string) interface{}); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(interface{})
- }
- }
-
- return r0
-}
-
-// Len provides a mock function with given fields:
-func (_m *MockCache) Len() int {
- ret := _m.Called()
-
- var r0 int
- if rf, ok := ret.Get(0).(func() int); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(int)
- }
-
- return r0
-}
-
-// Put provides a mock function with given fields: _a0, _a1
-func (_m *MockCache) Put(_a0 string, _a1 interface{}) bool {
- ret := _m.Called(_a0, _a1)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(string, interface{}) bool); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// Unlock provides a mock function with given fields: _a0
-func (_m *MockCache) Unlock(_a0 string) {
- _m.Called(_a0)
-}
-
-type mockConstructorTestingTNewMockCache interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockCache creates a new instance of MockCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockCache(t mockConstructorTestingTNewMockCache) *MockCache {
- mock := &MockCache{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/common/library.go b/enumeration/remote/common/library.go
deleted file mode 100644
index 5f13a291d..000000000
--- a/enumeration/remote/common/library.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package common
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type Enumerator interface {
- SupportedType() resource.ResourceType
- Enumerate() ([]*resource.Resource, error)
-}
-
-type RemoteLibrary struct {
- enumerators []Enumerator
-}
-
-func NewRemoteLibrary() *RemoteLibrary {
- return &RemoteLibrary{
- make([]Enumerator, 0),
- }
-}
-
-func (r *RemoteLibrary) AddEnumerator(enumerator Enumerator) {
- r.enumerators = append(r.enumerators, enumerator)
-}
-
-func (r *RemoteLibrary) Enumerators() []Enumerator {
- return r.enumerators
-}
diff --git a/enumeration/remote/common/mock_Enumerator.go b/enumeration/remote/common/mock_Enumerator.go
deleted file mode 100644
index 6a68ecfd8..000000000
--- a/enumeration/remote/common/mock_Enumerator.go
+++ /dev/null
@@ -1,68 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package common
-
-import (
- resource "github.com/snyk/driftctl/enumeration/resource"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockEnumerator is an autogenerated mock type for the Enumerator type
-type MockEnumerator struct {
- mock.Mock
-}
-
-// Enumerate provides a mock function with given fields:
-func (_m *MockEnumerator) Enumerate() ([]*resource.Resource, error) {
- ret := _m.Called()
-
- var r0 []*resource.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*resource.Resource, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*resource.Resource); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*resource.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SupportedType provides a mock function with given fields:
-func (_m *MockEnumerator) SupportedType() resource.ResourceType {
- ret := _m.Called()
-
- var r0 resource.ResourceType
- if rf, ok := ret.Get(0).(func() resource.ResourceType); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(resource.ResourceType)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockEnumerator interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockEnumerator creates a new instance of MockEnumerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockEnumerator(t mockConstructorTestingTNewMockEnumerator) *MockEnumerator {
- mock := &MockEnumerator{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/common/providers.go b/enumeration/remote/common/providers.go
deleted file mode 100644
index 8afd7ab11..000000000
--- a/enumeration/remote/common/providers.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package common
-
-import (
- tf "github.com/snyk/driftctl/enumeration/terraform"
- "github.com/snyk/driftctl/enumeration/terraform/lock"
-)
-
-type RemoteParameter string
-
-const (
- RemoteAWSTerraform = "aws+tf"
- RemoteGithubTerraform = "github+tf"
- RemoteGoogleTerraform = "gcp+tf"
- RemoteAzureTerraform = "azure+tf"
-)
-
-var remoteParameterMapping = map[RemoteParameter]string{
- RemoteAWSTerraform: tf.AWS,
- RemoteGithubTerraform: tf.GITHUB,
- RemoteGoogleTerraform: tf.GOOGLE,
- RemoteAzureTerraform: tf.AZURE,
-}
-
-func (p RemoteParameter) GetProviderAddress() *lock.ProviderAddress {
- return &lock.ProviderAddress{
- Hostname: "registry.terraform.io",
- Namespace: "hashicorp",
- Type: remoteParameterMapping[p],
- }
-}
diff --git a/enumeration/remote/error/errors.go b/enumeration/remote/error/errors.go
deleted file mode 100644
index a4b343553..000000000
--- a/enumeration/remote/error/errors.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package error
-
-import "fmt"
-
-type RemoteError interface {
- ListedTypeError() string
-}
-
-type ResourceScanningError struct {
- err error
- resourceType string
- resourceId string
- listedTypeError string
-}
-
-func (b *ResourceScanningError) Error() string {
- if b.resourceId != "" {
- return fmt.Sprintf("error scanning resource %s: %s", b.Resource(), b.err)
- }
- return fmt.Sprintf("error scanning resource type %s: %s", b.Resource(), b.err)
-}
-
-func (b *ResourceScanningError) RootCause() error {
- return b.err
-}
-
-func (b *ResourceScanningError) ResourceType() string {
- return b.resourceType
-}
-
-func NewResourceScanningError(error error, resourceType string, resourceId string) *ResourceScanningError {
- return &ResourceScanningError{
- err: error,
- resourceType: resourceType,
- resourceId: resourceId,
- listedTypeError: resourceType,
- }
-}
-
-func NewResourceListingError(error error, resourceType string) *ResourceScanningError {
- return NewResourceListingErrorWithType(error, resourceType, resourceType)
-}
-
-func NewResourceListingErrorWithType(error error, resourceType, listedTypeError string) *ResourceScanningError {
- return &ResourceScanningError{
- err: error,
- resourceType: resourceType,
- listedTypeError: listedTypeError,
- }
-}
-
-func (b *ResourceScanningError) ListedTypeError() string {
- return b.listedTypeError
-}
-
-func (b *ResourceScanningError) Resource() string {
- if b.resourceId != "" {
- return fmt.Sprintf("%s.%s", b.resourceType, b.resourceId)
- }
- return b.resourceType
-}
-
-func (b *ResourceScanningError) String() string {
- return fmt.Sprintf("%s.%s (%s)", b.resourceType, b.resourceId, b.listedTypeError)
-}
diff --git a/enumeration/remote/github/github_branch_protection_enumerator.go b/enumeration/remote/github/github_branch_protection_enumerator.go
deleted file mode 100644
index eddc4e757..000000000
--- a/enumeration/remote/github/github_branch_protection_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package github
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/github"
-)
-
-type GithubBranchProtectionEnumerator struct {
- repository GithubRepository
- factory resource.ResourceFactory
-}
-
-func NewGithubBranchProtectionEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubBranchProtectionEnumerator {
- return &GithubBranchProtectionEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (g *GithubBranchProtectionEnumerator) SupportedType() resource.ResourceType {
- return github.GithubBranchProtectionResourceType
-}
-
-func (g *GithubBranchProtectionEnumerator) Enumerate() ([]*resource.Resource, error) {
- ids, err := g.repository.ListBranchProtection()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(g.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(ids))
-
- for _, id := range ids {
- results = append(
- results,
- g.factory.CreateAbstractResource(
- string(g.SupportedType()),
- id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/github/github_membership_enumerator.go b/enumeration/remote/github/github_membership_enumerator.go
deleted file mode 100644
index 4322e39df..000000000
--- a/enumeration/remote/github/github_membership_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package github
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/github"
-)
-
-type GithubMembershipEnumerator struct {
- Membership GithubRepository
- factory resource.ResourceFactory
-}
-
-func NewGithubMembershipEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubMembershipEnumerator {
- return &GithubMembershipEnumerator{
- Membership: repo,
- factory: factory,
- }
-}
-
-func (g *GithubMembershipEnumerator) SupportedType() resource.ResourceType {
- return github.GithubMembershipResourceType
-}
-
-func (g *GithubMembershipEnumerator) Enumerate() ([]*resource.Resource, error) {
- ids, err := g.Membership.ListMembership()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(g.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(ids))
-
- for _, id := range ids {
- results = append(
- results,
- g.factory.CreateAbstractResource(
- string(g.SupportedType()),
- id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/github/github_repository_enumerator.go b/enumeration/remote/github/github_repository_enumerator.go
deleted file mode 100644
index e5150ffae..000000000
--- a/enumeration/remote/github/github_repository_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package github
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/github"
-)
-
-type GithubRepositoryEnumerator struct {
- repository GithubRepository
- factory resource.ResourceFactory
-}
-
-func NewGithubRepositoryEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubRepositoryEnumerator {
- return &GithubRepositoryEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (g *GithubRepositoryEnumerator) SupportedType() resource.ResourceType {
- return github.GithubRepositoryResourceType
-}
-
-func (g *GithubRepositoryEnumerator) Enumerate() ([]*resource.Resource, error) {
- ids, err := g.repository.ListRepositories()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(g.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(ids))
-
- for _, id := range ids {
- results = append(
- results,
- g.factory.CreateAbstractResource(
- string(g.SupportedType()),
- id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/github/github_team_enumerator.go b/enumeration/remote/github/github_team_enumerator.go
deleted file mode 100644
index c42211904..000000000
--- a/enumeration/remote/github/github_team_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package github
-
-import (
- "fmt"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/github"
-)
-
-type GithubTeamEnumerator struct {
- repository GithubRepository
- factory resource.ResourceFactory
-}
-
-func NewGithubTeamEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubTeamEnumerator {
- return &GithubTeamEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (g *GithubTeamEnumerator) SupportedType() resource.ResourceType {
- return github.GithubTeamResourceType
-}
-
-func (g *GithubTeamEnumerator) Enumerate() ([]*resource.Resource, error) {
- resourceList, err := g.repository.ListTeams()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(g.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resourceList))
-
- for _, team := range resourceList {
- results = append(
- results,
- g.factory.CreateAbstractResource(
- string(g.SupportedType()),
- fmt.Sprintf("%d", team.DatabaseId),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/github/github_team_membership_enumerator.go b/enumeration/remote/github/github_team_membership_enumerator.go
deleted file mode 100644
index ae610c9bf..000000000
--- a/enumeration/remote/github/github_team_membership_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package github
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/github"
-)
-
-type GithubTeamMembershipEnumerator struct {
- repository GithubRepository
- factory resource.ResourceFactory
-}
-
-func NewGithubTeamMembershipEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubTeamMembershipEnumerator {
- return &GithubTeamMembershipEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (g *GithubTeamMembershipEnumerator) SupportedType() resource.ResourceType {
- return github.GithubTeamMembershipResourceType
-}
-
-func (g *GithubTeamMembershipEnumerator) Enumerate() ([]*resource.Resource, error) {
- ids, err := g.repository.ListTeamMemberships()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(g.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(ids))
-
- for _, id := range ids {
- results = append(
- results,
- g.factory.CreateAbstractResource(
- string(g.SupportedType()),
- id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/github/init.go b/enumeration/remote/github/init.go
deleted file mode 100644
index f233f2fb7..000000000
--- a/enumeration/remote/github/init.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package github
-
-import (
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-/**
- * Initialize remote (configure credentials, launch tf providers and start gRPC clients)
- * Required to use Scanner
- */
-
-func Init(version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, factory resource.ResourceFactory, configDir string) error {
-
- provider, err := NewGithubTerraformProvider(version, progress, configDir)
- if err != nil {
- return err
- }
- err = provider.Init()
- if err != nil {
- return err
- }
-
- repositoryCache := cache.New(100)
-
- repository := NewGithubRepository(provider.GetConfig(), repositoryCache)
- providerLibrary.AddProvider(terraform.GITHUB, provider)
-
- remoteLibrary.AddEnumerator(NewGithubTeamEnumerator(repository, factory))
-
- remoteLibrary.AddEnumerator(NewGithubRepositoryEnumerator(repository, factory))
-
- remoteLibrary.AddEnumerator(NewGithubMembershipEnumerator(repository, factory))
-
- remoteLibrary.AddEnumerator(NewGithubTeamMembershipEnumerator(repository, factory))
-
- remoteLibrary.AddEnumerator(NewGithubBranchProtectionEnumerator(repository, factory))
-
- return nil
-}
diff --git a/enumeration/remote/github/mock_GithubRepository.go b/enumeration/remote/github/mock_GithubRepository.go
deleted file mode 100644
index e43aaa429..000000000
--- a/enumeration/remote/github/mock_GithubRepository.go
+++ /dev/null
@@ -1,155 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package github
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockGithubRepository is an autogenerated mock type for the GithubRepository type
-type MockGithubRepository struct {
- mock.Mock
-}
-
-// ListBranchProtection provides a mock function with given fields:
-func (_m *MockGithubRepository) ListBranchProtection() ([]string, error) {
- ret := _m.Called()
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMembership provides a mock function with given fields:
-func (_m *MockGithubRepository) ListMembership() ([]string, error) {
- ret := _m.Called()
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRepositories provides a mock function with given fields:
-func (_m *MockGithubRepository) ListRepositories() ([]string, error) {
- ret := _m.Called()
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTeamMemberships provides a mock function with given fields:
-func (_m *MockGithubRepository) ListTeamMemberships() ([]string, error) {
- ret := _m.Called()
-
- var r0 []string
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTeams provides a mock function with given fields:
-func (_m *MockGithubRepository) ListTeams() ([]Team, error) {
- ret := _m.Called()
-
- var r0 []Team
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]Team, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []Team); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]Team)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockGithubRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockGithubRepository creates a new instance of MockGithubRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockGithubRepository(t mockConstructorTestingTNewMockGithubRepository) *MockGithubRepository {
- mock := &MockGithubRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/github/provider.go b/enumeration/remote/github/provider.go
deleted file mode 100644
index c3dc4bf39..000000000
--- a/enumeration/remote/github/provider.go
+++ /dev/null
@@ -1,76 +0,0 @@
-package github
-
-import (
- "os"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/terraform"
- tf "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-type GithubTerraformProvider struct {
- *terraform.TerraformProvider
- name string
- version string
-}
-
-type githubConfig struct {
- Token string
- Owner string `cty:"owner"`
- Organization string
-}
-
-func NewGithubTerraformProvider(version string, progress enumeration.ProgressCounter, configDir string) (*GithubTerraformProvider, error) {
- if version == "" {
- version = "4.4.0"
- }
- p := &GithubTerraformProvider{
- version: version,
- name: "github",
- }
- installer, err := tf.NewProviderInstaller(tf.ProviderConfig{
- Key: p.name,
- Version: version,
- ConfigDir: configDir,
- })
- if err != nil {
- return nil, err
- }
- tfProvider, err := terraform.NewTerraformProvider(installer, terraform.TerraformProviderConfig{
- Name: p.name,
- DefaultAlias: p.GetConfig().getDefaultOwner(),
- GetProviderConfig: func(owner string) interface{} {
- return githubConfig{
- Owner: p.GetConfig().getDefaultOwner(),
- }
- },
- }, progress)
- if err != nil {
- return nil, err
- }
- p.TerraformProvider = tfProvider
- return p, err
-}
-
-func (c githubConfig) getDefaultOwner() string {
- if c.Organization != "" {
- return c.Organization
- }
- return c.Owner
-}
-
-func (p GithubTerraformProvider) GetConfig() githubConfig {
- return githubConfig{
- Token: os.Getenv("GITHUB_TOKEN"),
- Owner: os.Getenv("GITHUB_OWNER"),
- Organization: os.Getenv("GITHUB_ORGANIZATION"),
- }
-}
-
-func (p *GithubTerraformProvider) Name() string {
- return p.name
-}
-
-func (p *GithubTerraformProvider) Version() string {
- return p.version
-}
diff --git a/enumeration/remote/github/repository.go b/enumeration/remote/github/repository.go
deleted file mode 100644
index f0b1a8684..000000000
--- a/enumeration/remote/github/repository.go
+++ /dev/null
@@ -1,361 +0,0 @@
-package github
-
-import (
- "context"
- "fmt"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-
- "github.com/shurcooL/githubv4"
- "golang.org/x/oauth2"
-)
-
-type GithubRepository interface {
- ListRepositories() ([]string, error)
- ListTeams() ([]Team, error)
- ListMembership() ([]string, error)
- ListTeamMemberships() ([]string, error)
- ListBranchProtection() ([]string, error)
-}
-
-type GithubGraphQLClient interface {
- Query(ctx context.Context, q interface{}, variables map[string]interface{}) error
-}
-
-type githubRepository struct {
- client GithubGraphQLClient
- ctx context.Context
- config githubConfig
- cache cache.Cache
-}
-
-func NewGithubRepository(config githubConfig, c cache.Cache) *githubRepository {
- ctx := context.Background()
- ts := oauth2.StaticTokenSource(
- &oauth2.Token{AccessToken: config.Token},
- )
- oauthClient := oauth2.NewClient(ctx, ts)
-
- repo := &githubRepository{
- client: githubv4.NewClient(oauthClient),
- ctx: context.Background(),
- config: config,
- cache: c,
- }
-
- return repo
-}
-
-func (r *githubRepository) ListRepositories() ([]string, error) {
- if v := r.cache.Get("githubListRepositories"); v != nil {
- return v.([]string), nil
- }
-
- if r.config.Organization != "" {
- results, err := r.listRepoForOrg()
- if err != nil {
- return nil, err
- }
- r.cache.Put("githubListRepositories", results)
- return results, nil
- }
-
- results, err := r.listRepoForOwner()
- if err != nil {
- return nil, err
- }
- r.cache.Put("githubListRepositories", results)
- return results, nil
-}
-
-type pageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
-}
-
-type listRepoForOrgQuery struct {
- Organization struct {
- Repositories struct {
- Nodes []struct {
- Name string
- }
- PageInfo pageInfo
- } `graphql:"repositories(first: 100, after: $cursor)"`
- } `graphql:"organization(login: $org)"`
-}
-
-func (r *githubRepository) listRepoForOrg() ([]string, error) {
- query := listRepoForOrgQuery{}
- variables := map[string]interface{}{
- "org": (githubv4.String)(r.config.Organization),
- "cursor": (*githubv4.String)(nil),
- }
- var results []string
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, repo := range query.Organization.Repositories.Nodes {
- results = append(results, repo.Name)
- }
- if !query.Organization.Repositories.PageInfo.HasNextPage {
- break
- }
- variables["cursor"] = githubv4.NewString(query.Organization.Repositories.PageInfo.EndCursor)
- }
- return results, nil
-}
-
-type listRepoForOwnerQuery struct {
- Viewer struct {
- Repositories struct {
- Nodes []struct {
- Name string
- }
- PageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
- }
- } `graphql:"repositories(first: 100, after: $cursor, ownerAffiliations: OWNER)"`
- }
-}
-
-func (r githubRepository) listRepoForOwner() ([]string, error) {
- query := listRepoForOwnerQuery{}
- variables := map[string]interface{}{
- "cursor": (*githubv4.String)(nil),
- }
- var results []string
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, repo := range query.Viewer.Repositories.Nodes {
- results = append(results, repo.Name)
- }
- if !query.Viewer.Repositories.PageInfo.HasNextPage {
- break
- }
- variables["cursor"] = githubv4.NewString(query.Viewer.Repositories.PageInfo.EndCursor)
- }
- return results, nil
-}
-
-type listTeamsQuery struct {
- Organization struct {
- Teams struct {
- Nodes []struct {
- DatabaseId int
- Slug string
- }
- PageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
- }
- } `graphql:"teams(first: 100, after: $cursor)"`
- } `graphql:"organization(login: $login)"`
-}
-
-type Team struct {
- DatabaseId int
- Slug string
-}
-
-func (r githubRepository) ListTeams() ([]Team, error) {
- if v := r.cache.Get("githubListTeams"); v != nil {
- return v.([]Team), nil
- }
-
- query := listTeamsQuery{}
- results := make([]Team, 0)
- if r.config.Organization == "" {
- r.cache.Put("githubListTeams", results)
- return results, nil
- }
- variables := map[string]interface{}{
- "cursor": (*githubv4.String)(nil),
- "login": (githubv4.String)(r.config.Organization),
- }
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, team := range query.Organization.Teams.Nodes {
- results = append(results, Team{
- DatabaseId: team.DatabaseId,
- Slug: team.Slug,
- })
- }
- if !query.Organization.Teams.PageInfo.HasNextPage {
- break
- }
- variables["cursor"] = githubv4.NewString(query.Organization.Teams.PageInfo.EndCursor)
- }
-
- r.cache.Put("githubListTeams", results)
- return results, nil
-}
-
-type listMembership struct {
- Organization struct {
- MembersWithRole struct {
- Nodes []struct {
- Login string
- }
- PageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
- }
- } `graphql:"membersWithRole(first: 100, after: $cursor)"`
- } `graphql:"organization(login: $login)"`
-}
-
-func (r *githubRepository) ListMembership() ([]string, error) {
- if v := r.cache.Get("githubListMembership"); v != nil {
- return v.([]string), nil
- }
-
- query := listMembership{}
- results := make([]string, 0)
- if r.config.Organization == "" {
- r.cache.Put("githubListMembership", results)
- return results, nil
- }
- variables := map[string]interface{}{
- "cursor": (*githubv4.String)(nil),
- "login": (githubv4.String)(r.config.Organization),
- }
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, membership := range query.Organization.MembersWithRole.Nodes {
- results = append(results, fmt.Sprintf("%s:%s", r.config.Organization, membership.Login))
- }
- if !query.Organization.MembersWithRole.PageInfo.HasNextPage {
- break
- }
- variables["cursor"] = githubv4.NewString(query.Organization.MembersWithRole.PageInfo.EndCursor)
- }
-
- r.cache.Put("githubListMembership", results)
- return results, nil
-}
-
-type listTeamMembershipsQuery struct {
- Organization struct {
- Team struct {
- Members struct {
- Nodes []struct {
- Login string
- }
- PageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
- }
- } `graphql:"members(first: 100, after: $cursor)"`
- } `graphql:"team(slug: $slug)"`
- } `graphql:"organization(login: $login)"`
-}
-
-func (r githubRepository) ListTeamMemberships() ([]string, error) {
- if v := r.cache.Get("githubListTeamMemberships"); v != nil {
- return v.([]string), nil
- }
-
- teamList, err := r.ListTeams()
- if err != nil {
- return nil, err
- }
-
- query := listTeamMembershipsQuery{}
- results := make([]string, 0)
- if r.config.Organization == "" {
- r.cache.Put("githubListTeamMemberships", results)
- return results, nil
- }
- variables := map[string]interface{}{
- "login": (githubv4.String)(r.config.Organization),
- }
-
- for _, team := range teamList {
- variables["slug"] = (githubv4.String)(team.Slug)
- variables["cursor"] = (*githubv4.String)(nil)
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, membership := range query.Organization.Team.Members.Nodes {
- results = append(results, fmt.Sprintf("%d:%s", team.DatabaseId, membership.Login))
- }
- if !query.Organization.Team.Members.PageInfo.HasNextPage {
- break
- }
- variables["cursor"] = query.Organization.Team.Members.PageInfo.EndCursor
- }
- }
-
- r.cache.Put("githubListTeamMemberships", results)
- return results, nil
-}
-
-type listBranchProtectionQuery struct {
- Repository struct {
- BranchProtectionRules struct {
- Nodes []struct {
- Id string
- }
- PageInfo struct {
- EndCursor githubv4.String
- HasNextPage bool
- }
- } `graphql:"branchProtectionRules(first: 1, after: $cursor)"`
- } `graphql:"repository(owner: $owner, name: $name)"`
-}
-
-func (r *githubRepository) ListBranchProtection() ([]string, error) {
- if v := r.cache.Get("githubListBranchProtection"); v != nil {
- return v.([]string), nil
- }
-
- repoList, err := r.ListRepositories()
- if err != nil {
- return nil, err
- }
-
- results := make([]string, 0)
- query := listBranchProtectionQuery{}
- variables := map[string]interface{}{
- "cursor": (*githubv4.String)(nil),
- "owner": (githubv4.String)(r.config.getDefaultOwner()),
- "name": (githubv4.String)(""),
- }
-
- for _, repo := range repoList {
- variables["name"] = (githubv4.String)(repo)
- variables["cursor"] = (*githubv4.String)(nil)
- for {
- err := r.client.Query(r.ctx, &query, variables)
- if err != nil {
- return nil, err
- }
- for _, protection := range query.Repository.BranchProtectionRules.Nodes {
- results = append(results, protection.Id)
- }
-
- variables["cursor"] = query.Repository.BranchProtectionRules.PageInfo.EndCursor
-
- if !query.Repository.BranchProtectionRules.PageInfo.HasNextPage {
- break
- }
- }
-
- }
-
- r.cache.Put("githubListBranchProtection", results)
- return results, nil
-}
diff --git a/enumeration/remote/github/repository_test.go b/enumeration/remote/github/repository_test.go
deleted file mode 100644
index 215aafa26..000000000
--- a/enumeration/remote/github/repository_test.go
+++ /dev/null
@@ -1,920 +0,0 @@
-package github
-
-import (
- "context"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "testing"
-
- "github.com/pkg/errors"
- "github.com/shurcooL/githubv4"
- "github.com/snyk/driftctl/mocks"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestListRepositoriesForUser_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{},
- cache: cache.New(1),
- }
-
- _, err := r.ListRepositories()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListRepositoriesForUser(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOwnerQuery)
- if !ok {
- return false
- }
- q.Viewer.Repositories.Nodes = []struct{ Name string }{
- {
- Name: "repo1",
- },
- {
- Name: "repo2",
- },
- }
- q.Viewer.Repositories.PageInfo = pageInfo{
- EndCursor: "next",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOwnerQuery)
- if !ok {
- return false
- }
- q.Viewer.Repositories.Nodes = []struct{ Name string }{
- {
- Name: "repo3",
- },
- {
- Name: "repo4",
- },
- }
- q.Viewer.Repositories.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "cursor": githubv4.NewString("next"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{},
- cache: store,
- }
-
- repos, err := r.ListRepositories()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []string{
- "repo1",
- "repo2",
- "repo3",
- "repo4",
- }, repos)
-
- // Check that results were cached
- cachedData, err := r.ListRepositories()
- assert.NoError(t, err)
- assert.Equal(t, repos, cachedData)
- assert.IsType(t, []string{}, store.Get("githubListRepositories"))
-}
-
-func TestListRepositoriesForOrganization_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListRepositories()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListRepositoriesForOrganization(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOrgQuery)
- if !ok {
- return false
- }
- q.Organization.Repositories.Nodes = []struct {
- Name string
- }{
- {
- Name: "repo1",
- },
- {
- Name: "repo2",
- },
- }
- q.Organization.Repositories.PageInfo = pageInfo{
- EndCursor: "next",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "org": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOrgQuery)
- if !ok {
- return false
- }
- q.Organization.Repositories.Nodes = []struct {
- Name string
- }{
- {
- Name: "repo3",
- },
- {
- Name: "repo4",
- },
- }
- q.Organization.Repositories.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "org": (githubv4.String)("testorg"),
- "cursor": githubv4.NewString("next"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{
- Organization: "testorg",
- },
- cache: store,
- }
-
- repos, err := r.ListRepositories()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []string{
- "repo1",
- "repo2",
- "repo3",
- "repo4",
- }, repos)
-
- // Check that results were cached
- cachedData, err := r.ListRepositories()
- assert.NoError(t, err)
- assert.Equal(t, repos, cachedData)
- assert.IsType(t, []string{}, store.Get("githubListRepositories"))
-}
-
-func TestListTeams_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListTeams()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListTeams_WithoutOrganization(t *testing.T) {
- r := githubRepository{cache: cache.New(1)}
-
- teams, err := r.ListTeams()
- assert.Nil(t, err)
- assert.Equal(t, []Team{}, teams)
-}
-
-func TestListTeams(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamsQuery)
- if !ok {
- return false
- }
- q.Organization.Teams.Nodes = []struct {
- DatabaseId int
- Slug string
- }{
- {
- DatabaseId: 1,
- Slug: "1",
- },
- {
- DatabaseId: 2,
- Slug: "2",
- },
- }
- q.Organization.Teams.PageInfo = pageInfo{
- EndCursor: "next",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamsQuery)
- if !ok {
- return false
- }
- q.Organization.Teams.Nodes = []struct {
- DatabaseId int
- Slug string
- }{
- {
- DatabaseId: 3,
- Slug: "3",
- },
- {
- DatabaseId: 4,
- Slug: "4",
- },
- }
- q.Organization.Teams.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": githubv4.NewString("next"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{
- Organization: "testorg",
- },
- cache: store,
- }
-
- teams, err := r.ListTeams()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []Team{
- {1, "1"},
- {2, "2"},
- {3, "3"},
- {4, "4"},
- }, teams)
-
- // Check that results were cached
- cachedData, err := r.ListTeams()
- assert.NoError(t, err)
- assert.Equal(t, teams, cachedData)
- assert.IsType(t, []Team{}, store.Get("githubListTeams"))
-}
-
-func TestListTeamMemberships_WithTeamListingError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListTeamMemberships()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListTeamMemberships_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamsQuery)
- if !ok {
- return false
- }
- q.Organization.Teams.Nodes = []struct {
- DatabaseId int
- Slug string
- }{
- {
- DatabaseId: 1,
- Slug: "foo",
- },
- }
- q.Organization.Teams.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil)
-
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListTeamMemberships()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListTeamMemberships_WithoutOrganization(t *testing.T) {
- r := githubRepository{cache: cache.New(1)}
-
- teams, err := r.ListTeamMemberships()
- assert.Nil(t, err)
- assert.Equal(t, []string{}, teams)
-}
-
-func TestListTeamMemberships(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamsQuery)
- if !ok {
- return false
- }
- q.Organization.Teams.Nodes = []struct {
- DatabaseId int
- Slug string
- }{
- {
- DatabaseId: 1,
- Slug: "foo",
- },
- {
- DatabaseId: 2,
- Slug: "bar",
- },
- }
- q.Organization.Teams.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamMembershipsQuery)
- if !ok {
- return false
- }
- q.Organization.Team.Members.Nodes = []struct {
- Login string
- }{
- {
- Login: "user-1",
- },
- {
- Login: "user-2",
- },
- }
- q.Organization.Team.Members.PageInfo = pageInfo{
- EndCursor: "next",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- "slug": (githubv4.String)("foo"),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamMembershipsQuery)
- if !ok {
- return false
- }
- q.Organization.Team.Members.Nodes = []struct {
- Login string
- }{
- {
- Login: "user-3",
- },
- {
- Login: "user-4",
- },
- }
- q.Organization.Team.Members.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (githubv4.String)("next"),
- "slug": (githubv4.String)("foo"),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listTeamMembershipsQuery)
- if !ok {
- return false
- }
- q.Organization.Team.Members.Nodes = []struct {
- Login string
- }{
- {
- Login: "user-5",
- },
- {
- Login: "user-6",
- },
- }
- q.Organization.Team.Members.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- "slug": (githubv4.String)("bar"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{
- Organization: "testorg",
- },
- cache: store,
- }
-
- memberships, err := r.ListTeamMemberships()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []string{
- "1:user-1",
- "1:user-2",
- "1:user-3",
- "1:user-4",
- "2:user-5",
- "2:user-6",
- }, memberships)
-
- // Check that results were cached
- cachedData, err := r.ListTeamMemberships()
- assert.NoError(t, err)
- assert.Equal(t, memberships, cachedData)
- assert.IsType(t, []string{}, store.Get("githubListTeamMemberships"))
-}
-
-func TestListMembership_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListMembership()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListMembership_WithoutOrganization(t *testing.T) {
- r := githubRepository{cache: cache.New(1)}
-
- teams, err := r.ListMembership()
- assert.Nil(t, err)
- assert.Equal(t, []string{}, teams)
-}
-
-func TestListMembership(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listMembership)
- if !ok {
- return false
- }
- q.Organization.MembersWithRole.Nodes = []struct {
- Login string
- }{
- {
- Login: "user-admin",
- },
- {
- Login: "user-non-admin-1",
- },
- }
- q.Organization.MembersWithRole.PageInfo = pageInfo{
- EndCursor: "next",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listMembership)
- if !ok {
- return false
- }
- q.Organization.MembersWithRole.Nodes = []struct {
- Login string
- }{
- {
- Login: "user-non-admin-2",
- },
- {
- Login: "user-non-admin-3",
- },
- }
- q.Organization.MembersWithRole.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "login": (githubv4.String)("testorg"),
- "cursor": githubv4.NewString("next"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{
- Organization: "testorg",
- },
- cache: store,
- }
-
- teams, err := r.ListMembership()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []string{
- "testorg:user-admin",
- "testorg:user-non-admin-1",
- "testorg:user-non-admin-2",
- "testorg:user-non-admin-3",
- }, teams)
-
- // Check that results were cached
- cachedData, err := r.ListMembership()
- assert.NoError(t, err)
- assert.Equal(t, teams, cachedData)
- assert.IsType(t, []string{}, store.Get("githubListMembership"))
-
-}
-
-func TestListBranchProtection_WithRepoListingError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOrgQuery)
- if !ok {
- return false
- }
- q.Organization.Repositories.Nodes = []struct {
- Name string
- }{
- {
- Name: "repo1",
- },
- {
- Name: "repo2",
- },
- }
- q.Organization.Repositories.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "org": (githubv4.String)("my-organization"),
- "cursor": (*githubv4.String)(nil),
- }).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "my-organization",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListBranchProtection()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListBranchProtection_WithError(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
- expectedError := errors.New("test error from graphql")
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOrgQuery)
- if !ok {
- return false
- }
- q.Organization.Repositories.Nodes = []struct {
- Name string
- }{
- {
- Name: "repo1",
- },
- {
- Name: "repo2",
- },
- }
- q.Organization.Repositories.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "org": (githubv4.String)("testorg"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil)
-
- mockedClient.On("Query", mock.Anything, mock.Anything, mock.Anything).Return(expectedError)
-
- r := githubRepository{
- client: &mockedClient,
- config: githubConfig{
- Organization: "testorg",
- },
- cache: cache.New(1),
- }
-
- _, err := r.ListBranchProtection()
- assert.Equal(t, expectedError, err)
-}
-
-func TestListBranchProtection(t *testing.T) {
- mockedClient := mocks.GithubGraphQLClient{}
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listRepoForOrgQuery)
- if !ok {
- return false
- }
- q.Organization.Repositories.Nodes = []struct {
- Name string
- }{
- {
- Name: "repo1",
- },
- {
- Name: "repo2",
- },
- }
- q.Organization.Repositories.PageInfo = pageInfo{
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "org": (githubv4.String)("my-organization"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listBranchProtectionQuery)
- if !ok {
- return false
- }
- q.Repository.BranchProtectionRules.Nodes = []struct {
- Id string
- }{
- {
- Id: "id1",
- },
- {
- Id: "id2",
- },
- }
- q.Repository.BranchProtectionRules.PageInfo = pageInfo{
- EndCursor: "nextPage",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "owner": (githubv4.String)("my-organization"),
- "name": (githubv4.String)("repo1"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listBranchProtectionQuery)
- if !ok {
- return false
- }
- q.Repository.BranchProtectionRules.Nodes = []struct {
- Id string
- }{
- {
- Id: "id3",
- },
- {
- Id: "id4",
- },
- }
- q.Repository.BranchProtectionRules.PageInfo = pageInfo{
- EndCursor: "nextPage",
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "owner": (githubv4.String)("my-organization"),
- "name": (githubv4.String)("repo1"),
- "cursor": (githubv4.String)("nextPage"),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listBranchProtectionQuery)
- if !ok {
- return false
- }
- q.Repository.BranchProtectionRules.Nodes = []struct {
- Id string
- }{
- {
- Id: "id5",
- },
- {
- Id: "id6",
- },
- }
- q.Repository.BranchProtectionRules.PageInfo = pageInfo{
- EndCursor: "nextPage",
- HasNextPage: true,
- }
- return true
- }),
- map[string]interface{}{
- "owner": (githubv4.String)("my-organization"),
- "name": (githubv4.String)("repo2"),
- "cursor": (*githubv4.String)(nil),
- }).Return(nil).Once()
-
- mockedClient.On("Query",
- mock.Anything,
- mock.MatchedBy(func(query interface{}) bool {
- q, ok := query.(*listBranchProtectionQuery)
- if !ok {
- return false
- }
- q.Repository.BranchProtectionRules.Nodes = []struct {
- Id string
- }{
- {
- Id: "id7",
- },
- {
- Id: "id8",
- },
- }
- q.Repository.BranchProtectionRules.PageInfo = pageInfo{
- EndCursor: "nextPage",
- HasNextPage: false,
- }
- return true
- }),
- map[string]interface{}{
- "owner": (githubv4.String)("my-organization"),
- "name": (githubv4.String)("repo2"),
- "cursor": (githubv4.String)("nextPage"),
- }).Return(nil).Once()
-
- store := cache.New(1)
- r := githubRepository{
- client: &mockedClient,
- ctx: context.TODO(),
- config: githubConfig{
- Organization: "my-organization",
- },
- cache: store,
- }
-
- teams, err := r.ListBranchProtection()
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, []string{
- "id1",
- "id2",
- "id3",
- "id4",
- "id5",
- "id6",
- "id7",
- "id8",
- }, teams)
-
- // Check that results were cached
- cachedData, err := r.ListBranchProtection()
- assert.NoError(t, err)
- assert.Equal(t, teams, cachedData)
- assert.IsType(t, []string{}, store.Get("githubListBranchProtection"))
-}
diff --git a/enumeration/remote/github_branch_protection_scanner_test.go b/enumeration/remote/github_branch_protection_scanner_test.go
deleted file mode 100644
index fe0dda194..000000000
--- a/enumeration/remote/github_branch_protection_scanner_test.go
+++ /dev/null
@@ -1,133 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/pkg/errors"
- githubres "github.com/snyk/driftctl/enumeration/resource/github"
- "github.com/snyk/driftctl/mocks"
-
- tftest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanGithubBranchProtection(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*github.MockGithubRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no branch protection",
- dirName: "github_branch_protection_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListBranchProtection").Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple branch protections",
- dirName: "github_branch_protection_multiples",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListBranchProtection").Return([]string{
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0NzI=", // "repo0:main"
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0Nzg=", // "repo0:toto"
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0NzQ=", // "repo1:main"
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0ODA=", // "repo1:toto"
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0NzE=", // "repo2:main"
- "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0Nzc=", // "repo2:toto"
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 6)
-
- assert.Equal(t, "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0NzI=", got[0].ResourceId())
- assert.Equal(t, githubres.GithubBranchProtectionResourceType, got[0].ResourceType())
-
- assert.Equal(t, "MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMTk1NDg0Nzc=", got[5].ResourceId())
- assert.Equal(t, githubres.GithubBranchProtectionResourceType, got[5].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list branch protections",
- dirName: "github_branch_protection_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListBranchProtection").Return(nil, errors.New("Your token has not been granted the required scopes to execute this query."))
-
- alerter.On("SendAlert", githubres.GithubBranchProtectionResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), githubres.GithubBranchProtectionResourceType, githubres.GithubBranchProtectionResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- mockedRepo := github.MockGithubRepository{}
- c.mocks(&mockedRepo, alerter)
-
- var repo github.GithubRepository = &mockedRepo
-
- realProvider, err := tftest.InitTestGithubProvider(providerLibrary, "4.4.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := tftest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = github.NewGithubRepository(realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(github.NewGithubBranchProtectionEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- mockedRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/github_membership_scanner_test.go b/enumeration/remote/github_membership_scanner_test.go
deleted file mode 100644
index ec322bb13..000000000
--- a/enumeration/remote/github_membership_scanner_test.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- githubres "github.com/snyk/driftctl/enumeration/resource/github"
- "github.com/snyk/driftctl/mocks"
-
- tftest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanGithubMembership(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*github.MockGithubRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no members",
- dirName: "github_membership_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListMembership").Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple membership with admin and member roles",
- dirName: "github_membership_multiple",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListMembership").Return([]string{
- "driftctl-test:driftctl-acceptance-tester",
- "driftctl-test:eliecharra",
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "driftctl-test:driftctl-acceptance-tester", got[0].ResourceId())
- assert.Equal(t, githubres.GithubMembershipResourceType, got[0].ResourceType())
-
- assert.Equal(t, "driftctl-test:eliecharra", got[1].ResourceId())
- assert.Equal(t, githubres.GithubMembershipResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list membership",
- dirName: "github_membership_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListMembership").Return(nil, errors.New("Your token has not been granted the required scopes to execute this query."))
-
- alerter.On("SendAlert", githubres.GithubMembershipResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), githubres.GithubMembershipResourceType, githubres.GithubMembershipResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- mockedRepo := github.MockGithubRepository{}
- c.mocks(&mockedRepo, alerter)
-
- var repo github.GithubRepository = &mockedRepo
-
- realProvider, err := tftest.InitTestGithubProvider(providerLibrary, "4.4.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := tftest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = github.NewGithubRepository(realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(github.NewGithubMembershipEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- mockedRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/github_repository_scanner_test.go b/enumeration/remote/github_repository_scanner_test.go
deleted file mode 100644
index 9cb86a950..000000000
--- a/enumeration/remote/github_repository_scanner_test.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- githubres "github.com/snyk/driftctl/enumeration/resource/github"
- "github.com/snyk/driftctl/mocks"
-
- tftest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanGithubRepository(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*github.MockGithubRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no github repos",
- dirName: "github_repository_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListRepositories").Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple github repos Table",
- dirName: "github_repository_multiple",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListRepositories").Return([]string{
- "driftctl",
- "driftctl-demos",
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "driftctl", got[0].ResourceId())
- assert.Equal(t, githubres.GithubRepositoryResourceType, got[0].ResourceType())
-
- assert.Equal(t, "driftctl-demos", got[1].ResourceId())
- assert.Equal(t, githubres.GithubRepositoryResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list repositories",
- dirName: "github_repository_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListRepositories").Return(nil, errors.New("Your token has not been granted the required scopes to execute this query."))
-
- alerter.On("SendAlert", githubres.GithubRepositoryResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), githubres.GithubRepositoryResourceType, githubres.GithubRepositoryResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- mockedRepo := github.MockGithubRepository{}
- c.mocks(&mockedRepo, alerter)
-
- var repo github.GithubRepository = &mockedRepo
-
- realProvider, err := tftest.InitTestGithubProvider(providerLibrary, "4.4.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := tftest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = github.NewGithubRepository(realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(github.NewGithubRepositoryEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- mockedRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/github_team_membership_scanner_test.go b/enumeration/remote/github_team_membership_scanner_test.go
deleted file mode 100644
index af11f168d..000000000
--- a/enumeration/remote/github_team_membership_scanner_test.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- githubres "github.com/snyk/driftctl/enumeration/resource/github"
- "github.com/snyk/driftctl/mocks"
-
- tftest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanGithubTeamMembership(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- mocks func(*github.MockGithubRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no github team memberships",
- dirName: "github_team_membership_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeamMemberships").Return([]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "multiple github team memberships",
- dirName: "github_team_membership_multiple",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeamMemberships").Return([]string{
- "4570529:driftctl-acceptance-tester",
- "4570529:wbeuil",
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "4570529:driftctl-acceptance-tester", got[0].ResourceId())
- assert.Equal(t, githubres.GithubTeamMembershipResourceType, got[0].ResourceType())
-
- assert.Equal(t, "4570529:wbeuil", got[1].ResourceId())
- assert.Equal(t, githubres.GithubTeamMembershipResourceType, got[1].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list team membership",
- dirName: "github_team_membership_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeamMemberships").Return(nil, errors.New("Your token has not been granted the required scopes to execute this query."))
-
- alerter.On("SendAlert", githubres.GithubTeamMembershipResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), githubres.GithubTeamMembershipResourceType, githubres.GithubTeamMembershipResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- mockedRepo := github.MockGithubRepository{}
- c.mocks(&mockedRepo, alerter)
-
- var repo github.GithubRepository = &mockedRepo
-
- realProvider, err := tftest.InitTestGithubProvider(providerLibrary, "4.4.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := tftest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = github.NewGithubRepository(realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(github.NewGithubTeamMembershipEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- mockedRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/github_team_scanner_test.go b/enumeration/remote/github_team_scanner_test.go
deleted file mode 100644
index 214729265..000000000
--- a/enumeration/remote/github_team_scanner_test.go
+++ /dev/null
@@ -1,133 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- githubres "github.com/snyk/driftctl/enumeration/resource/github"
- "github.com/snyk/driftctl/mocks"
-
- tftest "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/mock"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestScanGithubTeam(t *testing.T) {
- tests := []struct {
- test string
- dirName string
- mocks func(*github.MockGithubRepository, *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- err error
- }{
- {
- test: "no github teams",
- dirName: "github_teams_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeams").Return([]github.Team{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- {
- test: "Multiple github teams with parent",
- dirName: "github_teams_multiple",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeams").Return([]github.Team{
- {DatabaseId: 4556811}, // github_team.team1
- {DatabaseId: 4556812}, // github_team.team2
- {DatabaseId: 4556814}, // github_team.with_parent
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "4556811", got[0].ResourceId())
- assert.Equal(t, githubres.GithubTeamResourceType, got[0].ResourceType())
-
- assert.Equal(t, "4556812", got[1].ResourceId())
- assert.Equal(t, githubres.GithubTeamResourceType, got[1].ResourceType())
-
- assert.Equal(t, "4556814", got[2].ResourceId())
- assert.Equal(t, githubres.GithubTeamResourceType, got[2].ResourceType())
- },
- err: nil,
- },
- {
- test: "cannot list teams",
- dirName: "github_teams_empty",
- mocks: func(client *github.MockGithubRepository, alerter *mocks.AlerterInterface) {
- client.On("ListTeams").Return(nil, errors.New("Your token has not been granted the required scopes to execute this query."))
-
- alerter.On("SendAlert", githubres.GithubTeamResourceType, alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), githubres.GithubTeamResourceType, githubres.GithubTeamResourceType), alerts.EnumerationPhase)).Return()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- err: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range tests {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- mockedRepo := github.MockGithubRepository{}
- c.mocks(&mockedRepo, alerter)
-
- var repo github.GithubRepository = &mockedRepo
-
- realProvider, err := tftest.InitTestGithubProvider(providerLibrary, "4.4.0")
- if err != nil {
- t.Fatal(err)
- }
- provider := tftest.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- if shouldUpdate {
- err := realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- repo = github.NewGithubRepository(realProvider.GetConfig(), cache.New(0))
- }
-
- remoteLibrary.AddEnumerator(github.NewGithubTeamEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.err)
- if err != nil {
- return
- }
-
- c.assertExpected(tt, got)
- mockedRepo.AssertExpectations(tt)
- alerter.AssertExpectations(tt)
- })
- }
-}
diff --git a/enumeration/remote/google/config/config.go b/enumeration/remote/google/config/config.go
deleted file mode 100644
index e209a03ab..000000000
--- a/enumeration/remote/google/config/config.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package config
-
-type GCPTerraformConfig struct {
- Project string `cty:"project"`
- Region string `cty:"region"`
- Zone string `cty:"zone"`
-}
diff --git a/enumeration/remote/google/google_bigquery_dataset_enumerator.go b/enumeration/remote/google/google_bigquery_dataset_enumerator.go
deleted file mode 100644
index 1c799aa93..000000000
--- a/enumeration/remote/google/google_bigquery_dataset_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleBigqueryDatasetEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleBigqueryDatasetEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleBigqueryDatasetEnumerator {
- return &GoogleBigqueryDatasetEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleBigqueryDatasetEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleBigqueryDatasetResourceType
-}
-
-func (e *GoogleBigqueryDatasetEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllDatasets()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "friendly_name": res.DisplayName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_bigquery_table_enumerator.go b/enumeration/remote/google/google_bigquery_table_enumerator.go
deleted file mode 100644
index 6b4dbea17..000000000
--- a/enumeration/remote/google/google_bigquery_table_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleBigqueryTableEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleBigqueryTableEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleBigqueryTableEnumerator {
- return &GoogleBigqueryTableEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleBigqueryTableEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleBigqueryTableResourceType
-}
-
-func (e *GoogleBigqueryTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllTables()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "friendly_name": res.DisplayName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_bigtable_instance_enumerator.go b/enumeration/remote/google/google_bigtable_instance_enumerator.go
deleted file mode 100644
index ef4fed108..000000000
--- a/enumeration/remote/google/google_bigtable_instance_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package google
-
-import (
- "github.com/sirupsen/logrus"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleBigTableInstanceEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleBigTableInstanceEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleBigTableInstanceEnumerator {
- return &GoogleBigTableInstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleBigTableInstanceEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleBigTableInstanceResourceType
-}
-
-func (e *GoogleBigTableInstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllBigtableInstances()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- name, exist := res.GetResource().GetData().GetFields()["name"]
- if !exist || name.GetStringValue() == "" {
- logrus.WithField("name", res.GetName()).Warn("Unable to retrieve resource name")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- name.GetStringValue(),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_bigtable_table_enumerator.go b/enumeration/remote/google/google_bigtable_table_enumerator.go
deleted file mode 100644
index 32dc677bb..000000000
--- a/enumeration/remote/google/google_bigtable_table_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package google
-
-import (
- "github.com/sirupsen/logrus"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleBigtableTableEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleBigtableTableEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleBigtableTableEnumerator {
- return &GoogleBigtableTableEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleBigtableTableEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleBigtableTableResourceType
-}
-
-func (e *GoogleBigtableTableEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllBigtableTables()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- name, exist := res.GetResource().GetData().GetFields()["name"]
- if !exist || name.GetStringValue() == "" {
- logrus.WithField("name", res.GetName()).Warn("Unable to retrieve resource name")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- name.GetStringValue(),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_cloudfunctions_function_enumerator.go b/enumeration/remote/google/google_cloudfunctions_function_enumerator.go
deleted file mode 100644
index 914ac6b90..000000000
--- a/enumeration/remote/google/google_cloudfunctions_function_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package google
-
-import (
- "github.com/sirupsen/logrus"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleCloudFunctionsFunctionEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleCloudFunctionsFunctionEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleCloudFunctionsFunctionEnumerator {
- return &GoogleCloudFunctionsFunctionEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleCloudFunctionsFunctionEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleCloudFunctionsFunctionResourceType
-}
-
-func (e *GoogleCloudFunctionsFunctionEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllFunctions()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- name, exist := res.GetResource().GetData().GetFields()["name"]
- if !exist || name.GetStringValue() == "" {
- logrus.WithField("name", res.GetName()).Warn("Unable to retrieve resource name")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- name.GetStringValue(),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_cloudrun_service_enumerator.go b/enumeration/remote/google/google_cloudrun_service_enumerator.go
deleted file mode 100644
index 2a8cdc0e7..000000000
--- a/enumeration/remote/google/google_cloudrun_service_enumerator.go
+++ /dev/null
@@ -1,62 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleCloudRunServiceEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleCloudRunServiceEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleCloudRunServiceEnumerator {
- return &GoogleCloudRunServiceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleCloudRunServiceEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleCloudRunServiceResourceType
-}
-
-func (e *GoogleCloudRunServiceEnumerator) Enumerate() ([]*resource.Resource, error) {
- subnets, err := e.repository.SearchAllCloudRunServices()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(subnets))
-
- for _, res := range subnets {
- splittedName := strings.Split(res.GetName(), "/")
- if len(splittedName) != 9 {
- logrus.WithField("name", res.GetName()).Error("Unable to decode project from resource name")
- continue
- }
- project := splittedName[4]
- id := strings.Join([]string{
- "locations", res.GetLocation(),
- "namespaces", project,
- "services", res.GetDisplayName(),
- }, "/")
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "name": res.GetDisplayName(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_address_enumerator.go b/enumeration/remote/google/google_compute_address_enumerator.go
deleted file mode 100644
index 93a193827..000000000
--- a/enumeration/remote/google/google_compute_address_enumerator.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeAddressEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeAddressEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeAddressEnumerator {
- return &GoogleComputeAddressEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeAddressEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeAddressResourceType
-}
-
-func (e *GoogleComputeAddressEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllAddresses()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- // Global addresses are handled as a dedicated resource
- if res.GetLocation() == "global" {
- continue
- }
- address := ""
- if addr, exist := res.GetAdditionalAttributes().GetFields()["address"]; exist {
- address = addr.GetStringValue()
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- "address": address,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_disk_enumerator.go b/enumeration/remote/google/google_compute_disk_enumerator.go
deleted file mode 100644
index 856eac25d..000000000
--- a/enumeration/remote/google/google_compute_disk_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeDiskEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeDiskEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeDiskEnumerator {
- return &GoogleComputeDiskEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeDiskEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeDiskResourceType
-}
-
-func (e *GoogleComputeDiskEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllDisks()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_firewall_enumerator.go b/enumeration/remote/google/google_compute_firewall_enumerator.go
deleted file mode 100644
index b0a75a7a2..000000000
--- a/enumeration/remote/google/google_compute_firewall_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeFirewallEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeFirewallEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeFirewallEnumerator {
- return &GoogleComputeFirewallEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeFirewallEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeFirewallResourceType
-}
-
-func (e *GoogleComputeFirewallEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllFirewalls()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- splittedName := strings.Split(res.GetName(), "/")
- if len(splittedName) != 8 {
- logrus.WithField("name", res.GetName()).Error("Unable to decode project from firewall name")
- continue
- }
- project := splittedName[4]
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.DisplayName,
- "project": project,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_forwarding_rule_enumerator.go b/enumeration/remote/google/google_compute_forwarding_rule_enumerator.go
deleted file mode 100644
index 1da141618..000000000
--- a/enumeration/remote/google/google_compute_forwarding_rule_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeForwardingRuleEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeForwardingRuleEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeForwardingRuleEnumerator {
- return &GoogleComputeForwardingRuleEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeForwardingRuleEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeForwardingRuleResourceType
-}
-
-func (e *GoogleComputeForwardingRuleEnumerator) Enumerate() ([]*resource.Resource, error) {
- forwardingRules, err := e.repository.SearchAllForwardingRules()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(forwardingRules))
- for _, res := range forwardingRules {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_global_address_enumerator.go b/enumeration/remote/google/google_compute_global_address_enumerator.go
deleted file mode 100644
index 6dc0647b3..000000000
--- a/enumeration/remote/google/google_compute_global_address_enumerator.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package google
-
-import (
- "github.com/sirupsen/logrus"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeGlobalAddressEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeGlobalAddressEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeGlobalAddressEnumerator {
- return &GoogleComputeGlobalAddressEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeGlobalAddressEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeGlobalAddressResourceType
-}
-
-func (e *GoogleComputeGlobalAddressEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllGlobalAddresses()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- name, exist := res.GetResource().GetData().GetFields()["name"]
- if !exist || name.GetStringValue() == "" {
- logrus.WithField("name", res.GetName()).Warn("Unable to retrieve resource name")
- continue
- }
- address := ""
- if addr, exist := res.GetResource().GetData().GetFields()["address"]; exist {
- address = addr.GetStringValue()
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": name.GetStringValue(),
- "address": address,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_global_forwarding_rule_enumerator.go b/enumeration/remote/google/google_compute_global_forwarding_rule_enumerator.go
deleted file mode 100644
index 54fedb286..000000000
--- a/enumeration/remote/google/google_compute_global_forwarding_rule_enumerator.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeGlobalForwardingRuleEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeGlobalForwardingRuleEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeGlobalForwardingRuleEnumerator {
- return &GoogleComputeGlobalForwardingRuleEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeGlobalForwardingRuleEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeGlobalForwardingRuleResourceType
-}
-
-func (e *GoogleComputeGlobalForwardingRuleEnumerator) Enumerate() ([]*resource.Resource, error) {
- globalForwardingRules, err := e.repository.SearchAllGlobalForwardingRules()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(globalForwardingRules))
-
- for _, res := range globalForwardingRules {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_health_check_enumerator.go b/enumeration/remote/google/google_compute_health_check_enumerator.go
deleted file mode 100644
index 275e4e0b9..000000000
--- a/enumeration/remote/google/google_compute_health_check_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeHealthCheckEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeHealthCheckEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeHealthCheckEnumerator {
- return &GoogleComputeHealthCheckEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeHealthCheckEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeHealthCheckResourceType
-}
-
-func (e *GoogleComputeHealthCheckEnumerator) Enumerate() ([]*resource.Resource, error) {
- checks, err := e.repository.SearchAllHealthChecks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(checks))
- for _, res := range checks {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_image_enumerator.go b/enumeration/remote/google/google_compute_image_enumerator.go
deleted file mode 100644
index 7dbf3de2a..000000000
--- a/enumeration/remote/google/google_compute_image_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeImageEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeImageEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeImageEnumerator {
- return &GoogleComputeImageEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeImageEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeImageResourceType
-}
-
-func (e *GoogleComputeImageEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllImages()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_instance_enumerator.go b/enumeration/remote/google/google_compute_instance_enumerator.go
deleted file mode 100644
index 547c8a3f7..000000000
--- a/enumeration/remote/google/google_compute_instance_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeInstanceEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeInstanceEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeInstanceEnumerator {
- return &GoogleComputeInstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeInstanceEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeInstanceResourceType
-}
-
-func (e *GoogleComputeInstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllInstances()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_instance_group_enumerator.go b/enumeration/remote/google/google_compute_instance_group_enumerator.go
deleted file mode 100644
index fbb3ad9a4..000000000
--- a/enumeration/remote/google/google_compute_instance_group_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package google
-
-import (
- "strings"
-
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeInstanceGroupEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeInstanceGroupEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeInstanceGroupEnumerator {
- return &GoogleComputeInstanceGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeInstanceGroupEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeInstanceGroupResourceType
-}
-
-func (e *GoogleComputeInstanceGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- groups, err := e.repository.SearchAllInstanceGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(groups))
- for _, res := range groups {
- splittedName := strings.Split(res.GetName(), "/")
- if len(splittedName) != 9 {
- logrus.WithField("name", res.GetName()).Error("Unable to decode project from instance group name")
- continue
- }
- project := splittedName[4]
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- "project": project,
- "zone": res.GetLocation(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_instance_group_manager_enumerator.go b/enumeration/remote/google/google_compute_instance_group_manager_enumerator.go
deleted file mode 100644
index 3257cc708..000000000
--- a/enumeration/remote/google/google_compute_instance_group_manager_enumerator.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeInstanceGroupManagerEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeInstanceGroupManagerEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeInstanceGroupManagerEnumerator {
- return &GoogleComputeInstanceGroupManagerEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeInstanceGroupManagerEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeInstanceGroupManagerResourceType
-}
-
-func (e *GoogleComputeInstanceGroupManagerEnumerator) Enumerate() ([]*resource.Resource, error) {
- items, err := e.repository.SearchAllInstanceGroupManagers()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(items))
- for _, res := range items {
- splittedName := strings.Split(res.GetName(), "/")
- if len(splittedName) != 9 {
- logrus.WithField("name", res.GetName()).Error("Unable to decode project from instance group name")
- continue
- }
- name := splittedName[8]
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": name,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_network_enumerator.go b/enumeration/remote/google/google_compute_network_enumerator.go
deleted file mode 100644
index a58a29ac4..000000000
--- a/enumeration/remote/google/google_compute_network_enumerator.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeNetworkEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeNetworkEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeNetworkEnumerator {
- return &GoogleComputeNetworkEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeNetworkEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeNetworkResourceType
-}
-
-func (e *GoogleComputeNetworkEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllNetworks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.DisplayName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_node_group_enumerator.go b/enumeration/remote/google/google_compute_node_group_enumerator.go
deleted file mode 100644
index fe2d724fc..000000000
--- a/enumeration/remote/google/google_compute_node_group_enumerator.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeNodeGroupEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeNodeGroupEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeNodeGroupEnumerator {
- return &GoogleComputeNodeGroupEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeNodeGroupEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeNodeGroupResourceType
-}
-
-func (e *GoogleComputeNodeGroupEnumerator) Enumerate() ([]*resource.Resource, error) {
- nodeGroups, err := e.repository.SearchAllNodeGroups()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(nodeGroups))
- for _, res := range nodeGroups {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetName(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_router_enumerator.go b/enumeration/remote/google/google_compute_router_enumerator.go
deleted file mode 100644
index 8edebf4d8..000000000
--- a/enumeration/remote/google/google_compute_router_enumerator.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeRouterEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeRouterEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeRouterEnumerator {
- return &GoogleComputeRouterEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeRouterEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeRouterResourceType
-}
-
-func (e *GoogleComputeRouterEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllRouters()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- "region": res.GetLocation(),
- "project": res.GetProject(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_ssl_certificate_enumerator.go b/enumeration/remote/google/google_compute_ssl_certificate_enumerator.go
deleted file mode 100644
index 65dc50704..000000000
--- a/enumeration/remote/google/google_compute_ssl_certificate_enumerator.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeSslCertificateEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeSslCertificateEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeSslCertificateEnumerator {
- return &GoogleComputeSslCertificateEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeSslCertificateEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeSslCertificateResourceType
-}
-
-func (e *GoogleComputeSslCertificateEnumerator) Enumerate() ([]*resource.Resource, error) {
- sslCertificates, err := e.repository.SearchAllSslCertificates()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(sslCertificates))
- for _, res := range sslCertificates {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_compute_subnetwork_enumerator.go b/enumeration/remote/google/google_compute_subnetwork_enumerator.go
deleted file mode 100644
index 19d4fabeb..000000000
--- a/enumeration/remote/google/google_compute_subnetwork_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeSubnetworkEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleComputeSubnetworkEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleComputeSubnetworkEnumerator {
- return &GoogleComputeSubnetworkEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleComputeSubnetworkEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleComputeSubnetworkResourceType
-}
-
-func (e *GoogleComputeSubnetworkEnumerator) Enumerate() ([]*resource.Resource, error) {
- subnets, err := e.repository.SearchAllSubnetworks()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(subnets))
-
- for _, res := range subnets {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- trimResourceName(res.GetName()),
- map[string]interface{}{
- "name": res.GetDisplayName(),
- "region": res.GetLocation(),
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_dns_managed_zone_enumerator.go b/enumeration/remote/google/google_dns_managed_zone_enumerator.go
deleted file mode 100644
index ea872d485..000000000
--- a/enumeration/remote/google/google_dns_managed_zone_enumerator.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleDNSManagedZoneEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleDNSManagedZoneEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleDNSManagedZoneEnumerator {
- return &GoogleDNSManagedZoneEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleDNSManagedZoneEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleDNSManagedZoneResourceType
-}
-
-func (e *GoogleDNSManagedZoneEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllDNSManagedZones()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- // We should have ID = "projects/cloudskiff-dev-elie/managedZones/example-zone"
- // We have projects/cloudskiff-dev-elie/managedZones/2435093289230056557
- for _, res := range resources {
- id := trimResourceName(res.Name)
- splittedId := strings.Split(id, "/managedZones/")
- if len(splittedId) != 2 {
- logrus.WithField("id", res.Name).Warn("Cannot parse google_dns_managed_zone ID")
- continue
- }
- id = strings.Join([]string{splittedId[0], "managedZones", res.DisplayName}, "/")
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_project_iam_member_enumerator.go b/enumeration/remote/google/google_project_iam_member_enumerator.go
deleted file mode 100644
index 5af564299..000000000
--- a/enumeration/remote/google/google_project_iam_member_enumerator.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package google
-
-import (
- "fmt"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleProjectIamMemberEnumerator struct {
- repository repository.CloudResourceManagerRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleProjectIamMemberEnumerator(repo repository.CloudResourceManagerRepository, factory resource.ResourceFactory) *GoogleProjectIamMemberEnumerator {
- return &GoogleProjectIamMemberEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleProjectIamMemberEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleProjectIamMemberResourceType
-}
-
-func (e *GoogleProjectIamMemberEnumerator) Enumerate() ([]*resource.Resource, error) {
- results := make([]*resource.Resource, 0)
-
- bindingsByProject, err := e.repository.ListProjectsBindings()
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for project, bindings := range bindingsByProject {
- for roleName, members := range bindings {
- for _, member := range members {
- id := fmt.Sprintf("%s/%s/%s", project, roleName, member)
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "id": id,
- "project": project,
- "role": roleName,
- "member": member,
- },
- ),
- )
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_sql_database_instance_enumerator.go b/enumeration/remote/google/google_sql_database_instance_enumerator.go
deleted file mode 100644
index fe0eb5caa..000000000
--- a/enumeration/remote/google/google_sql_database_instance_enumerator.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package google
-
-import (
- "github.com/sirupsen/logrus"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleSQLDatabaseInstanceEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleSQLDatabaseInstanceEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleSQLDatabaseInstanceEnumerator {
- return &GoogleSQLDatabaseInstanceEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleSQLDatabaseInstanceEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleSQLDatabaseInstanceResourceType
-}
-
-func (e *GoogleSQLDatabaseInstanceEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllSQLDatabaseInstances()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- name, exist := res.GetResource().GetData().GetFields()["name"]
- if !exist || name.GetStringValue() == "" {
- logrus.WithField("name", res.GetName()).Warn("Unable to retrieve resource name")
- continue
- }
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- name.GetStringValue(),
- map[string]interface{}{},
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_storage_bucket_enumerator.go b/enumeration/remote/google/google_storage_bucket_enumerator.go
deleted file mode 100644
index cdc0be5c7..000000000
--- a/enumeration/remote/google/google_storage_bucket_enumerator.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package google
-
-import (
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleStorageBucketEnumerator struct {
- repository repository.AssetRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleStorageBucketEnumerator(repo repository.AssetRepository, factory resource.ResourceFactory) *GoogleStorageBucketEnumerator {
- return &GoogleStorageBucketEnumerator{
- repository: repo,
- factory: factory,
- }
-}
-
-func (e *GoogleStorageBucketEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleStorageBucketResourceType
-}
-
-func (e *GoogleStorageBucketEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllBuckets()
-
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, res := range resources {
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- res.DisplayName,
- map[string]interface{}{
- "name": res.DisplayName,
- },
- ),
- )
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/google_storage_bucket_iam_member_enumerator.go b/enumeration/remote/google/google_storage_bucket_iam_member_enumerator.go
deleted file mode 100644
index c38187db2..000000000
--- a/enumeration/remote/google/google_storage_bucket_iam_member_enumerator.go
+++ /dev/null
@@ -1,64 +0,0 @@
-package google
-
-import (
- "fmt"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleStorageBucketIamMemberEnumerator struct {
- repository repository.AssetRepository
- storageRepository repository.StorageRepository
- factory resource.ResourceFactory
-}
-
-func NewGoogleStorageBucketIamMemberEnumerator(repo repository.AssetRepository, storageRepo repository.StorageRepository, factory resource.ResourceFactory) *GoogleStorageBucketIamMemberEnumerator {
- return &GoogleStorageBucketIamMemberEnumerator{
- repository: repo,
- storageRepository: storageRepo,
- factory: factory,
- }
-}
-
-func (e *GoogleStorageBucketIamMemberEnumerator) SupportedType() resource.ResourceType {
- return google.GoogleStorageBucketIamMemberResourceType
-}
-
-func (e *GoogleStorageBucketIamMemberEnumerator) Enumerate() ([]*resource.Resource, error) {
- resources, err := e.repository.SearchAllBuckets()
- if err != nil {
- return nil, remoteerror.NewResourceListingErrorWithType(err, string(e.SupportedType()), google.GoogleStorageBucketResourceType)
- }
-
- results := make([]*resource.Resource, 0, len(resources))
-
- for _, bucket := range resources {
- bindings, err := e.storageRepository.ListAllBindings(bucket.DisplayName)
- if err != nil {
- return nil, remoteerror.NewResourceListingError(err, string(e.SupportedType()))
- }
- for roleName, members := range bindings {
- for _, member := range members {
- id := fmt.Sprintf("b/%s/%s/%s", bucket.DisplayName, roleName, member)
- results = append(
- results,
- e.factory.CreateAbstractResource(
- string(e.SupportedType()),
- id,
- map[string]interface{}{
- "id": id,
- "bucket": fmt.Sprintf("b/%s", bucket.DisplayName),
- "role": roleName,
- "member": member,
- },
- ),
- )
- }
- }
- }
-
- return results, err
-}
diff --git a/enumeration/remote/google/init.go b/enumeration/remote/google/init.go
deleted file mode 100644
index 30fb0c223..000000000
--- a/enumeration/remote/google/init.go
+++ /dev/null
@@ -1,101 +0,0 @@
-package google
-
-import (
- "context"
-
- "github.com/snyk/driftctl/enumeration"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- asset "cloud.google.com/go/asset/apiv1"
- "cloud.google.com/go/storage"
- "github.com/snyk/driftctl/enumeration/resource"
- "google.golang.org/api/cloudresourcemanager/v1"
-)
-
-func Init(version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, factory resource.ResourceFactory, configDir string) error {
-
- provider, err := NewGCPTerraformProvider(version, progress, configDir)
- if err != nil {
- return err
- }
-
- err = provider.CheckCredentialsExist()
- if err != nil {
- return err
- }
-
- err = provider.Init()
- if err != nil {
- return err
- }
-
- repositoryCache := cache.New(100)
-
- ctx := context.Background()
- assetClient, err := asset.NewClient(ctx)
- if err != nil {
- return err
- }
-
- storageClient, err := storage.NewClient(ctx)
- if err != nil {
- return err
- }
-
- crmService, err := cloudresourcemanager.NewService(ctx)
- if err != nil {
- return err
- }
-
- assetRepository := repository.NewAssetRepository(assetClient, provider.GetConfig(), repositoryCache)
- storageRepository := repository.NewStorageRepository(storageClient, repositoryCache)
- iamRepository := repository.NewCloudResourceManagerRepository(crmService, provider.GetConfig(), repositoryCache)
-
- providerLibrary.AddProvider(terraform.GOOGLE, provider)
-
- remoteLibrary.AddEnumerator(NewGoogleStorageBucketEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeFirewallEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeRouterEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeInstanceEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleProjectIamMemberEnumerator(iamRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleStorageBucketIamMemberEnumerator(assetRepository, storageRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeNetworkEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeSubnetworkEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleDNSManagedZoneEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeInstanceGroupEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleBigqueryDatasetEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleBigqueryTableEnumerator(assetRepository, factory))
-
- remoteLibrary.AddEnumerator(NewGoogleComputeAddressEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeGlobalAddressEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleCloudFunctionsFunctionEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeDiskEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeImageEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleBigTableInstanceEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleBigtableTableEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleSQLDatabaseInstanceEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeHealthCheckEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleCloudRunServiceEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeNodeGroupEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeForwardingRuleEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeInstanceGroupManagerEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeGlobalForwardingRuleEnumerator(assetRepository, factory))
- remoteLibrary.AddEnumerator(NewGoogleComputeSslCertificateEnumerator(assetRepository, factory))
-
- return nil
-}
diff --git a/enumeration/remote/google/provider.go b/enumeration/remote/google/provider.go
deleted file mode 100644
index 8b92ece99..000000000
--- a/enumeration/remote/google/provider.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package google
-
-import (
- "context"
- "errors"
- "os"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/google/config"
- "github.com/snyk/driftctl/enumeration/remote/terraform"
- tf "github.com/snyk/driftctl/enumeration/terraform"
-
- asset "cloud.google.com/go/asset/apiv1"
-)
-
-type GCPTerraformProvider struct {
- *terraform.TerraformProvider
- name string
- version string
-}
-
-func NewGCPTerraformProvider(version string, progress enumeration.ProgressCounter, configDir string) (*GCPTerraformProvider, error) {
- if version == "" {
- version = "3.78.0"
- }
- p := &GCPTerraformProvider{
- version: version,
- name: tf.GOOGLE,
- }
- installer, err := tf.NewProviderInstaller(tf.ProviderConfig{
- Key: p.name,
- Version: version,
- ConfigDir: configDir,
- })
- if err != nil {
- return nil, err
- }
- tfProvider, err := terraform.NewTerraformProvider(installer, terraform.TerraformProviderConfig{
- Name: p.name,
- GetProviderConfig: func(alias string) interface{} {
- return p.GetConfig()
- },
- }, progress)
-
- if err != nil {
- return nil, err
- }
-
- p.TerraformProvider = tfProvider
-
- return p, err
-}
-
-func (p *GCPTerraformProvider) Name() string {
- return p.name
-}
-
-func (p *GCPTerraformProvider) Version() string {
- return p.version
-}
-
-func (p *GCPTerraformProvider) GetConfig() config.GCPTerraformConfig {
- return config.GCPTerraformConfig{
- Project: os.Getenv("CLOUDSDK_CORE_PROJECT"),
- Region: os.Getenv("CLOUDSDK_COMPUTE_REGION"),
- Zone: os.Getenv("CLOUDSDK_COMPUTE_ZONE"),
- }
-}
-
-func (p *GCPTerraformProvider) CheckCredentialsExist() error {
- client, err := asset.NewClient(context.Background())
- if err != nil {
- return errors.New("Please use a Service Account to authenticate on GCP.\n" +
- "For more information: https://cloud.google.com/docs/authentication/production")
- }
- _ = client.Close()
- return nil
-}
diff --git a/enumeration/remote/google/repository/asset.go b/enumeration/remote/google/repository/asset.go
deleted file mode 100644
index 59d93f1cf..000000000
--- a/enumeration/remote/google/repository/asset.go
+++ /dev/null
@@ -1,289 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
-
- asset "cloud.google.com/go/asset/apiv1"
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/google/config"
- "google.golang.org/api/iterator"
-)
-
-// https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_resource_types
-const (
- storageBucketAssetType = "storage.googleapis.com/Bucket"
- computeFirewallAssetType = "compute.googleapis.com/Firewall"
- computeRouterAssetType = "compute.googleapis.com/Router"
- computeInstanceAssetType = "compute.googleapis.com/Instance"
- computeNetworkAssetType = "compute.googleapis.com/Network"
- computeSubnetworkAssetType = "compute.googleapis.com/Subnetwork"
- computeDiskAssetType = "compute.googleapis.com/Disk"
- computeImageAssetType = "compute.googleapis.com/Image"
- dnsManagedZoneAssetType = "dns.googleapis.com/ManagedZone"
- computeInstanceGroupAssetType = "compute.googleapis.com/InstanceGroup"
- bigqueryDatasetAssetType = "bigquery.googleapis.com/Dataset"
- bigqueryTableAssetType = "bigquery.googleapis.com/Table"
- computeAddressAssetType = "compute.googleapis.com/Address"
- computeGlobalAddressAssetType = "compute.googleapis.com/GlobalAddress"
- cloudFunctionsFunction = "cloudfunctions.googleapis.com/CloudFunction"
- bigtableInstanceAssetType = "bigtableadmin.googleapis.com/Instance"
- bigtableTableAssetType = "bigtableadmin.googleapis.com/Table"
- sqlDatabaseInstanceAssetType = "sqladmin.googleapis.com/Instance"
- healthCheckAssetType = "compute.googleapis.com/HealthCheck"
- cloudRunServiceAssetType = "run.googleapis.com/Service"
- nodeGroupAssetType = "compute.googleapis.com/NodeGroup"
- computeForwardingRuleAssetType = "compute.googleapis.com/ForwardingRule"
- instanceGroupManagerAssetType = "compute.googleapis.com/InstanceGroupManager"
- computeGlobalForwardingRuleAssetType = "compute.googleapis.com/GlobalForwardingRule"
- computeSslCertificateAssetType = "compute.googleapis.com/SslCertificate"
-)
-
-type AssetRepository interface {
- SearchAllBuckets() ([]*assetpb.ResourceSearchResult, error)
- SearchAllFirewalls() ([]*assetpb.ResourceSearchResult, error)
- SearchAllRouters() ([]*assetpb.ResourceSearchResult, error)
- SearchAllInstances() ([]*assetpb.ResourceSearchResult, error)
- SearchAllNetworks() ([]*assetpb.ResourceSearchResult, error)
- SearchAllDisks() ([]*assetpb.ResourceSearchResult, error)
- SearchAllImages() ([]*assetpb.ResourceSearchResult, error)
- SearchAllDNSManagedZones() ([]*assetpb.ResourceSearchResult, error)
- SearchAllInstanceGroups() ([]*assetpb.ResourceSearchResult, error)
- SearchAllDatasets() ([]*assetpb.ResourceSearchResult, error)
- SearchAllTables() ([]*assetpb.ResourceSearchResult, error)
- SearchAllAddresses() ([]*assetpb.ResourceSearchResult, error)
- SearchAllGlobalAddresses() ([]*assetpb.Asset, error)
- SearchAllFunctions() ([]*assetpb.Asset, error)
- SearchAllSubnetworks() ([]*assetpb.ResourceSearchResult, error)
- SearchAllBigtableInstances() ([]*assetpb.Asset, error)
- SearchAllBigtableTables() ([]*assetpb.Asset, error)
- SearchAllSQLDatabaseInstances() ([]*assetpb.Asset, error)
- SearchAllHealthChecks() ([]*assetpb.ResourceSearchResult, error)
- SearchAllCloudRunServices() ([]*assetpb.ResourceSearchResult, error)
- SearchAllNodeGroups() ([]*assetpb.Asset, error)
- SearchAllForwardingRules() ([]*assetpb.Asset, error)
- SearchAllInstanceGroupManagers() ([]*assetpb.Asset, error)
- SearchAllGlobalForwardingRules() ([]*assetpb.Asset, error)
- SearchAllSslCertificates() ([]*assetpb.Asset, error)
-}
-
-type assetRepository struct {
- client *asset.Client
- config config.GCPTerraformConfig
- cache cache.Cache
-}
-
-func NewAssetRepository(client *asset.Client, config config.GCPTerraformConfig, c cache.Cache) *assetRepository {
- return &assetRepository{
- client,
- config,
- c,
- }
-}
-
-func (s assetRepository) listAllResources(ty string) ([]*assetpb.Asset, error) {
- req := &assetpb.ListAssetsRequest{
- Parent: fmt.Sprintf("projects/%s", s.config.Project),
- ContentType: assetpb.ContentType_RESOURCE,
- AssetTypes: []string{
- cloudFunctionsFunction,
- bigtableInstanceAssetType,
- bigtableTableAssetType,
- sqlDatabaseInstanceAssetType,
- computeGlobalAddressAssetType,
- nodeGroupAssetType,
- computeForwardingRuleAssetType,
- instanceGroupManagerAssetType,
- computeGlobalForwardingRuleAssetType,
- computeSslCertificateAssetType,
- },
- }
- var results []*assetpb.Asset
-
- cacheKey := "listAllResources"
- cachedResults := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if cachedResults != nil {
- results = cachedResults.([]*assetpb.Asset)
- }
-
- if results == nil {
- it := s.client.ListAssets(context.Background(), req)
- for {
- resource, err := it.Next()
- if err == iterator.Done {
- break
- }
- if err != nil {
- return nil, err
- }
- results = append(results, resource)
- }
- s.cache.Put(cacheKey, results)
- }
-
- filteredResults := []*assetpb.Asset{}
- for _, result := range results {
- if result.AssetType == ty {
- filteredResults = append(filteredResults, result)
- }
- }
-
- return filteredResults, nil
-}
-
-func (s assetRepository) searchAllResources(ty string) ([]*assetpb.ResourceSearchResult, error) {
- req := &assetpb.SearchAllResourcesRequest{
- Scope: fmt.Sprintf("projects/%s", s.config.Project),
- AssetTypes: []string{
- storageBucketAssetType,
- computeFirewallAssetType,
- computeRouterAssetType,
- computeInstanceAssetType,
- computeNetworkAssetType,
- computeSubnetworkAssetType,
- dnsManagedZoneAssetType,
- computeInstanceGroupAssetType,
- bigqueryDatasetAssetType,
- bigqueryTableAssetType,
- computeAddressAssetType,
- computeDiskAssetType,
- computeImageAssetType,
- healthCheckAssetType,
- cloudRunServiceAssetType,
- },
- }
- var results []*assetpb.ResourceSearchResult
-
- cacheKey := "SearchAllResources"
- cachedResults := s.cache.GetAndLock(cacheKey)
- defer s.cache.Unlock(cacheKey)
- if cachedResults != nil {
- results = cachedResults.([]*assetpb.ResourceSearchResult)
- }
-
- if results == nil {
- it := s.client.SearchAllResources(context.Background(), req)
- for {
- resource, err := it.Next()
- if err == iterator.Done {
- break
- }
- if err != nil {
- return nil, err
- }
- results = append(results, resource)
- }
- s.cache.Put(cacheKey, results)
- }
-
- filteredResults := []*assetpb.ResourceSearchResult{}
- for _, result := range results {
- if result.AssetType == ty {
- filteredResults = append(filteredResults, result)
- }
- }
-
- return filteredResults, nil
-}
-
-func (s assetRepository) SearchAllBuckets() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(storageBucketAssetType)
-}
-
-func (s assetRepository) SearchAllFirewalls() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeFirewallAssetType)
-}
-
-func (s assetRepository) SearchAllRouters() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeRouterAssetType)
-}
-
-func (s assetRepository) SearchAllInstances() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeInstanceAssetType)
-}
-
-func (s assetRepository) SearchAllNetworks() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeNetworkAssetType)
-}
-
-func (s assetRepository) SearchAllDNSManagedZones() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(dnsManagedZoneAssetType)
-}
-
-func (s assetRepository) SearchAllInstanceGroups() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeInstanceGroupAssetType)
-}
-
-func (s assetRepository) SearchAllDatasets() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(bigqueryDatasetAssetType)
-}
-
-func (s assetRepository) SearchAllTables() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(bigqueryTableAssetType)
-}
-
-func (s assetRepository) SearchAllAddresses() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeAddressAssetType)
-}
-
-func (s assetRepository) SearchAllGlobalAddresses() ([]*assetpb.Asset, error) {
- return s.listAllResources(computeGlobalAddressAssetType)
-}
-
-func (s assetRepository) SearchAllFunctions() ([]*assetpb.Asset, error) {
- return s.listAllResources(cloudFunctionsFunction)
-}
-
-func (s assetRepository) SearchAllSubnetworks() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeSubnetworkAssetType)
-}
-
-func (s assetRepository) SearchAllDisks() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeDiskAssetType)
-}
-
-func (s assetRepository) SearchAllImages() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(computeImageAssetType)
-}
-
-func (s assetRepository) SearchAllBigtableInstances() ([]*assetpb.Asset, error) {
- return s.listAllResources(bigtableInstanceAssetType)
-}
-
-func (s assetRepository) SearchAllBigtableTables() ([]*assetpb.Asset, error) {
- return s.listAllResources(bigtableTableAssetType)
-}
-
-func (s assetRepository) SearchAllSQLDatabaseInstances() ([]*assetpb.Asset, error) {
- return s.listAllResources(sqlDatabaseInstanceAssetType)
-}
-
-func (s assetRepository) SearchAllHealthChecks() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(healthCheckAssetType)
-}
-
-func (s assetRepository) SearchAllCloudRunServices() ([]*assetpb.ResourceSearchResult, error) {
- return s.searchAllResources(cloudRunServiceAssetType)
-}
-
-func (s assetRepository) SearchAllNodeGroups() ([]*assetpb.Asset, error) {
- return s.listAllResources(nodeGroupAssetType)
-}
-
-func (s assetRepository) SearchAllForwardingRules() ([]*assetpb.Asset, error) {
- return s.listAllResources(computeForwardingRuleAssetType)
-}
-
-func (s assetRepository) SearchAllInstanceGroupManagers() ([]*assetpb.Asset, error) {
- return s.listAllResources(instanceGroupManagerAssetType)
-}
-
-func (s assetRepository) SearchAllGlobalForwardingRules() ([]*assetpb.Asset, error) {
- return s.listAllResources(computeGlobalForwardingRuleAssetType)
-}
-
-func (s assetRepository) SearchAllSslCertificates() ([]*assetpb.Asset, error) {
- return s.listAllResources(computeSslCertificateAssetType)
-}
diff --git a/enumeration/remote/google/repository/asset_test.go b/enumeration/remote/google/repository/asset_test.go
deleted file mode 100644
index 65d3bda4c..000000000
--- a/enumeration/remote/google/repository/asset_test.go
+++ /dev/null
@@ -1,64 +0,0 @@
-package repository
-
-import (
- "testing"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/google/config"
- "github.com/snyk/driftctl/test/google"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func Test_assetRepository_searchAllResources_CacheHit(t *testing.T) {
-
- expectedResults := []*assetpb.ResourceSearchResult{
- {
- AssetType: "google_fake_type",
- DisplayName: "driftctl-unittest-1",
- },
- {
- AssetType: "google_another_fake_type",
- DisplayName: "driftctl-unittest-1",
- },
- }
-
- c := &cache.MockCache{}
- c.On("GetAndLock", "SearchAllResources").Return(expectedResults).Times(1)
- c.On("Unlock", "SearchAllResources").Times(1)
- repo := NewAssetRepository(nil, config.GCPTerraformConfig{Project: ""}, c)
-
- got, err := repo.searchAllResources("google_fake_type")
- c.AssertExpectations(t)
- assert.Nil(t, err)
- assert.Len(t, got, 1)
-}
-
-func Test_assetRepository_searchAllResources_CacheMiss(t *testing.T) {
-
- expectedResults := []*assetpb.ResourceSearchResult{
- {
- AssetType: "google_fake_type",
- DisplayName: "driftctl-unittest-1",
- },
- {
- AssetType: "google_another_fake_type",
- DisplayName: "driftctl-unittest-1",
- },
- }
- assetClient, err := google.NewFakeAssetServer(expectedResults, nil)
- if err != nil {
- t.Fatal(err)
- }
- c := &cache.MockCache{}
- c.On("GetAndLock", "SearchAllResources").Return(nil).Times(1)
- c.On("Unlock", "SearchAllResources").Times(1)
- c.On("Put", "SearchAllResources", mock.IsType([]*assetpb.ResourceSearchResult{})).Return(false).Times(1)
- repo := NewAssetRepository(assetClient, config.GCPTerraformConfig{Project: ""}, c)
-
- got, err := repo.searchAllResources("google_fake_type")
- c.AssertExpectations(t)
- assert.Nil(t, err)
- assert.Len(t, got, 1)
-}
diff --git a/enumeration/remote/google/repository/cloudresourcemanager.go b/enumeration/remote/google/repository/cloudresourcemanager.go
deleted file mode 100644
index 09507a046..000000000
--- a/enumeration/remote/google/repository/cloudresourcemanager.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package repository
-
-import (
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/google/config"
- "google.golang.org/api/cloudresourcemanager/v1"
-)
-
-type CloudResourceManagerRepository interface {
- ListProjectsBindings() (map[string]map[string][]string, error)
-}
-
-type cloudResourceManagerRepository struct {
- service *cloudresourcemanager.Service
- config config.GCPTerraformConfig
- cache cache.Cache
-}
-
-func NewCloudResourceManagerRepository(service *cloudresourcemanager.Service, config config.GCPTerraformConfig, cache cache.Cache) CloudResourceManagerRepository {
- return &cloudResourceManagerRepository{
- service: service,
- config: config,
- cache: cache,
- }
-}
-
-func (s *cloudResourceManagerRepository) ListProjectsBindings() (map[string]map[string][]string, error) {
- if cachedResults := s.cache.Get("ListProjectsBindings"); cachedResults != nil {
- return cachedResults.(map[string]map[string][]string), nil
- }
-
- request := new(cloudresourcemanager.GetIamPolicyRequest)
- policy, err := s.service.Projects.GetIamPolicy(s.config.Project, request).Do()
- if err != nil {
- return nil, err
- }
-
- bindings := make(map[string][]string)
-
- for _, binding := range policy.Bindings {
- bindings[binding.Role] = binding.Members
- }
-
- bindingsByProject := make(map[string]map[string][]string)
- bindingsByProject[s.config.Project] = bindings
-
- s.cache.Put("ListProjectsBindings", bindingsByProject)
-
- return bindingsByProject, nil
-}
diff --git a/enumeration/remote/google/repository/mock_AssetRepository.go b/enumeration/remote/google/repository/mock_AssetRepository.go
deleted file mode 100644
index 3a7ea0e49..000000000
--- a/enumeration/remote/google/repository/mock_AssetRepository.go
+++ /dev/null
@@ -1,678 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import (
- mock "github.com/stretchr/testify/mock"
- asset "google.golang.org/genproto/googleapis/cloud/asset/v1"
-)
-
-// MockAssetRepository is an autogenerated mock type for the AssetRepository type
-type MockAssetRepository struct {
- mock.Mock
-}
-
-// SearchAllAddresses provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllAddresses() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllBigtableInstances provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllBigtableInstances() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllBigtableTables provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllBigtableTables() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllBuckets provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllBuckets() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllCloudRunServices provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllCloudRunServices() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllDNSManagedZones provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllDNSManagedZones() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllDatasets provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllDatasets() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllDisks provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllDisks() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllFirewalls provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllFirewalls() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllForwardingRules provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllForwardingRules() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllFunctions provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllFunctions() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllGlobalAddresses provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllGlobalAddresses() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllGlobalForwardingRules provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllGlobalForwardingRules() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllHealthChecks provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllHealthChecks() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllImages provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllImages() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllInstanceGroupManagers provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllInstanceGroupManagers() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllInstanceGroups provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllInstanceGroups() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllInstances provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllInstances() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllNetworks provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllNetworks() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllNodeGroups provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllNodeGroups() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllRouters provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllRouters() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllSQLDatabaseInstances provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllSQLDatabaseInstances() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllSslCertificates provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllSslCertificates() ([]*asset.Asset, error) {
- ret := _m.Called()
-
- var r0 []*asset.Asset
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.Asset, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.Asset); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.Asset)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllSubnetworks provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllSubnetworks() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchAllTables provides a mock function with given fields:
-func (_m *MockAssetRepository) SearchAllTables() ([]*asset.ResourceSearchResult, error) {
- ret := _m.Called()
-
- var r0 []*asset.ResourceSearchResult
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*asset.ResourceSearchResult, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*asset.ResourceSearchResult); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*asset.ResourceSearchResult)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockAssetRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockAssetRepository creates a new instance of MockAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockAssetRepository(t mockConstructorTestingTNewMockAssetRepository) *MockAssetRepository {
- mock := &MockAssetRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/google/repository/mock_CloudResourceManagerRepository.go b/enumeration/remote/google/repository/mock_CloudResourceManagerRepository.go
deleted file mode 100644
index c0530a017..000000000
--- a/enumeration/remote/google/repository/mock_CloudResourceManagerRepository.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockCloudResourceManagerRepository is an autogenerated mock type for the CloudResourceManagerRepository type
-type MockCloudResourceManagerRepository struct {
- mock.Mock
-}
-
-// ListProjectsBindings provides a mock function with given fields:
-func (_m *MockCloudResourceManagerRepository) ListProjectsBindings() (map[string]map[string][]string, error) {
- ret := _m.Called()
-
- var r0 map[string]map[string][]string
- var r1 error
- if rf, ok := ret.Get(0).(func() (map[string]map[string][]string, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() map[string]map[string][]string); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(map[string]map[string][]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockCloudResourceManagerRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockCloudResourceManagerRepository creates a new instance of MockCloudResourceManagerRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockCloudResourceManagerRepository(t mockConstructorTestingTNewMockCloudResourceManagerRepository) *MockCloudResourceManagerRepository {
- mock := &MockCloudResourceManagerRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/google/repository/mock_StorageRepository.go b/enumeration/remote/google/repository/mock_StorageRepository.go
deleted file mode 100644
index 5dab50744..000000000
--- a/enumeration/remote/google/repository/mock_StorageRepository.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package repository
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockStorageRepository is an autogenerated mock type for the StorageRepository type
-type MockStorageRepository struct {
- mock.Mock
-}
-
-// ListAllBindings provides a mock function with given fields: bucketName
-func (_m *MockStorageRepository) ListAllBindings(bucketName string) (map[string][]string, error) {
- ret := _m.Called(bucketName)
-
- var r0 map[string][]string
- var r1 error
- if rf, ok := ret.Get(0).(func(string) (map[string][]string, error)); ok {
- return rf(bucketName)
- }
- if rf, ok := ret.Get(0).(func(string) map[string][]string); ok {
- r0 = rf(bucketName)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(map[string][]string)
- }
- }
-
- if rf, ok := ret.Get(1).(func(string) error); ok {
- r1 = rf(bucketName)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockStorageRepository interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockStorageRepository creates a new instance of MockStorageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockStorageRepository(t mockConstructorTestingTNewMockStorageRepository) *MockStorageRepository {
- mock := &MockStorageRepository{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/remote/google/repository/storage.go b/enumeration/remote/google/repository/storage.go
deleted file mode 100644
index bbd186d9a..000000000
--- a/enumeration/remote/google/repository/storage.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package repository
-
-import (
- "context"
- "fmt"
- "sync"
-
- "cloud.google.com/go/storage"
- "github.com/snyk/driftctl/enumeration/remote/cache"
-)
-
-type StorageRepository interface {
- ListAllBindings(bucketName string) (map[string][]string, error)
-}
-
-type storageRepository struct {
- client *storage.Client
- cache cache.Cache
- lock sync.Locker
-}
-
-func NewStorageRepository(client *storage.Client, cache cache.Cache) *storageRepository {
- return &storageRepository{
- client: client,
- cache: cache,
- lock: &sync.Mutex{},
- }
-}
-
-func (s storageRepository) ListAllBindings(bucketName string) (map[string][]string, error) {
-
- s.lock.Lock()
- defer s.lock.Unlock()
- if cachedResults := s.cache.Get(fmt.Sprintf("%s-%s", "ListAllBindings", bucketName)); cachedResults != nil {
- return cachedResults.(map[string][]string), nil
- }
-
- bucket := s.client.Bucket(bucketName)
- policy, err := bucket.IAM().Policy(context.Background())
- if err != nil {
- return nil, err
- }
- bindings := make(map[string][]string)
- for _, name := range policy.Roles() {
- members := policy.Members(name)
- bindings[string(name)] = members
- }
-
- s.cache.Put("ListAllBindings", bindings)
-
- return bindings, nil
-}
diff --git a/enumeration/remote/google/util.go b/enumeration/remote/google/util.go
deleted file mode 100644
index f14ec7700..000000000
--- a/enumeration/remote/google/util.go
+++ /dev/null
@@ -1,10 +0,0 @@
-package google
-
-import (
- "regexp"
-)
-
-func trimResourceName(name string) string {
- re, _ := regexp.Compile(`^\/\/[\w]+.googleapis.com\/`)
- return re.ReplaceAllString(name, "")
-}
diff --git a/enumeration/remote/google_bigquery_scanner_test.go b/enumeration/remote/google_bigquery_scanner_test.go
deleted file mode 100644
index 6fa82154d..000000000
--- a/enumeration/remote/google_bigquery_scanner_test.go
+++ /dev/null
@@ -1,224 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-)
-
-func TestGoogleBigqueryDataset(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no dataset",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples dataset",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/datasets/example_dataset", got[0].ResourceId())
- assert.Equal(t, "google_bigquery_dataset", got[0].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "bigquery.googleapis.com/Dataset",
- Name: "//bigquery.googleapis.com/projects/cloudskiff-dev-elie/datasets/example_dataset",
- },
- },
- },
- {
- test: "cannot list datasets",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_bigquery_dataset",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_bigquery_dataset",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleBigqueryDatasetEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleBigqueryTable(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no table",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples table",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/datasets/example_dataset/tables/bar", got[0].ResourceId())
- assert.Equal(t, "google_bigquery_table", got[0].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "bigquery.googleapis.com/Table",
- Name: "//bigquery.googleapis.com/projects/cloudskiff-dev-elie/datasets/example_dataset/tables/bar",
- },
- },
- },
- {
- test: "cannot list table",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_bigquery_table",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_bigquery_table",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleBigqueryTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_bigtable_scanner_test.go b/enumeration/remote/google_bigtable_scanner_test.go
deleted file mode 100644
index 0d6e74016..000000000
--- a/enumeration/remote/google_bigtable_scanner_test.go
+++ /dev/null
@@ -1,284 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/structpb"
-)
-
-func TestGoogleBigtableInstance(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no instance",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "one instance returned",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/instances/tf-instance", got[0].ResourceId())
- assert.Equal(t, "google_bigtable_instance", got[0].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "bigtableadmin.googleapis.com/Instance",
- Name: "//bigtable.googleapis.com/projects/cloudskiff-dev-elie/instances/tf-instance",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{
- "name": "projects/cloudskiff-dev-elie/instances/tf-instance",
- })
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "one instance without resource data",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- response: []*assetpb.Asset{
- {
- AssetType: "bigtableadmin.googleapis.com/Instance",
- Name: "//bigtable.googleapis.com/projects/cloudskiff-dev-elie/instances/tf-instance",
- },
- {
- AssetType: "bigtableadmin.googleapis.com/Instance",
- Name: "//bigtable.googleapis.com/projects/cloudskiff-dev-elie/instances/tf-instance-2",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{})
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "cannot list instances",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_bigtable_instance",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_bigtable_instance",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleBigTableInstanceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleBigtableTable(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no table",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "one resource returned",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/instances/tf-instance/tables/tf-table", got[0].ResourceId())
- assert.Equal(t, "google_bigtable_table", got[0].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "bigtableadmin.googleapis.com/Table",
- Name: "//bigtable.googleapis.com/projects/cloudskiff-dev-elie/instances/tf-instance/tables/tf-table",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{
- "name": "projects/cloudskiff-dev-elie/instances/tf-instance/tables/tf-table",
- })
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "one resource without resource data",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- response: []*assetpb.Asset{
- {
- AssetType: "bigtableadmin.googleapis.com/Table",
- Name: "//bigtable.googleapis.com/projects/cloudskiff-dev-elie/instances/tf-instance/tables/tf-table",
- },
- },
- },
- {
- test: "cannot list cloud functions",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_bigtable_table",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_bigtable_table",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleBigtableTableEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_cloudfunctions_scanner_test.go b/enumeration/remote/google_cloudfunctions_scanner_test.go
deleted file mode 100644
index c6923243c..000000000
--- a/enumeration/remote/google_cloudfunctions_scanner_test.go
+++ /dev/null
@@ -1,149 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/structpb"
-)
-
-func TestGoogleCloudFunctionsFunction(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute instance",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "one cloud function returned",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/locations/us-central1/functions/function-test", got[0].ResourceId())
- assert.Equal(t, "google_cloudfunctions_function", got[0].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "cloudfunctions.googleapis.com/CloudFunction",
- Name: "//cloudfunctions.googleapis.com/projects/cloudskiff-dev-elie/locations/us-central1/functions/function-test",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{
- "name": "projects/cloudskiff-dev-elie/locations/us-central1/functions/function-test",
- })
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "one cloud function without resource data",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- response: []*assetpb.Asset{
- {
- AssetType: "cloudfunctions.googleapis.com/CloudFunction",
- Name: "//cloudfunctions.googleapis.com/projects/cloudskiff-dev-elie/locations/us-central1/functions/function-test",
- },
- },
- },
- {
- test: "cannot list cloud functions",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_cloudfunctions_function",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_cloudfunctions_function",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleCloudFunctionsFunctionEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_cloudrun_scanner_test.go b/enumeration/remote/google_cloudrun_scanner_test.go
deleted file mode 100644
index 212e03689..000000000
--- a/enumeration/remote/google_cloudrun_scanner_test.go
+++ /dev/null
@@ -1,146 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- googleresource "github.com/snyk/driftctl/enumeration/resource/google"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-)
-
-func TestGoogleCloudRunService(t *testing.T) {
-
- cases := []struct {
- test string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- assertExpected func(t *testing.T, got []*resource.Resource)
- }{
- {
- test: "no resource",
- response: []*assetpb.ResourceSearchResult{},
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples resources",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "run.googleapis.com/Service",
- Name: "invalid ID", // Should be ignored
- },
- {
- AssetType: "run.googleapis.com/Service",
- DisplayName: "cloudrun-srv-1",
- Name: "//run.googleapis.com/projects/cloudskiff-dev-elie/locations/us-central1/services/cloudrun-srv-1",
- Location: "us-central1",
- },
- {
- AssetType: "run.googleapis.com/Service",
- DisplayName: "cloudrun-srv-2",
- Name: "//run.googleapis.com/projects/cloudskiff-dev-elie/locations/us-central1/services/cloudrun-srv-2",
- Location: "us-central1",
- },
- },
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, got[0].ResourceId(), "locations/us-central1/namespaces/cloudskiff-dev-elie/services/cloudrun-srv-1")
- assert.Equal(t, got[0].ResourceType(), googleresource.GoogleCloudRunServiceResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "locations/us-central1/namespaces/cloudskiff-dev-elie/services/cloudrun-srv-2")
- assert.Equal(t, got[1].ResourceType(), googleresource.GoogleCloudRunServiceResourceType)
- },
- },
- {
- test: "should return access denied error",
- wantErr: nil,
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- googleresource.GoogleCloudRunServiceResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- googleresource.GoogleCloudRunServiceResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleCloudRunServiceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_compute_scanner_test.go b/enumeration/remote/google_compute_scanner_test.go
deleted file mode 100644
index 015af20a7..000000000
--- a/enumeration/remote/google_compute_scanner_test.go
+++ /dev/null
@@ -1,1857 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- googleresource "github.com/snyk/driftctl/enumeration/resource/google"
- "github.com/snyk/driftctl/mocks"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- "github.com/snyk/driftctl/test/goldenfile"
- testgoogle "github.com/snyk/driftctl/test/google"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/structpb"
-)
-
-func TestGoogleComputeFirewall(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no compute firewall",
- dirName: "google_compute_firewall_empty",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiples compute firewall",
- dirName: "google_compute_firewall",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Firewall",
- DisplayName: "test-firewall-0",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/firewalls/test-firewall-0",
- },
- {
- AssetType: "compute.googleapis.com/Firewall",
- DisplayName: "test-firewall-1",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/firewalls/test-firewall-1",
- },
- {
- AssetType: "compute.googleapis.com/Firewall",
- DisplayName: "test-firewall-2",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/firewalls/test-firewall-2",
- },
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/firewalls/test-firewall-0", got[0].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeFirewallResourceType, got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/firewalls/test-firewall-1", got[1].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeFirewallResourceType, got[1].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/firewalls/test-firewall-2", got[2].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeFirewallResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list compute firewall",
- dirName: "google_compute_firewall_empty",
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_firewall",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_firewall",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- tt.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeFirewallEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- c.assertExpected(tt, got)
- })
- }
-}
-
-func TestGoogleComputeRouter(t *testing.T) {
- cases := []struct {
- test string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- assertExpected func(t *testing.T, got []*resource.Resource)
- }{
- {
- test: "no compute router",
- response: []*assetpb.ResourceSearchResult{},
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute routers",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Router",
- DisplayName: "test-router-0",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-0",
- },
- {
- AssetType: "compute.googleapis.com/Router",
- DisplayName: "test-router-1",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-1",
- },
- {
- AssetType: "compute.googleapis.com/Router",
- DisplayName: "test-router-2",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-2",
- },
- },
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-0")
- assert.Equal(t, got[0].ResourceType(), googleresource.GoogleComputeRouterResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-1")
- assert.Equal(t, got[1].ResourceType(), googleresource.GoogleComputeRouterResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "projects/cloudskiff-dev-raphael/regions/us-central1/routers/test-router-2")
- assert.Equal(t, got[2].ResourceType(), googleresource.GoogleComputeRouterResourceType)
- },
- },
- {
- test: "should return access denied error",
- wantErr: nil,
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- googleresource.GoogleComputeRouterResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- googleresource.GoogleComputeRouterResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeRouterEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeInstance(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute instance",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute instances",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/zones/us-central1-a/instances/test", got[0].ResourceId())
- assert.Equal(t, "google_compute_instance", got[0].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Instance",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/zones/us-central1-a/instances/test",
- },
- },
- },
- {
- test: "cannot list compute firewall",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_instance",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_instance",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeInstanceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeNetwork(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no network",
- dirName: "google_compute_network_empty",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiple networks",
- dirName: "google_compute_network",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Network",
- DisplayName: "driftctl-unittest-1",
- Name: "//compute.googleapis.com/projects/driftctl-qa-1/global/networks/driftctl-unittest-1",
- },
- {
- AssetType: "compute.googleapis.com/Network",
- DisplayName: "driftctl-unittest-2",
- Name: "//compute.googleapis.com/projects/driftctl-qa-1/global/networks/driftctl-unittest-2",
- },
- {
- AssetType: "compute.googleapis.com/Network",
- DisplayName: "driftctl-unittest-3",
- Name: "//compute.googleapis.com/projects/driftctl-qa-1/global/networks/driftctl-unittest-3",
- },
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "projects/driftctl-qa-1/global/networks/driftctl-unittest-1", got[0].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeNetworkResourceType, got[0].ResourceType())
-
- assert.Equal(t, "projects/driftctl-qa-1/global/networks/driftctl-unittest-2", got[1].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeNetworkResourceType, got[1].ResourceType())
-
- assert.Equal(t, "projects/driftctl-qa-1/global/networks/driftctl-unittest-3", got[2].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeNetworkResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list compute networks",
- dirName: "google_compute_network_empty",
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_network",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_network",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- tt.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeNetworkEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
-
- c.assertExpected(tt, got)
- })
- }
-}
-
-func TestGoogleComputeInstanceGroup(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no instance group",
- dirName: "google_compute_instance_group_empty",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiple instance groups",
- dirName: "google_compute_instance_group",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/InstanceGroup",
- DisplayName: "driftctl-test-1",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroups/driftctl-test-1",
- Project: "cloudskiff-dev-raphael",
- Location: "us-central1-a",
- },
- {
- AssetType: "compute.googleapis.com/InstanceGroup",
- DisplayName: "driftctl-test-2",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroups/driftctl-test-2",
- Project: "cloudskiff-dev-raphael",
- Location: "us-central1-a",
- },
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroups/driftctl-test-1", got[0].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeInstanceGroupResourceType, got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroups/driftctl-test-2", got[1].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeInstanceGroupResourceType, got[1].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list instance groups",
- dirName: "google_compute_instance_group_empty",
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_instance_group",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_instance_group",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- tt.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeInstanceGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- c.assertExpected(tt, got)
- })
- }
-}
-
-func TestGoogleComputeAddress(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute address",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute address",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-elie/regions/us-central1/addresses/my-address", got[0].ResourceId())
- assert.Equal(t, "google_compute_address", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/regions/us-central1/addresses/my-address-2", got[1].ResourceId())
- assert.Equal(t, "google_compute_address", got[1].ResourceType())
- assert.Equal(t, "1.2.3.4", *got[1].Attributes().GetString("address"))
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Address",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/regions/us-central1/addresses/my-address",
- },
- {
- AssetType: "compute.googleapis.com/Address",
- Location: "global", // Global addresses should be ignored
- },
- {
- AssetType: "compute.googleapis.com/Address",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/regions/us-central1/addresses/my-address-2",
- AdditionalAttributes: func() *structpb.Struct {
- str, _ := structpb.NewStruct(map[string]interface{}{
- "address": "1.2.3.4",
- })
- return str
- }(),
- },
- },
- },
- {
- test: "cannot list compute address",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_address",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_address",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeAddressEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeGlobalAddress(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no resource",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "one resource returned",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/addresses/global-appserver-ip", got[0].ResourceId())
- assert.Equal(t, "google_compute_global_address", got[0].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/GlobalAddress",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/addresses/global-appserver-ip",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{
- "name": "projects/cloudskiff-dev-elie/global/addresses/global-appserver-ip",
- })
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "one resource without resource data",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/GlobalAddress",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/addresses/global-appserver-ip",
- },
- },
- },
- {
- test: "cannot list cloud functions",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_global_address",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_global_address",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeGlobalAddressEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeSubnetwork(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no subnetwork",
- dirName: "google_compute_subnetwork_empty",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiple subnetworks",
- dirName: "google_compute_subnetwork_multiple",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Subnetwork",
- DisplayName: "driftctl-unittest-1",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-1",
- },
- {
- AssetType: "compute.googleapis.com/Subnetwork",
- DisplayName: "driftctl-unittest-2",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-2",
- },
- {
- AssetType: "compute.googleapis.com/Subnetwork",
- DisplayName: "driftctl-unittest-3",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-3",
- },
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-1", got[0].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeSubnetworkResourceType, got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-2", got[1].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeSubnetworkResourceType, got[1].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/regions/us-central1/subnetworks/driftctl-unittest-3", got[2].ResourceId())
- assert.Equal(t, googleresource.GoogleComputeSubnetworkResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list compute subnetworks",
- dirName: "google_compute_subnetwork_empty",
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_subnetwork",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_subnetwork",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- tt.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeSubnetworkEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- c.assertExpected(tt, got)
- })
- }
-}
-
-func TestGoogleComputeDisk(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute disk",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute disk",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-elie/zones/us-central1-a/disks/test-disk", got[0].ResourceId())
- assert.Equal(t, "google_compute_disk", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/zones/us-central1-a/disks/test-disk-2", got[1].ResourceId())
- assert.Equal(t, "google_compute_disk", got[1].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Disk",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/zones/us-central1-a/disks/test-disk",
- },
- {
- AssetType: "compute.googleapis.com/Disk",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/zones/us-central1-a/disks/test-disk-2",
- },
- },
- },
- {
- test: "cannot list compute disk",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_disk",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_disk",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeDiskEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeImage(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute image",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples images",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/images/example-image", got[0].ResourceId())
- assert.Equal(t, "google_compute_image", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-elie/global/images/example-image-2", got[1].ResourceId())
- assert.Equal(t, "google_compute_image", got[1].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/Image",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/images/example-image",
- },
- {
- AssetType: "compute.googleapis.com/Image",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-elie/global/images/example-image-2",
- },
- },
- },
- {
- test: "cannot list images",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_image",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_image",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeImageEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeHealthCheck(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute health check",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute health checks",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-raphael/global/healthChecks/test-health-check-1", got[0].ResourceId())
- assert.Equal(t, "google_compute_health_check", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/global/healthChecks/test-health-check-2", got[1].ResourceId())
- assert.Equal(t, "google_compute_health_check", got[1].ResourceType())
- },
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "compute.googleapis.com/HealthCheck",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/global/healthChecks/test-health-check-1",
- },
- {
- AssetType: "compute.googleapis.com/HealthCheck",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/global/healthChecks/test-health-check-2",
- },
- },
- },
- {
- test: "cannot list compute health checks",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_health_check",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_health_check",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeHealthCheckEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeNodeGroup(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute node group",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute node group",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-martin/zones/us-central1-f/nodeGroups/soletenant-group", got[0].ResourceId())
- assert.Equal(t, "google_compute_node_group", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-martin/zones/us-central1-f/nodeGroups/simple-group", got[1].ResourceId())
- assert.Equal(t, "google_compute_node_group", got[1].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/NodeGroup",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-martin/zones/us-central1-f/nodeGroups/soletenant-group",
- },
- {
- AssetType: "compute.googleapis.com/NodeGroup",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-martin/zones/us-central1-f/nodeGroups/simple-group",
- },
- },
- },
- {
- test: "cannot list compute node group",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_node_group",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_node_group",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeNodeGroupEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeForwardingRule(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute forwarding rules",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple compute forwarding rules",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-william/regions/us-east1/forwardingRules/foo", got[0].ResourceId())
- assert.Equal(t, "google_compute_forwarding_rule", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-william/regions/us-east1/forwardingRules/bar", got[1].ResourceId())
- assert.Equal(t, "google_compute_forwarding_rule", got[1].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/ForwardingRule",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-william/regions/us-east1/forwardingRules/foo",
- },
- {
- AssetType: "compute.googleapis.com/ForwardingRule",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-william/regions/us-east1/forwardingRules/bar",
- },
- },
- },
- {
- test: "cannot list compute forwarding rules",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_forwarding_rule",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_forwarding_rule",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeForwardingRuleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeSslCertificate(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute ssl certificates",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple compute ssl certificates",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/driftctl/regions/us-east1/sslCertificates/foo", got[0].ResourceId())
- assert.Equal(t, "google_compute_ssl_certificate", got[0].ResourceType())
-
- assert.Equal(t, "projects/driftctl/regions/us-east1/sslCertificates/bar", got[1].ResourceId())
- assert.Equal(t, "google_compute_ssl_certificate", got[1].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/SslCertificate",
- Name: "//compute.googleapis.com/projects/driftctl/regions/us-east1/sslCertificates/foo",
- },
- {
- AssetType: "compute.googleapis.com/SslCertificate",
- Name: "//compute.googleapis.com/projects/driftctl/regions/us-east1/sslCertificates/bar",
- },
- },
- },
- {
- test: "cannot list compute ssl certificates",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_ssl_certificate",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_ssl_certificate",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeSslCertificateEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeInstanceGroupManager(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute instance group manager",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples compute instance group managers",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroupManagers/appserver-abc", got[0].ResourceId())
- assert.Equal(t, "google_compute_instance_group_manager", got[0].ResourceType())
-
- assert.Equal(t, "projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroupManagers/appserver-def", got[1].ResourceId())
- assert.Equal(t, "google_compute_instance_group_manager", got[1].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/InstanceGroupManager",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroupManagers/appserver-abc",
- },
- {
- AssetType: "compute.googleapis.com/InstanceGroupManager",
- Name: "//compute.googleapis.com/projects/cloudskiff-dev-raphael/zones/us-central1-a/instanceGroupManagers/appserver-def",
- },
- },
- },
- {
- test: "cannot list compute instance group managers",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_instance_group_manager",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_instance_group_manager",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeInstanceGroupManagerEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
-
-func TestGoogleComputeGlobalForwardingRule(t *testing.T) {
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no compute global forwarding rules",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiple compute global forwarding rules",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 2)
- assert.Equal(t, "//projects/driftctl-qa-1/global/forwardingRules/global-rule-foo", got[0].ResourceId())
- assert.Equal(t, "google_compute_global_forwarding_rule", got[0].ResourceType())
-
- assert.Equal(t, "//projects/driftctl-qa-1/global/forwardingRules/global-rule-bar", got[1].ResourceId())
- assert.Equal(t, "google_compute_global_forwarding_rule", got[1].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "compute.googleapis.com/GlobalForwardingRule",
- Name: "//projects/driftctl-qa-1/global/forwardingRules/global-rule-foo",
- },
- {
- AssetType: "compute.googleapis.com/GlobalForwardingRule",
- Name: "//projects/driftctl-qa-1/global/forwardingRules/global-rule-bar",
- },
- },
- },
- {
- test: "cannot list compute global forwarding rules",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_compute_global_forwarding_rule",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_compute_global_forwarding_rule",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleComputeGlobalForwardingRuleEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_network_scanner_test.go b/enumeration/remote/google_network_scanner_test.go
deleted file mode 100644
index f50e6ff96..000000000
--- a/enumeration/remote/google_network_scanner_test.go
+++ /dev/null
@@ -1,152 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- googleresource "github.com/snyk/driftctl/enumeration/resource/google"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-)
-
-func TestGoogleDNSNanagedZone(t *testing.T) {
-
- cases := []struct {
- test string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- assertExpected func(t *testing.T, got []*resource.Resource)
- }{
- {
- test: "no managed zone",
- response: []*assetpb.ResourceSearchResult{},
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "multiples managed zones",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "dns.googleapis.com/ManagedZone",
- Name: "invalid ID", // Should be ignored
- },
- {
- AssetType: "dns.googleapis.com/ManagedZone",
- DisplayName: "test-zone-0",
- Name: "//dns.googleapis.com/projects/cloudskiff-dev-raphael/managedZones/123456789",
- },
- {
- AssetType: "dns.googleapis.com/ManagedZone",
- DisplayName: "test-zone-1",
- Name: "//dns.googleapis.com/projects/cloudskiff-dev-raphael/managedZones/123456789",
- },
- {
- AssetType: "dns.googleapis.com/ManagedZone",
- DisplayName: "test-zone-2",
- Name: "//dns.googleapis.com/projects/cloudskiff-dev-raphael/managedZones/123456789",
- },
- },
- wantErr: nil,
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, got[0].ResourceId(), "projects/cloudskiff-dev-raphael/managedZones/test-zone-0")
- assert.Equal(t, got[0].ResourceType(), googleresource.GoogleDNSManagedZoneResourceType)
-
- assert.Equal(t, got[1].ResourceId(), "projects/cloudskiff-dev-raphael/managedZones/test-zone-1")
- assert.Equal(t, got[1].ResourceType(), googleresource.GoogleDNSManagedZoneResourceType)
-
- assert.Equal(t, got[2].ResourceId(), "projects/cloudskiff-dev-raphael/managedZones/test-zone-2")
- assert.Equal(t, got[2].ResourceType(), googleresource.GoogleDNSManagedZoneResourceType)
- },
- },
- {
- test: "should return access denied error",
- wantErr: nil,
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- googleresource.GoogleDNSManagedZoneResourceType,
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- googleresource.GoogleDNSManagedZoneResourceType,
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleDNSManagedZoneEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
-
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_project_scanner_test.go b/enumeration/remote/google_project_scanner_test.go
deleted file mode 100644
index 29f1aedbe..000000000
--- a/enumeration/remote/google_project_scanner_test.go
+++ /dev/null
@@ -1,135 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- googleresource "github.com/snyk/driftctl/enumeration/resource/google"
- "github.com/snyk/driftctl/mocks"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/goldenfile"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-func TestGoogleProjectIAMMember(t *testing.T) {
-
- cases := []struct {
- test string
- dirName string
- repositoryMock func(repository *repository.MockCloudResourceManagerRepository)
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no bindings",
- dirName: "google_project_member_empty",
- repositoryMock: func(repository *repository.MockCloudResourceManagerRepository) {
- repository.On("ListProjectsBindings").Return(map[string]map[string][]string{}, nil)
- },
- wantErr: nil,
- },
- {
- test: "Cannot list bindings",
- dirName: "google_project_member_listing_error",
- repositoryMock: func(repository *repository.MockCloudResourceManagerRepository) {
- repository.On("ListProjectsBindings").Return(
- map[string]map[string][]string{},
- errors.New("googleapi: Error 403: driftctl-acc-circle@driftctl-qa-1.iam.gserviceaccount.com does not have project.getIamPolicy access., forbidden"))
- },
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_project_iam_member",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- errors.New("googleapi: Error 403: driftctl-acc-circle@driftctl-qa-1.iam.gserviceaccount.com does not have project.getIamPolicy access., forbidden"),
- "google_project_iam_member",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- wantErr: nil,
- },
- {
- test: "multiples storage buckets, multiple bindings",
- dirName: "google_project_member_listing_multiple",
- repositoryMock: func(repository *repository.MockCloudResourceManagerRepository) {
- repository.On("ListProjectsBindings").Return(map[string]map[string][]string{
- "": {
- "roles/editor": {
- "user:martin.guibert@cloudskiff.com",
- "serviceAccount:drifctl-admin@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- "roles/storage.admin": {"user:martin.guibert@cloudskiff.com"},
- "roles/viewer": {"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com"},
- "roles/cloudasset.viewer": {"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com"},
- "roles/iam.securityReviewer": {"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com"},
- },
- }, nil)
- },
- wantErr: nil,
- },
- }
-
- resType := resource.ResourceType(googleresource.GoogleProjectIamMemberResourceType)
- factory := terraform.NewTerraformResourceFactory()
- deserializer := resource.NewDeserializer(factory)
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
-
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- managerRepository := &repository.MockCloudResourceManagerRepository{}
- if c.repositoryMock != nil {
- c.repositoryMock(managerRepository)
- }
-
- remoteLibrary.AddEnumerator(google.NewGoogleProjectIamMemberEnumerator(managerRepository, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- test.TestAgainstGoldenFileNoCty(got, resType.String(), c.dirName, provider, deserializer, shouldUpdate, tt)
- })
- }
-}
diff --git a/enumeration/remote/google_sql_scanner_test.go b/enumeration/remote/google_sql_scanner_test.go
deleted file mode 100644
index 0b427b623..000000000
--- a/enumeration/remote/google_sql_scanner_test.go
+++ /dev/null
@@ -1,147 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- testgoogle "github.com/snyk/driftctl/test/google"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/structpb"
-)
-
-func TestGoogleSQLDatabaseInstance(t *testing.T) {
-
- cases := []struct {
- test string
- assertExpected func(t *testing.T, got []*resource.Resource)
- response []*assetpb.Asset
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- wantErr error
- }{
- {
- test: "no instance",
- response: []*assetpb.Asset{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- },
- {
- test: "one resource returned",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 1)
- assert.Equal(t, "instance-test", got[0].ResourceId())
- assert.Equal(t, "google_sql_database_instance", got[0].ResourceType())
- },
- response: []*assetpb.Asset{
- {
- AssetType: "sqladmin.googleapis.com/Instance",
- Resource: &assetpb.Resource{
- Data: func() *structpb.Struct {
- v, err := structpb.NewStruct(map[string]interface{}{
- "name": "instance-test",
- })
- if err != nil {
- t.Fatal(err)
- }
- return v
- }(),
- },
- },
- },
- },
- {
- test: "one resource without resource data",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- response: []*assetpb.Asset{
- {
- AssetType: "sqladmin.googleapis.com/Instance",
- },
- },
- },
- {
- test: "cannot list resources",
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_sql_database_instance",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_sql_database_instance",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- assetClient, err := testgoogle.NewFakeAssertServerWithList(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleSQLDatabaseInstanceEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- if c.assertExpected != nil {
- c.assertExpected(tt, got)
- }
- })
- }
-}
diff --git a/enumeration/remote/google_storage_scanner_test.go b/enumeration/remote/google_storage_scanner_test.go
deleted file mode 100644
index 1335937cd..000000000
--- a/enumeration/remote/google_storage_scanner_test.go
+++ /dev/null
@@ -1,357 +0,0 @@
-package remote
-
-import (
- "context"
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/cache"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/remote/google/repository"
- googleresource "github.com/snyk/driftctl/enumeration/resource/google"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- asset "cloud.google.com/go/asset/apiv1"
- "cloud.google.com/go/storage"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
-
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- "github.com/snyk/driftctl/test/goldenfile"
- testgoogle "github.com/snyk/driftctl/test/google"
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-)
-
-func TestGoogleStorageBucket(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- response []*assetpb.ResourceSearchResult
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no storage buckets",
- dirName: "google_storage_bucket_empty",
- response: []*assetpb.ResourceSearchResult{},
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiples storage buckets",
- dirName: "google_storage_bucket",
- response: []*assetpb.ResourceSearchResult{
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "driftctl-unittest-1",
- },
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "driftctl-unittest-2",
- },
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "driftctl-unittest-3",
- },
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 3)
-
- assert.Equal(t, "driftctl-unittest-1", got[0].ResourceId())
- assert.Equal(t, googleresource.GoogleStorageBucketResourceType, got[0].ResourceType())
-
- assert.Equal(t, "driftctl-unittest-2", got[1].ResourceId())
- assert.Equal(t, googleresource.GoogleStorageBucketResourceType, got[1].ResourceType())
-
- assert.Equal(t, "driftctl-unittest-3", got[2].ResourceId())
- assert.Equal(t, googleresource.GoogleStorageBucketResourceType, got[2].ResourceType())
- },
- wantErr: nil,
- },
- {
- test: "cannot list storage buckets",
- dirName: "google_storage_bucket_empty",
- responseErr: status.Error(codes.PermissionDenied, "The caller does not have permission"),
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_storage_bucket",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- status.Error(codes.PermissionDenied, "The caller does not have permission"),
- "google_storage_bucket",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- var assetClient *asset.Client
- if !shouldUpdate {
- var err error
- assetClient, err = testgoogle.NewFakeAssetServer(c.response, c.responseErr)
- if err != nil {
- tt.Fatal(err)
- }
- }
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- // Replace mock by real resources if we are in update mode
- if shouldUpdate {
- ctx := context.Background()
- assetClient, err = asset.NewClient(ctx)
- if err != nil {
- tt.Fatal(err)
- }
- err = realProvider.Init()
- if err != nil {
- tt.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- repo := repository.NewAssetRepository(assetClient, realProvider.GetConfig(), cache.New(0))
-
- remoteLibrary.AddEnumerator(google.NewGoogleStorageBucketEnumerator(repo, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, err, c.wantErr)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- c.assertExpected(tt, got)
- })
- }
-}
-
-func TestGoogleStorageBucketIAMMember(t *testing.T) {
- cases := []struct {
- test string
- dirName string
- assetRepositoryMock func(assetRepository *repository.MockAssetRepository)
- storageRepositoryMock func(storageRepository *repository.MockStorageRepository)
- responseErr error
- setupAlerterMock func(alerter *mocks.AlerterInterface)
- assertExpected func(*testing.T, []*resource.Resource)
- wantErr error
- }{
- {
- test: "no storage buckets",
- dirName: "google_storage_bucket_member_empty",
- assetRepositoryMock: func(assetRepository *repository.MockAssetRepository) {
- assetRepository.On("SearchAllBuckets").Return([]*assetpb.ResourceSearchResult{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiples storage buckets, no bindings",
- dirName: "google_storage_bucket_member_empty",
- assetRepositoryMock: func(assetRepository *repository.MockAssetRepository) {
- assetRepository.On("SearchAllBuckets").Return([]*assetpb.ResourceSearchResult{
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "dctlgstoragebucketiambinding-1",
- },
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "dctlgstoragebucketiambinding-2",
- },
- }, nil)
- },
- storageRepositoryMock: func(storageRepository *repository.MockStorageRepository) {
- storageRepository.On("ListAllBindings", "dctlgstoragebucketiambinding-1").Return(map[string][]string{}, nil)
- storageRepository.On("ListAllBindings", "dctlgstoragebucketiambinding-2").Return(map[string][]string{}, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "Cannot list bindings",
- dirName: "google_storage_bucket_member_listing_error",
- assetRepositoryMock: func(assetRepository *repository.MockAssetRepository) {
- assetRepository.On("SearchAllBuckets").Return([]*assetpb.ResourceSearchResult{
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "dctlgstoragebucketiambinding-1",
- },
- }, nil)
- },
- storageRepositoryMock: func(storageRepository *repository.MockStorageRepository) {
- storageRepository.On("ListAllBindings", "dctlgstoragebucketiambinding-1").Return(
- map[string][]string{},
- errors.New("googleapi: Error 403: driftctl-acc-circle@driftctl-qa-1.iam.gserviceaccount.com does not have storage.buckets.getIamPolicy access to the Google Cloud Storage bucket., forbidden"))
- },
- setupAlerterMock: func(alerter *mocks.AlerterInterface) {
- alerter.On(
- "SendAlert",
- "google_storage_bucket_iam_member",
- alerts.NewRemoteAccessDeniedAlert(
- common.RemoteGoogleTerraform,
- remoteerr.NewResourceListingError(
- errors.New("googleapi: Error 403: driftctl-acc-circle@driftctl-qa-1.iam.gserviceaccount.com does not have storage.buckets.getIamPolicy access to the Google Cloud Storage bucket., forbidden"),
- "google_storage_bucket_iam_member",
- ),
- alerts.EnumerationPhase,
- ),
- ).Once()
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 0)
- },
- wantErr: nil,
- },
- {
- test: "multiples storage buckets, multiple bindings",
- dirName: "google_storage_bucket_member_listing_multiple",
- assetRepositoryMock: func(assetRepository *repository.MockAssetRepository) {
- assetRepository.On("SearchAllBuckets").Return([]*assetpb.ResourceSearchResult{
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "dctlgstoragebucketiambinding-1",
- },
- {
- AssetType: "storage.googleapis.com/Bucket",
- DisplayName: "dctlgstoragebucketiambinding-2",
- },
- }, nil)
- },
- storageRepositoryMock: func(storageRepository *repository.MockStorageRepository) {
- storageRepository.On("ListAllBindings", "dctlgstoragebucketiambinding-1").Return(map[string][]string{
- "roles/storage.admin": {"user:elie.charra@cloudskiff.com"},
- "roles/storage.objectViewer": {"user:william.beuil@cloudskiff.com"},
- }, nil)
-
- storageRepository.On("ListAllBindings", "dctlgstoragebucketiambinding-2").Return(map[string][]string{
- "roles/storage.admin": {"user:william.beuil@cloudskiff.com"},
- "roles/storage.objectViewer": {"user:elie.charra@cloudskiff.com"},
- }, nil)
- },
- assertExpected: func(t *testing.T, got []*resource.Resource) {
- assert.Len(t, got, 4)
-
- var resourceIds []string
- for _, res := range got {
- assert.Equal(t, googleresource.GoogleStorageBucketIamMemberResourceType, res.ResourceType())
- resourceIds = append(resourceIds, res.ResourceId())
- }
-
- assert.Contains(t, resourceIds, "b/dctlgstoragebucketiambinding-1/roles/storage.admin/user:elie.charra@cloudskiff.com")
- assert.Contains(t, resourceIds, "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com")
- assert.Contains(t, resourceIds, "b/dctlgstoragebucketiambinding-2/roles/storage.admin/user:william.beuil@cloudskiff.com")
- assert.Contains(t, resourceIds, "b/dctlgstoragebucketiambinding-2/roles/storage.admin/user:william.beuil@cloudskiff.com")
- },
- wantErr: nil,
- },
- }
-
- factory := terraform.NewTerraformResourceFactory()
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- repositoryCache := cache.New(100)
-
- shouldUpdate := c.dirName == *goldenfile.Update
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- // Initialize mocks
- alerter := &mocks.AlerterInterface{}
- if c.setupAlerterMock != nil {
- c.setupAlerterMock(alerter)
- }
-
- storageRepo := &repository.MockStorageRepository{}
- if c.storageRepositoryMock != nil {
- c.storageRepositoryMock(storageRepo)
- }
- var storageRepository repository.StorageRepository = storageRepo
- if shouldUpdate {
- storageClient, err := storage.NewClient(context.Background())
- if err != nil {
- panic(err)
- }
- storageRepository = repository.NewStorageRepository(storageClient, repositoryCache)
- }
-
- assetRepo := &repository.MockAssetRepository{}
- if c.assetRepositoryMock != nil {
- c.assetRepositoryMock(assetRepo)
- }
- var assetRepository repository.AssetRepository = assetRepo
-
- realProvider, err := terraform2.InitTestGoogleProvider(providerLibrary, "3.78.0")
- if err != nil {
- tt.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
- provider.WithResponse(c.dirName)
-
- remoteLibrary.AddEnumerator(google.NewGoogleStorageBucketIamMemberEnumerator(assetRepository, storageRepository, factory))
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- got, err := s.Resources()
- assert.Equal(tt, c.wantErr, err)
- if err != nil {
- return
- }
- alerter.AssertExpectations(tt)
- testFilter.AssertExpectations(tt)
- c.assertExpected(tt, got)
- })
- }
-}
diff --git a/enumeration/remote/remote.go b/enumeration/remote/remote.go
deleted file mode 100644
index f01cb617a..000000000
--- a/enumeration/remote/remote.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package remote
-
-import (
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/terraform"
-)
-
-var supportedRemotes = []string{
- common.RemoteAWSTerraform,
- common.RemoteGithubTerraform,
- common.RemoteGoogleTerraform,
- common.RemoteAzureTerraform,
-}
-
-func IsSupported(remote string) bool {
- for _, r := range supportedRemotes {
- if r == remote {
- return true
- }
- }
- return false
-}
-
-func Activate(remote, version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, factory resource.ResourceFactory, configDir string) error {
- switch remote {
- case common.RemoteAWSTerraform:
- return aws.Init(version, alerter, providerLibrary, remoteLibrary, progress, factory, configDir)
- case common.RemoteGithubTerraform:
- return github.Init(version, alerter, providerLibrary, remoteLibrary, progress, factory, configDir)
- case common.RemoteGoogleTerraform:
- return google.Init(version, alerter, providerLibrary, remoteLibrary, progress, factory, configDir)
- case common.RemoteAzureTerraform:
- return azurerm.Init(version, alerter, providerLibrary, remoteLibrary, progress, factory, configDir)
-
- default:
- return errors.Errorf("unsupported remote '%s'", remote)
- }
-}
-
-func GetSupportedRemotes() []string {
- return supportedRemotes
-}
diff --git a/enumeration/remote/resource_enumeration_error_handler.go b/enumeration/remote/resource_enumeration_error_handler.go
deleted file mode 100644
index 8146398b0..000000000
--- a/enumeration/remote/resource_enumeration_error_handler.go
+++ /dev/null
@@ -1,91 +0,0 @@
-package remote
-
-import (
- "strings"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerror "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/aws/aws-sdk-go/aws/awserr"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-)
-
-func HandleResourceEnumerationError(err error, alerter alerter.AlerterInterface) error {
- listError, ok := err.(*remoteerror.ResourceScanningError)
- if !ok {
- return err
- }
-
- rootCause := listError.RootCause()
-
- // We cannot use the status.FromError() method because AWS errors are not well-formed.
- // Indeed, they compose the error interface without implementing the Error() method and thus triggering a nil panic
- // when returning an unknown error from status.FromError()
- // As a workaround we duplicated the logic from status.FromError here
- if _, ok := rootCause.(interface{ GRPCStatus() *status.Status }); ok {
- return handleGoogleEnumerationError(alerter, listError, status.Convert(rootCause))
- }
-
- // at least for storage api google sdk does not return grpc error so we parse the error message.
- if shouldHandleGoogleForbiddenError(listError) {
- alerts.SendEnumerationAlert(common.RemoteGoogleTerraform, alerter, listError)
- return nil
- }
-
- reqerr, ok := rootCause.(awserr.RequestFailure)
- if ok {
- return handleAWSError(alerter, listError, reqerr)
- }
-
- // This handles access denied errors like the following:
- // aws_s3_bucket_policy: AccessDenied: Error listing bucket policy
- if strings.Contains(rootCause.Error(), "AccessDenied") {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, alerter, listError)
- return nil
- }
-
- if strings.HasPrefix(
- rootCause.Error(),
- "Your token has not been granted the required scopes to execute this query.",
- ) {
- alerts.SendEnumerationAlert(common.RemoteGithubTerraform, alerter, listError)
- return nil
- }
-
- return err
-}
-
-func handleAWSError(alerter alerter.AlerterInterface, listError *remoteerror.ResourceScanningError, reqerr awserr.RequestFailure) error {
- if reqerr.StatusCode() == 403 || (reqerr.StatusCode() == 400 && strings.Contains(reqerr.Code(), "AccessDenied")) {
- alerts.SendEnumerationAlert(common.RemoteAWSTerraform, alerter, listError)
- return nil
- }
-
- return reqerr
-}
-
-func handleGoogleEnumerationError(alerter alerter.AlerterInterface, err *remoteerror.ResourceScanningError, st *status.Status) error {
- if st.Code() == codes.PermissionDenied {
- alerts.SendEnumerationAlert(common.RemoteGoogleTerraform, alerter, err)
- return nil
- }
- return err
-}
-
-func shouldHandleGoogleForbiddenError(err *remoteerror.ResourceScanningError) bool {
- errMsg := err.RootCause().Error()
-
- // Check if this is a Google related error
- if !strings.Contains(errMsg, "googleapi") {
- return false
- }
-
- if strings.Contains(errMsg, "Error 403") {
- return true
- }
-
- return false
-}
diff --git a/enumeration/remote/resource_enumeration_error_handler_test.go b/enumeration/remote/resource_enumeration_error_handler_test.go
deleted file mode 100644
index 6a0f42cff..000000000
--- a/enumeration/remote/resource_enumeration_error_handler_test.go
+++ /dev/null
@@ -1,267 +0,0 @@
-package remote
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
-
- resourcegithub "github.com/snyk/driftctl/enumeration/resource/github"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/aws/aws-sdk-go/aws/awserr"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
-)
-
-func TestHandleAwsEnumerationErrors(t *testing.T) {
-
- tests := []struct {
- name string
- err error
- wantAlerts alerter.Alerts
- wantErr bool
- }{
- {
- name: "Handled error 403",
- err: remoteerr.NewResourceListingError(awserr.NewRequestFailure(awserr.New("", "", errors.New("")), 403, ""), resourceaws.AwsVpcResourceType),
- wantAlerts: alerter.Alerts{"aws_vpc": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awserr.NewRequestFailure(awserr.New("", "", errors.New("")), 403, ""), "aws_vpc", "aws_vpc"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- {
- name: "Handled error AccessDenied",
- err: remoteerr.NewResourceListingError(awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, ""), resourceaws.AwsDynamodbTableResourceType),
- wantAlerts: alerter.Alerts{"aws_dynamodb_table": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, ""), "aws_dynamodb_table", "aws_dynamodb_table"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- {
- name: "Not Handled error code",
- err: remoteerr.NewResourceListingError(awserr.NewRequestFailure(awserr.New("", "", errors.New("")), 404, ""), resourceaws.AwsVpcResourceType),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- {
- name: "Not Handled error type",
- err: errors.New("error"),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- {
- name: "Not Handled root error type",
- err: remoteerr.NewResourceListingError(errors.New("error"), resourceaws.AwsVpcResourceType),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- {
- name: "Handle AccessDenied error",
- err: remoteerr.NewResourceListingError(errors.New("an error occured: AccessDenied: 403"), resourceaws.AwsVpcResourceType),
- wantAlerts: alerter.Alerts{"aws_vpc": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("an error occured: AccessDenied: 403"), "aws_vpc", "aws_vpc"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- {
- name: "Access denied error on a single resource",
- err: remoteerr.NewResourceScanningError(errors.New("Error: AccessDenied: 403 ..."), resourceaws.AwsS3BucketResourceType, "my-bucket"),
- wantAlerts: alerter.Alerts{"aws_s3_bucket.my-bucket": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Error: AccessDenied: 403 ..."), "aws_s3_bucket.my-bucket", "aws_s3_bucket"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- alertr := alerter.NewAlerter()
- gotErr := HandleResourceEnumerationError(tt.err, alertr)
- assert.Equal(t, tt.wantErr, gotErr != nil)
-
- retrieve := alertr.Retrieve()
- assert.Equal(t, tt.wantAlerts, retrieve)
-
- })
- }
-}
-
-func TestHandleGithubEnumerationErrors(t *testing.T) {
-
- tests := []struct {
- name string
- err error
- wantAlerts alerter.Alerts
- wantErr bool
- }{
- {
- name: "Handled graphql error",
- err: remoteerr.NewResourceListingError(errors.New("Your token has not been granted the required scopes to execute this query."), resourcegithub.GithubTeamResourceType),
- wantAlerts: alerter.Alerts{"github_team": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("Your token has not been granted the required scopes to execute this query."), "github_team", "github_team"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- {
- name: "Not handled graphql error",
- err: remoteerr.NewResourceListingError(errors.New("This is a not handler graphql error"), resourcegithub.GithubTeamResourceType),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- {
- name: "Not Handled error type",
- err: errors.New("error"),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- alertr := alerter.NewAlerter()
- gotErr := HandleResourceEnumerationError(tt.err, alertr)
- assert.Equal(t, tt.wantErr, gotErr != nil)
-
- retrieve := alertr.Retrieve()
- assert.Equal(t, tt.wantAlerts, retrieve)
-
- })
- }
-}
-
-func TestHandleGoogleEnumerationErrors(t *testing.T) {
- tests := []struct {
- name string
- err error
- wantAlerts alerter.Alerts
- wantErr bool
- }{
- {
- name: "Handled 403 error",
- err: remoteerr.NewResourceListingError(status.Error(codes.PermissionDenied, "useless message"), "google_type"),
- wantAlerts: alerter.Alerts{"google_type": []alerter.Alert{alerts.NewRemoteAccessDeniedAlert(common.RemoteGoogleTerraform, remoteerr.NewResourceListingErrorWithType(status.Error(codes.PermissionDenied, "useless message"), "google_type", "google_type"), alerts.EnumerationPhase)}},
- wantErr: false,
- },
- {
- name: "Not handled non 403 error",
- err: status.Error(codes.Unknown, ""),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- {
- name: "Not Handled error type",
- err: errors.New("error"),
- wantAlerts: map[string][]alerter.Alert{},
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- alertr := alerter.NewAlerter()
- gotErr := HandleResourceEnumerationError(tt.err, alertr)
- assert.Equal(t, tt.wantErr, gotErr != nil)
-
- retrieve := alertr.Retrieve()
- assert.Equal(t, tt.wantAlerts, retrieve)
-
- })
- }
-}
-
-func TestEnumerationAccessDeniedAlert_GetProviderMessage(t *testing.T) {
- tests := []struct {
- name string
- provider string
- want string
- }{
- {
- name: "test for unsupported provider",
- provider: "foobar",
- want: "",
- },
- {
- name: "test for AWS",
- provider: common.RemoteAWSTerraform,
- want: "It seems that we got access denied exceptions while listing resources.\nThe latest minimal read-only IAM policy for driftctl is always available here, please update yours: https://docs.driftctl.com/aws/policy",
- },
- {
- name: "test for github",
- provider: common.RemoteGithubTerraform,
- want: "It seems that we got access denied exceptions while listing resources.\nPlease be sure that your Github token has the right permissions, check the last up-to-date documentation there: https://docs.driftctl.com/github/policy",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- e := alerts.NewRemoteAccessDeniedAlert(tt.provider, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "supplier_type", "listed_type_error"), alerts.EnumerationPhase)
- if got := e.GetProviderMessage(); got != tt.want {
- t.Errorf("GetProviderMessage() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestDetailsFetchingAccessDeniedAlert_GetProviderMessage(t *testing.T) {
- tests := []struct {
- name string
- provider string
- want string
- }{
- {
- name: "test for unsupported provider",
- provider: "foobar",
- want: "",
- },
- {
- name: "test for AWS",
- provider: common.RemoteAWSTerraform,
- want: "It seems that we got access denied exceptions while reading details of resources.\nThe latest minimal read-only IAM policy for driftctl is always available here, please update yours: https://docs.driftctl.com/aws/policy",
- },
- {
- name: "test for github",
- provider: common.RemoteGithubTerraform,
- want: "It seems that we got access denied exceptions while reading details of resources.\nPlease be sure that your Github token has the right permissions, check the last up-to-date documentation there: https://docs.driftctl.com/github/policy",
- },
- {
- name: "test for google",
- provider: common.RemoteGoogleTerraform,
- want: "It seems that we got access denied exceptions while reading details of resources.\nPlease ensure that you have configured the required roles, please check our documentation at https://docs.driftctl.com/google/policy",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- e := alerts.NewRemoteAccessDeniedAlert(tt.provider, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "supplier_type", "listed_type_error"), alerts.DetailsFetchingPhase)
- if got := e.GetProviderMessage(); got != tt.want {
- t.Errorf("GetProviderMessage() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestResourceScanningErrorMethods(t *testing.T) {
-
- tests := []struct {
- name string
- err *remoteerr.ResourceScanningError
- expectedError string
- expectedResourceType string
- }{
- {
- name: "Handled error AccessDenied",
- err: remoteerr.NewResourceListingError(awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 403, ""), resourceaws.AwsDynamodbTableResourceType),
- expectedError: "error scanning resource type aws_dynamodb_table: AccessDeniedException: \n\tstatus code: 403, request id: \ncaused by: ",
- expectedResourceType: resourceaws.AwsDynamodbTableResourceType,
- },
- {
- name: "Handle AccessDenied error",
- err: remoteerr.NewResourceListingError(errors.New("an error occured: AccessDenied: 403"), resourceaws.AwsVpcResourceType),
- expectedError: "error scanning resource type aws_vpc: an error occured: AccessDenied: 403",
- expectedResourceType: resourceaws.AwsVpcResourceType,
- },
- {
- name: "Access denied error on a single resource",
- err: remoteerr.NewResourceScanningError(errors.New("Error: AccessDenied: 403 ..."), resourceaws.AwsS3BucketResourceType, "my-bucket"),
- expectedError: "error scanning resource aws_s3_bucket.my-bucket: Error: AccessDenied: 403 ...",
- expectedResourceType: resourceaws.AwsS3BucketResourceType,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- assert.Equal(t, tt.expectedError, tt.err.Error())
- assert.Equal(t, tt.expectedResourceType, tt.err.ResourceType())
- })
- }
-}
diff --git a/enumeration/remote/scanner.go b/enumeration/remote/scanner.go
deleted file mode 100644
index 01d7911fc..000000000
--- a/enumeration/remote/scanner.go
+++ /dev/null
@@ -1,104 +0,0 @@
-package remote
-
-import (
- "context"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/parallel"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/resource"
-
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
-)
-
-type Scanner struct {
- enumeratorRunner *parallel.ParallelRunner
- remoteLibrary *common.RemoteLibrary
- alerter alerter.AlerterInterface
- filter enumeration.Filter
-}
-
-func NewScanner(remoteLibrary *common.RemoteLibrary, alerter alerter.AlerterInterface, filter enumeration.Filter) *Scanner {
- return &Scanner{
- enumeratorRunner: parallel.NewParallelRunner(context.TODO(), 10),
- remoteLibrary: remoteLibrary,
- alerter: alerter,
- filter: filter,
- }
-}
-
-func (s *Scanner) retrieveRunnerResults(runner *parallel.ParallelRunner) ([]*resource.Resource, error) {
- results := make([]*resource.Resource, 0)
-loop:
- for {
- select {
- case resources, ok := <-runner.Read():
- if !ok || resources == nil {
- break loop
- }
-
- for _, res := range resources.([]*resource.Resource) {
- if res != nil {
- results = append(results, res)
- }
- }
- case <-runner.DoneChan():
- break loop
- }
- }
- return results, runner.Err()
-}
-
-func (s *Scanner) scan() ([]*resource.Resource, error) {
- for _, enum := range s.remoteLibrary.Enumerators() {
- if s.filter.IsTypeIgnored(enum.SupportedType()) {
- logrus.WithFields(logrus.Fields{
- "type": enum.SupportedType(),
- }).Debug("Ignored enumeration of resources since it is ignored in filter")
- continue
- }
- enumerator := enum
- s.enumeratorRunner.Run(func() (interface{}, error) {
- resources, err := enumerator.Enumerate()
- if err != nil {
- err := HandleResourceEnumerationError(err, s.alerter)
- if err == nil {
- return []*resource.Resource{}, nil
- }
- return nil, err
- }
- for _, res := range resources {
- if res == nil {
- continue
- }
- logrus.WithFields(logrus.Fields{
- "id": res.ResourceId(),
- "type": res.ResourceType(),
- }).Debug("Found cloud resource")
- }
- return resources, nil
- })
- }
-
- enumerationResult, err := s.retrieveRunnerResults(s.enumeratorRunner)
- if err != nil {
- return nil, err
- }
-
- return enumerationResult, nil
-}
-
-func (s *Scanner) Resources() ([]*resource.Resource, error) {
- resources, err := s.scan()
- if err != nil {
- return nil, err
- }
- return resources, err
-}
-
-func (s *Scanner) Stop() {
- logrus.Debug("Stopping scanner")
- s.enumeratorRunner.Stop(errors.New("interrupted"))
-}
diff --git a/enumeration/remote/scanner_test.go b/enumeration/remote/scanner_test.go
deleted file mode 100644
index 84f7cb200..000000000
--- a/enumeration/remote/scanner_test.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package remote
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/common"
-
- "github.com/snyk/driftctl/enumeration/resource"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestScannerShouldIgnoreType(t *testing.T) {
-
- // Initialize mocks
- alerter := alerter.NewAlerter()
- fakeEnumerator := &common.MockEnumerator{}
- fakeEnumerator.On("SupportedType").Return(resource.ResourceType("FakeType"))
- fakeEnumerator.AssertNotCalled(t, "Enumerate")
-
- remoteLibrary := common.NewRemoteLibrary()
- remoteLibrary.AddEnumerator(fakeEnumerator)
-
- testFilter := &enumeration.MockFilter{}
- testFilter.On("IsTypeIgnored", resource.ResourceType("FakeType")).Return(true)
-
- s := NewScanner(remoteLibrary, alerter, testFilter)
- _, err := s.Resources()
- assert.Nil(t, err)
- fakeEnumerator.AssertExpectations(t)
-}
diff --git a/enumeration/remote/terraform/provider.go b/enumeration/remote/terraform/provider.go
deleted file mode 100644
index 09ef91faf..000000000
--- a/enumeration/remote/terraform/provider.go
+++ /dev/null
@@ -1,224 +0,0 @@
-package terraform
-
-import (
- "context"
- "os"
- "os/signal"
- "sync"
- "syscall"
- "time"
-
- "github.com/eapache/go-resiliency/retrier"
- "github.com/hashicorp/terraform/plugin"
- "github.com/hashicorp/terraform/plugin/discovery"
- "github.com/hashicorp/terraform/providers"
- "github.com/hashicorp/terraform/terraform"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- progress2 "github.com/snyk/driftctl/enumeration"
- "github.com/snyk/driftctl/enumeration/parallel"
- tf "github.com/snyk/driftctl/enumeration/terraform"
- "github.com/zclconf/go-cty/cty"
- "github.com/zclconf/go-cty/cty/gocty"
-)
-
-const EXIT_ERROR = 3
-
-// "alias" in these struct are a way to namespace gRPC clients.
-// For example, if we need to read S3 bucket from multiple AWS region,
-// we'll have an alias per region, and the alias IS the region itself.
-// So we can query resources using a specific custom provider configuration
-type TerraformProviderConfig struct {
- Name string
- DefaultAlias string
- GetProviderConfig func(alias string) interface{}
-}
-
-type TerraformProvider struct {
- lock sync.Mutex
- providerInstaller *tf.ProviderInstaller
- grpcProviders map[string]*plugin.GRPCProvider
- schemas map[string]providers.Schema
- Config TerraformProviderConfig
- runner *parallel.ParallelRunner
- progress progress2.ProgressCounter
-}
-
-func NewTerraformProvider(installer *tf.ProviderInstaller, config TerraformProviderConfig, progress progress2.ProgressCounter) (*TerraformProvider, error) {
- p := TerraformProvider{
- providerInstaller: installer,
- runner: parallel.NewParallelRunner(context.TODO(), 10),
- grpcProviders: make(map[string]*plugin.GRPCProvider),
- Config: config,
- progress: progress,
- }
- return &p, nil
-}
-
-func (p *TerraformProvider) Init() error {
- stopCh := make(chan bool)
- c := make(chan os.Signal, 1)
- signal.Notify(c, os.Interrupt, syscall.SIGTERM)
- go func() {
- select {
- case <-c:
- logrus.Warn("Detected interrupt during terraform provider configuration, cleanup ...")
- p.Cleanup()
- os.Exit(EXIT_ERROR)
- case <-stopCh:
- return
- }
- }()
- defer func() {
- stopCh <- true
- }()
- err := p.configure(p.Config.DefaultAlias)
- if err != nil {
- return err
- }
- return nil
-}
-
-func (p *TerraformProvider) Schema() map[string]providers.Schema {
- return p.schemas
-}
-
-func (p *TerraformProvider) Runner() *parallel.ParallelRunner {
- return p.runner
-}
-
-func (p *TerraformProvider) configure(alias string) error {
- providerPath, err := p.providerInstaller.Install()
- if err != nil {
- return err
- }
-
- if p.grpcProviders[alias] == nil {
- logrus.WithFields(logrus.Fields{
- "alias": alias,
- }).Debug("Starting gRPC client")
- GRPCProvider, err := tf.NewGRPCProvider(discovery.PluginMeta{
- Path: providerPath,
- })
-
- if err != nil {
- return err
- }
- p.grpcProviders[alias] = GRPCProvider
- }
-
- schema := p.grpcProviders[alias].GetSchema()
- if p.schemas == nil {
- p.schemas = schema.ResourceTypes
- }
-
- // This value is optional. It'll be overridden by the provider config.
- config := cty.NullVal(cty.DynamicPseudoType)
-
- if p.Config.GetProviderConfig != nil {
- configType := schema.Provider.Block.ImpliedType()
- config, err = gocty.ToCtyValue(p.Config.GetProviderConfig(alias), configType)
- if err != nil {
- return err
- }
- }
-
- resp := p.grpcProviders[alias].Configure(providers.ConfigureRequest{
- Config: config,
- })
- if resp.Diagnostics.HasErrors() {
- return resp.Diagnostics.Err()
- }
-
- logrus.WithFields(logrus.Fields{
- "alias": alias,
- }).Debug("New gRPC client started")
-
- logrus.WithFields(logrus.Fields{
- "name": p.Config.Name,
- "alias": alias,
- }).Debug("Terraform provider initialized")
-
- return nil
-}
-
-func (p *TerraformProvider) ReadResource(args tf.ReadResourceArgs) (*cty.Value, error) {
-
- logrus.WithFields(logrus.Fields{
- "id": args.ID,
- "type": args.Ty,
- "attrs": args.Attributes,
- }).Debugf("Reading cloud resource")
-
- typ := string(args.Ty)
- state := &terraform.InstanceState{
- ID: args.ID,
- Attributes: map[string]string{},
- }
-
- alias := p.Config.DefaultAlias
- if args.Attributes["alias"] != "" {
- alias = args.Attributes["alias"]
- delete(args.Attributes, "alias")
- }
-
- p.lock.Lock()
- if p.grpcProviders[alias] == nil {
- err := p.configure(alias)
- if err != nil {
- return nil, err
- }
- }
- p.lock.Unlock()
-
- if len(args.Attributes) > 0 {
- // call to the provider sometimes add and delete field to their attribute this may broke caller so we deep copy attributes
- state.Attributes = make(map[string]string, len(args.Attributes))
- for k, v := range args.Attributes {
- state.Attributes[k] = v
- }
- }
-
- impliedType := p.schemas[typ].Block.ImpliedType()
-
- priorState, err := state.AttrsAsObjectValue(impliedType)
- if err != nil {
- return nil, err
- }
-
- var newState cty.Value
- r := retrier.New(retrier.ConstantBackoff(3, 100*time.Millisecond), nil)
-
- err = r.Run(func() error {
- resp := p.grpcProviders[alias].ReadResource(providers.ReadResourceRequest{
- TypeName: typ,
- PriorState: priorState,
- Private: []byte{},
- ProviderMeta: cty.NullVal(cty.DynamicPseudoType),
- })
- if resp.Diagnostics.HasErrors() {
- return resp.Diagnostics.Err()
- }
- nonFatalErr := resp.Diagnostics.NonFatalErr()
- if resp.NewState.IsNull() && nonFatalErr != nil {
- return errors.Errorf("state returned by ReadResource is nil: %+v", nonFatalErr)
- }
- newState = resp.NewState
- return nil
- })
-
- if err != nil {
- return nil, err
- }
- p.progress.Inc()
- return &newState, nil
-}
-
-func (p *TerraformProvider) Cleanup() {
- for alias, client := range p.grpcProviders {
- logrus.WithFields(logrus.Fields{
- "alias": alias,
- }).Debug("Closing gRPC client")
- client.Close()
- }
-}
diff --git a/enumeration/remote/test/aws_appautoscaling_policy_single/aws_appautoscaling_policy-DynamoDBReadCapacityUtilization_table_GameScores-DynamoDBReadCapacityUtilization_table_GameScores-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json b/enumeration/remote/test/aws_appautoscaling_policy_single/aws_appautoscaling_policy-DynamoDBReadCapacityUtilization_table_GameScores-DynamoDBReadCapacityUtilization_table_GameScores-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json
deleted file mode 100755
index ce653e130..000000000
--- a/enumeration/remote/test/aws_appautoscaling_policy_single/aws_appautoscaling_policy-DynamoDBReadCapacityUtilization_table_GameScores-DynamoDBReadCapacityUtilization_table_GameScores-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwicG9saWN5X3R5cGUiOiJzdHJpbmciLCJyZXNvdXJjZV9pZCI6InN0cmluZyIsInNjYWxhYmxlX2RpbWVuc2lvbiI6InN0cmluZyIsInNlcnZpY2VfbmFtZXNwYWNlIjoic3RyaW5nIiwic3RlcF9zY2FsaW5nX3BvbGljeV9jb25maWd1cmF0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7ImFkanVzdG1lbnRfdHlwZSI6InN0cmluZyIsImNvb2xkb3duIjoibnVtYmVyIiwibWV0cmljX2FnZ3JlZ2F0aW9uX3R5cGUiOiJzdHJpbmciLCJtaW5fYWRqdXN0bWVudF9tYWduaXR1ZGUiOiJudW1iZXIiLCJzdGVwX2FkanVzdG1lbnQiOlsic2V0IixbIm9iamVjdCIseyJtZXRyaWNfaW50ZXJ2YWxfbG93ZXJfYm91bmQiOiJzdHJpbmciLCJtZXRyaWNfaW50ZXJ2YWxfdXBwZXJfYm91bmQiOiJzdHJpbmciLCJzY2FsaW5nX2FkanVzdG1lbnQiOiJudW1iZXIifV1dfV1dLCJ0YXJnZXRfdHJhY2tpbmdfc2NhbGluZ19wb2xpY3lfY29uZmlndXJhdGlvbiI6WyJsaXN0IixbIm9iamVjdCIseyJjdXN0b21pemVkX21ldHJpY19zcGVjaWZpY2F0aW9uIjpbImxpc3QiLFsib2JqZWN0Iix7ImRpbWVuc2lvbnMiOlsic2V0IixbIm9iamVjdCIseyJuYW1lIjoic3RyaW5nIiwidmFsdWUiOiJzdHJpbmcifV1dLCJtZXRyaWNfbmFtZSI6InN0cmluZyIsIm5hbWVzcGFjZSI6InN0cmluZyIsInN0YXRpc3RpYyI6InN0cmluZyIsInVuaXQiOiJzdHJpbmcifV1dLCJkaXNhYmxlX3NjYWxlX2luIjoiYm9vbCIsInByZWRlZmluZWRfbWV0cmljX3NwZWNpZmljYXRpb24iOlsibGlzdCIsWyJvYmplY3QiLHsicHJlZGVmaW5lZF9tZXRyaWNfdHlwZSI6InN0cmluZyIsInJlc291cmNlX2xhYmVsIjoic3RyaW5nIn1dXSwic2NhbGVfaW5fY29vbGRvd24iOiJudW1iZXIiLCJzY2FsZV9vdXRfY29vbGRvd24iOiJudW1iZXIiLCJ0YXJnZXRfdmFsdWUiOiJudW1iZXIifV1dfV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOmF1dG9zY2FsaW5nOnVzLWVhc3QtMTo1MzM5NDgxMjQ4Nzk6c2NhbGluZ1BvbGljeTowMTJiNjFhOS1jNTAwLTQxYTAtODRhNC0wMTk5NzZiZDEwZmM6cmVzb3VyY2UvZHluYW1vZGIvdGFibGUvR2FtZVNjb3Jlczpwb2xpY3lOYW1lL0R5bmFtb0RCUmVhZENhcGFjaXR5VXRpbGl6YXRpb246dGFibGUvR2FtZVNjb3JlcyIsImlkIjoiRHluYW1vREJSZWFkQ2FwYWNpdHlVdGlsaXphdGlvbjp0YWJsZS9HYW1lU2NvcmVzIiwibmFtZSI6IkR5bmFtb0RCUmVhZENhcGFjaXR5VXRpbGl6YXRpb246dGFibGUvR2FtZVNjb3JlcyIsInBvbGljeV90eXBlIjoiVGFyZ2V0VHJhY2tpbmdTY2FsaW5nIiwicmVzb3VyY2VfaWQiOiJ0YWJsZS9HYW1lU2NvcmVzIiwic2NhbGFibGVfZGltZW5zaW9uIjoiZHluYW1vZGI6dGFibGU6UmVhZENhcGFjaXR5VW5pdHMiLCJzZXJ2aWNlX25hbWVzcGFjZSI6ImR5bmFtb2RiIiwic3RlcF9zY2FsaW5nX3BvbGljeV9jb25maWd1cmF0aW9uIjpbXSwidGFyZ2V0X3RyYWNraW5nX3NjYWxpbmdfcG9saWN5X2NvbmZpZ3VyYXRpb24iOlt7ImN1c3RvbWl6ZWRfbWV0cmljX3NwZWNpZmljYXRpb24iOltdLCJkaXNhYmxlX3NjYWxlX2luIjpmYWxzZSwicHJlZGVmaW5lZF9tZXRyaWNfc3BlY2lmaWNhdGlvbiI6W3sicHJlZGVmaW5lZF9tZXRyaWNfdHlwZSI6IkR5bmFtb0RCUmVhZENhcGFjaXR5VXRpbGl6YXRpb24iLCJyZXNvdXJjZV9sYWJlbCI6IiJ9XSwic2NhbGVfaW5fY29vbGRvd24iOjAsInNjYWxlX291dF9jb29sZG93biI6MCwidGFyZ2V0X3ZhbHVlIjo3MH1dfQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_appautoscaling_policy_single/results.golden.json b/enumeration/remote/test/aws_appautoscaling_policy_single/results.golden.json
deleted file mode 100755
index a201446f7..000000000
--- a/enumeration/remote/test/aws_appautoscaling_policy_single/results.golden.json
+++ /dev/null
@@ -1,27 +0,0 @@
-[
- {
- "arn": "arn:aws:autoscaling:us-east-1:533948124879:scalingPolicy:012b61a9-c500-41a0-84a4-019976bd10fc:resource/dynamodb/table/GameScores:policyName/DynamoDBReadCapacityUtilization:table/GameScores",
- "id": "DynamoDBReadCapacityUtilization:table/GameScores",
- "name": "DynamoDBReadCapacityUtilization:table/GameScores",
- "policy_type": "TargetTrackingScaling",
- "resource_id": "table/GameScores",
- "scalable_dimension": "dynamodb:table:ReadCapacityUnits",
- "service_namespace": "dynamodb",
- "step_scaling_policy_configuration": [],
- "target_tracking_scaling_policy_configuration": [
- {
- "customized_metric_specification": [],
- "disable_scale_in": false,
- "predefined_metric_specification": [
- {
- "predefined_metric_type": "DynamoDBReadCapacityUtilization",
- "resource_label": ""
- }
- ],
- "scale_in_cooldown": 0,
- "scale_out_cooldown": 0,
- "target_value": 70
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_appautoscaling_target_single/aws_appautoscaling_target-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json b/enumeration/remote/test/aws_appautoscaling_target_single/aws_appautoscaling_target-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json
deleted file mode 100755
index 97fe580f7..000000000
--- a/enumeration/remote/test/aws_appautoscaling_target_single/aws_appautoscaling_target-table_GameScores-dynamodb_table_ReadCapacityUnits-dynamodb.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJtYXhfY2FwYWNpdHkiOiJudW1iZXIiLCJtaW5fY2FwYWNpdHkiOiJudW1iZXIiLCJyZXNvdXJjZV9pZCI6InN0cmluZyIsInJvbGVfYXJuIjoic3RyaW5nIiwic2NhbGFibGVfZGltZW5zaW9uIjoic3RyaW5nIiwic2VydmljZV9uYW1lc3BhY2UiOiJzdHJpbmcifV0=",
- "Val": "eyJpZCI6InRhYmxlL0dhbWVTY29yZXMiLCJtYXhfY2FwYWNpdHkiOjEwMCwibWluX2NhcGFjaXR5Ijo1LCJyZXNvdXJjZV9pZCI6InRhYmxlL0dhbWVTY29yZXMiLCJyb2xlX2FybiI6ImFybjphd3M6aWFtOjo1MzM5NDgxMjQ4Nzk6cm9sZS9hd3Mtc2VydmljZS1yb2xlL2R5bmFtb2RiLmFwcGxpY2F0aW9uLWF1dG9zY2FsaW5nLmFtYXpvbmF3cy5jb20vQVdTU2VydmljZVJvbGVGb3JBcHBsaWNhdGlvbkF1dG9TY2FsaW5nX0R5bmFtb0RCVGFibGUiLCJzY2FsYWJsZV9kaW1lbnNpb24iOiJkeW5hbW9kYjp0YWJsZTpSZWFkQ2FwYWNpdHlVbml0cyIsInNlcnZpY2VfbmFtZXNwYWNlIjoiZHluYW1vZGIifQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_appautoscaling_target_single/results.golden.json b/enumeration/remote/test/aws_appautoscaling_target_single/results.golden.json
deleted file mode 100755
index a0e1a27fd..000000000
--- a/enumeration/remote/test/aws_appautoscaling_target_single/results.golden.json
+++ /dev/null
@@ -1,11 +0,0 @@
-[
- {
- "id": "table/GameScores",
- "max_capacity": 100,
- "min_capacity": 5,
- "resource_id": "table/GameScores",
- "role_arn": "arn:aws:iam::533948124879:role/aws-service-role/dynamodb.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_DynamoDBTable",
- "scalable_dimension": "dynamodb:table:ReadCapacityUnits",
- "service_namespace": "dynamodb"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_bar-stack_c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab.res.golden.json b/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_bar-stack_c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab.res.golden.json
deleted file mode 100755
index c9b296c39..000000000
--- a/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_bar-stack_c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiY2FwYWJpbGl0aWVzIjpbInNldCIsInN0cmluZyJdLCJkaXNhYmxlX3JvbGxiYWNrIjoiYm9vbCIsImlhbV9yb2xlX2FybiI6InN0cmluZyIsImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyIsIm5vdGlmaWNhdGlvbl9hcm5zIjpbInNldCIsInN0cmluZyJdLCJvbl9mYWlsdXJlIjoic3RyaW5nIiwib3V0cHV0cyI6WyJtYXAiLCJzdHJpbmciXSwicGFyYW1ldGVycyI6WyJtYXAiLCJzdHJpbmciXSwicG9saWN5X2JvZHkiOiJzdHJpbmciLCJwb2xpY3lfdXJsIjoic3RyaW5nIiwidGFncyI6WyJtYXAiLCJzdHJpbmciXSwidGVtcGxhdGVfYm9keSI6InN0cmluZyIsInRlbXBsYXRlX3VybCI6InN0cmluZyIsInRpbWVvdXRfaW5fbWludXRlcyI6Im51bWJlciIsInRpbWVvdXRzIjpbIm9iamVjdCIseyJjcmVhdGUiOiJzdHJpbmciLCJkZWxldGUiOiJzdHJpbmciLCJ1cGRhdGUiOiJzdHJpbmcifV19XQ==",
- "Val": "eyJjYXBhYmlsaXRpZXMiOlsiQ0FQQUJJTElUWV9OQU1FRF9JQU0iXSwiZGlzYWJsZV9yb2xsYmFjayI6ZmFsc2UsImlhbV9yb2xlX2FybiI6IiIsImlkIjoiYXJuOmF3czpjbG91ZGZvcm1hdGlvbjp1cy1lYXN0LTE6MDQ3MDgxMDE0MzE1OnN0YWNrL2Jhci1zdGFjay9jN2E5NmU3MC0wZjIxLTExZWMtYmQyYS0wYTJkOTVjMmIyYWIiLCJuYW1lIjoiYmFyLXN0YWNrIiwibm90aWZpY2F0aW9uX2FybnMiOm51bGwsIm9uX2ZhaWx1cmUiOm51bGwsIm91dHB1dHMiOnt9LCJwYXJhbWV0ZXJzIjp7fSwicG9saWN5X2JvZHkiOm51bGwsInBvbGljeV91cmwiOm51bGwsInRhZ3MiOnt9LCJ0ZW1wbGF0ZV9ib2R5IjoiUmVzb3VyY2VzOlxuICBteVVzZXI6XG4gICAgVHlwZTogQVdTOjpJQU06OlVzZXJcbiAgICBQcm9wZXJ0aWVzOlxuICAgICAgVXNlck5hbWU6IFwiYmFyX2NmblwiXG4iLCJ0ZW1wbGF0ZV91cmwiOm51bGwsInRpbWVvdXRfaW5fbWludXRlcyI6bnVsbCwidGltZW91dHMiOnsiY3JlYXRlIjpudWxsLCJkZWxldGUiOm51bGwsInVwZGF0ZSI6bnVsbH19",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_foo-stack_c7aa0ab0-0f21-11ec-ba25-129d8c0b3757.res.golden.json b/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_foo-stack_c7aa0ab0-0f21-11ec-ba25-129d8c0b3757.res.golden.json
deleted file mode 100755
index 273a3a35b..000000000
--- a/enumeration/remote/test/aws_cloudformation_stack_multiple/aws_cloudformation_stack-arn_aws_cloudformation_us-east-1_047081014315_stack_foo-stack_c7aa0ab0-0f21-11ec-ba25-129d8c0b3757.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiY2FwYWJpbGl0aWVzIjpbInNldCIsInN0cmluZyJdLCJkaXNhYmxlX3JvbGxiYWNrIjoiYm9vbCIsImlhbV9yb2xlX2FybiI6InN0cmluZyIsImlkIjoic3RyaW5nIiwibmFtZSI6InN0cmluZyIsIm5vdGlmaWNhdGlvbl9hcm5zIjpbInNldCIsInN0cmluZyJdLCJvbl9mYWlsdXJlIjoic3RyaW5nIiwib3V0cHV0cyI6WyJtYXAiLCJzdHJpbmciXSwicGFyYW1ldGVycyI6WyJtYXAiLCJzdHJpbmciXSwicG9saWN5X2JvZHkiOiJzdHJpbmciLCJwb2xpY3lfdXJsIjoic3RyaW5nIiwidGFncyI6WyJtYXAiLCJzdHJpbmciXSwidGVtcGxhdGVfYm9keSI6InN0cmluZyIsInRlbXBsYXRlX3VybCI6InN0cmluZyIsInRpbWVvdXRfaW5fbWludXRlcyI6Im51bWJlciIsInRpbWVvdXRzIjpbIm9iamVjdCIseyJjcmVhdGUiOiJzdHJpbmciLCJkZWxldGUiOiJzdHJpbmciLCJ1cGRhdGUiOiJzdHJpbmcifV19XQ==",
- "Val": "eyJjYXBhYmlsaXRpZXMiOm51bGwsImRpc2FibGVfcm9sbGJhY2siOmZhbHNlLCJpYW1fcm9sZV9hcm4iOiIiLCJpZCI6ImFybjphd3M6Y2xvdWRmb3JtYXRpb246dXMtZWFzdC0xOjA0NzA4MTAxNDMxNTpzdGFjay9mb28tc3RhY2svYzdhYTBhYjAtMGYyMS0xMWVjLWJhMjUtMTI5ZDhjMGIzNzU3IiwibmFtZSI6ImZvby1zdGFjayIsIm5vdGlmaWNhdGlvbl9hcm5zIjpudWxsLCJvbl9mYWlsdXJlIjpudWxsLCJvdXRwdXRzIjp7fSwicGFyYW1ldGVycyI6eyJWUENDaWRyIjoiMTAuMC4wLjAvMTYifSwicG9saWN5X2JvZHkiOm51bGwsInBvbGljeV91cmwiOm51bGwsInRhZ3MiOnt9LCJ0ZW1wbGF0ZV9ib2R5Ijoie1wiUGFyYW1ldGVyc1wiOntcIlZQQ0NpZHJcIjp7XCJEZWZhdWx0XCI6XCIxMC4wLjAuMC8xNlwiLFwiRGVzY3JpcHRpb25cIjpcIkVudGVyIHRoZSBDSURSIGJsb2NrIGZvciB0aGUgVlBDLiBEZWZhdWx0IGlzIDEwLjAuMC4wLzE2LlwiLFwiVHlwZVwiOlwiU3RyaW5nXCJ9fSxcIlJlc291cmNlc1wiOntcIm15VnBjXCI6e1wiUHJvcGVydGllc1wiOntcIkNpZHJCbG9ja1wiOntcIlJlZlwiOlwiVlBDQ2lkclwifSxcIlRhZ3NcIjpbe1wiS2V5XCI6XCJOYW1lXCIsXCJWYWx1ZVwiOlwiUHJpbWFyeV9DRl9WUENcIn1dfSxcIlR5cGVcIjpcIkFXUzo6RUMyOjpWUENcIn19fSIsInRlbXBsYXRlX3VybCI6bnVsbCwidGltZW91dF9pbl9taW51dGVzIjpudWxsLCJ0aW1lb3V0cyI6eyJjcmVhdGUiOm51bGwsImRlbGV0ZSI6bnVsbCwidXBkYXRlIjpudWxsfX0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_cloudformation_stack_multiple/iam.yml b/enumeration/remote/test/aws_cloudformation_stack_multiple/iam.yml
deleted file mode 100644
index 6c2b21d61..000000000
--- a/enumeration/remote/test/aws_cloudformation_stack_multiple/iam.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-Resources:
- myUser:
- Type: AWS::IAM::User
- Properties:
- UserName: "bar_cfn"
diff --git a/enumeration/remote/test/aws_cloudformation_stack_multiple/results.golden.json b/enumeration/remote/test/aws_cloudformation_stack_multiple/results.golden.json
deleted file mode 100755
index 821cb0b5f..000000000
--- a/enumeration/remote/test/aws_cloudformation_stack_multiple/results.golden.json
+++ /dev/null
@@ -1,42 +0,0 @@
-[
- {
- "capabilities": null,
- "disable_rollback": false,
- "iam_role_arn": "",
- "id": "arn:aws:cloudformation:us-east-1:047081014315:stack/foo-stack/c7aa0ab0-0f21-11ec-ba25-129d8c0b3757",
- "name": "foo-stack",
- "notification_arns": null,
- "on_failure": null,
- "outputs": {},
- "parameters": {
- "VPCCidr": "10.0.0.0/16"
- },
- "policy_body": null,
- "policy_url": null,
- "tags": {},
- "template_body": "{\"Parameters\":{\"VPCCidr\":{\"Default\":\"10.0.0.0/16\",\"Description\":\"Enter the CIDR block for the VPC. Default is 10.0.0.0/16.\",\"Type\":\"String\"}},\"Resources\":{\"myVpc\":{\"Properties\":{\"CidrBlock\":{\"Ref\":\"VPCCidr\"},\"Tags\":[{\"Key\":\"Name\",\"Value\":\"Primary_CF_VPC\"}]},\"Type\":\"AWS::EC2::VPC\"}}}",
- "template_url": null,
- "timeout_in_minutes": null,
- "timeouts": {}
- },
- {
- "capabilities": [
- "CAPABILITY_NAMED_IAM"
- ],
- "disable_rollback": false,
- "iam_role_arn": "",
- "id": "arn:aws:cloudformation:us-east-1:047081014315:stack/bar-stack/c7a96e70-0f21-11ec-bd2a-0a2d95c2b2ab",
- "name": "bar-stack",
- "notification_arns": null,
- "on_failure": null,
- "outputs": {},
- "parameters": {},
- "policy_body": null,
- "policy_url": null,
- "tags": {},
- "template_body": "Resources:\n myUser:\n Type: AWS::IAM::User\n Properties:\n UserName: \"bar_cfn\"\n",
- "template_url": null,
- "timeout_in_minutes": null,
- "timeouts": {}
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_cloudformation_stack_multiple/terraform.tf b/enumeration/remote/test/aws_cloudformation_stack_multiple/terraform.tf
deleted file mode 100644
index 6187b0858..000000000
--- a/enumeration/remote/test/aws_cloudformation_stack_multiple/terraform.tf
+++ /dev/null
@@ -1,43 +0,0 @@
-provider "aws" {
- region = "us-east-1"
- profile = "cloudskiff"
-}
-
-resource "aws_cloudformation_stack" "foo" {
- name = "foo-stack"
-
- parameters = {
- VPCCidr = "10.0.0.0/16"
- }
-
- template_body = <
-resource "aws_iam_role" "test" {
- name = "test-role"
-
- assume_role_policy = <
-
-//
-
-resource "aws_iam_role" "test2" {
- name = "test-role2"
-
- assume_role_policy = <
-
-resource "aws_iam_policy" "policy3" {
- name = "test-policy3"
- description = "A test policy 3"
-
- policy = <
-resource "aws_iam_policy" "test_ro" {
- name = "test"
- policy = <
-
-//
-
-resource "aws_iam_user_policy_attachment" "test-attach21" {
- user = aws_iam_user.test2.name
- policy_arn = aws_iam_policy.test_ro.arn
-}
-
-resource "aws_iam_user_policy_attachment" "test-attach22" {
- user = aws_iam_user.test2.name
- policy_arn = aws_iam_policy.test_ro2.arn
-}
-
-resource "aws_iam_user_policy_attachment" "test-attach23" {
- user = aws_iam_user.test2.name
- policy_arn = aws_iam_policy.test_ro3.arn
-}
-
-
-resource "aws_iam_user" "test2" {
- name = "loadbalancer2"
- path = "/system/"
-}
-
-resource "aws_iam_access_key" "test2" {
- user = aws_iam_user.test2.name
-}
-//
-
-//
-
-resource "aws_iam_user_policy_attachment" "test-attach31" {
- user = aws_iam_user.test3.name
- policy_arn = aws_iam_policy.test_ro.arn
-}
-
-resource "aws_iam_user_policy_attachment" "test-attach32" {
- user = aws_iam_user.test3.name
- policy_arn = aws_iam_policy.test_ro2.arn
-}
-
-resource "aws_iam_user_policy_attachment" "test-attach33" {
- user = aws_iam_user.test3.name
- policy_arn = aws_iam_policy.test_ro3.arn
-}
-
-
-resource "aws_iam_user" "test3" {
- name = "loadbalancer3"
- path = "/system/"
-}
-
-resource "aws_iam_access_key" "test3" {
- user = aws_iam_user.test3.name
-}
-//
-
-resource "aws_iam_policy_attachment" "test-attach4" {
- name = "test-attachment"
- users = [aws_iam_user.test.name, aws_iam_user.test2.name, aws_iam_user.test3.name]
- policy_arn = aws_iam_policy.test_ro4.arn
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_attachment_multiple/results.golden.json b/enumeration/remote/test/aws_iam_user_policy_attachment_multiple/results.golden.json
deleted file mode 100755
index 22d0d3534..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_attachment_multiple/results.golden.json
+++ /dev/null
@@ -1,62 +0,0 @@
-[
- {
- "id": "test3-loadbalancer2",
- "policy_arn": "arn:aws:iam::726421854799:policy/test3",
- "user": "loadbalancer2"
- },
- {
- "id": "test4-loadbalancer2",
- "policy_arn": "arn:aws:iam::726421854799:policy/test4",
- "user": "loadbalancer2"
- },
- {
- "id": "test-loadbalancer",
- "policy_arn": "arn:aws:iam::726421854799:policy/test",
- "user": "loadbalancer"
- },
- {
- "id": "test3-loadbalancer",
- "policy_arn": "arn:aws:iam::726421854799:policy/test3",
- "user": "loadbalancer"
- },
- {
- "id": "test-loadbalancer3",
- "policy_arn": "arn:aws:iam::726421854799:policy/test",
- "user": "loadbalancer3"
- },
- {
- "id": "test-loadbalancer2",
- "policy_arn": "arn:aws:iam::726421854799:policy/test",
- "user": "loadbalancer2"
- },
- {
- "id": "test4-loadbalancer",
- "policy_arn": "arn:aws:iam::726421854799:policy/test4",
- "user": "loadbalancer"
- },
- {
- "id": "test2-loadbalancer2",
- "policy_arn": "arn:aws:iam::726421854799:policy/test2",
- "user": "loadbalancer2"
- },
- {
- "id": "test2-loadbalancer",
- "policy_arn": "arn:aws:iam::726421854799:policy/test2",
- "user": "loadbalancer"
- },
- {
- "id": "test4-loadbalancer3",
- "policy_arn": "arn:aws:iam::726421854799:policy/test4",
- "user": "loadbalancer3"
- },
- {
- "id": "test3-loadbalancer3",
- "policy_arn": "arn:aws:iam::726421854799:policy/test3",
- "user": "loadbalancer3"
- },
- {
- "id": "test2-loadbalancer3",
- "policy_arn": "arn:aws:iam::726421854799:policy/test2",
- "user": "loadbalancer3"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test2.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test2.res.golden.json
deleted file mode 100755
index 076114f6e..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjI6dGVzdDIiLCJuYW1lIjoidGVzdDIiLCJuYW1lX3ByZWZpeCI6bnVsbCwicG9saWN5Ijoie1xuICBcIlZlcnNpb25cIjogXCIyMDEyLTEwLTE3XCIsXG4gIFwiU3RhdGVtZW50XCI6IFtcbiAgICB7XG4gICAgICBcIkFjdGlvblwiOiBbXG4gICAgICAgIFwiZWMyOkRlc2NyaWJlKlwiXG4gICAgICBdLFxuICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgXCJSZXNvdXJjZVwiOiBcIipcIlxuICAgIH1cbiAgXVxufVxuIiwidXNlciI6ImxvYWRiYWxhbmNlcjIifQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test22.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test22.res.golden.json
deleted file mode 100755
index 91bc1e576..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test22.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjI6dGVzdDIyIiwibmFtZSI6InRlc3QyMiIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMiJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test23.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test23.res.golden.json
deleted file mode 100755
index 2b4a8c0cf..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test23.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjI6dGVzdDIzIiwibmFtZSI6InRlc3QyMyIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMiJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test24.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test24.res.golden.json
deleted file mode 100755
index 1f0ae709f..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test24.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjI6dGVzdDI0IiwibmFtZSI6InRlc3QyNCIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMiJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test3.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test3.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test4.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test4.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer2_test4.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test2.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test2.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test22.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test22.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test22.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test23.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test23.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test23.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test24.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test24.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test24.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test3.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test3.res.golden.json
deleted file mode 100755
index b871303e1..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjM6dGVzdDMiLCJuYW1lIjoidGVzdDMiLCJuYW1lX3ByZWZpeCI6bnVsbCwicG9saWN5Ijoie1xuICBcIlZlcnNpb25cIjogXCIyMDEyLTEwLTE3XCIsXG4gIFwiU3RhdGVtZW50XCI6IFtcbiAgICB7XG4gICAgICBcIkFjdGlvblwiOiBbXG4gICAgICAgIFwiZWMyOkRlc2NyaWJlKlwiXG4gICAgICBdLFxuICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgXCJSZXNvdXJjZVwiOiBcIipcIlxuICAgIH1cbiAgXVxufVxuIiwidXNlciI6ImxvYWRiYWxhbmNlcjMifQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test32.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test32.res.golden.json
deleted file mode 100755
index 3addaa784..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test32.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjM6dGVzdDMyIiwibmFtZSI6InRlc3QzMiIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test33.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test33.res.golden.json
deleted file mode 100755
index 234bfb826..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test33.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjM6dGVzdDMzIiwibmFtZSI6InRlc3QzMyIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test34.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test34.res.golden.json
deleted file mode 100755
index b3566753a..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test34.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjM6dGVzdDM0IiwibmFtZSI6InRlc3QzNCIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyMyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test4.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test4.res.golden.json
deleted file mode 100755
index 1c9fc9da4..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer3_test4.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "bnVsbA==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test.res.golden.json
deleted file mode 100755
index 6cd839d02..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjp0ZXN0IiwibmFtZSI6InRlc3QiLCJuYW1lX3ByZWZpeCI6bnVsbCwicG9saWN5Ijoie1xuICBcIlZlcnNpb25cIjogXCIyMDEyLTEwLTE3XCIsXG4gIFwiU3RhdGVtZW50XCI6IFtcbiAgICB7XG4gICAgICBcIkFjdGlvblwiOiBbXG4gICAgICAgIFwiZWMyOkRlc2NyaWJlKlwiXG4gICAgICBdLFxuICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgXCJSZXNvdXJjZVwiOiBcIipcIlxuICAgIH1cbiAgXVxufVxuIiwidXNlciI6ImxvYWRiYWxhbmNlciJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test2.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test2.res.golden.json
deleted file mode 100755
index a9a8e7f78..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjp0ZXN0MiIsIm5hbWUiOiJ0ZXN0MiIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyIn0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test3.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test3.res.golden.json
deleted file mode 100755
index 4451dd4f1..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjp0ZXN0MyIsIm5hbWUiOiJ0ZXN0MyIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyIn0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test4.res.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test4.res.golden.json
deleted file mode 100755
index 29f2694ca..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/aws_iam_user_policy-loadbalancer_test4.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJ1c2VyIjoic3RyaW5nIn1d",
- "Val": "eyJpZCI6ImxvYWRiYWxhbmNlcjp0ZXN0NCIsIm5hbWUiOiJ0ZXN0NCIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiJ7XG4gIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIixcbiAgXCJTdGF0ZW1lbnRcIjogW1xuICAgIHtcbiAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgXCJlYzI6RGVzY3JpYmUqXCJcbiAgICAgIF0sXG4gICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgfVxuICBdXG59XG4iLCJ1c2VyIjoibG9hZGJhbGFuY2VyIn0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/main.tf b/enumeration/remote/test/aws_iam_user_policy_multiple/main.tf
deleted file mode 100644
index bae3531d7..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/main.tf
+++ /dev/null
@@ -1,277 +0,0 @@
-provider "aws" {
- region = "eu-west-1"
-}
-
-//
-resource "aws_iam_user_policy" "test_ro" {
- name = "test"
- user = aws_iam_user.test.name
-
- policy = <
-
-//
-resource "aws_iam_user_policy" "test2_ro" {
- name = "test2"
- user = aws_iam_user.test2.name
-
- policy = <
-
-//
-resource "aws_iam_user_policy" "test3_ro" {
- name = "test3"
- user = aws_iam_user.test3.name
-
- policy = <
-
diff --git a/enumeration/remote/test/aws_iam_user_policy_multiple/results.golden.json b/enumeration/remote/test/aws_iam_user_policy_multiple/results.golden.json
deleted file mode 100755
index e00ad2658..000000000
--- a/enumeration/remote/test/aws_iam_user_policy_multiple/results.golden.json
+++ /dev/null
@@ -1,86 +0,0 @@
-[
- {
- "id": "loadbalancer3:test3",
- "name": "test3",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer3"
- },
- {
- "id": "loadbalancer2:test22",
- "name": "test22",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer2"
- },
- {
- "id": "loadbalancer3:test32",
- "name": "test32",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer3"
- },
- {
- "id": "loadbalancer:test3",
- "name": "test3",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer"
- },
- {
- "id": "loadbalancer2:test24",
- "name": "test24",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer2"
- },
- {
- "id": "loadbalancer2:test2",
- "name": "test2",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer2"
- },
- {
- "id": "loadbalancer:test2",
- "name": "test2",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer"
- },
- {
- "id": "loadbalancer:test",
- "name": "test",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer"
- },
- {
- "id": "loadbalancer2:test23",
- "name": "test23",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer2"
- },
- {
- "id": "loadbalancer:test4",
- "name": "test4",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer"
- },
- {
- "id": "loadbalancer3:test34",
- "name": "test34",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer3"
- },
- {
- "id": "loadbalancer3:test33",
- "name": "test33",
- "name_prefix": null,
- "policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"ec2:Describe*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"*\"\n }\n ]\n}\n",
- "user": "loadbalancer3"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_bar.res.golden.json b/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_bar.res.golden.json
deleted file mode 100755
index 153e05a6a..000000000
--- a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_bar.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJ0YXJnZXRfa2V5X2FybiI6InN0cmluZyIsInRhcmdldF9rZXlfaWQiOiJzdHJpbmcifV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmFsaWFzL2JhciIsImlkIjoiYWxpYXMvYmFyIiwibmFtZSI6bnVsbCwibmFtZV9wcmVmaXgiOm51bGwsInRhcmdldF9rZXlfYXJuIjoiYXJuOmF3czprbXM6ZXUtd2VzdC0zOjA0NzA4MTAxNDMxNTprZXkvMzQxYjJkNzYtZmVhYi00OTExLWI1ZGUtZmJkZDkyYjIxYWE3IiwidGFyZ2V0X2tleV9pZCI6IjM0MWIyZDc2LWZlYWItNDkxMS1iNWRlLWZiZGQ5MmIyMWFhNyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_baz20210225124429210500000001.res.golden.json b/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_baz20210225124429210500000001.res.golden.json
deleted file mode 100755
index cf8d25493..000000000
--- a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_baz20210225124429210500000001.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJ0YXJnZXRfa2V5X2FybiI6InN0cmluZyIsInRhcmdldF9rZXlfaWQiOiJzdHJpbmcifV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmFsaWFzL2JhejIwMjEwMjI1MTI0NDI5MjEwNTAwMDAwMDAxIiwiaWQiOiJhbGlhcy9iYXoyMDIxMDIyNTEyNDQyOTIxMDUwMDAwMDAwMSIsIm5hbWUiOm51bGwsIm5hbWVfcHJlZml4IjpudWxsLCJ0YXJnZXRfa2V5X2FybiI6ImFybjphd3M6a21zOmV1LXdlc3QtMzowNDcwODEwMTQzMTU6a2V5LzM0MWIyZDc2LWZlYWItNDkxMS1iNWRlLWZiZGQ5MmIyMWFhNyIsInRhcmdldF9rZXlfaWQiOiIzNDFiMmQ3Ni1mZWFiLTQ5MTEtYjVkZS1mYmRkOTJiMjFhYTcifQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_foo.res.golden.json b/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_foo.res.golden.json
deleted file mode 100755
index 2ca23b08f..000000000
--- a/enumeration/remote/test/aws_kms_alias_multiple/aws_kms_alias-alias_foo.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJuYW1lIjoic3RyaW5nIiwibmFtZV9wcmVmaXgiOiJzdHJpbmciLCJ0YXJnZXRfa2V5X2FybiI6InN0cmluZyIsInRhcmdldF9rZXlfaWQiOiJzdHJpbmcifV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmFsaWFzL2ZvbyIsImlkIjoiYWxpYXMvZm9vIiwibmFtZSI6bnVsbCwibmFtZV9wcmVmaXgiOm51bGwsInRhcmdldF9rZXlfYXJuIjoiYXJuOmF3czprbXM6ZXUtd2VzdC0zOjA0NzA4MTAxNDMxNTprZXkvMzQxYjJkNzYtZmVhYi00OTExLWI1ZGUtZmJkZDkyYjIxYWE3IiwidGFyZ2V0X2tleV9pZCI6IjM0MWIyZDc2LWZlYWItNDkxMS1iNWRlLWZiZGQ5MmIyMWFhNyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_alias_multiple/results.golden.json b/enumeration/remote/test/aws_kms_alias_multiple/results.golden.json
deleted file mode 100755
index 466891141..000000000
--- a/enumeration/remote/test/aws_kms_alias_multiple/results.golden.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:alias/baz20210225124429210500000001",
- "id": "alias/baz20210225124429210500000001",
- "name": null,
- "name_prefix": null,
- "target_key_arn": "arn:aws:kms:eu-west-3:047081014315:key/341b2d76-feab-4911-b5de-fbdd92b21aa7",
- "target_key_id": "341b2d76-feab-4911-b5de-fbdd92b21aa7"
- },
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:alias/foo",
- "id": "alias/foo",
- "name": null,
- "name_prefix": null,
- "target_key_arn": "arn:aws:kms:eu-west-3:047081014315:key/341b2d76-feab-4911-b5de-fbdd92b21aa7",
- "target_key_id": "341b2d76-feab-4911-b5de-fbdd92b21aa7"
- },
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:alias/bar",
- "id": "alias/bar",
- "name": null,
- "name_prefix": null,
- "target_key_arn": "arn:aws:kms:eu-west-3:047081014315:key/341b2d76-feab-4911-b5de-fbdd92b21aa7",
- "target_key_id": "341b2d76-feab-4911-b5de-fbdd92b21aa7"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_alias_multiple/terraform.tf b/enumeration/remote/test/aws_kms_alias_multiple/terraform.tf
deleted file mode 100644
index 81d6b5f5d..000000000
--- a/enumeration/remote/test/aws_kms_alias_multiple/terraform.tf
+++ /dev/null
@@ -1,26 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_kms_key" "key" {}
-
-resource "aws_kms_alias" "foo" {
- name = "alias/foo"
- target_key_id = aws_kms_key.key.key_id
-}
-
-resource "aws_kms_alias" "bar" {
- name = "alias/bar"
- target_key_id = aws_kms_key.key.key_id
-}
-
-resource "aws_kms_alias" "baz" {
- name_prefix = "alias/baz"
- target_key_id = aws_kms_key.key.key_id
-}
diff --git a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-5d765f32-bfdc-4610-b6ab-f82db5d0601b.res.golden.json b/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-5d765f32-bfdc-4610-b6ab-f82db5d0601b.res.golden.json
deleted file mode 100755
index 43b604c16..000000000
--- a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-5d765f32-bfdc-4610-b6ab-f82db5d0601b.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY3VzdG9tZXJfbWFzdGVyX2tleV9zcGVjIjoic3RyaW5nIiwiZGVsZXRpb25fd2luZG93X2luX2RheXMiOiJudW1iZXIiLCJkZXNjcmlwdGlvbiI6InN0cmluZyIsImVuYWJsZV9rZXlfcm90YXRpb24iOiJib29sIiwiaWQiOiJzdHJpbmciLCJpc19lbmFibGVkIjoiYm9vbCIsImtleV9pZCI6InN0cmluZyIsImtleV91c2FnZSI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmtleS81ZDc2NWYzMi1iZmRjLTQ2MTAtYjZhYi1mODJkYjVkMDYwMWIiLCJjdXN0b21lcl9tYXN0ZXJfa2V5X3NwZWMiOiJTWU1NRVRSSUNfREVGQVVMVCIsImRlbGV0aW9uX3dpbmRvd19pbl9kYXlzIjpudWxsLCJkZXNjcmlwdGlvbiI6IkJheiIsImVuYWJsZV9rZXlfcm90YXRpb24iOmZhbHNlLCJpZCI6IjVkNzY1ZjMyLWJmZGMtNDYxMC1iNmFiLWY4MmRiNWQwNjAxYiIsImlzX2VuYWJsZWQiOmZhbHNlLCJrZXlfaWQiOiI1ZDc2NWYzMi1iZmRjLTQ2MTAtYjZhYi1mODJkYjVkMDYwMWIiLCJrZXlfdXNhZ2UiOiJFTkNSWVBUX0RFQ1JZUFQiLCJwb2xpY3kiOiJ7XCJJZFwiOlwia2V5LWRlZmF1bHQtMVwiLFwiU3RhdGVtZW50XCI6W3tcIkFjdGlvblwiOlwia21zOipcIixcIkVmZmVjdFwiOlwiQWxsb3dcIixcIlByaW5jaXBhbFwiOntcIkFXU1wiOlwiYXJuOmF3czppYW06OjA0NzA4MTAxNDMxNTpyb290XCJ9LFwiUmVzb3VyY2VcIjpcIipcIixcIlNpZFwiOlwiRW5hYmxlIElBTSBVc2VyIFBlcm1pc3Npb25zXCJ9XSxcIlZlcnNpb25cIjpcIjIwMTItMTAtMTdcIn0iLCJ0YWdzIjp7IkZvbyI6InRydWUifX0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-89d2c023-ea53-40a5-b20a-d84905c622d7.res.golden.json b/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-89d2c023-ea53-40a5-b20a-d84905c622d7.res.golden.json
deleted file mode 100755
index 7d64dd07e..000000000
--- a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-89d2c023-ea53-40a5-b20a-d84905c622d7.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY3VzdG9tZXJfbWFzdGVyX2tleV9zcGVjIjoic3RyaW5nIiwiZGVsZXRpb25fd2luZG93X2luX2RheXMiOiJudW1iZXIiLCJkZXNjcmlwdGlvbiI6InN0cmluZyIsImVuYWJsZV9rZXlfcm90YXRpb24iOiJib29sIiwiaWQiOiJzdHJpbmciLCJpc19lbmFibGVkIjoiYm9vbCIsImtleV9pZCI6InN0cmluZyIsImtleV91c2FnZSI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmtleS84OWQyYzAyMy1lYTUzLTQwYTUtYjIwYS1kODQ5MDVjNjIyZDciLCJjdXN0b21lcl9tYXN0ZXJfa2V5X3NwZWMiOiJSU0FfNDA5NiIsImRlbGV0aW9uX3dpbmRvd19pbl9kYXlzIjpudWxsLCJkZXNjcmlwdGlvbiI6IkZvbyIsImVuYWJsZV9rZXlfcm90YXRpb24iOmZhbHNlLCJpZCI6Ijg5ZDJjMDIzLWVhNTMtNDBhNS1iMjBhLWQ4NDkwNWM2MjJkNyIsImlzX2VuYWJsZWQiOnRydWUsImtleV9pZCI6Ijg5ZDJjMDIzLWVhNTMtNDBhNS1iMjBhLWQ4NDkwNWM2MjJkNyIsImtleV91c2FnZSI6IkVOQ1JZUFRfREVDUllQVCIsInBvbGljeSI6IntcIklkXCI6XCJrZXktZGVmYXVsdC0xXCIsXCJTdGF0ZW1lbnRcIjpbe1wiQWN0aW9uXCI6XCJrbXM6KlwiLFwiRWZmZWN0XCI6XCJBbGxvd1wiLFwiUHJpbmNpcGFsXCI6e1wiQVdTXCI6XCJhcm46YXdzOmlhbTo6MDQ3MDgxMDE0MzE1OnJvb3RcIn0sXCJSZXNvdXJjZVwiOlwiKlwiLFwiU2lkXCI6XCJFbmFibGUgSUFNIFVzZXIgUGVybWlzc2lvbnNcIn1dLFwiVmVyc2lvblwiOlwiMjAxMi0xMC0xN1wifSIsInRhZ3MiOnt9fQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-8ee21d91-c000-428c-8032-235aac55da36.res.golden.json b/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-8ee21d91-c000-428c-8032-235aac55da36.res.golden.json
deleted file mode 100755
index 05708f4c6..000000000
--- a/enumeration/remote/test/aws_kms_key_multiple/aws_kms_key-8ee21d91-c000-428c-8032-235aac55da36.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY3VzdG9tZXJfbWFzdGVyX2tleV9zcGVjIjoic3RyaW5nIiwiZGVsZXRpb25fd2luZG93X2luX2RheXMiOiJudW1iZXIiLCJkZXNjcmlwdGlvbiI6InN0cmluZyIsImVuYWJsZV9rZXlfcm90YXRpb24iOiJib29sIiwiaWQiOiJzdHJpbmciLCJpc19lbmFibGVkIjoiYm9vbCIsImtleV9pZCI6InN0cmluZyIsImtleV91c2FnZSI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcm4iOiJhcm46YXdzOmttczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmtleS84ZWUyMWQ5MS1jMDAwLTQyOGMtODAzMi0yMzVhYWM1NWRhMzYiLCJjdXN0b21lcl9tYXN0ZXJfa2V5X3NwZWMiOiJSU0FfMjA0OCIsImRlbGV0aW9uX3dpbmRvd19pbl9kYXlzIjpudWxsLCJkZXNjcmlwdGlvbiI6IkJhciIsImVuYWJsZV9rZXlfcm90YXRpb24iOmZhbHNlLCJpZCI6IjhlZTIxZDkxLWMwMDAtNDI4Yy04MDMyLTIzNWFhYzU1ZGEzNiIsImlzX2VuYWJsZWQiOnRydWUsImtleV9pZCI6IjhlZTIxZDkxLWMwMDAtNDI4Yy04MDMyLTIzNWFhYzU1ZGEzNiIsImtleV91c2FnZSI6IlNJR05fVkVSSUZZIiwicG9saWN5Ijoie1wiSWRcIjpcImtleS1jb25zb2xlcG9saWN5LTNcIixcIlN0YXRlbWVudFwiOlt7XCJBY3Rpb25cIjpcImttczoqXCIsXCJFZmZlY3RcIjpcIkFsbG93XCIsXCJQcmluY2lwYWxcIjp7XCJBV1NcIjpcImFybjphd3M6aWFtOjowNDcwODEwMTQzMTU6cm9vdFwifSxcIlJlc291cmNlXCI6XCIqXCIsXCJTaWRcIjpcIkVuYWJsZSBJQU0gVXNlciBQZXJtaXNzaW9uc1wifSx7XCJBY3Rpb25cIjpbXCJrbXM6RGVzY3JpYmVLZXlcIixcImttczpHZXRQdWJsaWNLZXlcIixcImttczpTaWduXCIsXCJrbXM6VmVyaWZ5XCJdLFwiRWZmZWN0XCI6XCJBbGxvd1wiLFwiUHJpbmNpcGFsXCI6e1wiQVdTXCI6XCJhcm46YXdzOmlhbTo6MDQ3MDgxMDE0MzE1OnVzZXIvYWRtaW5cIn0sXCJSZXNvdXJjZVwiOlwiKlwiLFwiU2lkXCI6XCJBbGxvdyB1c2Ugb2YgdGhlIGtleVwifSx7XCJBY3Rpb25cIjpbXCJrbXM6Q3JlYXRlR3JhbnRcIixcImttczpMaXN0R3JhbnRzXCIsXCJrbXM6UmV2b2tlR3JhbnRcIl0sXCJDb25kaXRpb25cIjp7XCJCb29sXCI6e1wia21zOkdyYW50SXNGb3JBV1NSZXNvdXJjZVwiOlwidHJ1ZVwifX0sXCJFZmZlY3RcIjpcIkFsbG93XCIsXCJQcmluY2lwYWxcIjp7XCJBV1NcIjpcImFybjphd3M6aWFtOjowNDcwODEwMTQzMTU6dXNlci9hZG1pblwifSxcIlJlc291cmNlXCI6XCIqXCIsXCJTaWRcIjpcIkFsbG93IGF0dGFjaG1lbnQgb2YgcGVyc2lzdGVudCByZXNvdXJjZXNcIn1dLFwiVmVyc2lvblwiOlwiMjAxMi0xMC0xN1wifSIsInRhZ3MiOnt9fQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_key_multiple/results.golden.json b/enumeration/remote/test/aws_kms_key_multiple/results.golden.json
deleted file mode 100755
index 6997d470f..000000000
--- a/enumeration/remote/test/aws_kms_key_multiple/results.golden.json
+++ /dev/null
@@ -1,43 +0,0 @@
-[
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:key/8ee21d91-c000-428c-8032-235aac55da36",
- "customer_master_key_spec": "RSA_2048",
- "deletion_window_in_days": null,
- "description": "Bar",
- "enable_key_rotation": false,
- "id": "8ee21d91-c000-428c-8032-235aac55da36",
- "is_enabled": true,
- "key_id": "8ee21d91-c000-428c-8032-235aac55da36",
- "key_usage": "SIGN_VERIFY",
- "policy": "{\"Id\":\"key-consolepolicy-3\",\"Statement\":[{\"Action\":\"kms:*\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::047081014315:root\"},\"Resource\":\"*\",\"Sid\":\"Enable IAM User Permissions\"},{\"Action\":[\"kms:DescribeKey\",\"kms:GetPublicKey\",\"kms:Sign\",\"kms:Verify\"],\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::047081014315:user/admin\"},\"Resource\":\"*\",\"Sid\":\"Allow use of the key\"},{\"Action\":[\"kms:CreateGrant\",\"kms:ListGrants\",\"kms:RevokeGrant\"],\"Condition\":{\"Bool\":{\"kms:GrantIsForAWSResource\":\"true\"}},\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::047081014315:user/admin\"},\"Resource\":\"*\",\"Sid\":\"Allow attachment of persistent resources\"}],\"Version\":\"2012-10-17\"}",
- "tags": {}
- },
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:key/5d765f32-bfdc-4610-b6ab-f82db5d0601b",
- "customer_master_key_spec": "SYMMETRIC_DEFAULT",
- "deletion_window_in_days": null,
- "description": "Baz",
- "enable_key_rotation": false,
- "id": "5d765f32-bfdc-4610-b6ab-f82db5d0601b",
- "is_enabled": false,
- "key_id": "5d765f32-bfdc-4610-b6ab-f82db5d0601b",
- "key_usage": "ENCRYPT_DECRYPT",
- "policy": "{\"Id\":\"key-default-1\",\"Statement\":[{\"Action\":\"kms:*\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::047081014315:root\"},\"Resource\":\"*\",\"Sid\":\"Enable IAM User Permissions\"}],\"Version\":\"2012-10-17\"}",
- "tags": {
- "Foo": "true"
- }
- },
- {
- "arn": "arn:aws:kms:eu-west-3:047081014315:key/89d2c023-ea53-40a5-b20a-d84905c622d7",
- "customer_master_key_spec": "RSA_4096",
- "deletion_window_in_days": null,
- "description": "Foo",
- "enable_key_rotation": false,
- "id": "89d2c023-ea53-40a5-b20a-d84905c622d7",
- "is_enabled": true,
- "key_id": "89d2c023-ea53-40a5-b20a-d84905c622d7",
- "key_usage": "ENCRYPT_DECRYPT",
- "policy": "{\"Id\":\"key-default-1\",\"Statement\":[{\"Action\":\"kms:*\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::047081014315:root\"},\"Resource\":\"*\",\"Sid\":\"Enable IAM User Permissions\"}],\"Version\":\"2012-10-17\"}",
- "tags": {}
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_kms_key_multiple/terraform.tf b/enumeration/remote/test/aws_kms_key_multiple/terraform.tf
deleted file mode 100644
index 060028f59..000000000
--- a/enumeration/remote/test/aws_kms_key_multiple/terraform.tf
+++ /dev/null
@@ -1,30 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_kms_key" "foo" {
- description = "Foo"
- deletion_window_in_days = 10
- customer_master_key_spec = "RSA_4096"
-}
-
-resource "aws_kms_key" "bar" {
- description = "Bar"
- customer_master_key_spec = "RSA_2048"
- key_usage = "SIGN_VERIFY"
-}
-
-resource "aws_kms_key" "baz" {
- description = "Baz"
- deletion_window_in_days = 10
- is_enabled = false
- tags = {
- "Foo" = "true"
- }
-}
diff --git a/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-bar-bar.res.golden.json b/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-bar-bar.res.golden.json
deleted file mode 100755
index 2866fd8ef..000000000
--- a/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-bar-bar.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiZGVhZF9sZXR0ZXJfY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7InRhcmdldF9hcm4iOiJzdHJpbmcifV1dLCJkZXNjcmlwdGlvbiI6InN0cmluZyIsImVudmlyb25tZW50IjpbImxpc3QiLFsib2JqZWN0Iix7InZhcmlhYmxlcyI6WyJtYXAiLCJzdHJpbmciXX1dXSwiZmlsZV9zeXN0ZW1fY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7ImFybiI6InN0cmluZyIsImxvY2FsX21vdW50X3BhdGgiOiJzdHJpbmcifV1dLCJmaWxlbmFtZSI6InN0cmluZyIsImZ1bmN0aW9uX25hbWUiOiJzdHJpbmciLCJoYW5kbGVyIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJpbnZva2VfYXJuIjoic3RyaW5nIiwia21zX2tleV9hcm4iOiJzdHJpbmciLCJsYXN0X21vZGlmaWVkIjoic3RyaW5nIiwibGF5ZXJzIjpbImxpc3QiLCJzdHJpbmciXSwibWVtb3J5X3NpemUiOiJudW1iZXIiLCJwdWJsaXNoIjoiYm9vbCIsInF1YWxpZmllZF9hcm4iOiJzdHJpbmciLCJyZXNlcnZlZF9jb25jdXJyZW50X2V4ZWN1dGlvbnMiOiJudW1iZXIiLCJyb2xlIjoic3RyaW5nIiwicnVudGltZSI6InN0cmluZyIsInMzX2J1Y2tldCI6InN0cmluZyIsInMzX2tleSI6InN0cmluZyIsInMzX29iamVjdF92ZXJzaW9uIjoic3RyaW5nIiwic291cmNlX2NvZGVfaGFzaCI6InN0cmluZyIsInNvdXJjZV9jb2RlX3NpemUiOiJudW1iZXIiLCJ0YWdzIjpbIm1hcCIsInN0cmluZyJdLCJ0aW1lb3V0IjoibnVtYmVyIiwidGltZW91dHMiOlsib2JqZWN0Iix7ImNyZWF0ZSI6InN0cmluZyJ9XSwidHJhY2luZ19jb25maWciOlsibGlzdCIsWyJvYmplY3QiLHsibW9kZSI6InN0cmluZyJ9XV0sInZlcnNpb24iOiJzdHJpbmciLCJ2cGNfY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7InNlY3VyaXR5X2dyb3VwX2lkcyI6WyJzZXQiLCJzdHJpbmciXSwic3VibmV0X2lkcyI6WyJzZXQiLCJzdHJpbmciXSwidnBjX2lkIjoic3RyaW5nIn1dXX1d","Val":"eyJhcm4iOiJhcm46YXdzOmxhbWJkYTpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmZ1bmN0aW9uOmJhciIsImRlYWRfbGV0dGVyX2NvbmZpZyI6W10sImRlc2NyaXB0aW9uIjoiIiwiZW52aXJvbm1lbnQiOltdLCJmaWxlX3N5c3RlbV9jb25maWciOltdLCJmaWxlbmFtZSI6bnVsbCwiZnVuY3Rpb25fbmFtZSI6ImJhciIsImhhbmRsZXIiOiJsYW1iZGEuaGFuZGxlciIsImlkIjoiYmFyIiwiaW52b2tlX2FybiI6ImFybjphd3M6YXBpZ2F0ZXdheTpldS13ZXN0LTM6bGFtYmRhOnBhdGgvMjAxNS0wMy0zMS9mdW5jdGlvbnMvYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjA0NzA4MTAxNDMxNTpmdW5jdGlvbjpiYXIvaW52b2NhdGlvbnMiLCJrbXNfa2V5X2FybiI6IiIsImxhc3RfbW9kaWZpZWQiOiIyMDIwLTEwLTE2VDA5OjA0OjQyLjA1MCswMDAwIiwibGF5ZXJzIjpbXSwibWVtb3J5X3NpemUiOjEyOCwicHVibGlzaCI6bnVsbCwicXVhbGlmaWVkX2FybiI6ImFybjphd3M6bGFtYmRhOmV1LXdlc3QtMzowNDcwODEwMTQzMTU6ZnVuY3Rpb246YmFyOiRMQVRFU1QiLCJyZXNlcnZlZF9jb25jdXJyZW50X2V4ZWN1dGlvbnMiOi0xLCJyb2xlIjoiYXJuOmF3czppYW06OjA0NzA4MTAxNDMxNTpyb2xlL2lhbV9mb3JfbGFtYmRhIiwicnVudGltZSI6Im5vZGVqczEyLngiLCJzM19idWNrZXQiOm51bGwsInMzX2tleSI6bnVsbCwiczNfb2JqZWN0X3ZlcnNpb24iOm51bGwsInNvdXJjZV9jb2RlX2hhc2giOiJQb2FBRWVPQ21FRlpvam5yaEVKdk56cytqZzcvdzFsTDlHaUZZdmxNNmF3PSIsInNvdXJjZV9jb2RlX3NpemUiOjM1MiwidGFncyI6e30sInRpbWVvdXQiOjMsInRpbWVvdXRzIjp7ImNyZWF0ZSI6bnVsbH0sInRyYWNpbmdfY29uZmlnIjpbeyJtb2RlIjoiUGFzc1Rocm91Z2gifV0sInZlcnNpb24iOiIkTEFURVNUIiwidnBjX2NvbmZpZyI6W119","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-foo-foo.res.golden.json b/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-foo-foo.res.golden.json
deleted file mode 100755
index 0cf5cc656..000000000
--- a/enumeration/remote/test/aws_lambda_function_multiple/aws_lambda_function-foo-foo.res.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Typ":"WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiZGVhZF9sZXR0ZXJfY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7InRhcmdldF9hcm4iOiJzdHJpbmcifV1dLCJkZXNjcmlwdGlvbiI6InN0cmluZyIsImVudmlyb25tZW50IjpbImxpc3QiLFsib2JqZWN0Iix7InZhcmlhYmxlcyI6WyJtYXAiLCJzdHJpbmciXX1dXSwiZmlsZV9zeXN0ZW1fY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7ImFybiI6InN0cmluZyIsImxvY2FsX21vdW50X3BhdGgiOiJzdHJpbmcifV1dLCJmaWxlbmFtZSI6InN0cmluZyIsImZ1bmN0aW9uX25hbWUiOiJzdHJpbmciLCJoYW5kbGVyIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJpbnZva2VfYXJuIjoic3RyaW5nIiwia21zX2tleV9hcm4iOiJzdHJpbmciLCJsYXN0X21vZGlmaWVkIjoic3RyaW5nIiwibGF5ZXJzIjpbImxpc3QiLCJzdHJpbmciXSwibWVtb3J5X3NpemUiOiJudW1iZXIiLCJwdWJsaXNoIjoiYm9vbCIsInF1YWxpZmllZF9hcm4iOiJzdHJpbmciLCJyZXNlcnZlZF9jb25jdXJyZW50X2V4ZWN1dGlvbnMiOiJudW1iZXIiLCJyb2xlIjoic3RyaW5nIiwicnVudGltZSI6InN0cmluZyIsInMzX2J1Y2tldCI6InN0cmluZyIsInMzX2tleSI6InN0cmluZyIsInMzX29iamVjdF92ZXJzaW9uIjoic3RyaW5nIiwic291cmNlX2NvZGVfaGFzaCI6InN0cmluZyIsInNvdXJjZV9jb2RlX3NpemUiOiJudW1iZXIiLCJ0YWdzIjpbIm1hcCIsInN0cmluZyJdLCJ0aW1lb3V0IjoibnVtYmVyIiwidGltZW91dHMiOlsib2JqZWN0Iix7ImNyZWF0ZSI6InN0cmluZyJ9XSwidHJhY2luZ19jb25maWciOlsibGlzdCIsWyJvYmplY3QiLHsibW9kZSI6InN0cmluZyJ9XV0sInZlcnNpb24iOiJzdHJpbmciLCJ2cGNfY29uZmlnIjpbImxpc3QiLFsib2JqZWN0Iix7InNlY3VyaXR5X2dyb3VwX2lkcyI6WyJzZXQiLCJzdHJpbmciXSwic3VibmV0X2lkcyI6WyJzZXQiLCJzdHJpbmciXSwidnBjX2lkIjoic3RyaW5nIn1dXX1d","Val":"eyJhcm4iOiJhcm46YXdzOmxhbWJkYTpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmZ1bmN0aW9uOmZvbyIsImRlYWRfbGV0dGVyX2NvbmZpZyI6W10sImRlc2NyaXB0aW9uIjoiIiwiZW52aXJvbm1lbnQiOltdLCJmaWxlX3N5c3RlbV9jb25maWciOltdLCJmaWxlbmFtZSI6bnVsbCwiZnVuY3Rpb25fbmFtZSI6ImZvbyIsImhhbmRsZXIiOiJsYW1iZGEuaGFuZGxlciIsImlkIjoiZm9vIiwiaW52b2tlX2FybiI6ImFybjphd3M6YXBpZ2F0ZXdheTpldS13ZXN0LTM6bGFtYmRhOnBhdGgvMjAxNS0wMy0zMS9mdW5jdGlvbnMvYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjA0NzA4MTAxNDMxNTpmdW5jdGlvbjpmb28vaW52b2NhdGlvbnMiLCJrbXNfa2V5X2FybiI6IiIsImxhc3RfbW9kaWZpZWQiOiIyMDIwLTEwLTE2VDA5OjA0OjM2LjE3NiswMDAwIiwibGF5ZXJzIjpbXSwibWVtb3J5X3NpemUiOjEyOCwicHVibGlzaCI6bnVsbCwicXVhbGlmaWVkX2FybiI6ImFybjphd3M6bGFtYmRhOmV1LXdlc3QtMzowNDcwODEwMTQzMTU6ZnVuY3Rpb246Zm9vOiRMQVRFU1QiLCJyZXNlcnZlZF9jb25jdXJyZW50X2V4ZWN1dGlvbnMiOi0xLCJyb2xlIjoiYXJuOmF3czppYW06OjA0NzA4MTAxNDMxNTpyb2xlL2lhbV9mb3JfbGFtYmRhIiwicnVudGltZSI6Im5vZGVqczEyLngiLCJzM19idWNrZXQiOm51bGwsInMzX2tleSI6bnVsbCwiczNfb2JqZWN0X3ZlcnNpb24iOm51bGwsInNvdXJjZV9jb2RlX2hhc2giOiJQb2FBRWVPQ21FRlpvam5yaEVKdk56cytqZzcvdzFsTDlHaUZZdmxNNmF3PSIsInNvdXJjZV9jb2RlX3NpemUiOjM1MiwidGFncyI6e30sInRpbWVvdXQiOjMsInRpbWVvdXRzIjp7ImNyZWF0ZSI6bnVsbH0sInRyYWNpbmdfY29uZmlnIjpbeyJtb2RlIjoiUGFzc1Rocm91Z2gifV0sInZlcnNpb24iOiIkTEFURVNUIiwidnBjX2NvbmZpZyI6W119","Err":null}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_lambda_function_multiple/results.golden.json b/enumeration/remote/test/aws_lambda_function_multiple/results.golden.json
deleted file mode 100755
index 2b8b9a307..000000000
--- a/enumeration/remote/test/aws_lambda_function_multiple/results.golden.json
+++ /dev/null
@@ -1 +0,0 @@
-[{"arn":"arn:aws:lambda:eu-west-3:047081014315:function:bar","dead_letter_config":[],"description":"","environment":[],"file_system_config":[],"filename":null,"function_name":"bar","handler":"lambda.handler","id":"bar","invoke_arn":"arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-3:047081014315:function:bar/invocations","kms_key_arn":"","last_modified":"2020-10-16T09:04:42.050+0000","layers":[],"memory_size":128,"publish":null,"qualified_arn":"arn:aws:lambda:eu-west-3:047081014315:function:bar:$LATEST","reserved_concurrent_executions":-1,"role":"arn:aws:iam::047081014315:role/iam_for_lambda","runtime":"nodejs12.x","s3_bucket":null,"s3_key":null,"s3_object_version":null,"source_code_hash":"PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=","source_code_size":352,"tags":{},"timeout":3,"timeouts":{"create":null},"tracing_config":[{"mode":"PassThrough"}],"version":"$LATEST","vpc_config":[]},{"arn":"arn:aws:lambda:eu-west-3:047081014315:function:foo","dead_letter_config":[],"description":"","environment":[],"file_system_config":[],"filename":null,"function_name":"foo","handler":"lambda.handler","id":"foo","invoke_arn":"arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-3:047081014315:function:foo/invocations","kms_key_arn":"","last_modified":"2020-10-16T09:04:36.176+0000","layers":[],"memory_size":128,"publish":null,"qualified_arn":"arn:aws:lambda:eu-west-3:047081014315:function:foo:$LATEST","reserved_concurrent_executions":-1,"role":"arn:aws:iam::047081014315:role/iam_for_lambda","runtime":"nodejs12.x","s3_bucket":null,"s3_key":null,"s3_object_version":null,"source_code_hash":"PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=","source_code_size":352,"tags":{},"timeout":3,"timeouts":{"create":null},"tracing_config":[{"mode":"PassThrough"}],"version":"$LATEST","vpc_config":[]}]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_lambda_function_signed/aws_lambda_function-foo-foo.res.golden.json b/enumeration/remote/test/aws_lambda_function_signed/aws_lambda_function-foo-foo.res.golden.json
deleted file mode 100755
index 9b9ed0102..000000000
--- a/enumeration/remote/test/aws_lambda_function_signed/aws_lambda_function-foo-foo.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY29kZV9zaWduaW5nX2NvbmZpZ19hcm4iOiJzdHJpbmciLCJkZWFkX2xldHRlcl9jb25maWciOlsibGlzdCIsWyJvYmplY3QiLHsidGFyZ2V0X2FybiI6InN0cmluZyJ9XV0sImRlc2NyaXB0aW9uIjoic3RyaW5nIiwiZW52aXJvbm1lbnQiOlsibGlzdCIsWyJvYmplY3QiLHsidmFyaWFibGVzIjpbIm1hcCIsInN0cmluZyJdfV1dLCJmaWxlX3N5c3RlbV9jb25maWciOlsibGlzdCIsWyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwibG9jYWxfbW91bnRfcGF0aCI6InN0cmluZyJ9XV0sImZpbGVuYW1lIjoic3RyaW5nIiwiZnVuY3Rpb25fbmFtZSI6InN0cmluZyIsImhhbmRsZXIiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsImltYWdlX2NvbmZpZyI6WyJsaXN0IixbIm9iamVjdCIseyJjb21tYW5kIjpbImxpc3QiLCJzdHJpbmciXSwiZW50cnlfcG9pbnQiOlsibGlzdCIsInN0cmluZyJdLCJ3b3JraW5nX2RpcmVjdG9yeSI6InN0cmluZyJ9XV0sImltYWdlX3VyaSI6InN0cmluZyIsImludm9rZV9hcm4iOiJzdHJpbmciLCJrbXNfa2V5X2FybiI6InN0cmluZyIsImxhc3RfbW9kaWZpZWQiOiJzdHJpbmciLCJsYXllcnMiOlsibGlzdCIsInN0cmluZyJdLCJtZW1vcnlfc2l6ZSI6Im51bWJlciIsInBhY2thZ2VfdHlwZSI6InN0cmluZyIsInB1Ymxpc2giOiJib29sIiwicXVhbGlmaWVkX2FybiI6InN0cmluZyIsInJlc2VydmVkX2NvbmN1cnJlbnRfZXhlY3V0aW9ucyI6Im51bWJlciIsInJvbGUiOiJzdHJpbmciLCJydW50aW1lIjoic3RyaW5nIiwiczNfYnVja2V0Ijoic3RyaW5nIiwiczNfa2V5Ijoic3RyaW5nIiwiczNfb2JqZWN0X3ZlcnNpb24iOiJzdHJpbmciLCJzaWduaW5nX2pvYl9hcm4iOiJzdHJpbmciLCJzaWduaW5nX3Byb2ZpbGVfdmVyc2lvbl9hcm4iOiJzdHJpbmciLCJzb3VyY2VfY29kZV9oYXNoIjoic3RyaW5nIiwic291cmNlX2NvZGVfc2l6ZSI6Im51bWJlciIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl0sInRpbWVvdXQiOiJudW1iZXIiLCJ0aW1lb3V0cyI6WyJvYmplY3QiLHsiY3JlYXRlIjoic3RyaW5nIn1dLCJ0cmFjaW5nX2NvbmZpZyI6WyJsaXN0IixbIm9iamVjdCIseyJtb2RlIjoic3RyaW5nIn1dXSwidmVyc2lvbiI6InN0cmluZyIsInZwY19jb25maWciOlsibGlzdCIsWyJvYmplY3QiLHsic2VjdXJpdHlfZ3JvdXBfaWRzIjpbInNldCIsInN0cmluZyJdLCJzdWJuZXRfaWRzIjpbInNldCIsInN0cmluZyJdLCJ2cGNfaWQiOiJzdHJpbmcifV1dfV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOmxhbWJkYTpldS13ZXN0LTM6NTI2OTU0OTI5OTIzOmZ1bmN0aW9uOmZvbyIsImNvZGVfc2lnbmluZ19jb25maWdfYXJuIjoiYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzpjb2RlLXNpZ25pbmctY29uZmlnOmNzYy0wOTE3ZTM2YzUyNWJlYTRkMyIsImRlYWRfbGV0dGVyX2NvbmZpZyI6W10sImRlc2NyaXB0aW9uIjoiIiwiZW52aXJvbm1lbnQiOltdLCJmaWxlX3N5c3RlbV9jb25maWciOltdLCJmaWxlbmFtZSI6bnVsbCwiZnVuY3Rpb25fbmFtZSI6ImZvbyIsImhhbmRsZXIiOiJsYW1iZGEuaGFuZGxlciIsImlkIjoiZm9vIiwiaW1hZ2VfY29uZmlnIjpbXSwiaW1hZ2VfdXJpIjoiIiwiaW52b2tlX2FybiI6ImFybjphd3M6YXBpZ2F0ZXdheTpldS13ZXN0LTM6bGFtYmRhOnBhdGgvMjAxNS0wMy0zMS9mdW5jdGlvbnMvYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzpmdW5jdGlvbjpmb28vaW52b2NhdGlvbnMiLCJrbXNfa2V5X2FybiI6IiIsImxhc3RfbW9kaWZpZWQiOiIyMDIwLTEyLTA5VDEzOjI4OjUwLjMxOSswMDAwIiwibGF5ZXJzIjpbXSwibWVtb3J5X3NpemUiOjEyOCwicGFja2FnZV90eXBlIjoiWmlwIiwicHVibGlzaCI6bnVsbCwicXVhbGlmaWVkX2FybiI6ImFybjphd3M6bGFtYmRhOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6ZnVuY3Rpb246Zm9vOiRMQVRFU1QiLCJyZXNlcnZlZF9jb25jdXJyZW50X2V4ZWN1dGlvbnMiOi0xLCJyb2xlIjoiYXJuOmF3czppYW06OjUyNjk1NDkyOTkyMzpyb2xlL2lhbV9mb3JfbGFtYmRhIiwicnVudGltZSI6Im5vZGVqczEyLngiLCJzM19idWNrZXQiOm51bGwsInMzX2tleSI6bnVsbCwiczNfb2JqZWN0X3ZlcnNpb24iOm51bGwsInNpZ25pbmdfam9iX2FybiI6IiIsInNpZ25pbmdfcHJvZmlsZV92ZXJzaW9uX2FybiI6IiIsInNvdXJjZV9jb2RlX2hhc2giOiJQb2FBRWVPQ21FRlpvam5yaEVKdk56cytqZzcvdzFsTDlHaUZZdmxNNmF3PSIsInNvdXJjZV9jb2RlX3NpemUiOjM1MiwidGFncyI6e30sInRpbWVvdXQiOjMsInRpbWVvdXRzIjp7ImNyZWF0ZSI6bnVsbH0sInRyYWNpbmdfY29uZmlnIjpbeyJtb2RlIjoiUGFzc1Rocm91Z2gifV0sInZlcnNpb24iOiIkTEFURVNUIiwidnBjX2NvbmZpZyI6W119",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_lambda_function_signed/lambda.zip b/enumeration/remote/test/aws_lambda_function_signed/lambda.zip
deleted file mode 100644
index da87f50ea..000000000
Binary files a/enumeration/remote/test/aws_lambda_function_signed/lambda.zip and /dev/null differ
diff --git a/enumeration/remote/test/aws_lambda_function_signed/main.tf b/enumeration/remote/test/aws_lambda_function_signed/main.tf
deleted file mode 100644
index 2fdedfc62..000000000
--- a/enumeration/remote/test/aws_lambda_function_signed/main.tf
+++ /dev/null
@@ -1,46 +0,0 @@
-provider "aws" {
- region = "eu-west-3"
- version = "3.19.0"
-}
-
-resource "aws_signer_signing_profile" "example" {
- name_prefix = "example"
- platform_id = "AWSLambda-SHA384-ECDSA"
-}
-resource "aws_lambda_code_signing_config" "example" {
- allowed_publishers {
- signing_profile_version_arns = [aws_signer_signing_profile.example.version_arn]
- }
- policies {
- untrusted_artifact_on_deployment = "Enforce"
- }
-}
-
-resource "aws_iam_role" "test-iam_for_lambda" {
- name = "iam_for_lambda"
-
- assume_role_policy = <
-resource "aws_s3_bucket" "bucket" {
- bucket = "bucket-martin-test-drift"
-}
-
-
-resource "aws_lambda_permission" "allow1_bucket" {
- statement_id = "Allow1ExecutionFromS3Bucket"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func1.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket.arn
-}
-
-resource "aws_lambda_permission" "allow2_bucket" {
- statement_id = "Allow2ExecutionFromS3Bucket"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func2.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket.arn
-}
-resource "aws_s3_bucket_notification" "bucket_notification" {
- bucket = aws_s3_bucket.bucket.id
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func1.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "AWSLogs/"
- filter_suffix = ".log"
- }
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func2.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "OtherLogs/"
- filter_suffix = ".log"
- }
-}
-
-resource "aws_s3_bucket_policy" "bucket_policy" {
- bucket = aws_s3_bucket.bucket.id
- policy = <
-
-//
-resource "aws_s3_bucket" "bucket2" {
- provider = aws.eu-west-3
- bucket = "bucket-martin-test-drift2"
-}
-
-resource "aws_lambda_permission" "allow1_bucket2" {
- provider = aws.eu-west-3
- statement_id = "Allow1ExecutionFromS3Bucket2"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func1w3.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket2.arn
-}
-
-resource "aws_lambda_permission" "allow2_bucket2" {
- provider = aws.eu-west-3
- statement_id = "Allow2ExecutionFromS3Bucket2"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func2w3.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket2.arn
-}
-resource "aws_s3_bucket_notification" "bucket_notification2" {
- provider = aws.eu-west-3
- bucket = aws_s3_bucket.bucket2.id
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func1w3.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "AWSLogs/"
- filter_suffix = ".log"
- }
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func2w3.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "OtherLogs/"
- filter_suffix = ".log"
- }
-}
-
-resource "aws_s3_bucket_policy" "bucket2_policy" {
- provider = aws.eu-west-3
- bucket = aws_s3_bucket.bucket2.id
- policy = <
-
-//
-resource "aws_s3_bucket" "bucket3" {
- provider = aws.ap-northeast-1
- bucket = "bucket-martin-test-drift3"
-}
-
-resource "aws_lambda_permission" "allow1_bucket3" {
- provider = aws.ap-northeast-1
- statement_id = "Allow1ExecutionFromS3Bucket3"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func1ap.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket3.arn
-}
-
-resource "aws_lambda_permission" "allow2_bucket3" {
- provider = aws.ap-northeast-1
- statement_id = "Allow2ExecutionFromS3Bucket3"
- action = "lambda:InvokeFunction"
- function_name = aws_lambda_function.func2ap.arn
- principal = "s3.amazonaws.com"
- source_arn = aws_s3_bucket.bucket3.arn
-}
-resource "aws_s3_bucket_notification" "bucket_notification3" {
- provider = aws.ap-northeast-1
- bucket = aws_s3_bucket.bucket3.id
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func1ap.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "AWSLogs/"
- filter_suffix = ".log"
- }
-
- lambda_function {
- lambda_function_arn = aws_lambda_function.func2ap.arn
- events = ["s3:ObjectCreated:*"]
- filter_prefix = "OtherLogs/"
- filter_suffix = ".log"
- }
-}
-
-resource "aws_s3_bucket_policy" "bucket3_policy" {
- provider = aws.ap-northeast-1
- bucket = aws_s3_bucket.bucket3.id
- policy = <
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_multiple/results.golden.json b/enumeration/remote/test/aws_s3_bucket_multiple/results.golden.json
deleted file mode 100755
index cfe617177..000000000
--- a/enumeration/remote/test/aws_s3_bucket_multiple/results.golden.json
+++ /dev/null
@@ -1,34 +0,0 @@
-[
- {
- "acceleration_status": "",
- "acl": null,
- "arn": "arn:aws:s3:::bucket-martin-test-drift2",
- "bucket": "bucket-martin-test-drift2",
- "bucket_domain_name": "bucket-martin-test-drift2.s3.amazonaws.com",
- "bucket_prefix": null,
- "bucket_regional_domain_name": "bucket-martin-test-drift2.s3.eu-west-3.amazonaws.com",
- "cors_rule": [],
- "force_destroy": null,
- "grant": [],
- "hosted_zone_id": "Z3R1K369G5AVDG",
- "id": "bucket-martin-test-drift2",
- "lifecycle_rule": [],
- "logging": [],
- "object_lock_configuration": [],
- "policy": null,
- "region": "eu-west-3",
- "replication_configuration": [],
- "request_payer": "BucketOwner",
- "server_side_encryption_configuration": [],
- "tags": {},
- "versioning": [
- {
- "enabled": false,
- "mfa_delete": false
- }
- ],
- "website": [],
- "website_domain": null,
- "website_endpoint": null
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_notifications_multiple/aws_s3_bucket_notification-bucket-martin-test-drift2-eu-west-3.res.golden.json b/enumeration/remote/test/aws_s3_bucket_notifications_multiple/aws_s3_bucket_notification-bucket-martin-test-drift2-eu-west-3.res.golden.json
deleted file mode 100755
index d1096d7c8..000000000
--- a/enumeration/remote/test/aws_s3_bucket_notifications_multiple/aws_s3_bucket_notification-bucket-martin-test-drift2-eu-west-3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJsYW1iZGFfZnVuY3Rpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiZXZlbnRzIjpbInNldCIsInN0cmluZyJdLCJmaWx0ZXJfcHJlZml4Ijoic3RyaW5nIiwiZmlsdGVyX3N1ZmZpeCI6InN0cmluZyIsImlkIjoic3RyaW5nIiwibGFtYmRhX2Z1bmN0aW9uX2FybiI6InN0cmluZyJ9XV0sInF1ZXVlIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInF1ZXVlX2FybiI6InN0cmluZyJ9XV0sInRvcGljIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInRvcGljX2FybiI6InN0cmluZyJ9XV19XQ==",
- "Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwiaWQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwibGFtYmRhX2Z1bmN0aW9uIjpbeyJldmVudHMiOlsiczM6T2JqZWN0Q3JlYXRlZDoqIl0sImZpbHRlcl9wcmVmaXgiOiJBV1NMb2dzLyIsImZpbHRlcl9zdWZmaXgiOiIubG9nIiwiaWQiOiJ0Zi1zMy1sYW1iZGEtMjAyMDExMDMxNjUzNTQ5MjY2MDAwMDAwMDEiLCJsYW1iZGFfZnVuY3Rpb25fYXJuIjoiYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzpmdW5jdGlvbjpleGFtcGxlX2xhbWJkYV9uYW1lMSJ9LHsiZXZlbnRzIjpbInMzOk9iamVjdENyZWF0ZWQ6KiJdLCJmaWx0ZXJfcHJlZml4IjoiT3RoZXJMb2dzLyIsImZpbHRlcl9zdWZmaXgiOiIubG9nIiwiaWQiOiJ0Zi1zMy1sYW1iZGEtMjAyMDExMDMxNjUzNTQ5MjY2MDAwMDAwMDIiLCJsYW1iZGFfZnVuY3Rpb25fYXJuIjoiYXJuOmF3czpsYW1iZGE6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzpmdW5jdGlvbjpleGFtcGxlX2xhbWJkYV9uYW1lMiJ9XSwicXVldWUiOltdLCJ0b3BpYyI6W119",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_notifications_multiple/results.golden.json b/enumeration/remote/test/aws_s3_bucket_notifications_multiple/results.golden.json
deleted file mode 100755
index fb56ac1b1..000000000
--- a/enumeration/remote/test/aws_s3_bucket_notifications_multiple/results.golden.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "bucket": "bucket-martin-test-drift2",
- "id": "bucket-martin-test-drift2",
- "lambda_function": [
- {
- "events": [
- "s3:ObjectCreated:*"
- ],
- "filter_prefix": "AWSLogs/",
- "filter_suffix": ".log",
- "id": "tf-s3-lambda-20201103165354926600000001",
- "lambda_function_arn": "arn:aws:lambda:eu-west-3:526954929923:function:example_lambda_name1"
- },
- {
- "events": [
- "s3:ObjectCreated:*"
- ],
- "filter_prefix": "OtherLogs/",
- "filter_suffix": ".log",
- "id": "tf-s3-lambda-20201103165354926600000002",
- "lambda_function_arn": "arn:aws:lambda:eu-west-3:526954929923:function:example_lambda_name2"
- }
- ],
- "queue": [],
- "topic": []
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/aws_s3_bucket_notification-dritftctl-test-no-notifications.res.golden.json b/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/aws_s3_bucket_notification-dritftctl-test-no-notifications.res.golden.json
deleted file mode 100755
index 0bc299a83..000000000
--- a/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/aws_s3_bucket_notification-dritftctl-test-no-notifications.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJsYW1iZGFfZnVuY3Rpb24iOlsibGlzdCIsWyJvYmplY3QiLHsiZXZlbnRzIjpbInNldCIsInN0cmluZyJdLCJmaWx0ZXJfcHJlZml4Ijoic3RyaW5nIiwiZmlsdGVyX3N1ZmZpeCI6InN0cmluZyIsImlkIjoic3RyaW5nIiwibGFtYmRhX2Z1bmN0aW9uX2FybiI6InN0cmluZyJ9XV0sInF1ZXVlIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInF1ZXVlX2FybiI6InN0cmluZyJ9XV0sInRvcGljIjpbImxpc3QiLFsib2JqZWN0Iix7ImV2ZW50cyI6WyJzZXQiLCJzdHJpbmciXSwiZmlsdGVyX3ByZWZpeCI6InN0cmluZyIsImZpbHRlcl9zdWZmaXgiOiJzdHJpbmciLCJpZCI6InN0cmluZyIsInRvcGljX2FybiI6InN0cmluZyJ9XV19XQ==",
- "Val": "eyJidWNrZXQiOiJkcml0ZnRjdGwtdGVzdC1uby1ub3RpZmljYXRpb25zIiwiaWQiOiJkcml0ZnRjdGwtdGVzdC1uby1ub3RpZmljYXRpb25zIiwibGFtYmRhX2Z1bmN0aW9uIjpbXSwicXVldWUiOltdLCJ0b3BpYyI6W119",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/terraform.tf b/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/terraform.tf
deleted file mode 100644
index fd6064aed..000000000
--- a/enumeration/remote/test/aws_s3_bucket_notifications_no_notif/terraform.tf
+++ /dev/null
@@ -1,11 +0,0 @@
-provider "aws" {
- version = "3.5.0"
- region = "eu-west-3"
-}
-
-# simple default bucket case
-resource "aws_s3_bucket" "cs_bucket_001" {
- bucket = "dritftctl-test-no-notifications"
- acl = "private"
- count = 1
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_policies_multiple/aws_s3_bucket_policy-bucket-martin-test-drift2-eu-west-3.res.golden.json b/enumeration/remote/test/aws_s3_bucket_policies_multiple/aws_s3_bucket_policy-bucket-martin-test-drift2-eu-west-3.res.golden.json
deleted file mode 100644
index a149612e7..000000000
--- a/enumeration/remote/test/aws_s3_bucket_policies_multiple/aws_s3_bucket_policy-bucket-martin-test-drift2-eu-west-3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYnVja2V0Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmcifV0=",
- "Val": "eyJidWNrZXQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwiaWQiOiJidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyIiwicG9saWN5Ijoie1wiVmVyc2lvblwiOlwiMjAxMi0xMC0xN1wiLFwiU3RhdGVtZW50XCI6W3tcIlNpZFwiOlwiUHVibGljUmVhZEdldE9iamVjdFwiLFwiRWZmZWN0XCI6XCJBbGxvd1wiLFwiUHJpbmNpcGFsXCI6XCIqXCIsXCJBY3Rpb25cIjpcInMzOkdldE9iamVjdFwiLFwiUmVzb3VyY2VcIjpcImFybjphd3M6czM6OjpidWNrZXQtbWFydGluLXRlc3QtZHJpZnQyLypcIn1dfSJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_policies_multiple/results.golden.json b/enumeration/remote/test/aws_s3_bucket_policies_multiple/results.golden.json
deleted file mode 100644
index 5be244702..000000000
--- a/enumeration/remote/test/aws_s3_bucket_policies_multiple/results.golden.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "bucket": "bucket-martin-test-drift2",
- "id": "bucket-martin-test-drift2",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"PublicReadGetObject\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::bucket-martin-test-drift2/*\"}]}"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_s3_bucket_policy_no_policy/terraform.tf b/enumeration/remote/test/aws_s3_bucket_policy_no_policy/terraform.tf
deleted file mode 100644
index 5bf127a54..000000000
--- a/enumeration/remote/test/aws_s3_bucket_policy_no_policy/terraform.tf
+++ /dev/null
@@ -1,11 +0,0 @@
-provider "aws" {
- version = "3.5.0"
- region = "eu-west-3"
-}
-
-# simple default bucket case
-resource "aws_s3_bucket" "cs_bucket_001" {
- bucket = "dritftctl-test-no-policy"
- acl = "private"
- count = 1
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic.res.golden.json b/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic.res.golden.json
deleted file mode 100755
index 8ec4f0b89..000000000
--- a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXBwbGljYXRpb25fZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6InN0cmluZyIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJhcHBsaWNhdGlvbl9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiYXJuIjoic3RyaW5nIiwiZGVsaXZlcnlfcG9saWN5Ijoic3RyaW5nIiwiZGlzcGxheV9uYW1lIjoic3RyaW5nIiwiaHR0cF9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiaWQiOiJzdHJpbmciLCJrbXNfbWFzdGVyX2tleV9pZCI6InN0cmluZyIsImxhbWJkYV9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwibGFtYmRhX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJsYW1iZGFfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsIm5hbWUiOiJzdHJpbmciLCJuYW1lX3ByZWZpeCI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInNxc19mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwic3FzX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJzcXNfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcHBsaWNhdGlvbl9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwiYXBwbGljYXRpb25fc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsImFybiI6ImFybjphd3M6c25zOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljIiwiZGVsaXZlcnlfcG9saWN5Ijoie1wiaHR0cFwiOntcImRlZmF1bHRIZWFsdGh5UmV0cnlQb2xpY3lcIjp7XCJtaW5EZWxheVRhcmdldFwiOjIwLFwibWF4RGVsYXlUYXJnZXRcIjoyMCxcIm51bVJldHJpZXNcIjozLFwibnVtTWF4RGVsYXlSZXRyaWVzXCI6MCxcIm51bU5vRGVsYXlSZXRyaWVzXCI6MCxcIm51bU1pbkRlbGF5UmV0cmllc1wiOjAsXCJiYWNrb2ZmRnVuY3Rpb25cIjpcImxpbmVhclwifSxcImRpc2FibGVTdWJzY3JpcHRpb25PdmVycmlkZXNcIjpmYWxzZSxcImRlZmF1bHRUaHJvdHRsZVBvbGljeVwiOntcIm1heFJlY2VpdmVzUGVyU2Vjb25kXCI6MX19fSIsImRpc3BsYXlfbmFtZSI6IiIsImh0dHBfZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6IiIsImh0dHBfc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImh0dHBfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6bnVsbCwiaWQiOiJhcm46YXdzOnNuczpldS13ZXN0LTM6NTI2OTU0OTI5OTIzOnVzZXItdXBkYXRlcy10b3BpYyIsImttc19tYXN0ZXJfa2V5X2lkIjoiIiwibGFtYmRhX2ZhaWx1cmVfZmVlZGJhY2tfcm9sZV9hcm4iOiIiLCJsYW1iZGFfc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImxhbWJkYV9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjpudWxsLCJuYW1lIjoidXNlci11cGRhdGVzLXRvcGljIiwibmFtZV9wcmVmaXgiOm51bGwsInBvbGljeSI6IntcIlZlcnNpb25cIjpcIjIwMDgtMTAtMTdcIixcIklkXCI6XCJfX2RlZmF1bHRfcG9saWN5X0lEXCIsXCJTdGF0ZW1lbnRcIjpbe1wiU2lkXCI6XCJfX2RlZmF1bHRfc3RhdGVtZW50X0lEXCIsXCJFZmZlY3RcIjpcIkFsbG93XCIsXCJQcmluY2lwYWxcIjp7XCJBV1NcIjpcIipcIn0sXCJBY3Rpb25cIjpbXCJTTlM6R2V0VG9waWNBdHRyaWJ1dGVzXCIsXCJTTlM6U2V0VG9waWNBdHRyaWJ1dGVzXCIsXCJTTlM6QWRkUGVybWlzc2lvblwiLFwiU05TOlJlbW92ZVBlcm1pc3Npb25cIixcIlNOUzpEZWxldGVUb3BpY1wiLFwiU05TOlN1YnNjcmliZVwiLFwiU05TOkxpc3RTdWJzY3JpcHRpb25zQnlUb3BpY1wiLFwiU05TOlB1Ymxpc2hcIixcIlNOUzpSZWNlaXZlXCJdLFwiUmVzb3VyY2VcIjpcImFybjphd3M6c25zOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljXCIsXCJDb25kaXRpb25cIjp7XCJTdHJpbmdFcXVhbHNcIjp7XCJBV1M6U291cmNlT3duZXJcIjpcIjUyNjk1NDkyOTkyM1wifX19XX0iLCJzcXNfZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6IiIsInNxc19zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwic3FzX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsInRhZ3MiOnt9fQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2.res.golden.json b/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2.res.golden.json
deleted file mode 100755
index c65d70e7b..000000000
--- a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2-arn_aws_sns_eu-west-3_526954929923_user-updates-topic2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXBwbGljYXRpb25fZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6InN0cmluZyIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJhcHBsaWNhdGlvbl9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiYXJuIjoic3RyaW5nIiwiZGVsaXZlcnlfcG9saWN5Ijoic3RyaW5nIiwiZGlzcGxheV9uYW1lIjoic3RyaW5nIiwiaHR0cF9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiaWQiOiJzdHJpbmciLCJrbXNfbWFzdGVyX2tleV9pZCI6InN0cmluZyIsImxhbWJkYV9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwibGFtYmRhX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJsYW1iZGFfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsIm5hbWUiOiJzdHJpbmciLCJuYW1lX3ByZWZpeCI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInNxc19mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwic3FzX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJzcXNfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcHBsaWNhdGlvbl9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwiYXBwbGljYXRpb25fc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsImFybiI6ImFybjphd3M6c25zOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljMiIsImRlbGl2ZXJ5X3BvbGljeSI6IntcImh0dHBcIjp7XCJkZWZhdWx0SGVhbHRoeVJldHJ5UG9saWN5XCI6e1wibWluRGVsYXlUYXJnZXRcIjoyMCxcIm1heERlbGF5VGFyZ2V0XCI6MjAsXCJudW1SZXRyaWVzXCI6MyxcIm51bU1heERlbGF5UmV0cmllc1wiOjAsXCJudW1Ob0RlbGF5UmV0cmllc1wiOjAsXCJudW1NaW5EZWxheVJldHJpZXNcIjowLFwiYmFja29mZkZ1bmN0aW9uXCI6XCJsaW5lYXJcIn0sXCJkaXNhYmxlU3Vic2NyaXB0aW9uT3ZlcnJpZGVzXCI6ZmFsc2UsXCJkZWZhdWx0VGhyb3R0bGVQb2xpY3lcIjp7XCJtYXhSZWNlaXZlc1BlclNlY29uZFwiOjF9fX0iLCJkaXNwbGF5X25hbWUiOiIiLCJodHRwX2ZhaWx1cmVfZmVlZGJhY2tfcm9sZV9hcm4iOiIiLCJodHRwX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiIiLCJodHRwX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsImlkIjoiYXJuOmF3czpzbnM6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzp1c2VyLXVwZGF0ZXMtdG9waWMyIiwia21zX21hc3Rlcl9rZXlfaWQiOiIiLCJsYW1iZGFfZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6IiIsImxhbWJkYV9zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwibGFtYmRhX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsIm5hbWUiOiJ1c2VyLXVwZGF0ZXMtdG9waWMyIiwibmFtZV9wcmVmaXgiOm51bGwsInBvbGljeSI6IntcIlZlcnNpb25cIjpcIjIwMDgtMTAtMTdcIixcIklkXCI6XCJfX2RlZmF1bHRfcG9saWN5X0lEXCIsXCJTdGF0ZW1lbnRcIjpbe1wiU2lkXCI6XCJfX2RlZmF1bHRfc3RhdGVtZW50X0lEXCIsXCJFZmZlY3RcIjpcIkFsbG93XCIsXCJQcmluY2lwYWxcIjp7XCJBV1NcIjpcIipcIn0sXCJBY3Rpb25cIjpbXCJTTlM6R2V0VG9waWNBdHRyaWJ1dGVzXCIsXCJTTlM6U2V0VG9waWNBdHRyaWJ1dGVzXCIsXCJTTlM6QWRkUGVybWlzc2lvblwiLFwiU05TOlJlbW92ZVBlcm1pc3Npb25cIixcIlNOUzpEZWxldGVUb3BpY1wiLFwiU05TOlN1YnNjcmliZVwiLFwiU05TOkxpc3RTdWJzY3JpcHRpb25zQnlUb3BpY1wiLFwiU05TOlB1Ymxpc2hcIixcIlNOUzpSZWNlaXZlXCJdLFwiUmVzb3VyY2VcIjpcImFybjphd3M6c25zOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljMlwiLFwiQ29uZGl0aW9uXCI6e1wiU3RyaW5nRXF1YWxzXCI6e1wiQVdTOlNvdXJjZU93bmVyXCI6XCI1MjY5NTQ5Mjk5MjNcIn19fV19Iiwic3FzX2ZhaWx1cmVfZmVlZGJhY2tfcm9sZV9hcm4iOiIiLCJzcXNfc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsInNxc19zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjpudWxsLCJ0YWdzIjp7fX0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3.res.golden.json b/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3.res.golden.json
deleted file mode 100755
index dfbd0a9e0..000000000
--- a/enumeration/remote/test/aws_sns_topic_multiple/aws_sns_topic-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3-arn_aws_sns_eu-west-3_526954929923_user-updates-topic3.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXBwbGljYXRpb25fZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6InN0cmluZyIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJhcHBsaWNhdGlvbl9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiYXJuIjoic3RyaW5nIiwiZGVsaXZlcnlfcG9saWN5Ijoic3RyaW5nIiwiZGlzcGxheV9uYW1lIjoic3RyaW5nIiwiaHR0cF9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwiaHR0cF9zdWNjZXNzX2ZlZWRiYWNrX3NhbXBsZV9yYXRlIjoibnVtYmVyIiwiaWQiOiJzdHJpbmciLCJrbXNfbWFzdGVyX2tleV9pZCI6InN0cmluZyIsImxhbWJkYV9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwibGFtYmRhX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJsYW1iZGFfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsIm5hbWUiOiJzdHJpbmciLCJuYW1lX3ByZWZpeCI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInNxc19mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoic3RyaW5nIiwic3FzX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiJzdHJpbmciLCJzcXNfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6Im51bWJlciIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl19XQ==",
- "Val": "eyJhcHBsaWNhdGlvbl9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwiYXBwbGljYXRpb25fc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImFwcGxpY2F0aW9uX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsImFybiI6ImFybjphd3M6c25zOmV1LXdlc3QtMzo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljMyIsImRlbGl2ZXJ5X3BvbGljeSI6IiIsImRpc3BsYXlfbmFtZSI6IiIsImh0dHBfZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6IiIsImh0dHBfc3VjY2Vzc19mZWVkYmFja19yb2xlX2FybiI6IiIsImh0dHBfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6bnVsbCwiaWQiOiJhcm46YXdzOnNuczpldS13ZXN0LTM6NTI2OTU0OTI5OTIzOnVzZXItdXBkYXRlcy10b3BpYzMiLCJrbXNfbWFzdGVyX2tleV9pZCI6IiIsImxhbWJkYV9mYWlsdXJlX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwibGFtYmRhX3N1Y2Nlc3NfZmVlZGJhY2tfcm9sZV9hcm4iOiIiLCJsYW1iZGFfc3VjY2Vzc19mZWVkYmFja19zYW1wbGVfcmF0ZSI6bnVsbCwibmFtZSI6InVzZXItdXBkYXRlcy10b3BpYzMiLCJuYW1lX3ByZWZpeCI6bnVsbCwicG9saWN5Ijoie1wiVmVyc2lvblwiOlwiMjAwOC0xMC0xN1wiLFwiSWRcIjpcIl9fZGVmYXVsdF9wb2xpY3lfSURcIixcIlN0YXRlbWVudFwiOlt7XCJTaWRcIjpcIl9fZGVmYXVsdF9zdGF0ZW1lbnRfSURcIixcIkVmZmVjdFwiOlwiQWxsb3dcIixcIlByaW5jaXBhbFwiOntcIkFXU1wiOlwiKlwifSxcIkFjdGlvblwiOltcIlNOUzpHZXRUb3BpY0F0dHJpYnV0ZXNcIixcIlNOUzpTZXRUb3BpY0F0dHJpYnV0ZXNcIixcIlNOUzpBZGRQZXJtaXNzaW9uXCIsXCJTTlM6UmVtb3ZlUGVybWlzc2lvblwiLFwiU05TOkRlbGV0ZVRvcGljXCIsXCJTTlM6U3Vic2NyaWJlXCIsXCJTTlM6TGlzdFN1YnNjcmlwdGlvbnNCeVRvcGljXCIsXCJTTlM6UHVibGlzaFwiLFwiU05TOlJlY2VpdmVcIl0sXCJSZXNvdXJjZVwiOlwiYXJuOmF3czpzbnM6ZXUtd2VzdC0zOjUyNjk1NDkyOTkyMzp1c2VyLXVwZGF0ZXMtdG9waWMzXCIsXCJDb25kaXRpb25cIjp7XCJTdHJpbmdFcXVhbHNcIjp7XCJBV1M6U291cmNlT3duZXJcIjpcIjUyNjk1NDkyOTkyM1wifX19XX0iLCJzcXNfZmFpbHVyZV9mZWVkYmFja19yb2xlX2FybiI6IiIsInNxc19zdWNjZXNzX2ZlZWRiYWNrX3JvbGVfYXJuIjoiIiwic3FzX3N1Y2Nlc3NfZmVlZGJhY2tfc2FtcGxlX3JhdGUiOm51bGwsInRhZ3MiOnt9fQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_multiple/main.tf b/enumeration/remote/test/aws_sns_topic_multiple/main.tf
deleted file mode 100644
index f9755a175..000000000
--- a/enumeration/remote/test/aws_sns_topic_multiple/main.tf
+++ /dev/null
@@ -1,60 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-resource "aws_sns_topic" "test" {
- name = "my-topic-with-policy"
-}
-
-resource "aws_sns_topic_policy" "default" {
- arn = aws_sns_topic.test.arn
-
- policy = data.aws_iam_policy_document.sns_topic_policy.json
-}
-
-resource "aws_sns_topic" "test2" {
- name = "my-topic-with-policy2"
-}
-
-resource "aws_sns_topic_policy" "default2" {
- arn = aws_sns_topic.test2.arn
-
- policy = data.aws_iam_policy_document.sns_topic_policy.json
-}
-
-data "aws_iam_policy_document" "sns_topic_policy" {
- policy_id = "__default_policy_ID"
-
- statement {
- actions = [
- "SNS:Subscribe",
- "SNS:SetTopicAttributes",
- "SNS:RemovePermission",
- "SNS:Receive",
- "SNS:Publish",
- "SNS:ListSubscriptionsByTopic",
- "SNS:GetTopicAttributes",
- "SNS:DeleteTopic",
- "SNS:AddPermission",
- ]
-
- condition {
- test = "StringEquals"
- variable = "AWS:SourceOwner"
- values = []
- }
-
- effect = "Allow"
-
- principals {
- type = "AWS"
- identifiers = ["*"]
- }
-
- resources = [
- aws_sns_topic.test.arn,
- ]
-
- sid = "__default_statement_ID"
- }
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_multiple/results.golden.json b/enumeration/remote/test/aws_sns_topic_multiple/results.golden.json
deleted file mode 100755
index 51ed843e5..000000000
--- a/enumeration/remote/test/aws_sns_topic_multiple/results.golden.json
+++ /dev/null
@@ -1,71 +0,0 @@
-[
- {
- "application_failure_feedback_role_arn": "",
- "application_success_feedback_role_arn": "",
- "application_success_feedback_sample_rate": null,
- "arn": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic2",
- "delivery_policy": "{\"http\":{\"defaultHealthyRetryPolicy\":{\"minDelayTarget\":20,\"maxDelayTarget\":20,\"numRetries\":3,\"numMaxDelayRetries\":0,\"numNoDelayRetries\":0,\"numMinDelayRetries\":0,\"backoffFunction\":\"linear\"},\"disableSubscriptionOverrides\":false,\"defaultThrottlePolicy\":{\"maxReceivesPerSecond\":1}}}",
- "display_name": "",
- "http_failure_feedback_role_arn": "",
- "http_success_feedback_role_arn": "",
- "http_success_feedback_sample_rate": null,
- "id": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic2",
- "kms_master_key_id": "",
- "lambda_failure_feedback_role_arn": "",
- "lambda_success_feedback_role_arn": "",
- "lambda_success_feedback_sample_rate": null,
- "name": "user-updates-topic2",
- "name_prefix": null,
- "policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:GetTopicAttributes\",\"SNS:SetTopicAttributes\",\"SNS:AddPermission\",\"SNS:RemovePermission\",\"SNS:DeleteTopic\",\"SNS:Subscribe\",\"SNS:ListSubscriptionsByTopic\",\"SNS:Publish\",\"SNS:Receive\"],\"Resource\":\"arn:aws:sns:eu-west-3:526954929923:user-updates-topic2\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"526954929923\"}}}]}",
- "sqs_failure_feedback_role_arn": "",
- "sqs_success_feedback_role_arn": "",
- "sqs_success_feedback_sample_rate": null,
- "tags": {}
- },
- {
- "application_failure_feedback_role_arn": "",
- "application_success_feedback_role_arn": "",
- "application_success_feedback_sample_rate": null,
- "arn": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic3",
- "delivery_policy": "",
- "display_name": "",
- "http_failure_feedback_role_arn": "",
- "http_success_feedback_role_arn": "",
- "http_success_feedback_sample_rate": null,
- "id": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic3",
- "kms_master_key_id": "",
- "lambda_failure_feedback_role_arn": "",
- "lambda_success_feedback_role_arn": "",
- "lambda_success_feedback_sample_rate": null,
- "name": "user-updates-topic3",
- "name_prefix": null,
- "policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:GetTopicAttributes\",\"SNS:SetTopicAttributes\",\"SNS:AddPermission\",\"SNS:RemovePermission\",\"SNS:DeleteTopic\",\"SNS:Subscribe\",\"SNS:ListSubscriptionsByTopic\",\"SNS:Publish\",\"SNS:Receive\"],\"Resource\":\"arn:aws:sns:eu-west-3:526954929923:user-updates-topic3\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"526954929923\"}}}]}",
- "sqs_failure_feedback_role_arn": "",
- "sqs_success_feedback_role_arn": "",
- "sqs_success_feedback_sample_rate": null,
- "tags": {}
- },
- {
- "application_failure_feedback_role_arn": "",
- "application_success_feedback_role_arn": "",
- "application_success_feedback_sample_rate": null,
- "arn": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic",
- "delivery_policy": "{\"http\":{\"defaultHealthyRetryPolicy\":{\"minDelayTarget\":20,\"maxDelayTarget\":20,\"numRetries\":3,\"numMaxDelayRetries\":0,\"numNoDelayRetries\":0,\"numMinDelayRetries\":0,\"backoffFunction\":\"linear\"},\"disableSubscriptionOverrides\":false,\"defaultThrottlePolicy\":{\"maxReceivesPerSecond\":1}}}",
- "display_name": "",
- "http_failure_feedback_role_arn": "",
- "http_success_feedback_role_arn": "",
- "http_success_feedback_sample_rate": null,
- "id": "arn:aws:sns:eu-west-3:526954929923:user-updates-topic",
- "kms_master_key_id": "",
- "lambda_failure_feedback_role_arn": "",
- "lambda_success_feedback_role_arn": "",
- "lambda_success_feedback_sample_rate": null,
- "name": "user-updates-topic",
- "name_prefix": null,
- "policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:GetTopicAttributes\",\"SNS:SetTopicAttributes\",\"SNS:AddPermission\",\"SNS:RemovePermission\",\"SNS:DeleteTopic\",\"SNS:Subscribe\",\"SNS:ListSubscriptionsByTopic\",\"SNS:Publish\",\"SNS:Receive\"],\"Resource\":\"arn:aws:sns:eu-west-3:526954929923:user-updates-topic\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"526954929923\"}}}]}",
- "sqs_failure_feedback_role_arn": "",
- "sqs_success_feedback_role_arn": "",
- "sqs_success_feedback_sample_rate": null,
- "tags": {}
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy.res.golden.json b/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy.res.golden.json
deleted file mode 100755
index 3bad5d407..000000000
--- a/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmcifV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOm15LXRvcGljLXdpdGgtcG9saWN5IiwiaWQiOiJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOm15LXRvcGljLXdpdGgtcG9saWN5IiwicG9saWN5Ijoie1wiVmVyc2lvblwiOlwiMjAxMi0xMC0xN1wiLFwiSWRcIjpcIl9fZGVmYXVsdF9wb2xpY3lfSURcIixcIlN0YXRlbWVudFwiOlt7XCJTaWRcIjpcIl9fZGVmYXVsdF9zdGF0ZW1lbnRfSURcIixcIkVmZmVjdFwiOlwiQWxsb3dcIixcIlByaW5jaXBhbFwiOntcIkFXU1wiOlwiKlwifSxcIkFjdGlvblwiOltcIlNOUzpTdWJzY3JpYmVcIixcIlNOUzpTZXRUb3BpY0F0dHJpYnV0ZXNcIixcIlNOUzpSZW1vdmVQZXJtaXNzaW9uXCIsXCJTTlM6UmVjZWl2ZVwiLFwiU05TOlB1Ymxpc2hcIixcIlNOUzpMaXN0U3Vic2NyaXB0aW9uc0J5VG9waWNcIixcIlNOUzpHZXRUb3BpY0F0dHJpYnV0ZXNcIixcIlNOUzpEZWxldGVUb3BpY1wiLFwiU05TOkFkZFBlcm1pc3Npb25cIl0sXCJSZXNvdXJjZVwiOlwiYXJuOmF3czpzbnM6dXMtZWFzdC0xOjUyNjk1NDkyOTkyMzpteS10b3BpYy13aXRoLXBvbGljeVwiLFwiQ29uZGl0aW9uXCI6e1wiU3RyaW5nRXF1YWxzXCI6e1wiQVdTOlNvdXJjZU93bmVyXCI6W119fX1dfSJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2.res.golden.json b/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2.res.golden.json
deleted file mode 100755
index 9775b4a44..000000000
--- a/enumeration/remote/test/aws_sns_topic_policy_multiple/aws_sns_topic_policy-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2-arn_aws_sns_us-east-1_526954929923_my-topic-with-policy2.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmcifV0=",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOm15LXRvcGljLXdpdGgtcG9saWN5MiIsImlkIjoiYXJuOmF3czpzbnM6dXMtZWFzdC0xOjUyNjk1NDkyOTkyMzpteS10b3BpYy13aXRoLXBvbGljeTIiLCJwb2xpY3kiOiJ7XCJWZXJzaW9uXCI6XCIyMDEyLTEwLTE3XCIsXCJJZFwiOlwiX19kZWZhdWx0X3BvbGljeV9JRFwiLFwiU3RhdGVtZW50XCI6W3tcIlNpZFwiOlwiX19kZWZhdWx0X3N0YXRlbWVudF9JRFwiLFwiRWZmZWN0XCI6XCJBbGxvd1wiLFwiUHJpbmNpcGFsXCI6e1wiQVdTXCI6XCIqXCJ9LFwiQWN0aW9uXCI6W1wiU05TOlN1YnNjcmliZVwiLFwiU05TOlNldFRvcGljQXR0cmlidXRlc1wiLFwiU05TOlJlbW92ZVBlcm1pc3Npb25cIixcIlNOUzpSZWNlaXZlXCIsXCJTTlM6UHVibGlzaFwiLFwiU05TOkxpc3RTdWJzY3JpcHRpb25zQnlUb3BpY1wiLFwiU05TOkdldFRvcGljQXR0cmlidXRlc1wiLFwiU05TOkRlbGV0ZVRvcGljXCIsXCJTTlM6QWRkUGVybWlzc2lvblwiXSxcIlJlc291cmNlXCI6XCJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOm15LXRvcGljLXdpdGgtcG9saWN5XCIsXCJDb25kaXRpb25cIjp7XCJTdHJpbmdFcXVhbHNcIjp7XCJBV1M6U291cmNlT3duZXJcIjpbXX19fV19In0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_policy_multiple/results.golden.json b/enumeration/remote/test/aws_sns_topic_policy_multiple/results.golden.json
deleted file mode 100755
index 100bb8bbe..000000000
--- a/enumeration/remote/test/aws_sns_topic_policy_multiple/results.golden.json
+++ /dev/null
@@ -1,12 +0,0 @@
-[
- {
- "arn": "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy2",
- "id": "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy2",
- "policy": "{\"Version\":\"2012-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Subscribe\",\"SNS:SetTopicAttributes\",\"SNS:RemovePermission\",\"SNS:Receive\",\"SNS:Publish\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:AddPermission\"],\"Resource\":\"arn:aws:sns:us-east-1:526954929923:my-topic-with-policy\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":[]}}}]}"
- },
- {
- "arn": "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy",
- "id": "arn:aws:sns:us-east-1:526954929923:my-topic-with-policy",
- "policy": "{\"Version\":\"2012-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Subscribe\",\"SNS:SetTopicAttributes\",\"SNS:RemovePermission\",\"SNS:Receive\",\"SNS:Publish\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:AddPermission\"],\"Resource\":\"arn:aws:sns:us-east-1:526954929923:my-topic-with-policy\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":[]}}}]}"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa.res.golden.json b/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa.res.golden.json
deleted file mode 100755
index bb6499ca4..000000000
--- a/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa-arn_aws_sns_us-east-1_526954929923_user-updates-topic2_c0f794c5-a009-4db4-9147-4c55959787fa.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY29uZmlybWF0aW9uX3RpbWVvdXRfaW5fbWludXRlcyI6Im51bWJlciIsImRlbGl2ZXJ5X3BvbGljeSI6InN0cmluZyIsImVuZHBvaW50Ijoic3RyaW5nIiwiZW5kcG9pbnRfYXV0b19jb25maXJtcyI6ImJvb2wiLCJmaWx0ZXJfcG9saWN5Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwcm90b2NvbCI6InN0cmluZyIsInJhd19tZXNzYWdlX2RlbGl2ZXJ5IjoiYm9vbCIsInRvcGljX2FybiI6InN0cmluZyJ9XQ==",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOnVzZXItdXBkYXRlcy10b3BpYzI6YzBmNzk0YzUtYTAwOS00ZGI0LTkxNDctNGM1NTk1OTc4N2ZhIiwiY29uZmlybWF0aW9uX3RpbWVvdXRfaW5fbWludXRlcyI6bnVsbCwiZGVsaXZlcnlfcG9saWN5IjoiIiwiZW5kcG9pbnQiOiJhcm46YXdzOnNxczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOnVzZXItdXBkYXRlcy1xdWV1ZSIsImVuZHBvaW50X2F1dG9fY29uZmlybXMiOm51bGwsImZpbHRlcl9wb2xpY3kiOiIiLCJpZCI6ImFybjphd3M6c25zOnVzLWVhc3QtMTo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljMjpjMGY3OTRjNS1hMDA5LTRkYjQtOTE0Ny00YzU1OTU5Nzg3ZmEiLCJwcm90b2NvbCI6InNxcyIsInJhd19tZXNzYWdlX2RlbGl2ZXJ5IjpmYWxzZSwidG9waWNfYXJuIjoiYXJuOmF3czpzbnM6dXMtZWFzdC0xOjUyNjk1NDkyOTkyMzp1c2VyLXVwZGF0ZXMtdG9waWMyIn0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e.res.golden.json b/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e.res.golden.json
deleted file mode 100755
index 40b1400fd..000000000
--- a/enumeration/remote/test/aws_sns_topic_subscription_multiple/aws_sns_topic_subscription-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e-arn_aws_sns_us-east-1_526954929923_user-updates-topic_b6e66147-2b31-4486-8d4b-2a2272264c8e.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY29uZmlybWF0aW9uX3RpbWVvdXRfaW5fbWludXRlcyI6Im51bWJlciIsImRlbGl2ZXJ5X3BvbGljeSI6InN0cmluZyIsImVuZHBvaW50Ijoic3RyaW5nIiwiZW5kcG9pbnRfYXV0b19jb25maXJtcyI6ImJvb2wiLCJmaWx0ZXJfcG9saWN5Ijoic3RyaW5nIiwiaWQiOiJzdHJpbmciLCJwcm90b2NvbCI6InN0cmluZyIsInJhd19tZXNzYWdlX2RlbGl2ZXJ5IjoiYm9vbCIsInRvcGljX2FybiI6InN0cmluZyJ9XQ==",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNuczp1cy1lYXN0LTE6NTI2OTU0OTI5OTIzOnVzZXItdXBkYXRlcy10b3BpYzpiNmU2NjE0Ny0yYjMxLTQ0ODYtOGQ0Yi0yYTIyNzIyNjRjOGUiLCJjb25maXJtYXRpb25fdGltZW91dF9pbl9taW51dGVzIjpudWxsLCJkZWxpdmVyeV9wb2xpY3kiOiIiLCJlbmRwb2ludCI6ImFybjphd3M6c3FzOnVzLWVhc3QtMTo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXF1ZXVlIiwiZW5kcG9pbnRfYXV0b19jb25maXJtcyI6bnVsbCwiZmlsdGVyX3BvbGljeSI6IiIsImlkIjoiYXJuOmF3czpzbnM6dXMtZWFzdC0xOjUyNjk1NDkyOTkyMzp1c2VyLXVwZGF0ZXMtdG9waWM6YjZlNjYxNDctMmIzMS00NDg2LThkNGItMmEyMjcyMjY0YzhlIiwicHJvdG9jb2wiOiJzcXMiLCJyYXdfbWVzc2FnZV9kZWxpdmVyeSI6ZmFsc2UsInRvcGljX2FybiI6ImFybjphd3M6c25zOnVzLWVhc3QtMTo1MjY5NTQ5Mjk5MjM6dXNlci11cGRhdGVzLXRvcGljIn0=",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_subscription_multiple/main.tf b/enumeration/remote/test/aws_sns_topic_subscription_multiple/main.tf
deleted file mode 100644
index 9190c3f74..000000000
--- a/enumeration/remote/test/aws_sns_topic_subscription_multiple/main.tf
+++ /dev/null
@@ -1,27 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-resource "aws_sns_topic" "user_updates" {
- name = "user-updates-topic"
-}
-
-resource "aws_sns_topic" "user_updates2" {
- name = "user-updates-topic2"
-}
-
-resource "aws_sqs_queue" "user_updates_queue" {
- name = "user-updates-queue"
-}
-
-resource "aws_sns_topic_subscription" "user_updates_sqs_target" {
- filter_policy = ""
- topic_arn = aws_sns_topic.user_updates.arn
- protocol = "sqs"
- endpoint = aws_sqs_queue.user_updates_queue.arn
-}
-
-resource "aws_sns_topic_subscription" "user_updates_sqs_target2" {
- topic_arn = aws_sns_topic.user_updates2.arn
- protocol = "sqs"
- endpoint = aws_sqs_queue.user_updates_queue.arn
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sns_topic_subscription_multiple/results.golden.json b/enumeration/remote/test/aws_sns_topic_subscription_multiple/results.golden.json
deleted file mode 100755
index c194e8c2b..000000000
--- a/enumeration/remote/test/aws_sns_topic_subscription_multiple/results.golden.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "arn": "arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa",
- "confirmation_timeout_in_minutes": null,
- "delivery_policy": "",
- "endpoint": "arn:aws:sqs:us-east-1:526954929923:user-updates-queue",
- "endpoint_auto_confirms": null,
- "filter_policy": "",
- "id": "arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa",
- "protocol": "sqs",
- "raw_message_delivery": false,
- "topic_arn": "arn:aws:sns:us-east-1:526954929923:user-updates-topic2"
- },
- {
- "arn": "arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e",
- "confirmation_timeout_in_minutes": null,
- "delivery_policy": "",
- "endpoint": "arn:aws:sqs:us-east-1:526954929923:user-updates-queue",
- "endpoint_auto_confirms": null,
- "filter_policy": "",
- "id": "arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e",
- "protocol": "sqs",
- "raw_message_delivery": false,
- "topic_arn": "arn:aws:sns:us-east-1:526954929923:user-updates-topic"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo.res.golden.json b/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo.res.golden.json
deleted file mode 100755
index 4740bc2c6..000000000
--- a/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY29udGVudF9iYXNlZF9kZWR1cGxpY2F0aW9uIjoiYm9vbCIsImRlbGF5X3NlY29uZHMiOiJudW1iZXIiLCJmaWZvX3F1ZXVlIjoiYm9vbCIsImlkIjoic3RyaW5nIiwia21zX2RhdGFfa2V5X3JldXNlX3BlcmlvZF9zZWNvbmRzIjoibnVtYmVyIiwia21zX21hc3Rlcl9rZXlfaWQiOiJzdHJpbmciLCJtYXhfbWVzc2FnZV9zaXplIjoibnVtYmVyIiwibWVzc2FnZV9yZXRlbnRpb25fc2Vjb25kcyI6Im51bWJlciIsIm5hbWUiOiJzdHJpbmciLCJuYW1lX3ByZWZpeCI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInJlY2VpdmVfd2FpdF90aW1lX3NlY29uZHMiOiJudW1iZXIiLCJyZWRyaXZlX3BvbGljeSI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl0sInZpc2liaWxpdHlfdGltZW91dF9zZWNvbmRzIjoibnVtYmVyIn1d",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNxczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmJhci5maWZvIiwiY29udGVudF9iYXNlZF9kZWR1cGxpY2F0aW9uIjp0cnVlLCJkZWxheV9zZWNvbmRzIjowLCJmaWZvX3F1ZXVlIjp0cnVlLCJpZCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9iYXIuZmlmbyIsImttc19kYXRhX2tleV9yZXVzZV9wZXJpb2Rfc2Vjb25kcyI6MzAwLCJrbXNfbWFzdGVyX2tleV9pZCI6IiIsIm1heF9tZXNzYWdlX3NpemUiOjI2MjE0NCwibWVzc2FnZV9yZXRlbnRpb25fc2Vjb25kcyI6MzQ1NjAwLCJuYW1lIjoiYmFyLmZpZm8iLCJuYW1lX3ByZWZpeCI6bnVsbCwicG9saWN5IjoiIiwicmVjZWl2ZV93YWl0X3RpbWVfc2Vjb25kcyI6MCwicmVkcml2ZV9wb2xpY3kiOiIiLCJ0YWdzIjp7fSwidmlzaWJpbGl0eV90aW1lb3V0X3NlY29uZHMiOjMwfQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_foo.res.golden.json b/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_foo.res.golden.json
deleted file mode 100755
index af4fb0afa..000000000
--- a/enumeration/remote/test/aws_sqs_queue_multiple/aws_sqs_queue-https___sqs.eu-west-3.amazonaws.com_047081014315_foo.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiYXJuIjoic3RyaW5nIiwiY29udGVudF9iYXNlZF9kZWR1cGxpY2F0aW9uIjoiYm9vbCIsImRlbGF5X3NlY29uZHMiOiJudW1iZXIiLCJmaWZvX3F1ZXVlIjoiYm9vbCIsImlkIjoic3RyaW5nIiwia21zX2RhdGFfa2V5X3JldXNlX3BlcmlvZF9zZWNvbmRzIjoibnVtYmVyIiwia21zX21hc3Rlcl9rZXlfaWQiOiJzdHJpbmciLCJtYXhfbWVzc2FnZV9zaXplIjoibnVtYmVyIiwibWVzc2FnZV9yZXRlbnRpb25fc2Vjb25kcyI6Im51bWJlciIsIm5hbWUiOiJzdHJpbmciLCJuYW1lX3ByZWZpeCI6InN0cmluZyIsInBvbGljeSI6InN0cmluZyIsInJlY2VpdmVfd2FpdF90aW1lX3NlY29uZHMiOiJudW1iZXIiLCJyZWRyaXZlX3BvbGljeSI6InN0cmluZyIsInRhZ3MiOlsibWFwIiwic3RyaW5nIl0sInZpc2liaWxpdHlfdGltZW91dF9zZWNvbmRzIjoibnVtYmVyIn1d",
- "Val": "eyJhcm4iOiJhcm46YXdzOnNxczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmZvbyIsImNvbnRlbnRfYmFzZWRfZGVkdXBsaWNhdGlvbiI6ZmFsc2UsImRlbGF5X3NlY29uZHMiOjAsImZpZm9fcXVldWUiOmZhbHNlLCJpZCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9mb28iLCJrbXNfZGF0YV9rZXlfcmV1c2VfcGVyaW9kX3NlY29uZHMiOjMwMCwia21zX21hc3Rlcl9rZXlfaWQiOiIiLCJtYXhfbWVzc2FnZV9zaXplIjoyNjIxNDQsIm1lc3NhZ2VfcmV0ZW50aW9uX3NlY29uZHMiOjM0NTYwMCwibmFtZSI6ImZvbyIsIm5hbWVfcHJlZml4IjpudWxsLCJwb2xpY3kiOiIiLCJyZWNlaXZlX3dhaXRfdGltZV9zZWNvbmRzIjowLCJyZWRyaXZlX3BvbGljeSI6IiIsInRhZ3MiOnt9LCJ2aXNpYmlsaXR5X3RpbWVvdXRfc2Vjb25kcyI6MzB9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_multiple/results.golden.json b/enumeration/remote/test/aws_sqs_queue_multiple/results.golden.json
deleted file mode 100755
index 4d29906f6..000000000
--- a/enumeration/remote/test/aws_sqs_queue_multiple/results.golden.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "arn": "arn:aws:sqs:eu-west-3:047081014315:foo",
- "content_based_deduplication": false,
- "delay_seconds": 0,
- "fifo_queue": false,
- "id": "https://sqs.eu-west-3.amazonaws.com/047081014315/foo",
- "kms_data_key_reuse_period_seconds": 300,
- "kms_master_key_id": "",
- "max_message_size": 262144,
- "message_retention_seconds": 345600,
- "name": "foo",
- "name_prefix": null,
- "policy": "",
- "receive_wait_time_seconds": 0,
- "redrive_policy": "",
- "tags": {},
- "visibility_timeout_seconds": 30
- },
- {
- "arn": "arn:aws:sqs:eu-west-3:047081014315:bar.fifo",
- "content_based_deduplication": true,
- "delay_seconds": 0,
- "fifo_queue": true,
- "id": "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo",
- "kms_data_key_reuse_period_seconds": 300,
- "kms_master_key_id": "",
- "max_message_size": 262144,
- "message_retention_seconds": 345600,
- "name": "bar.fifo",
- "name_prefix": null,
- "policy": "",
- "receive_wait_time_seconds": 0,
- "redrive_policy": "",
- "tags": {},
- "visibility_timeout_seconds": 30
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_multiple/terraform.tf b/enumeration/remote/test/aws_sqs_queue_multiple/terraform.tf
deleted file mode 100644
index ed51f38f2..000000000
--- a/enumeration/remote/test/aws_sqs_queue_multiple/terraform.tf
+++ /dev/null
@@ -1,19 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_sqs_queue" "foo" {
- name = "foo"
-}
-
-resource "aws_sqs_queue" "bar" {
- name = "bar.fifo"
- fifo_queue = true
- content_based_deduplication = true
-}
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo-.res.golden.json b/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo-.res.golden.json
deleted file mode 100755
index 60d7fde2e..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_bar.fifo-.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJxdWV1ZV91cmwiOiJzdHJpbmcifV0=",
- "Val": "eyJpZCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9iYXIuZmlmbyIsInBvbGljeSI6IiIsInF1ZXVlX3VybCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9iYXIuZmlmbyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_baz-.res.golden.json b/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_baz-.res.golden.json
deleted file mode 100755
index 877b20896..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_baz-.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJxdWV1ZV91cmwiOiJzdHJpbmcifV0=",
- "Val": "eyJpZCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9iYXoiLCJwb2xpY3kiOiJ7XCJWZXJzaW9uXCI6XCIyMDEyLTEwLTE3XCIsXCJJZFwiOlwiTVlTUVNQT0xJQ1lcIixcIlN0YXRlbWVudFwiOlt7XCJTaWRcIjpcIlN0bXQxNjExNzY5NTI3NzkyXCIsXCJFZmZlY3RcIjpcIkFsbG93XCIsXCJQcmluY2lwYWxcIjpcIipcIixcIkFjdGlvblwiOlwic3FzOlNlbmRNZXNzYWdlXCIsXCJSZXNvdXJjZVwiOlwiYXJuOmF3czpzcXM6ZXUtd2VzdC0zOjA0NzA4MTAxNDMxNTpiYXpcIn1dfSIsInF1ZXVlX3VybCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9iYXoifQ==",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_foo-.res.golden.json b/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_foo-.res.golden.json
deleted file mode 100755
index 3747d4240..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/aws_sqs_queue_policy-https___sqs.eu-west-3.amazonaws.com_047081014315_foo-.res.golden.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "Typ": "WyJvYmplY3QiLHsiaWQiOiJzdHJpbmciLCJwb2xpY3kiOiJzdHJpbmciLCJxdWV1ZV91cmwiOiJzdHJpbmcifV0=",
- "Val": "eyJpZCI6Imh0dHBzOi8vc3FzLmV1LXdlc3QtMy5hbWF6b25hd3MuY29tLzA0NzA4MTAxNDMxNS9mb28iLCJwb2xpY3kiOiJ7XCJWZXJzaW9uXCI6XCIyMDEyLTEwLTE3XCIsXCJJZFwiOlwiUG9saWN5MTYxMTc2OTUzMjQyNVwiLFwiU3RhdGVtZW50XCI6W3tcIlNpZFwiOlwiU3RtdDE2MTE3Njk1Mjc3OTJcIixcIkVmZmVjdFwiOlwiQWxsb3dcIixcIlByaW5jaXBhbFwiOlwiKlwiLFwiQWN0aW9uXCI6XCJzcXM6U2VuZE1lc3NhZ2VcIixcIlJlc291cmNlXCI6XCJhcm46YXdzOnNxczpldS13ZXN0LTM6MDQ3MDgxMDE0MzE1OmZvb1wifV19IiwicXVldWVfdXJsIjoiaHR0cHM6Ly9zcXMuZXUtd2VzdC0zLmFtYXpvbmF3cy5jb20vMDQ3MDgxMDE0MzE1L2ZvbyJ9",
- "Err": null
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/policy.json b/enumeration/remote/test/aws_sqs_queue_policy_multiple/policy.json
deleted file mode 100644
index 3115d4b32..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/policy.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "Id": "Policy1611769532425",
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "Stmt1611769527792",
- "Action": ["sqs:SendMessage"],
- "Effect": "Allow",
- "Resource": "arn:aws:sqs:eu-west-3:047081014315:foo",
- "Principal": "*"
- }
- ]
-}
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/results.golden.json b/enumeration/remote/test/aws_sqs_queue_policy_multiple/results.golden.json
deleted file mode 100755
index d1983b6ad..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/results.golden.json
+++ /dev/null
@@ -1,17 +0,0 @@
-[
- {
- "id": "https://sqs.eu-west-3.amazonaws.com/047081014315/foo",
- "policy": "{\"Version\":\"2012-10-17\",\"Id\":\"Policy1611769532425\",\"Statement\":[{\"Sid\":\"Stmt1611769527792\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\"}]}",
- "queue_url": "https://sqs.eu-west-3.amazonaws.com/047081014315/foo"
- },
- {
- "id": "https://sqs.eu-west-3.amazonaws.com/047081014315/baz",
- "policy": "{\"Version\":\"2012-10-17\",\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Sid\":\"Stmt1611769527792\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:baz\"}]}",
- "queue_url": "https://sqs.eu-west-3.amazonaws.com/047081014315/baz"
- },
- {
- "id": "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo",
- "policy": "",
- "queue_url": "https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"
- }
-]
\ No newline at end of file
diff --git a/enumeration/remote/test/aws_sqs_queue_policy_multiple/terraform.tf b/enumeration/remote/test/aws_sqs_queue_policy_multiple/terraform.tf
deleted file mode 100644
index a4a225a67..000000000
--- a/enumeration/remote/test/aws_sqs_queue_policy_multiple/terraform.tf
+++ /dev/null
@@ -1,43 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_sqs_queue" "foo" {
- name = "foo"
- policy = file("policy.json")
-}
-
-resource "aws_sqs_queue" "bar" {
- name = "bar.fifo"
- fifo_queue = true
- content_based_deduplication = true
-}
-
-resource "aws_sqs_queue" "baz" {
- name = "baz"
-}
-
-resource "aws_sqs_queue_policy" "sqs-policy" {
- queue_url = aws_sqs_queue.baz.id
- policy = < 0 {
- buf.WriteString(fmt.Sprintf("%d-", (*attrs)["from_port"].(int)))
- }
- if (*attrs)["to_port"] != nil && (*attrs)["to_port"].(int) > 0 {
- buf.WriteString(fmt.Sprintf("%d-", (*attrs)["to_port"].(int)))
- }
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("protocol")))
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("type")))
-
- if attrs.GetSlice("cidr_blocks") != nil {
- for _, v := range attrs.GetSlice("cidr_blocks") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if attrs.GetSlice("ipv6_cidr_blocks") != nil {
- for _, v := range attrs.GetSlice("ipv6_cidr_blocks") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if attrs.GetSlice("prefix_list_ids") != nil {
- for _, v := range attrs.GetSlice("prefix_list_ids") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if (attrs.GetBool("self") != nil && *attrs.GetBool("self")) ||
- (attrs.GetString("source_security_group_id") != nil && *attrs.GetString("source_security_group_id") != "") {
- if attrs.GetBool("self") != nil && *attrs.GetBool("self") {
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("security_group_id")))
- } else {
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("source_security_group_id")))
- }
- buf.WriteString("-")
- }
-
- return fmt.Sprintf("sgrule-%d", hashcode.String(buf.String()))
-}
diff --git a/enumeration/resource/aws/aws_sns_topic.go b/enumeration/resource/aws/aws_sns_topic.go
deleted file mode 100644
index 8e1d83a56..000000000
--- a/enumeration/resource/aws/aws_sns_topic.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSnsTopicResourceType = "aws_sns_topic"
diff --git a/enumeration/resource/aws/aws_sns_topic_policy.go b/enumeration/resource/aws/aws_sns_topic_policy.go
deleted file mode 100644
index e6a95bc83..000000000
--- a/enumeration/resource/aws/aws_sns_topic_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSnsTopicPolicyResourceType = "aws_sns_topic_policy"
diff --git a/enumeration/resource/aws/aws_sns_topic_subscription.go b/enumeration/resource/aws/aws_sns_topic_subscription.go
deleted file mode 100644
index 8473925c4..000000000
--- a/enumeration/resource/aws/aws_sns_topic_subscription.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSnsTopicSubscriptionResourceType = "aws_sns_topic_subscription"
diff --git a/enumeration/resource/aws/aws_sqs_queue.go b/enumeration/resource/aws/aws_sqs_queue.go
deleted file mode 100644
index 5f72d488f..000000000
--- a/enumeration/resource/aws/aws_sqs_queue.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSqsQueueResourceType = "aws_sqs_queue"
diff --git a/enumeration/resource/aws/aws_sqs_queue_policy.go b/enumeration/resource/aws/aws_sqs_queue_policy.go
deleted file mode 100644
index 5c7802805..000000000
--- a/enumeration/resource/aws/aws_sqs_queue_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSqsQueuePolicyResourceType = "aws_sqs_queue_policy"
diff --git a/enumeration/resource/aws/aws_subnet.go b/enumeration/resource/aws/aws_subnet.go
deleted file mode 100644
index dcd0d1069..000000000
--- a/enumeration/resource/aws/aws_subnet.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSubnetResourceType = "aws_subnet"
diff --git a/enumeration/resource/aws/aws_vpc.go b/enumeration/resource/aws/aws_vpc.go
deleted file mode 100644
index cd8ad7186..000000000
--- a/enumeration/resource/aws/aws_vpc.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsVpcResourceType = "aws_vpc"
diff --git a/enumeration/resource/azurerm/azurerm_container_registry.go b/enumeration/resource/azurerm/azurerm_container_registry.go
deleted file mode 100644
index f6c07ea00..000000000
--- a/enumeration/resource/azurerm/azurerm_container_registry.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureContainerRegistryResourceType = "azurerm_container_registry"
diff --git a/enumeration/resource/azurerm/azurerm_firewall.go b/enumeration/resource/azurerm/azurerm_firewall.go
deleted file mode 100644
index be8380f0b..000000000
--- a/enumeration/resource/azurerm/azurerm_firewall.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureFirewallResourceType = "azurerm_firewall"
diff --git a/enumeration/resource/azurerm/azurerm_image.go b/enumeration/resource/azurerm/azurerm_image.go
deleted file mode 100644
index f58f90d85..000000000
--- a/enumeration/resource/azurerm/azurerm_image.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureImageResourceType = "azurerm_image"
diff --git a/enumeration/resource/azurerm/azurerm_lb.go b/enumeration/resource/azurerm/azurerm_lb.go
deleted file mode 100644
index 53489f38e..000000000
--- a/enumeration/resource/azurerm/azurerm_lb.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureLoadBalancerResourceType = "azurerm_lb"
diff --git a/enumeration/resource/azurerm/azurerm_lb_rule.go b/enumeration/resource/azurerm/azurerm_lb_rule.go
deleted file mode 100644
index 848d7fff9..000000000
--- a/enumeration/resource/azurerm/azurerm_lb_rule.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureLoadBalancerRuleResourceType = "azurerm_lb_rule"
diff --git a/enumeration/resource/azurerm/azurerm_network_security_group.go b/enumeration/resource/azurerm/azurerm_network_security_group.go
deleted file mode 100644
index 30ba15a0e..000000000
--- a/enumeration/resource/azurerm/azurerm_network_security_group.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureNetworkSecurityGroupResourceType = "azurerm_network_security_group"
diff --git a/enumeration/resource/azurerm/azurerm_postgresql_database.go b/enumeration/resource/azurerm/azurerm_postgresql_database.go
deleted file mode 100644
index 2058c7b19..000000000
--- a/enumeration/resource/azurerm/azurerm_postgresql_database.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePostgresqlDatabaseResourceType = "azurerm_postgresql_database"
diff --git a/enumeration/resource/azurerm/azurerm_postgresql_server.go b/enumeration/resource/azurerm/azurerm_postgresql_server.go
deleted file mode 100644
index cd4269323..000000000
--- a/enumeration/resource/azurerm/azurerm_postgresql_server.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePostgresqlServerResourceType = "azurerm_postgresql_server"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_a_record.go b/enumeration/resource/azurerm/azurerm_private_dns_a_record.go
deleted file mode 100644
index e6b955b33..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_a_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSARecordResourceType = "azurerm_private_dns_a_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_aaaa_record.go b/enumeration/resource/azurerm/azurerm_private_dns_aaaa_record.go
deleted file mode 100644
index bece10dd8..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_aaaa_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSAAAARecordResourceType = "azurerm_private_dns_aaaa_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_cname_record.go b/enumeration/resource/azurerm/azurerm_private_dns_cname_record.go
deleted file mode 100644
index 12d1aa3e6..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_cname_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSCNameRecordResourceType = "azurerm_private_dns_cname_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_mx_record.go b/enumeration/resource/azurerm/azurerm_private_dns_mx_record.go
deleted file mode 100644
index 3fb56baf4..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_mx_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSMXRecordResourceType = "azurerm_private_dns_mx_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_ptr_record.go b/enumeration/resource/azurerm/azurerm_private_dns_ptr_record.go
deleted file mode 100644
index bc949ebcc..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_ptr_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSPTRRecordResourceType = "azurerm_private_dns_ptr_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_srv_record.go b/enumeration/resource/azurerm/azurerm_private_dns_srv_record.go
deleted file mode 100644
index 9cb3b214a..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_srv_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSSRVRecordResourceType = "azurerm_private_dns_srv_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_txt_record.go b/enumeration/resource/azurerm/azurerm_private_dns_txt_record.go
deleted file mode 100644
index 724d2f198..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_txt_record.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSTXTRecordResourceType = "azurerm_private_dns_txt_record"
diff --git a/enumeration/resource/azurerm/azurerm_private_dns_zone.go b/enumeration/resource/azurerm/azurerm_private_dns_zone.go
deleted file mode 100644
index 0114a2901..000000000
--- a/enumeration/resource/azurerm/azurerm_private_dns_zone.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePrivateDNSZoneResourceType = "azurerm_private_dns_zone"
diff --git a/enumeration/resource/azurerm/azurerm_public_ip.go b/enumeration/resource/azurerm/azurerm_public_ip.go
deleted file mode 100644
index 6a7324322..000000000
--- a/enumeration/resource/azurerm/azurerm_public_ip.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzurePublicIPResourceType = "azurerm_public_ip"
diff --git a/enumeration/resource/azurerm/azurerm_resource_group.go b/enumeration/resource/azurerm/azurerm_resource_group.go
deleted file mode 100644
index dfcff5c68..000000000
--- a/enumeration/resource/azurerm/azurerm_resource_group.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureResourceGroupResourceType = "azurerm_resource_group"
diff --git a/enumeration/resource/azurerm/azurerm_route.go b/enumeration/resource/azurerm/azurerm_route.go
deleted file mode 100644
index 08a0baa09..000000000
--- a/enumeration/resource/azurerm/azurerm_route.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureRouteResourceType = "azurerm_route"
diff --git a/enumeration/resource/azurerm/azurerm_route_table.go b/enumeration/resource/azurerm/azurerm_route_table.go
deleted file mode 100644
index 466374eda..000000000
--- a/enumeration/resource/azurerm/azurerm_route_table.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureRouteTableResourceType = "azurerm_route_table"
diff --git a/enumeration/resource/azurerm/azurerm_ssh_public_key.go b/enumeration/resource/azurerm/azurerm_ssh_public_key.go
deleted file mode 100644
index 6a1280d63..000000000
--- a/enumeration/resource/azurerm/azurerm_ssh_public_key.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureSSHPublicKeyResourceType = "azurerm_ssh_public_key"
diff --git a/enumeration/resource/azurerm/azurerm_storage_account.go b/enumeration/resource/azurerm/azurerm_storage_account.go
deleted file mode 100644
index d0d7c996e..000000000
--- a/enumeration/resource/azurerm/azurerm_storage_account.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureStorageAccountResourceType = "azurerm_storage_account"
diff --git a/enumeration/resource/azurerm/azurerm_storage_container.go b/enumeration/resource/azurerm/azurerm_storage_container.go
deleted file mode 100644
index b3c373f03..000000000
--- a/enumeration/resource/azurerm/azurerm_storage_container.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureStorageContainerResourceType = "azurerm_storage_container"
diff --git a/enumeration/resource/azurerm/azurerm_subnet.go b/enumeration/resource/azurerm/azurerm_subnet.go
deleted file mode 100644
index bcb43335f..000000000
--- a/enumeration/resource/azurerm/azurerm_subnet.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureSubnetResourceType = "azurerm_subnet"
diff --git a/enumeration/resource/azurerm/azurerm_virtual_network.go b/enumeration/resource/azurerm/azurerm_virtual_network.go
deleted file mode 100644
index ef8d54886..000000000
--- a/enumeration/resource/azurerm/azurerm_virtual_network.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package azurerm
-
-const AzureVirtualNetworkResourceType = "azurerm_virtual_network"
diff --git a/enumeration/resource/deserializer.go b/enumeration/resource/deserializer.go
deleted file mode 100644
index 8460bf871..000000000
--- a/enumeration/resource/deserializer.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package resource
-
-import (
- "encoding/json"
-
- "github.com/zclconf/go-cty/cty"
- ctyjson "github.com/zclconf/go-cty/cty/json"
-)
-
-type Deserializer struct {
- factory ResourceFactory
-}
-
-func NewDeserializer(factory ResourceFactory) *Deserializer {
- return &Deserializer{factory}
-}
-
-func (s *Deserializer) Deserialize(ty string, rawList []cty.Value) ([]*Resource, error) {
- resources := make([]*Resource, 0)
- for _, rawRes := range rawList {
- rawResource := rawRes
- res, err := s.DeserializeOne(ty, rawResource)
- if err != nil {
- return nil, err
- }
- resources = append(resources, res)
- }
- return resources, nil
-}
-
-func (s *Deserializer) DeserializeOne(ty string, value cty.Value) (*Resource, error) {
- if value.IsNull() {
- return nil, nil
- }
-
- // Marked values cannot be deserialized to JSON.
- // For example, this ensures we can deserialize sensitive values too.
- unmarkedVal, _ := value.UnmarkDeep()
-
- var attrs Attributes
- bytes, _ := ctyjson.Marshal(unmarkedVal, unmarkedVal.Type())
- err := json.Unmarshal(bytes, &attrs)
- if err != nil {
- return nil, err
- }
-
- return s.factory.CreateAbstractResource(ty, value.GetAttr("id").AsString(), attrs), nil
-}
diff --git a/enumeration/resource/github/github_branch_protection.go b/enumeration/resource/github/github_branch_protection.go
deleted file mode 100644
index 7275f6268..000000000
--- a/enumeration/resource/github/github_branch_protection.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package github
-
-const GithubBranchProtectionResourceType = "github_branch_protection"
diff --git a/enumeration/resource/github/github_membership.go b/enumeration/resource/github/github_membership.go
deleted file mode 100644
index de4172968..000000000
--- a/enumeration/resource/github/github_membership.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package github
-
-const GithubMembershipResourceType = "github_membership"
diff --git a/enumeration/resource/github/github_repository.go b/enumeration/resource/github/github_repository.go
deleted file mode 100644
index 535d61d19..000000000
--- a/enumeration/resource/github/github_repository.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package github
-
-const GithubRepositoryResourceType = "github_repository"
diff --git a/enumeration/resource/github/github_team.go b/enumeration/resource/github/github_team.go
deleted file mode 100644
index aa32fce7b..000000000
--- a/enumeration/resource/github/github_team.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package github
-
-const GithubTeamResourceType = "github_team"
diff --git a/enumeration/resource/github/github_team_membership.go b/enumeration/resource/github/github_team_membership.go
deleted file mode 100644
index 46eb4b74b..000000000
--- a/enumeration/resource/github/github_team_membership.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package github
-
-const GithubTeamMembershipResourceType = "github_team_membership"
diff --git a/enumeration/resource/google/google_bigquery_dataset.go b/enumeration/resource/google/google_bigquery_dataset.go
deleted file mode 100644
index e30b21de8..000000000
--- a/enumeration/resource/google/google_bigquery_dataset.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleBigqueryDatasetResourceType = "google_bigquery_dataset"
diff --git a/enumeration/resource/google/google_bigquery_table.go b/enumeration/resource/google/google_bigquery_table.go
deleted file mode 100644
index eddf837dd..000000000
--- a/enumeration/resource/google/google_bigquery_table.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleBigqueryTableResourceType = "google_bigquery_table"
diff --git a/enumeration/resource/google/google_bigtable_instance.go b/enumeration/resource/google/google_bigtable_instance.go
deleted file mode 100644
index da6160791..000000000
--- a/enumeration/resource/google/google_bigtable_instance.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleBigTableInstanceResourceType = "google_bigtable_instance"
diff --git a/enumeration/resource/google/google_bigtable_table.go b/enumeration/resource/google/google_bigtable_table.go
deleted file mode 100644
index 824769a6c..000000000
--- a/enumeration/resource/google/google_bigtable_table.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleBigtableTableResourceType = "google_bigtable_table"
diff --git a/enumeration/resource/google/google_cloudfunctions_function.go b/enumeration/resource/google/google_cloudfunctions_function.go
deleted file mode 100644
index 77fe0a32b..000000000
--- a/enumeration/resource/google/google_cloudfunctions_function.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleCloudFunctionsFunctionResourceType = "google_cloudfunctions_function"
diff --git a/enumeration/resource/google/google_cloudrun_service.go b/enumeration/resource/google/google_cloudrun_service.go
deleted file mode 100644
index f9a361393..000000000
--- a/enumeration/resource/google/google_cloudrun_service.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleCloudRunServiceResourceType = "google_cloud_run_service"
diff --git a/enumeration/resource/google/google_compute_address.go b/enumeration/resource/google/google_compute_address.go
deleted file mode 100644
index 85249fd08..000000000
--- a/enumeration/resource/google/google_compute_address.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeAddressResourceType = "google_compute_address"
diff --git a/enumeration/resource/google/google_compute_disk.go b/enumeration/resource/google/google_compute_disk.go
deleted file mode 100644
index bef0de819..000000000
--- a/enumeration/resource/google/google_compute_disk.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeDiskResourceType = "google_compute_disk"
diff --git a/enumeration/resource/google/google_compute_firewall.go b/enumeration/resource/google/google_compute_firewall.go
deleted file mode 100644
index ae5f4361b..000000000
--- a/enumeration/resource/google/google_compute_firewall.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeFirewallResourceType = "google_compute_firewall"
diff --git a/enumeration/resource/google/google_compute_forwarding_rule.go b/enumeration/resource/google/google_compute_forwarding_rule.go
deleted file mode 100644
index f02afb53a..000000000
--- a/enumeration/resource/google/google_compute_forwarding_rule.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeForwardingRuleResourceType = "google_compute_forwarding_rule"
diff --git a/enumeration/resource/google/google_compute_global_address.go b/enumeration/resource/google/google_compute_global_address.go
deleted file mode 100644
index ac4b99fdd..000000000
--- a/enumeration/resource/google/google_compute_global_address.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeGlobalAddressResourceType = "google_compute_global_address"
diff --git a/enumeration/resource/google/google_compute_global_forwarding_rule.go b/enumeration/resource/google/google_compute_global_forwarding_rule.go
deleted file mode 100644
index d3182e20a..000000000
--- a/enumeration/resource/google/google_compute_global_forwarding_rule.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeGlobalForwardingRuleResourceType = "google_compute_global_forwarding_rule"
diff --git a/enumeration/resource/google/google_compute_health_check.go b/enumeration/resource/google/google_compute_health_check.go
deleted file mode 100644
index 3cc34cbc6..000000000
--- a/enumeration/resource/google/google_compute_health_check.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeHealthCheckResourceType = "google_compute_health_check"
diff --git a/enumeration/resource/google/google_compute_image.go b/enumeration/resource/google/google_compute_image.go
deleted file mode 100644
index 32ff8e5b1..000000000
--- a/enumeration/resource/google/google_compute_image.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeImageResourceType = "google_compute_image"
diff --git a/enumeration/resource/google/google_compute_instance.go b/enumeration/resource/google/google_compute_instance.go
deleted file mode 100644
index 970aad600..000000000
--- a/enumeration/resource/google/google_compute_instance.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeInstanceResourceType = "google_compute_instance"
diff --git a/enumeration/resource/google/google_compute_instance_group.go b/enumeration/resource/google/google_compute_instance_group.go
deleted file mode 100644
index ebbad3ee7..000000000
--- a/enumeration/resource/google/google_compute_instance_group.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeInstanceGroupResourceType = "google_compute_instance_group"
diff --git a/enumeration/resource/google/google_compute_instance_group_manager.go b/enumeration/resource/google/google_compute_instance_group_manager.go
deleted file mode 100644
index 334201a90..000000000
--- a/enumeration/resource/google/google_compute_instance_group_manager.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeInstanceGroupManagerResourceType = "google_compute_instance_group_manager"
diff --git a/enumeration/resource/google/google_compute_network.go b/enumeration/resource/google/google_compute_network.go
deleted file mode 100644
index dbf73dbb0..000000000
--- a/enumeration/resource/google/google_compute_network.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeNetworkResourceType = "google_compute_network"
diff --git a/enumeration/resource/google/google_compute_node_group.go b/enumeration/resource/google/google_compute_node_group.go
deleted file mode 100644
index e52673a97..000000000
--- a/enumeration/resource/google/google_compute_node_group.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeNodeGroupResourceType = "google_compute_node_group"
diff --git a/enumeration/resource/google/google_compute_router.go b/enumeration/resource/google/google_compute_router.go
deleted file mode 100644
index 74255bc8f..000000000
--- a/enumeration/resource/google/google_compute_router.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeRouterResourceType = "google_compute_router"
diff --git a/enumeration/resource/google/google_compute_ssl_certificate.go b/enumeration/resource/google/google_compute_ssl_certificate.go
deleted file mode 100644
index 02f5b714b..000000000
--- a/enumeration/resource/google/google_compute_ssl_certificate.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeSslCertificateResourceType = "google_compute_ssl_certificate"
diff --git a/enumeration/resource/google/google_compute_subnetwork.go b/enumeration/resource/google/google_compute_subnetwork.go
deleted file mode 100644
index 0491a399b..000000000
--- a/enumeration/resource/google/google_compute_subnetwork.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleComputeSubnetworkResourceType = "google_compute_subnetwork"
diff --git a/enumeration/resource/google/google_dns_managed_zone.go b/enumeration/resource/google/google_dns_managed_zone.go
deleted file mode 100644
index a6ea85e2b..000000000
--- a/enumeration/resource/google/google_dns_managed_zone.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleDNSManagedZoneResourceType = "google_dns_managed_zone"
diff --git a/enumeration/resource/google/google_project_iam_binding.go b/enumeration/resource/google/google_project_iam_binding.go
deleted file mode 100644
index 096e9e013..000000000
--- a/enumeration/resource/google/google_project_iam_binding.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleProjectIamBindingResourceType = "google_project_iam_binding"
diff --git a/enumeration/resource/google/google_project_iam_member.go b/enumeration/resource/google/google_project_iam_member.go
deleted file mode 100644
index 11aac41a5..000000000
--- a/enumeration/resource/google/google_project_iam_member.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleProjectIamMemberResourceType = "google_project_iam_member"
diff --git a/enumeration/resource/google/google_project_iam_policy.go b/enumeration/resource/google/google_project_iam_policy.go
deleted file mode 100644
index 96db80afb..000000000
--- a/enumeration/resource/google/google_project_iam_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleProjectIamPolicyResourceType = "google_project_iam_policy"
diff --git a/enumeration/resource/google/google_sql_database_instance.go b/enumeration/resource/google/google_sql_database_instance.go
deleted file mode 100644
index ea35bf748..000000000
--- a/enumeration/resource/google/google_sql_database_instance.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleSQLDatabaseInstanceResourceType = "google_sql_database_instance"
diff --git a/enumeration/resource/google/google_storage_bucket.go b/enumeration/resource/google/google_storage_bucket.go
deleted file mode 100644
index 45586afd0..000000000
--- a/enumeration/resource/google/google_storage_bucket.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleStorageBucketResourceType = "google_storage_bucket"
diff --git a/enumeration/resource/google/google_storage_bucket_iam_binding.go b/enumeration/resource/google/google_storage_bucket_iam_binding.go
deleted file mode 100644
index 3d7c0a3e4..000000000
--- a/enumeration/resource/google/google_storage_bucket_iam_binding.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleStorageBucketIamBindingResourceType = "google_storage_bucket_iam_binding"
diff --git a/enumeration/resource/google/google_storage_bucket_iam_member.go b/enumeration/resource/google/google_storage_bucket_iam_member.go
deleted file mode 100644
index 45d2fc53e..000000000
--- a/enumeration/resource/google/google_storage_bucket_iam_member.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleStorageBucketIamMemberResourceType = "google_storage_bucket_iam_member"
diff --git a/enumeration/resource/google/google_storage_bucket_iam_policy.go b/enumeration/resource/google/google_storage_bucket_iam_policy.go
deleted file mode 100644
index b3fbfbadd..000000000
--- a/enumeration/resource/google/google_storage_bucket_iam_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package google
-
-const GoogleStorageBucketIamPolicyResourceType = "google_storage_bucket_iam_policy"
diff --git a/enumeration/resource/mock_Supplier.go b/enumeration/resource/mock_Supplier.go
deleted file mode 100644
index 83b1d2afd..000000000
--- a/enumeration/resource/mock_Supplier.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package resource
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockSupplier is an autogenerated mock type for the Supplier type
-type MockSupplier struct {
- mock.Mock
-}
-
-// Resources provides a mock function with given fields:
-func (_m *MockSupplier) Resources() ([]*Resource, error) {
- ret := _m.Called()
-
- var r0 []*Resource
- var r1 error
- if rf, ok := ret.Get(0).(func() ([]*Resource, error)); ok {
- return rf()
- }
- if rf, ok := ret.Get(0).(func() []*Resource); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockSupplier interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockSupplier creates a new instance of MockSupplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockSupplier(t mockConstructorTestingTNewMockSupplier) *MockSupplier {
- mock := &MockSupplier{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/enumeration/resource/resource.go b/enumeration/resource/resource.go
deleted file mode 100644
index 3621171e2..000000000
--- a/enumeration/resource/resource.go
+++ /dev/null
@@ -1,336 +0,0 @@
-package resource
-
-import (
- "fmt"
- "reflect"
- "sort"
- "strconv"
- "strings"
-
- "github.com/pkg/errors"
-)
-
-type Source interface {
- Source() string
- Namespace() string
- InternalName() string
-}
-
-type SerializableSource struct {
- S string `json:"source"`
- Ns string `json:"namespace"`
- Name string `json:"internal_name"`
-}
-
-type TerraformStateSource struct {
- State string
- Module string
- Name string
-}
-
-func NewTerraformStateSource(state, module, name string) *TerraformStateSource {
- return &TerraformStateSource{state, module, name}
-}
-
-func (s *TerraformStateSource) Source() string {
- return s.State
-}
-
-func (s *TerraformStateSource) Namespace() string {
- return s.Module
-}
-
-func (s *TerraformStateSource) InternalName() string {
- return s.Name
-}
-
-type Resource struct {
- Id string
- Type string
- Attrs *Attributes
- Sch *Schema `json:"-" diff:"-"`
- Source Source `json:"-"`
-}
-
-func (r *Resource) Schema() *Schema {
- return r.Sch
-}
-
-func (r *Resource) ResourceId() string {
- return r.Id
-}
-
-func (r *Resource) ResourceType() string {
- return r.Type
-}
-
-func (r *Resource) Attributes() *Attributes {
- return r.Attrs
-}
-
-func (r *Resource) Src() Source {
- return r.Source
-}
-
-func (r *Resource) SourceString() string {
- if r.Source == nil {
- return ""
- }
- if r.Source.Namespace() == "" {
- return fmt.Sprintf("%s.%s", r.ResourceType(), r.Source.InternalName())
- }
- return fmt.Sprintf("%s.%s.%s", r.Source.Namespace(), r.ResourceType(), r.Source.InternalName())
-}
-
-func (r *Resource) Equal(res *Resource) bool {
- if r.ResourceId() != res.ResourceId() || r.ResourceType() != res.ResourceType() {
- return false
- }
-
- if r.Schema() != nil && r.Schema().DiscriminantFunc != nil {
- return r.Schema().DiscriminantFunc(r, res)
- }
-
- return true
-}
-
-type ResourceFactory interface {
- CreateAbstractResource(ty, id string, data map[string]interface{}) *Resource
-}
-
-type SerializableResource struct {
- Id string `json:"id"`
- Type string `json:"type"`
- ReadableAttributes map[string]string `json:"human_readable_attributes,omitempty"`
- Source *SerializableSource `json:"source,omitempty"`
-}
-
-func NewSerializableResource(res *Resource) *SerializableResource {
- var src *SerializableSource
- if res.Src() != nil {
- src = &SerializableSource{
- S: res.Src().Source(),
- Ns: res.Src().Namespace(),
- Name: res.Src().InternalName(),
- }
- }
- return &SerializableResource{
- Id: res.ResourceId(),
- Type: res.ResourceType(),
- ReadableAttributes: formatReadableAttributes(res),
- Source: src,
- }
-}
-
-func formatReadableAttributes(res *Resource) map[string]string {
- if res.Schema() == nil || res.Schema().HumanReadableAttributesFunc == nil {
- return map[string]string{}
- }
- return res.Schema().HumanReadableAttributesFunc(res)
-}
-
-type NormalizedResource interface {
- NormalizeForState() (Resource, error)
- NormalizeForProvider() (Resource, error)
-}
-
-func Sort(res []*Resource) []*Resource {
- sort.SliceStable(res, func(i, j int) bool {
- if res[i].ResourceType() != res[j].ResourceType() {
- return res[i].ResourceType() < res[j].ResourceType()
- }
- return res[i].ResourceId() < res[j].ResourceId()
- })
- return res
-}
-
-type Attributes map[string]interface{}
-
-func (a *Attributes) Copy() *Attributes {
- res := Attributes{}
-
- for key, value := range *a {
- _ = res.SafeSet([]string{key}, value)
- }
-
- return &res
-}
-
-func (a *Attributes) Get(path string) (interface{}, bool) {
- val, exist := (*a)[path]
- return val, exist
-}
-
-func (a *Attributes) GetSlice(path string) []interface{} {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- return val.([]interface{})
-}
-
-func (a *Attributes) GetString(path string) *string {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- v := val.(string)
- return &v
-}
-
-func (a *Attributes) GetBool(path string) *bool {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- v := val.(bool)
- return &v
-}
-
-func (a *Attributes) GetInt(path string) *int {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- if v, isInt := val.(int); isInt {
- return &v
- }
- floatVal := a.GetFloat64(path)
- if val == nil {
- return nil
- }
- v := int(*floatVal)
- return &v
-}
-
-func (a *Attributes) GetFloat64(path string) *float64 {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- v := val.(float64)
- return &v
-}
-
-func (a *Attributes) GetMap(path string) map[string]interface{} {
- val, exist := (*a)[path]
- if !exist {
- return nil
- }
- return val.(map[string]interface{})
-}
-
-func (a *Attributes) SafeDelete(path []string) {
- for i, key := range path {
- if i == len(path)-1 {
- delete(*a, key)
- return
- }
-
- v, exists := (*a)[key]
- if !exists {
- return
- }
- m, ok := v.(Attributes)
- if !ok {
- return
- }
- *a = m
- }
-}
-
-func (a *Attributes) SafeSet(path []string, value interface{}) error {
- for i, key := range path {
- if i == len(path)-1 {
- (*a)[key] = value
- return nil
- }
-
- v, exists := (*a)[key]
- if !exists {
- (*a)[key] = map[string]interface{}{}
- v = (*a)[key]
- }
-
- m, ok := v.(Attributes)
- if !ok {
- return errors.Errorf("Path %s cannot be set: %s is not a nested struct", strings.Join(path, "."), key)
- }
- *a = m
- }
- return errors.New("Error setting value") // should not happen ?
-}
-
-func (a *Attributes) DeleteIfDefault(path string) {
- val, exist := a.Get(path)
- ty := reflect.TypeOf(val)
- if exist && val == reflect.Zero(ty).Interface() {
- a.SafeDelete([]string{path})
- }
-}
-
-func concatenatePath(path, next string) string {
- if path == "" {
- return next
- }
- return strings.Join([]string{path, next}, ".")
-}
-
-func (a *Attributes) SanitizeDefaults() {
- original := reflect.ValueOf(*a)
- attributesCopy := reflect.New(original.Type()).Elem()
- a.sanitize("", original, attributesCopy)
- *a = attributesCopy.Interface().(Attributes)
-}
-
-func (a *Attributes) sanitize(path string, original, copy reflect.Value) bool {
- switch original.Kind() {
- case reflect.Ptr:
- originalValue := original.Elem()
- if !originalValue.IsValid() {
- return false
- }
- copy.Set(reflect.New(originalValue.Type()))
- a.sanitize(path, originalValue, copy.Elem())
- case reflect.Interface:
- // Get rid of the wrapping interface
- originalValue := original.Elem()
- if !originalValue.IsValid() {
- return false
- }
- if originalValue.Kind() == reflect.Slice || originalValue.Kind() == reflect.Map {
- if originalValue.Len() == 0 {
- return false
- }
- }
- // Create a new object. Now new gives us a pointer, but we want the value it
- // points to, so we have to call Elem() to unwrap it
- copyValue := reflect.New(originalValue.Type()).Elem()
- a.sanitize(path, originalValue, copyValue)
- copy.Set(copyValue)
-
- case reflect.Struct:
- for i := 0; i < original.NumField(); i += 1 {
- field := original.Field(i)
- a.sanitize(concatenatePath(path, field.String()), field, copy.Field(i))
- }
- case reflect.Slice:
- copy.Set(reflect.MakeSlice(original.Type(), original.Len(), original.Cap()))
- for i := 0; i < original.Len(); i += 1 {
- a.sanitize(concatenatePath(path, strconv.Itoa(i)), original.Index(i), copy.Index(i))
- }
- case reflect.Map:
- copy.Set(reflect.MakeMap(original.Type()))
- for _, key := range original.MapKeys() {
- originalValue := original.MapIndex(key)
- copyValue := reflect.New(originalValue.Type()).Elem()
- created := a.sanitize(concatenatePath(path, key.String()), originalValue, copyValue)
- if created {
- copy.SetMapIndex(key, copyValue)
- }
- }
- default:
- copy.Set(original)
- }
- return true
-}
diff --git a/enumeration/resource/resource_test.go b/enumeration/resource/resource_test.go
deleted file mode 100644
index 714d23432..000000000
--- a/enumeration/resource/resource_test.go
+++ /dev/null
@@ -1,75 +0,0 @@
-package resource
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-// Delete empty or nil slices and maps
-func TestSanitizeDefaults(t *testing.T) {
- cases := map[string]struct {
- input Attributes
- expected interface{}
- }{
- "simple": {
- input: Attributes{
- "emptyStringSlice": []string{},
- "emptyIntSlice": []int{},
- "emptyBoolSlice": []bool{},
- "emptyMap": map[string]string{},
- "nilInterface": interface{}(nil),
- "not_deleted": "value",
- },
- expected: Attributes{
- "not_deleted": "value",
- },
- },
- "nested": {
- input: Attributes{
- "should": map[string]interface{}{
- "be_deleted": map[string]interface{}{},
- "be_deleted_too": []string{},
- "not_be_deleted": "no",
- "not_be_deleted_too": []string(nil),
- },
- "not_deleted": "value",
- },
- expected: Attributes{
- "should": map[string]interface{}{
- "not_be_deleted": "no",
- },
- "not_deleted": "value",
- },
- },
- "nested_slice": {
- input: Attributes{
- "should": []map[string][]interface{}{
- {
- "be": []interface{}{
- map[string]interface{}{
- "removed": []string{},
- "removed_too": map[string]string{},
- },
- },
- },
- },
- },
- expected: Attributes{
- "should": []map[string][]interface{}{
- {
- "be": []interface{}{
- map[string]interface{}{},
- },
- },
- },
- },
- },
- }
- for k, c := range cases {
- t.Run(k, func(t *testing.T) {
- c.input.SanitizeDefaults()
- assert.Equal(t, c.expected, c.input)
- })
- }
-}
diff --git a/enumeration/resource/resource_types.go b/enumeration/resource/resource_types.go
deleted file mode 100644
index 618848094..000000000
--- a/enumeration/resource/resource_types.go
+++ /dev/null
@@ -1,276 +0,0 @@
-package resource
-
-type ResourceType string
-
-var supportedTypes = map[string]ResourceTypeMeta{
- "aws_ami": {},
- "aws_cloudfront_distribution": {},
- "aws_db_instance": {},
- "aws_db_subnet_group": {},
- "aws_default_network_acl": {children: []ResourceType{
- "aws_network_acl_rule",
- }},
- "aws_default_route_table": {children: []ResourceType{
- "aws_route",
- }},
- "aws_default_security_group": {children: []ResourceType{
- "aws_security_group_rule",
- }},
- "aws_default_subnet": {},
- "aws_default_vpc": {children: []ResourceType{
- // VPC are used by aws_internet_gateway to determine if internet gateway is the default one in middleware
- "aws_internet_gateway",
- }},
- "aws_dynamodb_table": {},
- "aws_ebs_snapshot": {},
- "aws_ebs_volume": {},
- "aws_alb": {children: []ResourceType{
- "aws_lb",
- }},
- "aws_lb": {},
- "aws_lb_listener": {},
- "aws_alb_listener": {children: []ResourceType{
- "aws_lb_listener",
- }},
- "aws_ebs_encryption_by_default": {},
- "aws_ecr_repository": {},
- "aws_ecr_repository_policy": {},
- "aws_eip": {children: []ResourceType{
- "aws_eip_association",
- }},
- "aws_eip_association": {},
- "aws_iam_access_key": {},
- "aws_iam_policy": {},
- "aws_iam_policy_attachment": {},
- "aws_iam_role": {children: []ResourceType{
- "aws_iam_role_policy",
- "aws_iam_policy_attachment",
- }},
- "aws_iam_role_policy": {children: []ResourceType{
- "aws_iam_role_policy_attachment",
- }},
- "aws_iam_role_policy_attachment": {children: []ResourceType{
- "aws_iam_policy_attachment",
- }},
- "aws_iam_group_policy_attachment": {children: []ResourceType{
- "aws_iam_policy_attachment",
- }},
- "aws_iam_user": {children: []ResourceType{
- "aws_iam_user_policy",
- }},
- "aws_iam_user_policy": {children: []ResourceType{
- "aws_iam_user_policy_attachment",
- }},
- "aws_iam_user_policy_attachment": {children: []ResourceType{
- "aws_iam_policy_attachment",
- }},
- "aws_iam_group_policy": {},
- "aws_iam_group": {},
- "aws_instance": {children: []ResourceType{
- "aws_ebs_volume",
- }},
- "aws_internet_gateway": {children: []ResourceType{
- // This is used to determine internet gateway default rule
- "aws_route",
- }},
- "aws_key_pair": {},
- "aws_kms_alias": {},
- "aws_kms_key": {},
- "aws_lambda_event_source_mapping": {},
- "aws_lambda_function": {},
- "aws_nat_gateway": {},
- "aws_network_acl": {children: []ResourceType{
- "aws_network_acl_rule",
- }},
- "aws_network_acl_rule": {},
- "aws_route": {},
- "aws_route53_health_check": {},
- "aws_route53_record": {},
- "aws_route53_zone": {},
- "aws_route_table": {children: []ResourceType{
- "aws_route",
- }},
- "aws_route_table_association": {},
- "aws_s3_bucket": {children: []ResourceType{
- "aws_s3_bucket_policy",
- }},
- "aws_s3_bucket_analytics_configuration": {},
- "aws_s3_bucket_inventory": {},
- "aws_s3_bucket_metric": {},
- "aws_s3_bucket_notification": {},
- "aws_s3_bucket_policy": {},
- "aws_s3_bucket_public_access_block": {},
- "aws_security_group": {children: []ResourceType{
- "aws_security_group_rule",
- }},
- "aws_s3_account_public_access_block": {},
- "aws_security_group_rule": {},
- "aws_sns_topic": {children: []ResourceType{
- "aws_sns_topic_policy",
- }},
- "aws_sns_topic_policy": {},
- "aws_sns_topic_subscription": {},
- "aws_sqs_queue": {children: []ResourceType{
- "aws_sqs_queue_policy",
- }},
- "aws_sqs_queue_policy": {},
- "aws_subnet": {},
- "aws_vpc": {},
- "aws_rds_cluster": {},
- "aws_cloudformation_stack": {},
- "aws_api_gateway_rest_api": {children: []ResourceType{
- "aws_api_gateway_resource",
- "aws_api_gateway_rest_api_policy",
- "aws_api_gateway_gateway_response",
- }},
- "aws_api_gateway_account": {},
- "aws_api_gateway_api_key": {},
- "aws_api_gateway_authorizer": {},
- "aws_api_gateway_deployment": {children: []ResourceType{
- "aws_api_gateway_stage",
- }},
- "aws_api_gateway_stage": {},
- "aws_api_gateway_resource": {children: []ResourceType{
- "aws_api_gateway_method",
- "aws_api_gateway_integration",
- }},
- "aws_api_gateway_domain_name": {},
- "aws_api_gateway_vpc_link": {},
- "aws_api_gateway_request_validator": {},
- "aws_api_gateway_rest_api_policy": {},
- "aws_api_gateway_base_path_mapping": {},
- "aws_api_gateway_model": {},
- "aws_api_gateway_method": {children: []ResourceType{
- "aws_api_gateway_method_response",
- }},
- "aws_api_gateway_method_response": {},
- "aws_api_gateway_gateway_response": {},
- "aws_api_gateway_method_settings": {},
- "aws_api_gateway_integration": {children: []ResourceType{
- "aws_api_gateway_integration_response",
- }},
- "aws_api_gateway_integration_response": {},
- "aws_appautoscaling_target": {},
- "aws_rds_cluster_instance": {children: []ResourceType{
- "aws_db_instance",
- }},
- "aws_appautoscaling_policy": {},
- "aws_appautoscaling_scheduled_action": {},
- "aws_apigatewayv2_api": {children: []ResourceType{
- "aws_apigatewayv2_route",
- "aws_apigatewayv2_integration",
- }},
- "aws_apigatewayv2_model": {},
- "aws_apigatewayv2_stage": {},
- "aws_apigatewayv2_route_response": {},
- "aws_apigatewayv2_deployment": {},
- "aws_apigatewayv2_domain_name": {},
- "aws_apigatewayv2_api_mapping": {},
- "aws_apigatewayv2_route": {},
- "aws_apigatewayv2_vpc_link": {},
- "aws_apigatewayv2_authorizer": {},
- "aws_apigatewayv2_integration": {},
- "aws_apigatewayv2_integration_response": {},
- "aws_launch_template": {},
- "aws_launch_configuration": {},
- "aws_elb": {},
- "aws_elasticache_cluster": {},
- "aws_cloudtrail": {},
-
- "github_branch_protection": {},
- "github_membership": {},
- "github_repository": {},
- "github_team": {},
- "github_team_membership": {},
-
- "google_storage_bucket": {},
- "google_compute_firewall": {},
- "google_compute_router": {},
- "google_compute_instance": {},
- "google_compute_network": {},
- "google_storage_bucket_iam_binding": {children: []ResourceType{
- "google_storage_bucket_iam_member",
- }},
- "google_storage_bucket_iam_member": {},
- "google_storage_bucket_iam_policy": {children: []ResourceType{
- "google_storage_bucket_iam_member",
- }},
- "google_dns_managed_zone": {},
- "google_compute_instance_group": {},
- "google_bigquery_dataset": {},
- "google_bigquery_table": {},
- "google_project_iam_member": {},
- "google_project_iam_binding": {children: []ResourceType{
- "google_project_iam_member",
- }},
- "google_project_iam_policy": {children: []ResourceType{
- "google_project_iam_member",
- }},
- "google_compute_address": {},
- "google_compute_subnetwork": {},
- "google_cloudfunctions_function": {},
- "google_compute_disk": {},
- "google_bigtable_instance": {},
- "google_bigtable_table": {},
- "google_sql_database_instance": {},
- "google_compute_image": {},
- "google_compute_health_check": {},
- "google_compute_global_address": {},
- "google_compute_node_group": {},
- "google_cloud_run_service": {},
- "google_compute_forwarding_rule": {},
- "google_compute_instance_group_manager": {},
- "google_compute_global_forwarding_rule": {},
- "google_compute_ssl_certificate": {},
-
- "azurerm_storage_account": {},
- "azurerm_storage_container": {},
- "azurerm_virtual_network": {children: []ResourceType{
- "azurerm_subnet",
- }},
- "azurerm_route_table": {children: []ResourceType{
- "azurerm_route",
- }},
- "azurerm_route": {},
- "azurerm_resource_group": {},
- "azurerm_subnet": {},
- "azurerm_container_registry": {},
- "azurerm_firewall": {},
- "azurerm_postgresql_server": {},
- "azurerm_postgresql_database": {},
- "azurerm_public_ip": {},
- "azurerm_network_security_group": {},
- "azurerm_lb": {},
- "azurerm_lb_rule": {},
- "azurerm_private_dns_zone": {},
- "azurerm_private_dns_a_record": {},
- "azurerm_private_dns_aaaa_record": {},
- "azurerm_private_dns_cname_record": {},
- "azurerm_private_dns_ptr_record": {},
- "azurerm_private_dns_srv_record": {},
- "azurerm_private_dns_mx_record": {},
- "azurerm_private_dns_txt_record": {},
- "azurerm_image": {},
- "azurerm_ssh_public_key": {},
-}
-
-func IsResourceTypeSupported(ty string) bool {
- _, exist := supportedTypes[ty]
- return exist
-}
-
-func (ty ResourceType) String() string {
- return string(ty)
-}
-
-func GetMeta(ty ResourceType) ResourceTypeMeta {
- return supportedTypes[ty.String()]
-}
-
-type ResourceTypeMeta struct {
- children []ResourceType
-}
-
-func (ty ResourceTypeMeta) GetChildrenTypes() []ResourceType {
- return ty.children
-}
diff --git a/enumeration/resource/schemas.go b/enumeration/resource/schemas.go
deleted file mode 100644
index ef5735e34..000000000
--- a/enumeration/resource/schemas.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package resource
-
-import (
- "strings"
-
- "github.com/hashicorp/go-version"
- "github.com/hashicorp/terraform/configs/configschema"
-)
-
-type AttributeSchema struct {
- ConfigSchema configschema.Attribute
- JsonString bool
-}
-
-type Flags uint32
-
-func (f Flags) HasFlag(flag Flags) bool {
- return f&flag != 0
-}
-
-func (f *Flags) AddFlag(flag Flags) {
- *f |= flag
-}
-
-type Schema struct {
- ProviderVersion *version.Version
- Flags Flags
- SchemaVersion int64
- Attributes map[string]AttributeSchema
- NormalizeFunc func(res *Resource)
- HumanReadableAttributesFunc func(res *Resource) map[string]string
- DiscriminantFunc func(*Resource, *Resource) bool
-}
-
-func (s *Schema) IsComputedField(path []string) bool {
- metadata, exist := s.Attributes[strings.Join(path, ".")]
- if !exist {
- return false
- }
- return metadata.ConfigSchema.Computed
-}
-
-func (s *Schema) IsJsonStringField(path []string) bool {
- metadata, exist := s.Attributes[strings.Join(path, ".")]
- if !exist {
- return false
- }
- return metadata.JsonString
-}
diff --git a/enumeration/resource/supplier.go b/enumeration/resource/supplier.go
deleted file mode 100644
index 054b64d00..000000000
--- a/enumeration/resource/supplier.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package resource
-
-// Supplier supply the list of resource.Resource, it's the main interface to retrieve remote resources
-type Supplier interface {
- Resources() ([]*Resource, error)
-}
-
-type StoppableSupplier interface {
- Supplier
- Stop()
-}
diff --git a/enumeration/terraform/error/provider_download_error.go b/enumeration/terraform/error/provider_download_error.go
deleted file mode 100644
index de105127f..000000000
--- a/enumeration/terraform/error/provider_download_error.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package error
-
-import "fmt"
-
-type ProviderNotFoundError struct {
- Version string
-}
-
-func (p ProviderNotFoundError) Error() string {
- return fmt.Sprintf("Provider version %s does not exist", p.Version)
-}
diff --git a/enumeration/terraform/lock/lockfile.go b/enumeration/terraform/lock/lockfile.go
deleted file mode 100644
index 454f4e06b..000000000
--- a/enumeration/terraform/lock/lockfile.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package lock
-
-import (
- "strings"
-
- "github.com/hashicorp/hcl/v2/gohcl"
- "github.com/hashicorp/hcl/v2/hclparse"
-)
-
-type ProviderBlock struct {
- Address string `hcl:"address,label"`
- Version string `hcl:"version,attr"`
- Constraints string `hcl:"constraints,optional"`
- Hashes []string `hcl:"hashes,optional"`
-}
-
-// ProviderAddress encapsulates a single provider type. In the future this will be
-// extended to include additional fields including Namespace and SourceHost
-type ProviderAddress struct {
- Type string
- Namespace string
- Hostname string
-}
-
-func (p *ProviderAddress) String() string {
- return strings.Join([]string{p.Hostname, p.Namespace, p.Type}, "/")
-}
-
-type Lockfile struct {
- Providers []ProviderBlock `hcl:"provider,block"`
-}
-
-func (l *Lockfile) GetProviderByAddress(addr *ProviderAddress) *ProviderBlock {
- for _, p := range l.Providers {
- if p.Address == addr.String() {
- return &p
- }
- }
- return nil
-}
-
-func ReadLocksFromFile(filename string) (*Lockfile, error) {
- var lock Lockfile
-
- parser := hclparse.NewParser()
- f, diags := parser.ParseHCLFile(filename)
- if diags.HasErrors() {
- return &lock, diags
- }
-
- diags = gohcl.DecodeBody(f.Body, nil, &lock)
-
- if diags.HasErrors() {
- return &lock, diags
- }
-
- return &lock, nil
-}
diff --git a/enumeration/terraform/lock/lockfile_test.go b/enumeration/terraform/lock/lockfile_test.go
deleted file mode 100644
index 7c7b15e68..000000000
--- a/enumeration/terraform/lock/lockfile_test.go
+++ /dev/null
@@ -1,137 +0,0 @@
-package lock
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func Test_ReadLockFile(t *testing.T) {
- cases := []struct {
- test string
- filepath string
- assert func(*testing.T, *Lockfile, error)
- }{
- {
- test: "should attempt to read non existing file",
- filepath: "testdata/file_does_not_exist.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{
- Type: "aws",
- Namespace: "hashicorp",
- Hostname: "registry.terraform.io",
- })
-
- assert.Len(tt, locks.Providers, 0)
- assert.Nil(tt, provider)
- assert.EqualError(tt, err, ": Failed to read file; The configuration file \"testdata/file_does_not_exist.hcl\" could not be read.")
- },
- },
- {
- test: "should read valid lock file",
- filepath: "testdata/lockfile_valid.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{
- Type: "aws",
- Namespace: "hashicorp",
- Hostname: "registry.terraform.io",
- })
-
- assert.Len(tt, locks.Providers, 10)
- assert.Equal(tt, "3.47.0", provider.Version)
- assert.Equal(tt, "registry.terraform.io/hashicorp/aws", provider.Address)
- assert.Equal(tt, "~> 3.47.0", provider.Constraints)
- assert.Equal(tt, false, err != nil)
- },
- },
- {
- test: "should fail to retrieve provider block with invalid address",
- filepath: "testdata/lockfile_valid.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{})
-
- assert.Len(tt, locks.Providers, 10)
- assert.Nil(tt, provider)
- assert.Nil(tt, err)
- },
- },
- {
- test: "should read empty file without error",
- filepath: "testdata/lockfile_empty.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{})
-
- assert.Len(tt, locks.Providers, 0)
- assert.Nil(tt, provider)
- assert.Nil(tt, err)
- },
- },
- {
- test: "should return error for invalid lock file",
- filepath: "testdata/lockfile_invalid.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{})
-
- assert.Len(tt, locks.Providers, 1)
- assert.Nil(tt, provider)
- assert.EqualError(tt, err, "testdata/lockfile_invalid.hcl:4,48-48: Missing required argument; The argument \"version\" is required, but no definition was found.")
- },
- },
- {
- test: "should parse provider blocks without error",
- filepath: "testdata/lockfile_invalid_type-1.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{
- Type: "google-beta",
- Namespace: "hashicorp",
- Hostname: "registry.terraform.io",
- })
-
- assert.Len(tt, locks.Providers, 2)
- assert.Equal(tt, "2.71.0", provider.Version)
- assert.Equal(tt, "registry.terraform.io/hashicorp/google-beta", provider.Address)
- assert.Equal(tt, "~> 2.71.0", provider.Constraints)
- assert.Nil(tt, err)
- },
- },
- {
- test: "should parse provider blocks without error",
- filepath: "testdata/lockfile_invalid_type-3.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{
- Type: "google-beta",
- Namespace: "hashicorp",
- Hostname: "registry.terraform.io",
- })
-
- assert.Len(tt, locks.Providers, 2)
- assert.Equal(tt, "2.71.0", provider.Version)
- assert.Equal(tt, "registry.terraform.io/hashicorp/google-beta", provider.Address)
- assert.Equal(tt, "~> 2.71.0", provider.Constraints)
- assert.Nil(tt, err)
- },
- },
- {
- test: "should not find provider address",
- filepath: "testdata/lockfile_valid.hcl",
- assert: func(tt *testing.T, locks *Lockfile, err error) {
- provider := locks.GetProviderByAddress(&ProviderAddress{
- Type: "unknown",
- Namespace: "hashicorp",
- Hostname: "registry.terraform.io",
- })
-
- assert.Len(tt, locks.Providers, 10)
- assert.Nil(tt, provider)
- assert.Nil(tt, err)
- },
- },
- }
-
- for _, c := range cases {
- t.Run(c.test, func(tt *testing.T) {
- locks, err := ReadLocksFromFile(c.filepath)
- c.assert(t, locks, err)
- })
- }
-}
diff --git a/enumeration/terraform/lock/testdata/lockfile_empty.hcl b/enumeration/terraform/lock/testdata/lockfile_empty.hcl
deleted file mode 100644
index 6e7e53332..000000000
--- a/enumeration/terraform/lock/testdata/lockfile_empty.hcl
+++ /dev/null
@@ -1,2 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
diff --git a/enumeration/terraform/lock/testdata/lockfile_invalid.hcl b/enumeration/terraform/lock/testdata/lockfile_invalid.hcl
deleted file mode 100644
index d3fd00319..000000000
--- a/enumeration/terraform/lock/testdata/lockfile_invalid.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- constraints = "~> 3.47.0"
- hashes = [
- "h1:gXncRh1KtgLNMeb3/bYq5CvGfy8YTR+n6ds1noc5ggc=",
- "zh:07bb6bda5b9fdb782dd568a2e85cfe0ab108770e2218f3411e57ed845c58af40",
- "zh:0926b161a109e75bdc8691e8a32f568b4cd77a55510cf27573261fb5ba382287",
- "zh:0a91adf25a78ad31d547da513db24f493d27592d3675ed291a7698351c30992d",
- "zh:0f95f01e3bf0dab306ed86afb1ca00e01ce94ed6696765158d544b1569483b13",
- "zh:10466a520c617354ebbee9366267e0878b091a15d49cb97846511e952bd9db90",
- "zh:2fc627d3dc5a6df904591c673d640e6d3a697dcc12d1a43cf71066a47314f7c0",
- "zh:a85476047ddb359acdc0db5b9cbe0a7e13c4e65289b03f6c93303d0452db450b",
- "zh:cbadde98d44e8953cc78487b6788b97cff12632e9fda065bb970b001205662cb",
- "zh:db05702323c5fa253d5e067458340b89126738b8f6a9847465ee3e75b0f28320",
- "zh:e16cf52ff3b067adb33a75b89c03f9b03e666e2d45adb2ee296ae12b36cd5776",
- "zh:fcb8f73f7f5e195e3345d5694b526e0d5e77562d2e7dd468366ee15b1be6b418",
- ]
-}
diff --git a/enumeration/terraform/lock/testdata/lockfile_invalid_type-1.hcl b/enumeration/terraform/lock/testdata/lockfile_invalid_type-1.hcl
deleted file mode 100644
index 4f37f5772..000000000
--- a/enumeration/terraform/lock/testdata/lockfile_invalid_type-1.hcl
+++ /dev/null
@@ -1,40 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/google-beta" {
- version = "2.71.0"
- constraints = "~> 2.71.0"
- hashes = [
- "h1:RiFIxNI4Yr9CqleqEdgg1ydLAZ5JiYiz6l5iTD3WcuU=",
- "zh:2b9d8a703a0222f72cbceb8d2bdb580066afdcd7f28b6ad65d5ed935319b5433",
- "zh:332988f4c1747bcc8ebd32734bf8de2bea4c13a6fbd08d7eb97d0c43d335b15e",
- "zh:3a902470276ba48e23ad4dd6baff16a9ce3b60b29c0b07064dbe96ce4640a31c",
- "zh:5eaa0d0c2c6554913421be10fbf4bb6a9ef98fbbd750d3d1f02c99798aae2c22",
- "zh:67859f40ed2f770f33ace9d3911e8b9c9be505947b38a0578e6d097f5db1d4bf",
- "zh:7cd9bf4899fe383fc7eeede03cad138d637244878cd295a7a1044ca20ca0652c",
- "zh:afcb82c1382a1a9d63a41137321e077144aad768e4e46057a7ea604d067b4181",
- "zh:c6e358759ed00a628dcfe7adb0906b2c98576ac3056fdd70930786d404e1da66",
- "zh:cb3390c34f6790ad656929d0268ab3bc082678e8cbe2add0a177cf7896068844",
- "zh:cc213dbf59cf41506e86b83492ccfef6ef5f34d4d00d9e49fc8a01fee253f4ee",
- "zh:d1e8c9b507e2d187ea2447ae156028ba3f76db2164674761987c14217d04fee5",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/terraform-provider-aws" {
- version = "2.71.0"
- constraints = "~> 2.71.0"
- hashes = [
- "h1:RiFIxNI4Yr9CqleqEdgg1ydLAZ5JiYiz6l5iTD3WcuU=",
- "zh:2b9d8a703a0222f72cbceb8d2bdb580066afdcd7f28b6ad65d5ed935319b5433",
- "zh:332988f4c1747bcc8ebd32734bf8de2bea4c13a6fbd08d7eb97d0c43d335b15e",
- "zh:3a902470276ba48e23ad4dd6baff16a9ce3b60b29c0b07064dbe96ce4640a31c",
- "zh:5eaa0d0c2c6554913421be10fbf4bb6a9ef98fbbd750d3d1f02c99798aae2c22",
- "zh:67859f40ed2f770f33ace9d3911e8b9c9be505947b38a0578e6d097f5db1d4bf",
- "zh:7cd9bf4899fe383fc7eeede03cad138d637244878cd295a7a1044ca20ca0652c",
- "zh:afcb82c1382a1a9d63a41137321e077144aad768e4e46057a7ea604d067b4181",
- "zh:c6e358759ed00a628dcfe7adb0906b2c98576ac3056fdd70930786d404e1da66",
- "zh:cb3390c34f6790ad656929d0268ab3bc082678e8cbe2add0a177cf7896068844",
- "zh:cc213dbf59cf41506e86b83492ccfef6ef5f34d4d00d9e49fc8a01fee253f4ee",
- "zh:d1e8c9b507e2d187ea2447ae156028ba3f76db2164674761987c14217d04fee5",
- ]
-}
diff --git a/enumeration/terraform/lock/testdata/lockfile_invalid_type-3.hcl b/enumeration/terraform/lock/testdata/lockfile_invalid_type-3.hcl
deleted file mode 100644
index d7336bbce..000000000
--- a/enumeration/terraform/lock/testdata/lockfile_invalid_type-3.hcl
+++ /dev/null
@@ -1,40 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/google-beta" {
- version = "2.71.0"
- constraints = "~> 2.71.0"
- hashes = [
- "h1:RiFIxNI4Yr9CqleqEdgg1ydLAZ5JiYiz6l5iTD3WcuU=",
- "zh:2b9d8a703a0222f72cbceb8d2bdb580066afdcd7f28b6ad65d5ed935319b5433",
- "zh:332988f4c1747bcc8ebd32734bf8de2bea4c13a6fbd08d7eb97d0c43d335b15e",
- "zh:3a902470276ba48e23ad4dd6baff16a9ce3b60b29c0b07064dbe96ce4640a31c",
- "zh:5eaa0d0c2c6554913421be10fbf4bb6a9ef98fbbd750d3d1f02c99798aae2c22",
- "zh:67859f40ed2f770f33ace9d3911e8b9c9be505947b38a0578e6d097f5db1d4bf",
- "zh:7cd9bf4899fe383fc7eeede03cad138d637244878cd295a7a1044ca20ca0652c",
- "zh:afcb82c1382a1a9d63a41137321e077144aad768e4e46057a7ea604d067b4181",
- "zh:c6e358759ed00a628dcfe7adb0906b2c98576ac3056fdd70930786d404e1da66",
- "zh:cb3390c34f6790ad656929d0268ab3bc082678e8cbe2add0a177cf7896068844",
- "zh:cc213dbf59cf41506e86b83492ccfef6ef5f34d4d00d9e49fc8a01fee253f4ee",
- "zh:d1e8c9b507e2d187ea2447ae156028ba3f76db2164674761987c14217d04fee5",
- ]
-}
-
-provider "registry.terraform.io/-/test" {
- version = "2.71.0"
- constraints = "~> 2.71.0"
- hashes = [
- "h1:RiFIxNI4Yr9CqleqEdgg1ydLAZ5JiYiz6l5iTD3WcuU=",
- "zh:2b9d8a703a0222f72cbceb8d2bdb580066afdcd7f28b6ad65d5ed935319b5433",
- "zh:332988f4c1747bcc8ebd32734bf8de2bea4c13a6fbd08d7eb97d0c43d335b15e",
- "zh:3a902470276ba48e23ad4dd6baff16a9ce3b60b29c0b07064dbe96ce4640a31c",
- "zh:5eaa0d0c2c6554913421be10fbf4bb6a9ef98fbbd750d3d1f02c99798aae2c22",
- "zh:67859f40ed2f770f33ace9d3911e8b9c9be505947b38a0578e6d097f5db1d4bf",
- "zh:7cd9bf4899fe383fc7eeede03cad138d637244878cd295a7a1044ca20ca0652c",
- "zh:afcb82c1382a1a9d63a41137321e077144aad768e4e46057a7ea604d067b4181",
- "zh:c6e358759ed00a628dcfe7adb0906b2c98576ac3056fdd70930786d404e1da66",
- "zh:cb3390c34f6790ad656929d0268ab3bc082678e8cbe2add0a177cf7896068844",
- "zh:cc213dbf59cf41506e86b83492ccfef6ef5f34d4d00d9e49fc8a01fee253f4ee",
- "zh:d1e8c9b507e2d187ea2447ae156028ba3f76db2164674761987c14217d04fee5",
- ]
-}
diff --git a/enumeration/terraform/lock/testdata/lockfile_valid.hcl b/enumeration/terraform/lock/testdata/lockfile_valid.hcl
deleted file mode 100644
index 1a4cf0138..000000000
--- a/enumeration/terraform/lock/testdata/lockfile_valid.hcl
+++ /dev/null
@@ -1,188 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.47.0"
- constraints = "~> 3.47.0"
- hashes = [
- "h1:gXncRh1KtgLNMeb3/bYq5CvGfy8YTR+n6ds1noc5ggc=",
- "zh:07bb6bda5b9fdb782dd568a2e85cfe0ab108770e2218f3411e57ed845c58af40",
- "zh:0926b161a109e75bdc8691e8a32f568b4cd77a55510cf27573261fb5ba382287",
- "zh:0a91adf25a78ad31d547da513db24f493d27592d3675ed291a7698351c30992d",
- "zh:0f95f01e3bf0dab306ed86afb1ca00e01ce94ed6696765158d544b1569483b13",
- "zh:10466a520c617354ebbee9366267e0878b091a15d49cb97846511e952bd9db90",
- "zh:2fc627d3dc5a6df904591c673d640e6d3a697dcc12d1a43cf71066a47314f7c0",
- "zh:a85476047ddb359acdc0db5b9cbe0a7e13c4e65289b03f6c93303d0452db450b",
- "zh:cbadde98d44e8953cc78487b6788b97cff12632e9fda065bb970b001205662cb",
- "zh:db05702323c5fa253d5e067458340b89126738b8f6a9847465ee3e75b0f28320",
- "zh:e16cf52ff3b067adb33a75b89c03f9b03e666e2d45adb2ee296ae12b36cd5776",
- "zh:fcb8f73f7f5e195e3345d5694b526e0d5e77562d2e7dd468366ee15b1be6b418",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/azurerm" {
- version = "2.71.0"
- constraints = "~> 2.71.0"
- hashes = [
- "h1:RiFIxNI4Yr9CqleqEdgg1ydLAZ5JiYiz6l5iTD3WcuU=",
- "zh:2b9d8a703a0222f72cbceb8d2bdb580066afdcd7f28b6ad65d5ed935319b5433",
- "zh:332988f4c1747bcc8ebd32734bf8de2bea4c13a6fbd08d7eb97d0c43d335b15e",
- "zh:3a902470276ba48e23ad4dd6baff16a9ce3b60b29c0b07064dbe96ce4640a31c",
- "zh:5eaa0d0c2c6554913421be10fbf4bb6a9ef98fbbd750d3d1f02c99798aae2c22",
- "zh:67859f40ed2f770f33ace9d3911e8b9c9be505947b38a0578e6d097f5db1d4bf",
- "zh:7cd9bf4899fe383fc7eeede03cad138d637244878cd295a7a1044ca20ca0652c",
- "zh:afcb82c1382a1a9d63a41137321e077144aad768e4e46057a7ea604d067b4181",
- "zh:c6e358759ed00a628dcfe7adb0906b2c98576ac3056fdd70930786d404e1da66",
- "zh:cb3390c34f6790ad656929d0268ab3bc082678e8cbe2add0a177cf7896068844",
- "zh:cc213dbf59cf41506e86b83492ccfef6ef5f34d4d00d9e49fc8a01fee253f4ee",
- "zh:d1e8c9b507e2d187ea2447ae156028ba3f76db2164674761987c14217d04fee5",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/cloudinit" {
- version = "2.2.0"
- hashes = [
- "h1:tQLNREqesrdCQ/bIJnl0+yUK+XfdWzAG0wo4lp10LvM=",
- "zh:76825122171f9ea2287fd27e23e80a7eb482f6491a4f41a096d77b666896ee96",
- "zh:795a36dee548e30ca9c9d474af9ad6d29290e0a9816154ad38d55381cd0ab12d",
- "zh:9200f02cb917fb99e44b40a68936fd60d338e4d30a718b7e2e48024a795a61b9",
- "zh:a33cf255dc670c20678063aa84218e2c1b7a67d557f480d8ec0f68bc428ed472",
- "zh:ba3c1b2cd0879286c1f531862c027ec04783ece81de67c9a3b97076f1ce7f58f",
- "zh:bd575456394428a1a02191d2e46af0c00e41fd4f28cfe117d57b6aeb5154a0fb",
- "zh:c68dd1db83d8437c36c92dc3fc11d71ced9def3483dd28c45f8640cfcd59de9a",
- "zh:cbfe34a90852ed03cc074601527bb580a648127255c08589bc3ef4bf4f2e7e0c",
- "zh:d6ffd7398c6d1f359b96f5b757e77b99b339fbb91df1b96ac974fe71bc87695c",
- "zh:d9c15285f847d7a52df59e044184fb3ba1b7679fd0386291ed183782683d9517",
- "zh:f7dd02f6d36844da23c9a27bb084503812c29c1aec4aba97237fec16860fdc8c",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/google" {
- version = "3.82.0"
- hashes = [
- "h1:+D/onH+6h1gUbGQhEEzR63eQ+sVDieKUUULsgONSpQg=",
- "zh:08d93ebb10ebacb1abf98bd03dd6e8974b6b30c603212464295cd2a4a2cd36f4",
- "zh:1665ccede1ed0ff571083ba609b34242ba397ec38959121513b44e8916ab71fb",
- "zh:525274e5767fc41515d5d397b53cc6a528c343253be4d4491d2d58f74670f387",
- "zh:61b84b6ca55a99e1f624641e8710d3ed3409ead85d50fbf4633d509a9ba18684",
- "zh:780829197c2daaac0dba7b6ecb520f140d4bc4519e522c9338e278a16f7daaa1",
- "zh:9e4a2a17e46e18378d2b30d44ce6fb1f012f9919891d5cb8aaff9b1628387b87",
- "zh:9eac4c47da2c0482e6005df0827c282ce18da959989424fd831f32b15edffecd",
- "zh:a1ff3276a0cadc181116235ca681f4e0e97b67b752822bed924b946e3862c73f",
- "zh:ae646e03d7cdb831054d0913aa45d9eca5a422c31170ecea9f9a28cca7ecca2c",
- "zh:b4443cca277416880a72e954d40b8db5f67bd17eeabf85f640a09b5b7c58269e",
- "zh:f9a0bb1a9ecf8234b90c1c7c828efbbf87ea2aaba1f10283341aec24dc482d96",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/kubernetes" {
- version = "2.4.1"
- constraints = ">= 1.11.1, >= 2.0.1"
- hashes = [
- "h1:wU6cDBN6KPhjbBvPWXRgryN9amNlhL/n9l39cFm3X/U=",
- "zh:10a368f3a3f26d821f02b55f0c42bdd4d2cd0dc5e2568c513bce39d92d25526f",
- "zh:2183272a6d44f23d562d47ff4d6592685d8797838bdae69a50f92121743b020f",
- "zh:24c492d61ce4dbcac4bb4410bd5e657ab28d19ab320d41104148ee626b44f5ed",
- "zh:291380db0cd581d806158e5ddfd7133592055151109fcf0c923644cede5f30c7",
- "zh:46933ddae44108d1a2956d917bafdb8879147b204b1bfac0c238773d2587e288",
- "zh:5b96c1c330d709d87faa44f1cc9b1db87baeba5056638fe07c51a9b5a67f297e",
- "zh:9fbb4ac6de96f68df324adbb77fd5eee6138f534f5393dc3bac18e615c75e0d0",
- "zh:b8da6bbb97c20ec6e26c0160060c24d4e91b5057342b8b93a43f4019ab36e344",
- "zh:c12390d668ef2f4c943c385de3befb54c0bfd0f9a3aa28b6aec55f7db4f4a518",
- "zh:dee3d13f664037ada51e6f51c7e1c1361e643e1e61fbc9403b0f3985caa29c90",
- "zh:ed10c04a636fa4a0f6e5e6068cb2f9a0f976b596cbabb9bd429631e3ba7fa35a",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/local" {
- version = "2.0.0"
- constraints = ">= 1.4.0, 2.0.0"
- hashes = [
- "h1:EC6eh7avwx1rF56h3RZcxgEp/14ihi7Sk/4J3Hn4nIE=",
- "zh:34ce8b79493ace8333d094752b579ccc907fa9392a2c1d6933a6c95d0786d3f1",
- "zh:5c5a19c4f614a4ffb68bae0b0563f3860115cf7539b8adc21108324cfdc10092",
- "zh:67ddb1ca2cd3e1a8f948302597ceb967f19d2eeb2d125303493667388fe6330e",
- "zh:68e6b16f3a8e180fcba1a99754118deb2d82331b51f6cca39f04518339bfdfa6",
- "zh:8393a12eb11598b2799d51c9b0a922a3d9fadda5a626b94a1b4914086d53120e",
- "zh:90daea4b2010a86f2aca1e3a9590e0b3ddcab229c2bd3685fae76a832e9e836f",
- "zh:99308edc734a0ac9149b44f8e316ca879b2670a1cae387a8ae754c180b57cdb4",
- "zh:c76594db07a9d1a73372a073888b672df64adb455d483c2426cc220eda7e092e",
- "zh:dc09c1fb36c6a706bdac96cce338952888c8423978426a09f5df93031aa88b84",
- "zh:deda88134e9780319e8de91b3745520be48ead6ec38cb662694d09185c3dac70",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/null" {
- version = "3.0.0"
- constraints = "3.0.0"
- hashes = [
- "h1:ysHGBhBNkIiJLEpthB/IVCLpA1Qoncp3KbCTFGFZTO0=",
- "zh:05fb7eab469324c97e9b73a61d2ece6f91de4e9b493e573bfeda0f2077bc3a4c",
- "zh:1688aa91885a395c4ae67636d411475d0b831e422e005dcf02eedacaafac3bb4",
- "zh:24a0b1292e3a474f57c483a7a4512d797e041bc9c2fbaac42fe12e86a7fb5a3c",
- "zh:2fc951bd0d1b9b23427acc93be09b6909d72871e464088171da60fbee4fdde03",
- "zh:6db825759425599a326385a68acc6be2d9ba0d7d6ef587191d0cdc6daef9ac63",
- "zh:85985763d02618993c32c294072cc6ec51f1692b803cb506fcfedca9d40eaec9",
- "zh:a53186599c57058be1509f904da512342cfdc5d808efdaf02dec15f0f3cb039a",
- "zh:c2e07b49b6efa676bdc7b00c06333ea1792a983a5720f9e2233db27323d2707c",
- "zh:cdc8fe1096103cf5374751e2e8408ec4abd2eb67d5a1c5151fe2c7ecfd525bef",
- "zh:dbdef21df0c012b0d08776f3d4f34eb0f2f229adfde07ff252a119e52c0f65b7",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/random" {
- version = "3.0.0"
- constraints = "3.0.0"
- hashes = [
- "h1:grDzxfnOdFXi90FRIIwP/ZrCzirJ/SfsGBe6cE0Shg4=",
- "zh:0fcb00ff8b87dcac1b0ee10831e47e0203a6c46aafd76cb140ba2bab81f02c6b",
- "zh:123c984c0e04bad910c421028d18aa2ca4af25a153264aef747521f4e7c36a17",
- "zh:287443bc6fd7fa9a4341dec235589293cbcc6e467a042ae225fd5d161e4e68dc",
- "zh:2c1be5596dd3cca4859466885eaedf0345c8e7628503872610629e275d71b0d2",
- "zh:684a2ef6f415287944a3d966c4c8cee82c20e393e096e2f7cdcb4b2528407f6b",
- "zh:7625ccbc6ff17c2d5360ff2af7f9261c3f213765642dcd84e84ae02a3768fd51",
- "zh:9a60811ab9e6a5bfa6352fbb943bb530acb6198282a49373283a8fa3aa2b43fc",
- "zh:c73e0eaeea6c65b1cf5098b101d51a2789b054201ce7986a6d206a9e2dacaefd",
- "zh:e8f9ed41ac83dbe407de9f0206ef1148204a0d51ba240318af801ffb3ee5f578",
- "zh:fbdd0684e62563d3ac33425b0ac9439d543a3942465f4b26582bcfabcb149515",
- ]
-}
-
-provider "registry.terraform.io/hashicorp/template" {
- version = "2.2.0"
- constraints = "2.2.0"
- hashes = [
- "h1:94qn780bi1qjrbC3uQtjJh3Wkfwd5+tTtJHOb7KTg9w=",
- "zh:01702196f0a0492ec07917db7aaa595843d8f171dc195f4c988d2ffca2a06386",
- "zh:09aae3da826ba3d7df69efeb25d146a1de0d03e951d35019a0f80e4f58c89b53",
- "zh:09ba83c0625b6fe0a954da6fbd0c355ac0b7f07f86c91a2a97849140fea49603",
- "zh:0e3a6c8e16f17f19010accd0844187d524580d9fdb0731f675ffcf4afba03d16",
- "zh:45f2c594b6f2f34ea663704cc72048b212fe7d16fb4cfd959365fa997228a776",
- "zh:77ea3e5a0446784d77114b5e851c970a3dde1e08fa6de38210b8385d7605d451",
- "zh:8a154388f3708e3df5a69122a23bdfaf760a523788a5081976b3d5616f7d30ae",
- "zh:992843002f2db5a11e626b3fc23dc0c87ad3729b3b3cff08e32ffb3df97edbde",
- "zh:ad906f4cebd3ec5e43d5cd6dc8f4c5c9cc3b33d2243c89c5fc18f97f7277b51d",
- "zh:c979425ddb256511137ecd093e23283234da0154b7fa8b21c2687182d9aea8b2",
- ]
-}
-
-provider "registry.terraform.io/terraform-aws-modules/http" {
- version = "2.4.1"
- constraints = ">= 2.4.1"
- hashes = [
- "h1:ZnkXcawrIr611RvZpoDzbtPU7SVFyHym+7p1t+PQh20=",
- "zh:0111f54de2a9815ded291f23136d41f3d2731c58ea663a2e8f0fef02d377d697",
- "zh:0740152d76f0ccf54f4d0e8e0753739a5233b022acd60b5d2353d248c4c17204",
- "zh:569518f46809ec9cdc082b4dfd4e828236eee2b50f87b301d624cfd83b8f5b0d",
- "zh:7669f7691de91eec9f381e9a4be81aa4560f050348a86c6ea7804925752a01bb",
- "zh:81cd53e796ec806aca2d8e92a2aed9135661e170eeff6cf0418e54f98816cd05",
- "zh:82f01abd905090f978b169ac85d7a5952322a5f0f460269dd981b3596652d304",
- "zh:9a235610066e0f7e567e69c23a53327271a6fc568b06bf152d8fe6594749ed2b",
- "zh:aeabdd8e633d143feb67c52248c85358951321e35b43943aeab577c005abd30a",
- "zh:c20d22dba5c79731918e7192bc3d0b364d47e98a74f47d287e6cc66236bc0ed0",
- "zh:c4fea2cb18c31ed7723deec5ebaff85d6795bb6b6ed3b954794af064d17a7f9f",
- "zh:e21e88b6e7e55b9f29b046730d9928c65a4f181fd5f60a42f1cd41b46a0a938d",
- "zh:eddb888a74dea348a0acdfee13a08875bacddde384bd9c28342a534269665568",
- "zh:f46d5f1403b8d8dfafab9bdd7129d3080bb62a91ea726f477fd43560887b8c4a",
- ]
-}
diff --git a/enumeration/terraform/parallel_resource_reader.go b/enumeration/terraform/parallel_resource_reader.go
deleted file mode 100644
index ab0f22862..000000000
--- a/enumeration/terraform/parallel_resource_reader.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package terraform
-
-import (
- "github.com/snyk/driftctl/enumeration/parallel"
- "github.com/zclconf/go-cty/cty"
-)
-
-type ParallelResourceReader struct {
- runner *parallel.ParallelRunner
-}
-
-func NewParallelResourceReader(runner *parallel.ParallelRunner) *ParallelResourceReader {
- return &ParallelResourceReader{
- runner: runner,
- }
-}
-
-func (p *ParallelResourceReader) Wait() ([]cty.Value, error) {
- results := make([]cty.Value, 0)
-Loop:
- for {
- select {
- case res, ok := <-p.runner.Read():
- if !ok {
- break Loop
- }
- ctyVal := res.(cty.Value)
- if !ctyVal.IsNull() {
- results = append(results, ctyVal)
- }
- case <-p.runner.DoneChan():
- break Loop
- }
- }
- return results, p.runner.Err()
-}
-
-func (p *ParallelResourceReader) Run(runnable func() (cty.Value, error)) {
- p.runner.Run(func() (interface{}, error) {
- return runnable()
- })
-}
diff --git a/enumeration/terraform/parallel_resource_reader_test.go b/enumeration/terraform/parallel_resource_reader_test.go
deleted file mode 100644
index 4dd891759..000000000
--- a/enumeration/terraform/parallel_resource_reader_test.go
+++ /dev/null
@@ -1,79 +0,0 @@
-package terraform
-
-import (
- "context"
- "errors"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/parallel"
-
- "github.com/r3labs/diff/v2"
- "github.com/stretchr/testify/assert"
-
- "github.com/zclconf/go-cty/cty"
-)
-
-func TestParallelResourceReader_Wait(t *testing.T) {
- assert := assert.New(t)
- tests := []struct {
- name string
- execs []func() (cty.Value, error)
- want []cty.Value
- wantErr bool
- }{
- {
- name: "Working // read resource",
- execs: []func() (cty.Value, error){
- func() (cty.Value, error) {
- return cty.BoolVal(true), nil
- },
- func() (cty.Value, error) {
- return cty.StringVal("test"), nil
- },
- },
- want: []cty.Value{cty.BoolVal(true), cty.StringVal("test")},
- wantErr: false,
- },
-
- {
- name: "failing // read resource",
- execs: []func() (cty.Value, error){
- func() (cty.Value, error) {
- return cty.BoolVal(true), nil
- },
- func() (cty.Value, error) {
- return cty.NilVal, errors.New("error")
- },
- func() (cty.Value, error) {
- return cty.StringVal("test"), nil
- },
- },
- want: nil,
- wantErr: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- p := NewParallelResourceReader(parallel.NewParallelRunner(context.TODO(), 10))
-
- for _, fun := range tt.execs {
- p.Run(fun)
- }
-
- got, err := p.Wait()
- assert.Equal(tt.wantErr, err != nil)
- if tt.want != nil {
- changelog, err := diff.Diff(got, tt.want)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- }
- }
- })
- }
-}
diff --git a/enumeration/terraform/plugin_client.go b/enumeration/terraform/plugin_client.go
deleted file mode 100644
index b89758f63..000000000
--- a/enumeration/terraform/plugin_client.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package terraform
-
-import (
- "os/exec"
-
- tfplugin "github.com/hashicorp/terraform/plugin"
- "github.com/snyk/driftctl/logger"
-
- "github.com/hashicorp/go-plugin"
- "github.com/hashicorp/terraform/plugin/discovery"
-)
-
-func ClientConfig(m discovery.PluginMeta) *plugin.ClientConfig {
- logger := logger.NewTerraformPluginLogger()
- return &plugin.ClientConfig{
- Cmd: exec.Command(m.Path),
- HandshakeConfig: tfplugin.Handshake,
- VersionedPlugins: tfplugin.VersionedPlugins,
- Managed: true,
- Logger: logger,
- AllowedProtocols: []plugin.Protocol{plugin.ProtocolGRPC},
- AutoMTLS: true,
- }
-}
-
-// Client returns a plugin client for the plugin described by the given metadata.
-func Client(m discovery.PluginMeta) *plugin.Client {
- return plugin.NewClient(ClientConfig(m))
-}
diff --git a/enumeration/terraform/provider_config.go b/enumeration/terraform/provider_config.go
deleted file mode 100644
index c1d89503e..000000000
--- a/enumeration/terraform/provider_config.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package terraform
-
-import (
- "fmt"
- "runtime"
-)
-
-type ProviderConfig struct {
- Key string
- Version string
- ConfigDir string
-}
-
-func (c *ProviderConfig) GetDownloadUrl() string {
- arch := runtime.GOARCH
- if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
- arch = "amd64"
- }
- return fmt.Sprintf(
- "https://releases.hashicorp.com/terraform-provider-%s/%s/terraform-provider-%s_%s_%s_%s.zip",
- c.Key,
- c.Version,
- c.Key,
- c.Version,
- runtime.GOOS,
- arch,
- )
-}
-
-func (c *ProviderConfig) GetBinaryName() string {
- return fmt.Sprintf("terraform-provider-%s_v%s", c.Key, c.Version)
-}
diff --git a/enumeration/terraform/provider_config_test.go b/enumeration/terraform/provider_config_test.go
deleted file mode 100644
index 2da527b5e..000000000
--- a/enumeration/terraform/provider_config_test.go
+++ /dev/null
@@ -1,88 +0,0 @@
-package terraform
-
-import (
- "fmt"
- "runtime"
- "testing"
-)
-
-func TestProviderConfig_GetBinaryName(t *testing.T) {
- type fields struct {
- Key string
- Version string
- }
- tests := []struct {
- name string
- fields fields
- want string
- }{
- {
- name: "test for aws provider",
- fields: fields{
- Key: "aws",
- Version: "3.24.1",
- },
- want: "terraform-provider-aws_v3.24.1",
- },
- {
- name: "test for github provider",
- fields: fields{
- Key: "github",
- Version: "4.4.0",
- },
- want: "terraform-provider-github_v4.4.0",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- c := &ProviderConfig{
- Key: tt.fields.Key,
- Version: tt.fields.Version,
- }
- if got := c.GetBinaryName(); got != tt.want {
- t.Errorf("GetBinaryName() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestProviderConfig_GetDownloadUrl(t *testing.T) {
- arch := runtime.GOARCH
- if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
- arch = "amd64"
- }
- type fields struct {
- Key string
- Version string
- Postfix string
- }
- tests := []struct {
- name string
- fields fields
- want string
- }{
- {
- name: "test for aws provider",
- fields: fields{
- Key: "aws",
- Version: "3.24.1",
- },
- want: fmt.Sprintf(
- "https://releases.hashicorp.com/terraform-provider-aws/3.24.1/terraform-provider-aws_3.24.1_%s_%s.zip",
- runtime.GOOS,
- arch,
- ),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- c := &ProviderConfig{
- Key: tt.fields.Key,
- Version: tt.fields.Version,
- }
- if got := c.GetDownloadUrl(); got != tt.want {
- t.Errorf("GetDownloadUrl() = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/enumeration/terraform/provider_downloader.go b/enumeration/terraform/provider_downloader.go
deleted file mode 100644
index 4e31589ae..000000000
--- a/enumeration/terraform/provider_downloader.go
+++ /dev/null
@@ -1,81 +0,0 @@
-package terraform
-
-import (
- "context"
- "net/http"
- "os"
-
- tferror "github.com/snyk/driftctl/enumeration/terraform/error"
-
- "github.com/hashicorp/go-getter"
-
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
-)
-
-type ProviderDownloaderInterface interface {
- Download(url, path string) error
-}
-
-type ProviderDownloader struct {
- httpclient *http.Client
- unzip getter.ZipDecompressor
- context context.Context
-}
-
-func NewProviderDownloader() *ProviderDownloader {
- return &ProviderDownloader{
- httpclient: http.DefaultClient,
- unzip: getter.ZipDecompressor{},
- context: context.Background(),
- }
-}
-
-func (p *ProviderDownloader) Download(url, path string) error {
- logrus.WithFields(logrus.Fields{
- "url": url,
- "path": path,
- }).Debug("Downloading provider")
-
- req, err := http.NewRequestWithContext(p.context, "GET", url, nil)
- if err != nil {
- return err
- }
- resp, err := p.httpclient.Do(req)
- if err != nil {
- return err
- }
- defer resp.Body.Close()
- if resp.StatusCode == http.StatusForbidden {
- return tferror.ProviderNotFoundError{}
- }
- if resp.StatusCode != http.StatusOK {
- return errors.Errorf("unsuccessful request to %s: %s", url, resp.Status)
- }
- f, err := os.CreateTemp("", "terraform-provider")
- if err != nil {
- return errors.Errorf("failed to open temporary file to download from %s", url)
- }
- defer f.Close()
- defer os.Remove(f.Name())
- n, err := getter.Copy(p.context, f, resp.Body)
- if err == nil && n < resp.ContentLength {
- err = errors.Errorf(
- "incorrect response size: expected %d bytes, but got %d bytes",
- resp.ContentLength,
- n,
- )
- }
- if err != nil {
- return err
- }
- logrus.WithFields(logrus.Fields{
- "src": f.Name(),
- "dst": path,
- }).Debug("Decompressing archive")
- err = p.unzip.Decompress(path, f.Name(), true, 0)
- if err != nil {
- return err
- }
- return nil
-}
diff --git a/enumeration/terraform/provider_downloader_test.go b/enumeration/terraform/provider_downloader_test.go
deleted file mode 100644
index 247824643..000000000
--- a/enumeration/terraform/provider_downloader_test.go
+++ /dev/null
@@ -1,110 +0,0 @@
-package terraform
-
-import (
- "fmt"
- "net/http"
- "os"
- "path"
- "testing"
-
- terraformError "github.com/snyk/driftctl/enumeration/terraform/error"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/stretchr/testify/assert"
-
- "github.com/jarcoal/httpmock"
-)
-
-func TestProviderDownloader_Download(t *testing.T) {
- httpmock.Activate()
- defer httpmock.DeactivateAndReset()
- downloader := NewProviderDownloader()
- url := "https://example.com/terraform-provider-aws_3.19.0_linux_amd64.zip"
-
- cases := []struct {
- name string
- httpStatus *int
- testFile *string
- responder httpmock.Responder
- assert func(assert *assert.Assertions, tmpDir string, err error)
- }{
- {
- name: "TestBadResponse(404)",
- responder: httpmock.NewBytesResponder(http.StatusNotFound, []byte{}),
- assert: func(assert *assert.Assertions, tmpDir string, err error) {
- assert.Equal(
- fmt.Sprintf("unsuccessful request to %s: 404", url),
- err.Error(),
- )
- },
- },
- {
- name: "TestProviderNotFound(403)",
- responder: httpmock.NewBytesResponder(http.StatusForbidden, []byte{}),
- assert: func(assert *assert.Assertions, tmpDir string, err error) {
- assert.IsType(
- terraformError.ProviderNotFoundError{},
- err,
- )
- },
- },
- {
- name: "TestHttpError",
- responder: httpmock.NewErrorResponder(fmt.Errorf("test error")),
- assert: func(assert *assert.Assertions, tmpDir string, err error) {
- assert.Contains(err.Error(), "test error")
- },
- },
- {
- name: "TestInvalidZip",
- testFile: aws.String("invalid.zip"),
- assert: func(assert *assert.Assertions, tmpDir string, err error) {
- assert.NotNil(err)
- infos, err := os.ReadDir(tmpDir)
- assert.Nil(err)
- assert.Len(infos, 0)
- },
- },
- {
- name: "TestValidZip",
- testFile: aws.String("terraform-provider-aws_3.5.0_linux_amd64.zip"),
- assert: func(assert *assert.Assertions, tmpDir string, err error) {
- assert.Nil(err)
- file, err := os.ReadFile(path.Join(tmpDir, "terraform-provider-aws_v3.5.0_x5"))
- assert.Nil(err)
- assert.Equal([]byte{0x74, 0x65, 0x73, 0x74, 0xa}, file)
- },
- },
- }
-
- for _, c := range cases {
-
- t.Run(c.name, func(tt *testing.T) {
- tmpDir := tt.TempDir()
-
- httpmock.Reset()
- assert := assert.New(tt)
-
- if c.httpStatus == nil {
- c.httpStatus = aws.Int(http.StatusOK)
- }
-
- if c.responder != nil {
- httpmock.RegisterResponder("GET", url, c.responder)
- } else {
- if c.testFile != nil {
- body, err := os.ReadFile("./testdata/" + *c.testFile)
- if err != nil {
- tt.Error(err)
- }
- httpmock.RegisterResponder("GET", url, httpmock.NewBytesResponder(*c.httpStatus, body))
- }
- }
-
- err := downloader.Download(url, tmpDir)
-
- c.assert(assert, tmpDir, err)
- })
-
- }
-}
diff --git a/enumeration/terraform/provider_factory.go b/enumeration/terraform/provider_factory.go
deleted file mode 100644
index 0140e7c03..000000000
--- a/enumeration/terraform/provider_factory.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package terraform
-
-import (
- "github.com/hashicorp/terraform/plugin"
- "github.com/hashicorp/terraform/plugin/discovery"
-)
-
-func NewGRPCProvider(meta discovery.PluginMeta) (*plugin.GRPCProvider, error) {
- client := Client(meta)
- // Request the RPC terraformProvider so we can get the provider
- // so we can build the actual RPC-implemented provider.
- rpcClient, err := client.Client()
- if err != nil {
- return nil, err
- }
- raw, err := rpcClient.Dispense(plugin.ProviderPluginName)
- if err != nil {
- return nil, err
- }
-
- GRPCProvider := raw.(*plugin.GRPCProvider)
- GRPCProvider.PluginClient = client
-
- return GRPCProvider, nil
-}
diff --git a/enumeration/terraform/provider_installer.go b/enumeration/terraform/provider_installer.go
deleted file mode 100644
index f40b8c165..000000000
--- a/enumeration/terraform/provider_installer.go
+++ /dev/null
@@ -1,95 +0,0 @@
-package terraform
-
-import (
- "fmt"
- "io/fs"
- "os"
- "path"
- "path/filepath"
- "runtime"
- "strings"
-
- error2 "github.com/snyk/driftctl/enumeration/terraform/error"
-
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
-)
-
-type HomeDirInterface interface {
- Dir() (string, error)
-}
-
-type ProviderInstaller struct {
- downloader ProviderDownloaderInterface
- config ProviderConfig
- homeDir string
-}
-
-func NewProviderInstaller(config ProviderConfig) (*ProviderInstaller, error) {
- return &ProviderInstaller{
- NewProviderDownloader(),
- config,
- config.ConfigDir,
- }, nil
-}
-
-func (p *ProviderInstaller) Install() (string, error) {
- providerDir := p.getProviderDirectory()
- providerPath := p.getBinaryPath()
-
- info, err := os.Stat(providerPath)
-
- if err != nil && os.IsNotExist(err) {
- logrus.WithFields(logrus.Fields{
- "path": providerPath,
- }).Debug("provider not found, downloading ...")
- err := p.downloader.Download(
- p.config.GetDownloadUrl(),
- providerDir,
- )
- if err != nil {
- if notFoundErr, ok := err.(error2.ProviderNotFoundError); ok {
- notFoundErr.Version = p.config.Version
- return "", notFoundErr
- }
- return "", err
- }
- logrus.Debug("Download successful")
- }
-
- if info != nil && info.IsDir() {
- return "", errors.Errorf(
- "found directory instead of provider binary in %s",
- providerPath,
- )
- }
-
- if info != nil {
- logrus.WithFields(logrus.Fields{
- "path": providerPath,
- }).Debug("Found existing provider")
- }
-
- return p.getBinaryPath(), nil
-}
-
-func (p ProviderInstaller) getProviderDirectory() string {
- return path.Join(p.homeDir, fmt.Sprintf(".driftctl/plugins/%s_%s/", runtime.GOOS, runtime.GOARCH))
-}
-
-// Handle postfixes in binary names
-func (p *ProviderInstaller) getBinaryPath() string {
- providerDir := p.getProviderDirectory()
- binaryName := p.config.GetBinaryName()
- _, err := os.Stat(path.Join(providerDir, binaryName))
- if err != nil && os.IsNotExist(err) {
- _ = filepath.WalkDir(providerDir, func(filePath string, d fs.DirEntry, err error) error {
- if d != nil && strings.HasPrefix(d.Name(), p.config.GetBinaryName()) {
- binaryName = d.Name()
- }
- return nil
- })
- }
-
- return path.Join(providerDir, binaryName)
-}
diff --git a/enumeration/terraform/provider_installer_test.go b/enumeration/terraform/provider_installer_test.go
deleted file mode 100644
index 43814e844..000000000
--- a/enumeration/terraform/provider_installer_test.go
+++ /dev/null
@@ -1,206 +0,0 @@
-package terraform
-
-import (
- "fmt"
- terraformError "github.com/snyk/driftctl/enumeration/terraform/error"
- "os"
- "path"
- "runtime"
- "testing"
-
- "github.com/snyk/driftctl/mocks"
- "github.com/stretchr/testify/mock"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestProviderInstallerInstallDoesNotExist(t *testing.T) {
-
- assert := assert.New(t)
- fakeTmpHome := t.TempDir()
-
- expectedSubFolder := fmt.Sprintf("/.driftctl/plugins/%s_%s", runtime.GOOS, runtime.GOARCH)
-
- config := ProviderConfig{
- Key: "aws",
- Version: "3.19.0",
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
- mockDownloader.On("Download", config.GetDownloadUrl(), path.Join(fakeTmpHome, expectedSubFolder)).Return(nil)
-
- installer := ProviderInstaller{
- downloader: &mockDownloader,
- config: config,
- homeDir: fakeTmpHome,
- }
-
- providerPath, err := installer.Install()
- mockDownloader.AssertExpectations(t)
-
- assert.Nil(err)
- assert.Equal(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()), providerPath)
-
-}
-
-func TestProviderInstallerInstallAlreadyExist(t *testing.T) {
-
- assert := assert.New(t)
- fakeTmpHome := t.TempDir()
- expectedSubFolder := fmt.Sprintf("/.driftctl/plugins/%s_%s", runtime.GOOS, runtime.GOARCH)
- err := os.MkdirAll(path.Join(fakeTmpHome, expectedSubFolder), 0755)
- if err != nil {
- t.Error(err)
- }
-
- config := ProviderConfig{
- Key: "aws",
- Version: "3.19.0",
- }
-
- _, err = os.Create(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()))
- if err != nil {
- t.Error(err)
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
-
- installer := ProviderInstaller{
- downloader: &mockDownloader,
- config: config,
- homeDir: fakeTmpHome,
- }
-
- providerPath, err := installer.Install()
- mockDownloader.AssertExpectations(t)
-
- assert.Nil(err)
- assert.Equal(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()), providerPath)
-
-}
-
-func TestProviderInstallerInstallAlreadyExistButIsDirectory(t *testing.T) {
-
- assert := assert.New(t)
- fakeTmpHome := t.TempDir()
- expectedSubFolder := fmt.Sprintf("/.driftctl/plugins/%s_%s", runtime.GOOS, runtime.GOARCH)
-
- config := ProviderConfig{
- Key: "aws",
- Version: "3.19.0",
- }
-
- invalidDirPath := path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName())
- err := os.MkdirAll(invalidDirPath, 0755)
- if err != nil {
- t.Error(err)
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
-
- installer := ProviderInstaller{
- downloader: &mockDownloader,
- config: config,
- homeDir: fakeTmpHome,
- }
-
- providerPath, err := installer.Install()
- mockDownloader.AssertExpectations(t)
-
- assert.Empty(providerPath)
- assert.NotNil(err)
- assert.Equal(
- fmt.Sprintf(
- "found directory instead of provider binary in %s",
- invalidDirPath,
- ),
- err.Error(),
- )
-
-}
-
-// Ensure that if a provider exists with a postfix (_x5) we properly detect it
-func TestProviderInstallerInstallPostfixIsHandler(t *testing.T) {
-
- assert := assert.New(t)
- fakeTmpHome := t.TempDir()
- expectedSubFolder := fmt.Sprintf("/.driftctl/plugins/%s_%s", runtime.GOOS, runtime.GOARCH)
- err := os.MkdirAll(path.Join(fakeTmpHome, expectedSubFolder), 0755)
- if err != nil {
- t.Error(err)
- }
-
- config := ProviderConfig{
- Key: "aws",
- Version: "3.19.0",
- }
-
- _, err = os.Create(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()+"_x5"))
- if err != nil {
- t.Fatal(err)
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
-
- installer := ProviderInstaller{
- downloader: &mockDownloader,
- config: config,
- homeDir: fakeTmpHome,
- }
-
- providerPath, err := installer.Install()
- mockDownloader.AssertExpectations(t)
-
- assert.Nil(err)
- assert.Equal(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()+"_x5"), providerPath)
-
-}
-
-func TestProviderInstallerVersionDoesNotExist(t *testing.T) {
-
- assert := assert.New(t)
-
- config := ProviderConfig{
- Key: "aws",
- Version: "666.666.666",
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
- mockDownloader.On("Download", mock.Anything, mock.Anything).Return(terraformError.ProviderNotFoundError{})
-
- installer := ProviderInstaller{
- downloader: &mockDownloader,
- config: config,
- }
-
- _, err := installer.Install()
-
- assert.Equal("Provider version 666.666.666 does not exist", err.Error())
-}
-
-func TestProviderInstallerWithConfigDirectory(t *testing.T) {
-
- assert := assert.New(t)
- fakeTmpHome := t.TempDir()
-
- expectedSubFolder := fmt.Sprintf("/.driftctl/plugins/%s_%s", runtime.GOOS, runtime.GOARCH)
-
- config := ProviderConfig{
- Key: "aws",
- Version: "3.19.0",
- ConfigDir: fakeTmpHome,
- }
-
- mockDownloader := mocks.ProviderDownloaderInterface{}
- mockDownloader.On("Download", config.GetDownloadUrl(), path.Join(fakeTmpHome, expectedSubFolder)).Return(nil)
-
- installer, _ := NewProviderInstaller(config)
- installer.downloader = &mockDownloader
-
- providerPath, err := installer.Install()
- mockDownloader.AssertExpectations(t)
-
- assert.Nil(err)
- assert.Equal(path.Join(fakeTmpHome, expectedSubFolder, config.GetBinaryName()), providerPath)
-
-}
diff --git a/enumeration/terraform/providers.go b/enumeration/terraform/providers.go
deleted file mode 100644
index 435a5506f..000000000
--- a/enumeration/terraform/providers.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package terraform
-
-import (
- "github.com/sirupsen/logrus"
-)
-
-const (
- AWS string = "aws"
- GITHUB string = "github"
- GOOGLE string = "google"
- AZURE string = "azurerm"
-)
-
-type ProviderLibrary struct {
- providers map[string]TerraformProvider
-}
-
-func NewProviderLibrary() *ProviderLibrary {
- logrus.Debug("New provider library created")
- return &ProviderLibrary{
- make(map[string]TerraformProvider),
- }
-}
-
-func (p *ProviderLibrary) AddProvider(name string, provider TerraformProvider) {
- p.providers[name] = provider
-}
-
-func (p *ProviderLibrary) Provider(name string) TerraformProvider {
- return p.providers[name]
-}
-
-func (p *ProviderLibrary) Cleanup() {
- logrus.Debug("Closing providers")
- for providerKey, provider := range p.providers {
- logrus.WithFields(logrus.Fields{
- "key": providerKey,
- }).Debug("Closing provider")
- provider.Cleanup()
- }
-}
diff --git a/enumeration/terraform/resource_factory.go b/enumeration/terraform/resource_factory.go
deleted file mode 100644
index f6f43377e..000000000
--- a/enumeration/terraform/resource_factory.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package terraform
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type TerraformResourceFactory struct{}
-
-func NewTerraformResourceFactory() *TerraformResourceFactory {
- return &TerraformResourceFactory{}
-}
-
-func (r *TerraformResourceFactory) CreateAbstractResource(ty, id string, data map[string]interface{}) *resource.Resource {
- attributes := resource.Attributes(data)
-
- res := resource.Resource{
- Id: id,
- Type: ty,
- Attrs: &attributes,
- }
-
- return &res
-}
diff --git a/enumeration/terraform/resource_reader.go b/enumeration/terraform/resource_reader.go
deleted file mode 100644
index 1f7a6e369..000000000
--- a/enumeration/terraform/resource_reader.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package terraform
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
-
- "github.com/zclconf/go-cty/cty"
-)
-
-type ResourceReader interface {
- ReadResource(args ReadResourceArgs) (*cty.Value, error)
-}
-
-type ReadResourceArgs struct {
- Ty resource.ResourceType
- ID string
- Attributes map[string]string
-}
diff --git a/enumeration/terraform/schema_supplier.go b/enumeration/terraform/schema_supplier.go
deleted file mode 100644
index 86efb1e62..000000000
--- a/enumeration/terraform/schema_supplier.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package terraform
-
-import tfproviders "github.com/hashicorp/terraform/providers"
-
-type SchemaSupplier interface {
- Schema() map[string]tfproviders.Schema
-}
diff --git a/enumeration/terraform/terraform_provider.go b/enumeration/terraform/terraform_provider.go
deleted file mode 100644
index 4ca4c45f0..000000000
--- a/enumeration/terraform/terraform_provider.go
+++ /dev/null
@@ -1,10 +0,0 @@
-package terraform
-
-// Representation of a TF Provider able to give it's schema and reade a resource
-type TerraformProvider interface {
- SchemaSupplier
- ResourceReader
- Cleanup()
- Name() string
- Version() string
-}
diff --git a/enumeration/terraform/testdata/invalid.zip b/enumeration/terraform/testdata/invalid.zip
deleted file mode 100644
index 8c3c5d099..000000000
--- a/enumeration/terraform/testdata/invalid.zip
+++ /dev/null
@@ -1 +0,0 @@
-invalid zip
diff --git a/enumeration/terraform/testdata/terraform-provider-aws_3.5.0_linux_amd64.zip b/enumeration/terraform/testdata/terraform-provider-aws_3.5.0_linux_amd64.zip
deleted file mode 100644
index dd5465508..000000000
Binary files a/enumeration/terraform/testdata/terraform-provider-aws_3.5.0_linux_amd64.zip and /dev/null differ
diff --git a/go.mod b/go.mod
deleted file mode 100644
index 3e2fe5329..000000000
--- a/go.mod
+++ /dev/null
@@ -1,147 +0,0 @@
-module github.com/snyk/driftctl
-
-go 1.23.0
-
-require (
- cloud.google.com/go/asset v1.13.0
- cloud.google.com/go/storage v1.29.0
- github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0
- github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v0.2.0
- github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0
- github.com/Azure/go-autorest/autorest v0.11.27
- github.com/aws/aws-sdk-go v1.44.122
- github.com/bmatcuk/doublestar/v4 v4.0.1
- github.com/eapache/go-resiliency v1.3.0
- github.com/fatih/color v1.9.0
- github.com/getkin/kin-openapi v0.75.0
- github.com/getsentry/sentry-go v0.10.0
- github.com/ghodss/yaml v1.0.0
- github.com/go-git/go-git/v5 v5.4.2
- github.com/hashicorp/go-getter v1.7.9
- github.com/hashicorp/go-hclog v0.9.2
- github.com/hashicorp/go-plugin v1.3.0
- github.com/hashicorp/go-tfe v0.20.0
- github.com/hashicorp/go-version v1.6.0
- github.com/hashicorp/hcl/v2 v2.7.2
- github.com/hashicorp/terraform v0.14.0
- github.com/hashicorp/terraform-exec v0.14.0
- github.com/jarcoal/httpmock v1.0.6
- github.com/jmespath/go-jmespath v0.4.0
- github.com/joho/godotenv v1.3.0
- github.com/mitchellh/go-homedir v1.1.0
- github.com/pkg/errors v0.9.1
- github.com/r3labs/diff/v2 v2.6.0
- github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa
- github.com/sirupsen/logrus v1.9.3
- github.com/spf13/cobra v1.0.0
- github.com/spf13/pflag v1.0.5
- github.com/spf13/viper v1.7.1
- github.com/stretchr/testify v1.8.3
- github.com/zclconf/go-cty v1.8.4
- go.uber.org/atomic v1.4.0
- golang.org/x/oauth2 v0.27.0
- golang.org/x/sync v0.11.0
- google.golang.org/api v0.114.0
- google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
- google.golang.org/grpc v1.56.3
- google.golang.org/protobuf v1.33.0
-)
-
-require (
- cloud.google.com/go v0.110.0 // indirect
- cloud.google.com/go/accesscontextmanager v1.7.0 // indirect
- cloud.google.com/go/compute/metadata v0.3.0 // indirect
- cloud.google.com/go/iam v0.13.0 // indirect
- cloud.google.com/go/longrunning v0.4.1 // indirect
- cloud.google.com/go/orgpolicy v1.10.0 // indirect
- cloud.google.com/go/osconfig v1.11.0 // indirect
- github.com/Azure/azure-sdk-for-go v59.0.0+incompatible // indirect
- github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 // indirect
- github.com/Azure/go-autorest v14.2.0+incompatible // indirect
- github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
- github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
- github.com/Azure/go-autorest/logger v0.2.1 // indirect
- github.com/Azure/go-autorest/tracing v0.6.0 // indirect
- github.com/acomagu/bufpipe v1.0.3 // indirect
- github.com/agext/levenshtein v1.2.2 // indirect
- github.com/apparentlymart/go-cidr v1.1.0 // indirect
- github.com/apparentlymart/go-textseg/v12 v12.0.0 // indirect
- github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
- github.com/apparentlymart/go-versions v1.0.1 // indirect
- github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
- github.com/bmatcuk/doublestar v1.1.5 // indirect
- github.com/davecgh/go-spew v1.1.1 // indirect
- github.com/fsnotify/fsnotify v1.4.7 // indirect
- github.com/go-git/gcfg v1.5.0 // indirect
- github.com/go-git/go-billy/v5 v5.3.1 // indirect
- github.com/go-openapi/jsonpointer v0.19.5 // indirect
- github.com/go-openapi/swag v0.19.5 // indirect
- github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
- github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
- github.com/golang/mock v1.6.0 // indirect
- github.com/golang/protobuf v1.5.3 // indirect
- github.com/google/go-cmp v0.6.0 // indirect
- github.com/google/go-querystring v1.1.0 // indirect
- github.com/google/uuid v1.3.0 // indirect
- github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
- github.com/googleapis/gax-go/v2 v2.7.1 // indirect
- github.com/hashicorp/errwrap v1.0.0 // indirect
- github.com/hashicorp/go-checkpoint v0.5.0 // indirect
- github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
- github.com/hashicorp/go-multierror v1.0.0 // indirect
- github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
- github.com/hashicorp/go-safetemp v1.0.0 // indirect
- github.com/hashicorp/go-slug v0.7.0 // indirect
- github.com/hashicorp/go-uuid v1.0.2 // indirect
- github.com/hashicorp/hcl v1.0.0 // indirect
- github.com/hashicorp/jsonapi v0.0.0-20210826224640-ee7dae0fb22d // indirect
- github.com/hashicorp/terraform-json v0.12.0 // indirect
- github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
- github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
- github.com/inconshreveable/mousetrap v1.0.0 // indirect
- github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
- github.com/klauspost/compress v1.15.11 // indirect
- github.com/magiconair/properties v1.8.1 // indirect
- github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
- github.com/mattn/go-colorable v0.1.7 // indirect
- github.com/mattn/go-isatty v0.0.16 // indirect
- github.com/mitchellh/copystructure v1.2.0 // indirect
- github.com/mitchellh/go-testing-interface v1.14.1 // indirect
- github.com/mitchellh/go-wordwrap v1.0.0 // indirect
- github.com/mitchellh/mapstructure v1.1.2 // indirect
- github.com/mitchellh/reflectwalk v1.0.2 // indirect
- github.com/oklog/run v1.0.0 // indirect
- github.com/pelletier/go-toml v1.2.0 // indirect
- github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 // indirect
- github.com/pmezard/go-difflib v1.0.0 // indirect
- github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect
- github.com/spf13/afero v1.9.2 // indirect
- github.com/spf13/cast v1.3.0 // indirect
- github.com/spf13/jwalterweatherman v1.0.0 // indirect
- github.com/stretchr/objx v0.5.0 // indirect
- github.com/subosito/gotenv v1.2.0 // indirect
- github.com/ulikunitz/xz v0.5.10 // indirect
- github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
- github.com/vmihailenco/tagparser v0.1.1 // indirect
- github.com/zclconf/go-cty-yaml v1.0.2 // indirect
- go.opencensus.io v0.24.0 // indirect
- golang.org/x/crypto v0.35.0 // indirect
- golang.org/x/mod v0.17.0 // indirect
- golang.org/x/net v0.34.0 // indirect
- golang.org/x/sys v0.31.0 // indirect
- golang.org/x/text v0.22.0 // indirect
- golang.org/x/time v0.3.0 // indirect
- golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
- google.golang.org/appengine v1.6.7 // indirect
- gopkg.in/ini.v1 v1.51.1 // indirect
- gopkg.in/warnings.v0 v0.1.2 // indirect
- gopkg.in/yaml.v2 v2.4.0 // indirect
- gopkg.in/yaml.v3 v3.0.1 // indirect
-)
diff --git a/go.sum b/go.sum
deleted file mode 100644
index ca778a726..000000000
--- a/go.sum
+++ /dev/null
@@ -1,2343 +0,0 @@
-cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
-cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
-cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
-cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
-cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
-cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
-cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
-cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
-cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
-cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
-cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
-cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
-cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
-cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
-cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
-cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
-cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY=
-cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
-cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
-cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
-cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY=
-cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM=
-cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY=
-cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ=
-cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI=
-cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4=
-cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc=
-cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA=
-cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U=
-cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A=
-cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc=
-cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU=
-cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA=
-cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM=
-cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I=
-cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys=
-cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY=
-cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4=
-cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw=
-cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E=
-cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o=
-cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE=
-cloud.google.com/go/accesscontextmanager v1.6.0/go.mod h1:8XCvZWfYw3K/ji0iVnp+6pu7huxoQTLmxAbVjbloTtM=
-cloud.google.com/go/accesscontextmanager v1.7.0 h1:MG60JgnEoawHJrbWw0jGdv6HLNSf6gQvYRiXpuzqgEA=
-cloud.google.com/go/accesscontextmanager v1.7.0/go.mod h1:CEGLewx8dwa33aDAZQujl7Dx+uYhS0eay198wB/VumQ=
-cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw=
-cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY=
-cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg=
-cloud.google.com/go/aiplatform v1.35.0/go.mod h1:7MFT/vCaOyZT/4IIFfxH4ErVg/4ku6lKv3w0+tFTgXQ=
-cloud.google.com/go/aiplatform v1.36.1/go.mod h1:WTm12vJRPARNvJ+v6P52RDHCNe4AhvjcIZ/9/RRHy/k=
-cloud.google.com/go/aiplatform v1.37.0/go.mod h1:IU2Cv29Lv9oCn/9LkFiiuKfwrRTq+QQMbW+hPCxJGZw=
-cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI=
-cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4=
-cloud.google.com/go/analytics v0.17.0/go.mod h1:WXFa3WSym4IZ+JiKmavYdJwGG/CvpqiqczmL59bTD9M=
-cloud.google.com/go/analytics v0.18.0/go.mod h1:ZkeHGQlcIPkw0R/GW+boWHhCOR43xz9RN/jn7WcqfIE=
-cloud.google.com/go/analytics v0.19.0/go.mod h1:k8liqf5/HCnOUkbawNtrWWc+UAzyDlW89doe8TtoDsE=
-cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk=
-cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc=
-cloud.google.com/go/apigateway v1.5.0/go.mod h1:GpnZR3Q4rR7LVu5951qfXPJCHquZt02jf7xQx7kpqN8=
-cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc=
-cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04=
-cloud.google.com/go/apigeeconnect v1.5.0/go.mod h1:KFaCqvBRU6idyhSNyn3vlHXc8VMDJdRmwDF6JyFRqZ8=
-cloud.google.com/go/apigeeregistry v0.4.0/go.mod h1:EUG4PGcsZvxOXAdyEghIdXwAEi/4MEaoqLMLDMIwKXY=
-cloud.google.com/go/apigeeregistry v0.5.0/go.mod h1:YR5+s0BVNZfVOUkMa5pAR2xGd0A473vA5M7j247o1wM=
-cloud.google.com/go/apigeeregistry v0.6.0/go.mod h1:BFNzW7yQVLZ3yj0TKcwzb8n25CFBri51GVGOEUcgQsc=
-cloud.google.com/go/apikeys v0.4.0/go.mod h1:XATS/yqZbaBK0HOssf+ALHp8jAlNHUgyfprvNcBIszU=
-cloud.google.com/go/apikeys v0.5.0/go.mod h1:5aQfwY4D+ewMMWScd3hm2en3hCj+BROlyrt3ytS7KLI=
-cloud.google.com/go/apikeys v0.6.0/go.mod h1:kbpXu5upyiAlGkKrJgQl8A0rKNNJ7dQ377pdroRSSi8=
-cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno=
-cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak=
-cloud.google.com/go/appengine v1.6.0/go.mod h1:hg6i0J/BD2cKmDJbaFSYHFyZkgBEfQrDg/X0V5fJn84=
-cloud.google.com/go/appengine v1.7.0/go.mod h1:eZqpbHFCqRGa2aCdope7eC0SWLV1j0neb/QnMJVWx6A=
-cloud.google.com/go/appengine v1.7.1/go.mod h1:IHLToyb/3fKutRysUlFO0BPt5j7RiQ45nrzEJmKTo6E=
-cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4=
-cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0=
-cloud.google.com/go/area120 v0.7.0/go.mod h1:a3+8EUD1SX5RUcCs3MY5YasiO1z6yLiNLRiFrykbynY=
-cloud.google.com/go/area120 v0.7.1/go.mod h1:j84i4E1RboTWjKtZVWXPqvK5VHQFJRF2c1Nm69pWm9k=
-cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ=
-cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk=
-cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0=
-cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc=
-cloud.google.com/go/artifactregistry v1.11.1/go.mod h1:lLYghw+Itq9SONbCa1YWBoWs1nOucMH0pwXN1rOBZFI=
-cloud.google.com/go/artifactregistry v1.11.2/go.mod h1:nLZns771ZGAwVLzTX/7Al6R9ehma4WUEhZGWV6CeQNQ=
-cloud.google.com/go/artifactregistry v1.12.0/go.mod h1:o6P3MIvtzTOnmvGagO9v/rOjjA0HmhJ+/6KAXrmYDCI=
-cloud.google.com/go/artifactregistry v1.13.0/go.mod h1:uy/LNfoOIivepGhooAUpL1i30Hgee3Cu0l4VTWHUC08=
-cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o=
-cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s=
-cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0=
-cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ=
-cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY=
-cloud.google.com/go/asset v1.11.1/go.mod h1:fSwLhbRvC9p9CXQHJ3BgFeQNM4c9x10lqlrdEUYXlJo=
-cloud.google.com/go/asset v1.12.0/go.mod h1:h9/sFOa4eDIyKmH6QMpm4eUK3pDojWnUhTgJlk762Hg=
-cloud.google.com/go/asset v1.13.0 h1:YAsssO08BqZ6mncbb6FPlj9h6ACS7bJQUOlzciSfbNk=
-cloud.google.com/go/asset v1.13.0/go.mod h1:WQAMyYek/b7NBpYq/K4KJWcRqzoalEsxz/t/dTk4THw=
-cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY=
-cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw=
-cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI=
-cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo=
-cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0=
-cloud.google.com/go/assuredworkloads v1.10.0/go.mod h1:kwdUQuXcedVdsIaKgKTp9t0UJkE5+PAVNhdQm4ZVq2E=
-cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0=
-cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8=
-cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8=
-cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM=
-cloud.google.com/go/automl v1.12.0/go.mod h1:tWDcHDp86aMIuHmyvjuKeeHEGq76lD7ZqfGLN6B0NuU=
-cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc=
-cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI=
-cloud.google.com/go/baremetalsolution v0.5.0/go.mod h1:dXGxEkmR9BMwxhzBhV0AioD0ULBmuLZI8CdwalUxuss=
-cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE=
-cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE=
-cloud.google.com/go/batch v0.7.0/go.mod h1:vLZN95s6teRUqRQ4s3RLDsH8PvboqBK+rn1oevL159g=
-cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4=
-cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8=
-cloud.google.com/go/beyondcorp v0.4.0/go.mod h1:3ApA0mbhHx6YImmuubf5pyW8srKnCEPON32/5hj+RmM=
-cloud.google.com/go/beyondcorp v0.5.0/go.mod h1:uFqj9X+dSfrheVp7ssLTaRHd2EHqSL4QZmH4e8WXGGU=
-cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
-cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
-cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
-cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
-cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
-cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
-cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA=
-cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw=
-cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc=
-cloud.google.com/go/bigquery v1.47.0/go.mod h1:sA9XOgy0A8vQK9+MWhEQTY6Tix87M/ZurWFIxmF9I/E=
-cloud.google.com/go/bigquery v1.48.0/go.mod h1:QAwSz+ipNgfL5jxiaK7weyOhzdoAy1zFm0Nf1fysJac=
-cloud.google.com/go/bigquery v1.49.0/go.mod h1:Sv8hMmTFFYBlt/ftw2uN6dFdQPzBlREY9yBh7Oy7/4Q=
-cloud.google.com/go/bigquery v1.50.0/go.mod h1:YrleYEh2pSEbgTBZYMJ5SuSr0ML3ypjRB1zgf7pvQLU=
-cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY=
-cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s=
-cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI=
-cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y=
-cloud.google.com/go/billing v1.12.0/go.mod h1:yKrZio/eu+okO/2McZEbch17O5CB5NpZhhXG6Z766ss=
-cloud.google.com/go/billing v1.13.0/go.mod h1:7kB2W9Xf98hP9Sr12KfECgfGclsH3CQR0R08tnRlRbc=
-cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM=
-cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI=
-cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0=
-cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk=
-cloud.google.com/go/binaryauthorization v1.5.0/go.mod h1:OSe4OU1nN/VswXKRBmciKpo9LulY41gch5c68htf3/Q=
-cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg=
-cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590=
-cloud.google.com/go/certificatemanager v1.6.0/go.mod h1:3Hh64rCKjRAX8dXgRAyOcY5vQ/fE1sh8o+Mdd6KPgY8=
-cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk=
-cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk=
-cloud.google.com/go/channel v1.11.0/go.mod h1:IdtI0uWGqhEeatSB62VOoJ8FSUhJ9/+iGkJVqp74CGE=
-cloud.google.com/go/channel v1.12.0/go.mod h1:VkxCGKASi4Cq7TbXxlaBezonAYpp1GCnKMY6tnMQnLU=
-cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U=
-cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA=
-cloud.google.com/go/cloudbuild v1.6.0/go.mod h1:UIbc/w9QCbH12xX+ezUsgblrWv+Cv4Tw83GiSMHOn9M=
-cloud.google.com/go/cloudbuild v1.7.0/go.mod h1:zb5tWh2XI6lR9zQmsm1VRA+7OCuve5d8S+zJUul8KTg=
-cloud.google.com/go/cloudbuild v1.9.0/go.mod h1:qK1d7s4QlO0VwfYn5YuClDGg2hfmLZEb4wQGAbIgL1s=
-cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM=
-cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk=
-cloud.google.com/go/clouddms v1.5.0/go.mod h1:QSxQnhikCLUw13iAbffF2CZxAER3xDGNHjsTAkQJcQA=
-cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY=
-cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI=
-cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4=
-cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI=
-cloud.google.com/go/cloudtasks v1.9.0/go.mod h1:w+EyLsVkLWHcOaqNEyvcKAsWp9p29dL6uL9Nst1cI7Y=
-cloud.google.com/go/cloudtasks v1.10.0/go.mod h1:NDSoTLkZ3+vExFEWu2UJV1arUyzVDAiZtdWcsUyNwBs=
-cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow=
-cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM=
-cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M=
-cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s=
-cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU=
-cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U=
-cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU=
-cloud.google.com/go/compute v1.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU=
-cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU=
-cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE=
-cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo=
-cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA=
-cloud.google.com/go/compute v1.18.0/go.mod h1:1X7yHxec2Ga+Ss6jPyjxRxpu2uu7PLgsOVXvgU0yacs=
-cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU=
-cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE=
-cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU=
-cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
-cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
-cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
-cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=
-cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
-cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY=
-cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck=
-cloud.google.com/go/contactcenterinsights v1.6.0/go.mod h1:IIDlT6CLcDoyv79kDv8iWxMSTZhLxSCofVV5W6YFM/w=
-cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg=
-cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo=
-cloud.google.com/go/container v1.13.1/go.mod h1:6wgbMPeQRw9rSnKBCAJXnds3Pzj03C4JHamr8asWKy4=
-cloud.google.com/go/container v1.14.0/go.mod h1:3AoJMPhHfLDxLvrlVWaK57IXzaPnLaZq63WX59aQBfM=
-cloud.google.com/go/container v1.15.0/go.mod h1:ft+9S0WGjAyjDggg5S06DXj+fHJICWg8L7isCQe9pQA=
-cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I=
-cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4=
-cloud.google.com/go/containeranalysis v0.7.0/go.mod h1:9aUL+/vZ55P2CXfuZjS4UjQ9AgXoSw8Ts6lemfmxBxI=
-cloud.google.com/go/containeranalysis v0.9.0/go.mod h1:orbOANbwk5Ejoom+s+DUCTTJ7IBdBQJDcSylAx/on9s=
-cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0=
-cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs=
-cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc=
-cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE=
-cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM=
-cloud.google.com/go/datacatalog v1.8.1/go.mod h1:RJ58z4rMp3gvETA465Vg+ag8BGgBdnRPEMMSTr5Uv+M=
-cloud.google.com/go/datacatalog v1.12.0/go.mod h1:CWae8rFkfp6LzLumKOnmVh4+Zle4A3NXLzVJ1d1mRm0=
-cloud.google.com/go/datacatalog v1.13.0/go.mod h1:E4Rj9a5ZtAxcQJlEBTLgMTphfP11/lNaAshpoBgemX8=
-cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM=
-cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ=
-cloud.google.com/go/dataflow v0.8.0/go.mod h1:Rcf5YgTKPtQyYz8bLYhFoIV/vP39eL7fWNcSOyFfLJE=
-cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo=
-cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE=
-cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0=
-cloud.google.com/go/dataform v0.6.0/go.mod h1:QPflImQy33e29VuapFdf19oPbE4aYTJxr31OAPV+ulA=
-cloud.google.com/go/dataform v0.7.0/go.mod h1:7NulqnVozfHvWUBpMDfKMUESr+85aJsC/2O0o3jWPDE=
-cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38=
-cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w=
-cloud.google.com/go/datafusion v1.6.0/go.mod h1:WBsMF8F1RhSXvVM8rCV3AeyWVxcC2xY6vith3iw3S+8=
-cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I=
-cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ=
-cloud.google.com/go/datalabeling v0.7.0/go.mod h1:WPQb1y08RJbmpM3ww0CSUAGweL0SxByuW2E+FU+wXcM=
-cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA=
-cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A=
-cloud.google.com/go/dataplex v1.5.2/go.mod h1:cVMgQHsmfRoI5KFYq4JtIBEUbYwc3c7tXmIDhRmNNVQ=
-cloud.google.com/go/dataplex v1.6.0/go.mod h1:bMsomC/aEJOSpHXdFKFGQ1b0TDPIeL28nJObeO1ppRs=
-cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s=
-cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI=
-cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4=
-cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo=
-cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA=
-cloud.google.com/go/dataqna v0.7.0/go.mod h1:Lx9OcIIeqCrw1a6KdO3/5KMP1wAmTc0slZWwP12Qq3c=
-cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
-cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
-cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM=
-cloud.google.com/go/datastore v1.11.0/go.mod h1:TvGxBIHCS50u8jzG+AW/ppf87v1of8nwzFNgEZU1D3c=
-cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo=
-cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ=
-cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g=
-cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4=
-cloud.google.com/go/datastream v1.6.0/go.mod h1:6LQSuswqLa7S4rPAOZFVjHIG3wJIjZcZrw8JDEDJuIs=
-cloud.google.com/go/datastream v1.7.0/go.mod h1:uxVRMm2elUSPuh65IbZpzJNMbuzkcvu5CjMqVIUHrww=
-cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c=
-cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s=
-cloud.google.com/go/deploy v1.6.0/go.mod h1:f9PTHehG/DjCom3QH0cntOVRm93uGBDt2vKzAPwpXQI=
-cloud.google.com/go/deploy v1.8.0/go.mod h1:z3myEJnA/2wnB4sgjqdMfgxCA0EqC3RBTNcVPs93mtQ=
-cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4=
-cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0=
-cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8=
-cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek=
-cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0=
-cloud.google.com/go/dialogflow v1.29.0/go.mod h1:b+2bzMe+k1s9V+F2jbJwpHPzrnIyHihAdRFMtn2WXuM=
-cloud.google.com/go/dialogflow v1.31.0/go.mod h1:cuoUccuL1Z+HADhyIA7dci3N5zUssgpBJmCzI6fNRB4=
-cloud.google.com/go/dialogflow v1.32.0/go.mod h1:jG9TRJl8CKrDhMEcvfcfFkkpp8ZhgPz3sBGmAUYJ2qE=
-cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM=
-cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q=
-cloud.google.com/go/dlp v1.9.0/go.mod h1:qdgmqgTyReTz5/YNSSuueR8pl7hO0o9bQ39ZhtgkWp4=
-cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU=
-cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU=
-cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k=
-cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4=
-cloud.google.com/go/documentai v1.16.0/go.mod h1:o0o0DLTEZ+YnJZ+J4wNfTxmDVyrkzFvttBXXtYRMHkM=
-cloud.google.com/go/documentai v1.18.0/go.mod h1:F6CK6iUH8J81FehpskRmhLq/3VlwQvb7TvwOceQ2tbs=
-cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y=
-cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg=
-cloud.google.com/go/domains v0.8.0/go.mod h1:M9i3MMDzGFXsydri9/vW+EWz9sWb4I6WyHqdlAk0idE=
-cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk=
-cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w=
-cloud.google.com/go/edgecontainer v0.3.0/go.mod h1:FLDpP4nykgwwIfcLt6zInhprzw0lEi2P1fjO6Ie0qbc=
-cloud.google.com/go/edgecontainer v1.0.0/go.mod h1:cttArqZpBB2q58W/upSG++ooo6EsblxDIolxa3jSjbY=
-cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU=
-cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI=
-cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8=
-cloud.google.com/go/essentialcontacts v1.5.0/go.mod h1:ay29Z4zODTuwliK7SnX8E86aUF2CTzdNtvv42niCX0M=
-cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc=
-cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw=
-cloud.google.com/go/eventarc v1.10.0/go.mod h1:u3R35tmZ9HvswGRBnF48IlYgYeBcPUCjkr4BTdem2Kw=
-cloud.google.com/go/eventarc v1.11.0/go.mod h1:PyUjsUKPWoRBCHeOxZd/lbOOjahV41icXyUY5kSTvVY=
-cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w=
-cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI=
-cloud.google.com/go/filestore v1.5.0/go.mod h1:FqBXDWBp4YLHqRnVGveOkHDf8svj9r5+mUDLupOWEDs=
-cloud.google.com/go/filestore v1.6.0/go.mod h1:di5unNuss/qfZTw2U9nhFqo8/ZDSc466dre85Kydllg=
-cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
-cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE=
-cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk=
-cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg=
-cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY=
-cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08=
-cloud.google.com/go/functions v1.10.0/go.mod h1:0D3hEOe3DbEvCXtYOZHQZmD+SzYsi1YbI7dGvHfldXw=
-cloud.google.com/go/functions v1.12.0/go.mod h1:AXWGrF3e2C/5ehvwYo/GH6O5s09tOPksiKhz+hH8WkA=
-cloud.google.com/go/functions v1.13.0/go.mod h1:EU4O007sQm6Ef/PwRsI8N2umygGqPBS/IZQKBQBcJ3c=
-cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM=
-cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA=
-cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w=
-cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM=
-cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0=
-cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60=
-cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo=
-cloud.google.com/go/gkebackup v0.4.0/go.mod h1:byAyBGUwYGEEww7xsbnUTBHIYcOPy/PgUWUtOeRm9Vg=
-cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o=
-cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A=
-cloud.google.com/go/gkeconnect v0.7.0/go.mod h1:SNfmVqPkaEi3bF/B3CNZOAYPYdg7sU+obZ+QTky2Myw=
-cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0=
-cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0=
-cloud.google.com/go/gkehub v0.11.0/go.mod h1:JOWHlmN+GHyIbuWQPl47/C2RFhnFKH38jH9Ascu3n0E=
-cloud.google.com/go/gkehub v0.12.0/go.mod h1:djiIwwzTTBrF5NaXCGv3mf7klpEMcST17VBTVVDcuaw=
-cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA=
-cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI=
-cloud.google.com/go/gkemulticloud v0.5.0/go.mod h1:W0JDkiyi3Tqh0TJr//y19wyb1yf8llHVto2Htf2Ja3Y=
-cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc=
-cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM=
-cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o=
-cloud.google.com/go/gsuiteaddons v1.5.0/go.mod h1:TFCClYLd64Eaa12sFVmUyG62tk4mdIsI7pAnSXRkcFo=
-cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c=
-cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY=
-cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc=
-cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc=
-cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg=
-cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE=
-cloud.google.com/go/iam v0.11.0/go.mod h1:9PiLDanza5D+oWFZiH1uG+RnRCfEGKoyl6yo4cgWZGY=
-cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY=
-cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k=
-cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0=
-cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc=
-cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A=
-cloud.google.com/go/iap v1.6.0/go.mod h1:NSuvI9C/j7UdjGjIde7t7HBz+QTwBcapPE07+sSRcLk=
-cloud.google.com/go/iap v1.7.0/go.mod h1:beqQx56T9O1G1yNPph+spKpNibDlYIiIixiqsQXxLIo=
-cloud.google.com/go/iap v1.7.1/go.mod h1:WapEwPc7ZxGt2jFGB/C/bm+hP0Y6NXzOYGjpPnmMS74=
-cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM=
-cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY=
-cloud.google.com/go/ids v1.3.0/go.mod h1:JBdTYwANikFKaDP6LtW5JAi4gubs57SVNQjemdt6xV4=
-cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs=
-cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g=
-cloud.google.com/go/iot v1.5.0/go.mod h1:mpz5259PDl3XJthEmh9+ap0affn/MqNSP4My77Qql9o=
-cloud.google.com/go/iot v1.6.0/go.mod h1:IqdAsmE2cTYYNO1Fvjfzo9po179rAtJeVGUvkLN3rLE=
-cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA=
-cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg=
-cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0=
-cloud.google.com/go/kms v1.8.0/go.mod h1:4xFEhYFqvW+4VMELtZyxomGSYtSQKzM178ylFW4jMAg=
-cloud.google.com/go/kms v1.9.0/go.mod h1:qb1tPTgfF9RQP8e1wq4cLFErVuTJv7UsSC915J8dh3w=
-cloud.google.com/go/kms v1.10.0/go.mod h1:ng3KTUtQQU9bPX3+QGLsflZIHlkbn8amFAMY63m8d24=
-cloud.google.com/go/kms v1.10.1/go.mod h1:rIWk/TryCkR59GMC3YtHtXeLzd634lBbKenvyySAyYI=
-cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic=
-cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI=
-cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE=
-cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8=
-cloud.google.com/go/language v1.9.0/go.mod h1:Ns15WooPM5Ad/5no/0n81yUetis74g3zrbeJBE+ptUY=
-cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8=
-cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08=
-cloud.google.com/go/lifesciences v0.8.0/go.mod h1:lFxiEOMqII6XggGbOnKiyZ7IBwoIqA84ClvoezaA/bo=
-cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw=
-cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M=
-cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE=
-cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc=
-cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM=
-cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo=
-cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE=
-cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM=
-cloud.google.com/go/managedidentities v1.5.0/go.mod h1:+dWcZ0JlUmpuxpIDfyP5pP5y0bLdRwOS4Lp7gMni/LA=
-cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI=
-cloud.google.com/go/maps v0.6.0/go.mod h1:o6DAMMfb+aINHz/p/jbcY+mYeXBoZoxTfdSQ8VAJaCw=
-cloud.google.com/go/maps v0.7.0/go.mod h1:3GnvVl3cqeSvgMcpRlQidXsPYuDGQ8naBis7MVzpXsY=
-cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4=
-cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w=
-cloud.google.com/go/mediatranslation v0.7.0/go.mod h1:LCnB/gZr90ONOIQLgSXagp8XUW1ODs2UmUMvcgMfI2I=
-cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE=
-cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM=
-cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA=
-cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY=
-cloud.google.com/go/memcache v1.9.0/go.mod h1:8oEyzXCu+zo9RzlEaEjHl4KkgjlNDaXbCQeQWlzNFJM=
-cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY=
-cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s=
-cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8=
-cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI=
-cloud.google.com/go/metastore v1.10.0/go.mod h1:fPEnH3g4JJAk+gMRnrAnoqyv2lpUCqJPWOodSaf45Eo=
-cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk=
-cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4=
-cloud.google.com/go/monitoring v1.12.0/go.mod h1:yx8Jj2fZNEkL/GYZyTLS4ZtZEZN8WtDEiEqG4kLK50w=
-cloud.google.com/go/monitoring v1.13.0/go.mod h1:k2yMBAB1H9JT/QETjNkgdCGD9bPF712XiLTVr+cBrpw=
-cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA=
-cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o=
-cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM=
-cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8=
-cloud.google.com/go/networkconnectivity v1.10.0/go.mod h1:UP4O4sWXJG13AqrTdQCD9TnLGEbtNRqjuaaA7bNjF5E=
-cloud.google.com/go/networkconnectivity v1.11.0/go.mod h1:iWmDD4QF16VCDLXUqvyspJjIEtBR/4zq5hwnY2X3scM=
-cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8=
-cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4=
-cloud.google.com/go/networkmanagement v1.6.0/go.mod h1:5pKPqyXjB/sgtvB5xqOemumoQNB7y95Q7S+4rjSOPYY=
-cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ=
-cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU=
-cloud.google.com/go/networksecurity v0.7.0/go.mod h1:mAnzoxx/8TBSyXEeESMy9OOYwo1v+gZ5eMRnsT5bC8k=
-cloud.google.com/go/networksecurity v0.8.0/go.mod h1:B78DkqsxFG5zRSVuwYFRZ9Xz8IcQ5iECsNrPn74hKHU=
-cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY=
-cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34=
-cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA=
-cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0=
-cloud.google.com/go/notebooks v1.7.0/go.mod h1:PVlaDGfJgj1fl1S3dUwhFMXFgfYGhYQt2164xOMONmE=
-cloud.google.com/go/notebooks v1.8.0/go.mod h1:Lq6dYKOYOWUCTvw5t2q1gp1lAp0zxAxRycayS0iJcqQ=
-cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4=
-cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs=
-cloud.google.com/go/optimization v1.3.1/go.mod h1:IvUSefKiwd1a5p0RgHDbWCIbDFgKuEdB+fPPuP0IDLI=
-cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA=
-cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk=
-cloud.google.com/go/orchestration v1.6.0/go.mod h1:M62Bevp7pkxStDfFfTuCOaXgaaqRAga1yKyoMtEoWPQ=
-cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE=
-cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc=
-cloud.google.com/go/orgpolicy v1.10.0 h1:XDriMWug7sd0kYT1QKofRpRHzjad0bK8Q8uA9q+XrU4=
-cloud.google.com/go/orgpolicy v1.10.0/go.mod h1:w1fo8b7rRqlXlIJbVhOMPrwVljyuW5mqssvBtU18ONc=
-cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs=
-cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg=
-cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo=
-cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw=
-cloud.google.com/go/osconfig v1.11.0 h1:PkSQx4OHit5xz2bNyr11KGcaFccL5oqglFPdTboyqwQ=
-cloud.google.com/go/osconfig v1.11.0/go.mod h1:aDICxrur2ogRd9zY5ytBLV89KEgT2MKB2L/n6x1ooPw=
-cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E=
-cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU=
-cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70=
-cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo=
-cloud.google.com/go/oslogin v1.9.0/go.mod h1:HNavntnH8nzrn8JCTT5fj18FuJLFJc4NaZJtBnQtKFs=
-cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0=
-cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA=
-cloud.google.com/go/phishingprotection v0.7.0/go.mod h1:8qJI4QKHoda/sb/7/YmMQ2omRLSLYSu9bU0EKCNI+Lk=
-cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg=
-cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE=
-cloud.google.com/go/policytroubleshooter v1.5.0/go.mod h1:Rz1WfV+1oIpPdN2VvvuboLVRsB1Hclg3CKQ53j9l8vw=
-cloud.google.com/go/policytroubleshooter v1.6.0/go.mod h1:zYqaPTsmfvpjm5ULxAyD/lINQxJ0DDsnWOP/GZ7xzBc=
-cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0=
-cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI=
-cloud.google.com/go/privatecatalog v0.7.0/go.mod h1:2s5ssIFO69F5csTXcwBP7NPFTZvps26xGzvQ2PQaBYg=
-cloud.google.com/go/privatecatalog v0.8.0/go.mod h1:nQ6pfaegeDAq/Q5lrfCQzQLhubPiZhSaNhIgfJlnIXs=
-cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
-cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
-cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
-cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
-cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI=
-cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0=
-cloud.google.com/go/pubsub v1.28.0/go.mod h1:vuXFpwaVoIPQMGXqRyUQigu/AX1S3IWugR9xznmcXX8=
-cloud.google.com/go/pubsub v1.30.0/go.mod h1:qWi1OPS0B+b5L+Sg6Gmc9zD1Y+HaM0MdUr7LsupY1P4=
-cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg=
-cloud.google.com/go/pubsublite v1.6.0/go.mod h1:1eFCS0U11xlOuMFV/0iBqw3zP12kddMeCbj/F3FSj9k=
-cloud.google.com/go/pubsublite v1.7.0/go.mod h1:8hVMwRXfDfvGm3fahVbtDbiLePT3gpoiJYJY+vxWxVM=
-cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4=
-cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o=
-cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk=
-cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo=
-cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE=
-cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U=
-cloud.google.com/go/recaptchaenterprise/v2 v2.6.0/go.mod h1:RPauz9jeLtB3JVzg6nCbe12qNoaa8pXc4d/YukAmcnA=
-cloud.google.com/go/recaptchaenterprise/v2 v2.7.0/go.mod h1:19wVj/fs5RtYtynAPJdDTb69oW0vNHYDBTbB4NvMD9c=
-cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg=
-cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4=
-cloud.google.com/go/recommendationengine v0.7.0/go.mod h1:1reUcE3GIu6MeBz/h5xZJqNLuuVjNg1lmWMPyjatzac=
-cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg=
-cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c=
-cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs=
-cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70=
-cloud.google.com/go/recommender v1.9.0/go.mod h1:PnSsnZY7q+VL1uax2JWkt/UegHssxjUVVCrX52CuEmQ=
-cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y=
-cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A=
-cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA=
-cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM=
-cloud.google.com/go/redis v1.11.0/go.mod h1:/X6eicana+BWcUda5PpwZC48o37SiFVTFSs0fWAJ7uQ=
-cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA=
-cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0=
-cloud.google.com/go/resourcemanager v1.5.0/go.mod h1:eQoXNAiAvCf5PXxWxXjhKQoTMaUSNrEfg+6qdf/wots=
-cloud.google.com/go/resourcemanager v1.6.0/go.mod h1:YcpXGRs8fDzcUl1Xw8uOVmI8JEadvhRIkoXXUNVYcVo=
-cloud.google.com/go/resourcemanager v1.7.0/go.mod h1:HlD3m6+bwhzj9XCouqmeiGuni95NTrExfhoSrkC/3EI=
-cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU=
-cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg=
-cloud.google.com/go/resourcesettings v1.5.0/go.mod h1:+xJF7QSG6undsQDfsCJyqWXyBwUoJLhetkRMDRnIoXA=
-cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4=
-cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY=
-cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc=
-cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y=
-cloud.google.com/go/retail v1.12.0/go.mod h1:UMkelN/0Z8XvKymXFbD4EhFJlYKRx1FGhQkVPU5kF14=
-cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do=
-cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo=
-cloud.google.com/go/run v0.8.0/go.mod h1:VniEnuBwqjigv0A7ONfQUaEItaiCRVujlMqerPPiktM=
-cloud.google.com/go/run v0.9.0/go.mod h1:Wwu+/vvg8Y+JUApMwEDfVfhetv30hCG4ZwDR/IXl2Qg=
-cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s=
-cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI=
-cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk=
-cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44=
-cloud.google.com/go/scheduler v1.8.0/go.mod h1:TCET+Y5Gp1YgHT8py4nlg2Sew8nUHMqcpousDgXJVQc=
-cloud.google.com/go/scheduler v1.9.0/go.mod h1:yexg5t+KSmqu+njTIh3b7oYPheFtBWGcbVUYF1GGMIc=
-cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA=
-cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4=
-cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4=
-cloud.google.com/go/secretmanager v1.10.0/go.mod h1:MfnrdvKMPNra9aZtQFvBcvRU54hbPD8/HayQdlUgJpU=
-cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4=
-cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0=
-cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU=
-cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q=
-cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA=
-cloud.google.com/go/security v1.12.0/go.mod h1:rV6EhrpbNHrrxqlvW0BWAIawFWq3X90SduMJdFwtLB8=
-cloud.google.com/go/security v1.13.0/go.mod h1:Q1Nvxl1PAgmeW0y3HTt54JYIvUdtcpYKVfIB8AOMZ+0=
-cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU=
-cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc=
-cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk=
-cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk=
-cloud.google.com/go/securitycenter v1.18.1/go.mod h1:0/25gAzCM/9OL9vVx4ChPeM/+DlfGQJDwBy/UC8AKK0=
-cloud.google.com/go/securitycenter v1.19.0/go.mod h1:LVLmSg8ZkkyaNy4u7HCIshAngSQ8EcIRREP3xBnyfag=
-cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU=
-cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s=
-cloud.google.com/go/servicecontrol v1.10.0/go.mod h1:pQvyvSRh7YzUF2efw7H87V92mxU8FnFDawMClGCNuAA=
-cloud.google.com/go/servicecontrol v1.11.0/go.mod h1:kFmTzYzTUIuZs0ycVqRHNaNhgR+UMUpw9n02l/pY+mc=
-cloud.google.com/go/servicecontrol v1.11.1/go.mod h1:aSnNNlwEFBY+PWGQ2DoM0JJ/QUXqV5/ZD9DOLB7SnUk=
-cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs=
-cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg=
-cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4=
-cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U=
-cloud.google.com/go/servicedirectory v1.8.0/go.mod h1:srXodfhY1GFIPvltunswqXpVxFPpZjf8nkKQT7XcXaY=
-cloud.google.com/go/servicedirectory v1.9.0/go.mod h1:29je5JjiygNYlmsGz8k6o+OZ8vd4f//bQLtvzkPPT/s=
-cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco=
-cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo=
-cloud.google.com/go/servicemanagement v1.6.0/go.mod h1:aWns7EeeCOtGEX4OvZUWCCJONRZeFKiptqKf1D0l/Jc=
-cloud.google.com/go/servicemanagement v1.8.0/go.mod h1:MSS2TDlIEQD/fzsSGfCdJItQveu9NXnUniTrq/L8LK4=
-cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E=
-cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU=
-cloud.google.com/go/serviceusage v1.5.0/go.mod h1:w8U1JvqUqwJNPEOTQjrMHkw3IaIFLoLsPLvsE3xueec=
-cloud.google.com/go/serviceusage v1.6.0/go.mod h1:R5wwQcbOWsyuOfbP9tGdAnCAc6B9DRwPG1xtWMDeuPA=
-cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4=
-cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw=
-cloud.google.com/go/shell v1.6.0/go.mod h1:oHO8QACS90luWgxP3N9iZVuEiSF84zNyLytb+qE2f9A=
-cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos=
-cloud.google.com/go/spanner v1.44.0/go.mod h1:G8XIgYdOK+Fbcpbs7p2fiprDw4CaZX63whnSMLVBxjk=
-cloud.google.com/go/spanner v1.45.0/go.mod h1:FIws5LowYz8YAE1J8fOS7DJup8ff7xJeetWEo5REA2M=
-cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM=
-cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ=
-cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0=
-cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco=
-cloud.google.com/go/speech v1.14.1/go.mod h1:gEosVRPJ9waG7zqqnsHpYTOoAS4KouMRLDFMekpJ0J0=
-cloud.google.com/go/speech v1.15.0/go.mod h1:y6oH7GhqCaZANH7+Oe0BhgIogsNInLlz542tg3VqeYI=
-cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
-cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
-cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
-cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
-cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
-cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
-cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y=
-cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc=
-cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s=
-cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y=
-cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI=
-cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4=
-cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w=
-cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I=
-cloud.google.com/go/storagetransfer v1.7.0/go.mod h1:8Giuj1QNb1kfLAiWM1bN6dHzfdlDAVC9rv9abHot2W4=
-cloud.google.com/go/storagetransfer v1.8.0/go.mod h1:JpegsHHU1eXg7lMHkvf+KE5XDJ7EQu0GwNJbbVGanEw=
-cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw=
-cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g=
-cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM=
-cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA=
-cloud.google.com/go/talent v1.5.0/go.mod h1:G+ODMj9bsasAEJkQSzO2uHQWXHHXUomArjWQQYkqK6c=
-cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8=
-cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4=
-cloud.google.com/go/texttospeech v1.6.0/go.mod h1:YmwmFT8pj1aBblQOI3TfKmwibnsfvhIBzPXcW4EBovc=
-cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ=
-cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg=
-cloud.google.com/go/tpu v1.5.0/go.mod h1:8zVo1rYDFuW2l4yZVY0R0fb/v44xLh3llq7RuV61fPM=
-cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28=
-cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y=
-cloud.google.com/go/trace v1.8.0/go.mod h1:zH7vcsbAhklH8hWFig58HvxcxyQbaIqMarMg9hn5ECA=
-cloud.google.com/go/trace v1.9.0/go.mod h1:lOQqpE5IaWY0Ixg7/r2SjixMuc6lfTFeO4QGM4dQWOk=
-cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs=
-cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg=
-cloud.google.com/go/translate v1.5.0/go.mod h1:29YDSYveqqpA1CQFD7NQuP49xymq17RXNaUDdc0mNu0=
-cloud.google.com/go/translate v1.6.0/go.mod h1:lMGRudH1pu7I3n3PETiOB2507gf3HnfLV8qlkHZEyos=
-cloud.google.com/go/translate v1.7.0/go.mod h1:lMGRudH1pu7I3n3PETiOB2507gf3HnfLV8qlkHZEyos=
-cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk=
-cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw=
-cloud.google.com/go/video v1.12.0/go.mod h1:MLQew95eTuaNDEGriQdcYn0dTwf9oWiA4uYebxM5kdg=
-cloud.google.com/go/video v1.13.0/go.mod h1:ulzkYlYgCp15N2AokzKjy7MQ9ejuynOJdf1tR5lGthk=
-cloud.google.com/go/video v1.14.0/go.mod h1:SkgaXwT+lIIAKqWAJfktHT/RbgjSuY6DobxEp0C5yTQ=
-cloud.google.com/go/video v1.15.0/go.mod h1:SkgaXwT+lIIAKqWAJfktHT/RbgjSuY6DobxEp0C5yTQ=
-cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU=
-cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4=
-cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M=
-cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU=
-cloud.google.com/go/videointelligence v1.10.0/go.mod h1:LHZngX1liVtUhZvi2uNS0VQuOzNi2TkY1OakiuoUOjU=
-cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0=
-cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo=
-cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo=
-cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY=
-cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E=
-cloud.google.com/go/vision/v2 v2.6.0/go.mod h1:158Hes0MvOS9Z/bDMSFpjwsUrZ5fPrdwuyyvKSGAGMY=
-cloud.google.com/go/vision/v2 v2.7.0/go.mod h1:H89VysHy21avemp6xcf9b9JvZHVehWbET0uT/bcuY/0=
-cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE=
-cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g=
-cloud.google.com/go/vmmigration v1.5.0/go.mod h1:E4YQ8q7/4W9gobHjQg4JJSgXXSgY21nA5r8swQV+Xxc=
-cloud.google.com/go/vmmigration v1.6.0/go.mod h1:bopQ/g4z+8qXzichC7GW1w2MjbErL54rk3/C843CjfY=
-cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208=
-cloud.google.com/go/vmwareengine v0.2.2/go.mod h1:sKdctNJxb3KLZkE/6Oui94iw/xs9PRNC2wnNLXsHvH8=
-cloud.google.com/go/vmwareengine v0.3.0/go.mod h1:wvoyMvNWdIzxMYSpH/R7y2h5h3WFkx6d+1TIsP39WGY=
-cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w=
-cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8=
-cloud.google.com/go/vpcaccess v1.6.0/go.mod h1:wX2ILaNhe7TlVa4vC5xce1bCnqE3AeH27RV31lnmZes=
-cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE=
-cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg=
-cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc=
-cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A=
-cloud.google.com/go/webrisk v1.8.0/go.mod h1:oJPDuamzHXgUc+b8SiHRcVInZQuybnvEW72PqTc7sSg=
-cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo=
-cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ=
-cloud.google.com/go/websecurityscanner v1.5.0/go.mod h1:Y6xdCPy81yi0SQnDY1xdNTNpfY1oAgXUlcfN3B3eSng=
-cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0=
-cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M=
-cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M=
-cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA=
-cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
-dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
-gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
-git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
-github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
-github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
-github.com/Azure/azure-sdk-for-go v59.0.0+incompatible h1:I1ULJqny1qQhUBFy11yDXHhW3pLvbhwV0PTn7mjp9V0=
-github.com/Azure/azure-sdk-for-go v59.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
-github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw=
-github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0 h1:KQgdWmEOmaJKxaUUZwHAYh12t+b+ZJf8q3friycK1kA=
-github.com/Azure/azure-sdk-for-go/sdk/azcore v0.20.0/go.mod h1:ZPW/Z0kLCTdDZaDbYTetxc9Cxl/2lNqxYHYNOF2bti0=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0 h1:VBvHGLJbaY0+c66NZHdS9cgjHVYSH6DDa0XJMyrblsI=
-github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.12.0/go.mod h1:GJzjM4SR9T0KyX5gKCVyz1ytD8FeWeUPCwtFCt1AyfE=
-github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8=
-github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1 h1:BUYIbDf/mMZ8945v3QkG3OuqGVyS4Iek0AOLwdRAYoc=
-github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v0.2.0 h1:BHTEy92f31e5CRnjn35IjRCQagwmPzfpomInzX1m7Jw=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v0.2.0/go.mod h1:gqSH+t+W3CJGVmabhRgUav5l9jBv5VkMmpmboVtYqoI=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.2.0 h1:zwWanmIYlLi/xrWWmEziISG+/hb2DVFgwc/0J/cijYk=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.2.0/go.mod h1:nFJEiraPCmdn0tKe4BW988/6P6CYHhlYXTYFAe1Lygw=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v0.2.0 h1:CyjRCNWYbJ5auOsvNvqikFagdigTjEO3TP7+OZc20fk=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v0.2.0/go.mod h1:4h3E+JM3CxvgkL6OSJ0ac60aC1OH7nDVozji5bkyhJw=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql v0.2.0 h1:Vv19nEh1EmNxCdGQqlZyw894ELzOpkn8vhopYXFuWoY=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql v0.2.0/go.mod h1:83YIXMettj3oKIpF9ZXSegEwDCqdjsCZgBoQIQslQUc=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v0.2.0 h1:CNib9McHOQLbZHvQKX/JVcEGSQcmk/8BsN+VpvUcmCA=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns v0.2.0/go.mod h1:hXSmxO57VDkrEamlKEX5tC8z+AEySZ3cSbIRpn7Dpqo=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.2.0 h1:SdyLrG1OreJ3X8CoPgQnKU847+61sJ9TVfvtrdjX6rI=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.2.0/go.mod h1:aSuRFfpDntiZkIh+XmoL9EV4FS4ViptLBwFRytECG/8=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v0.2.0 h1:CGIYpRDCMotOj1a/1OZOPAwKq0xFKV+/8lHo9GB6Lw4=
-github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v0.2.0/go.mod h1:6OekxBFJ2ICBhqajYGgX4dY58H9x3J5FXikPo43nKYI=
-github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0 h1:62Ew5xXg5UCGIXDOM7+y4IL5/6mQJq1nenhBCJAeGX8=
-github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.2.0/go.mod h1:eHWhQKXc1Gv1DvWH//UzgWjWFEo0Pp4pH2vBzjBw8Fc=
-github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
-github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
-github.com/Azure/go-autorest/autorest v0.11.3/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw=
-github.com/Azure/go-autorest/autorest v0.11.27 h1:F3R3q42aWytozkV8ihzcgMO4OA4cuqr3bNlsEuF6//A=
-github.com/Azure/go-autorest/autorest v0.11.27/go.mod h1:7l8ybrIdUmGqZMTD0sRtAr8NvbHjfofbf8RSP2q7w7U=
-github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg=
-github.com/Azure/go-autorest/autorest/adal v0.9.18 h1:kLnPsRjzZZUF3K5REu/Kc+qMQrvuza2bwSnNdhmzLfQ=
-github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ=
-github.com/Azure/go-autorest/autorest/azure/cli v0.4.0/go.mod h1:JljT387FplPzBA31vUcvsetLKF3pec5bdAxjVU4kI2s=
-github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw=
-github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74=
-github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
-github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
-github.com/Azure/go-autorest/autorest/mocks v0.4.2 h1:PGN4EDXnuQbojHbU0UWoNvmu9AGVwYHG9/fkDYhtAfw=
-github.com/Azure/go-autorest/autorest/mocks v0.4.2/go.mod h1:Vy7OitM9Kei0i1Oj+LvyAWMXJHeKH1MVlzFugfVrmyU=
-github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE=
-github.com/Azure/go-autorest/autorest/validation v0.3.0/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E=
-github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
-github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg=
-github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
-github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo=
-github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
-github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
-github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
-github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
-github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
-github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
-github.com/ChrisTrenkamp/goxpath v0.0.0-20170922090931-c385f95c6022/go.mod h1:nuWgzSkT5PnyOd+272uUmV0dnAnAn42Mk7PiQC5VzN4=
-github.com/ChrisTrenkamp/goxpath v0.0.0-20190607011252-c5096ec8773d/go.mod h1:nuWgzSkT5PnyOd+272uUmV0dnAnAn42Mk7PiQC5VzN4=
-github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno=
-github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo=
-github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
-github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
-github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
-github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
-github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o=
-github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
-github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk=
-github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
-github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
-github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
-github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 h1:YoJbenK9C67SkzkDfmQuVln04ygHj3vjZfd9FL+GmQQ=
-github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo=
-github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
-github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
-github.com/QcloudApi/qcloud_sign_golang v0.0.0-20141224014652-e4130a326409/go.mod h1:1pk82RBxDY/JZnPQrtqHlUFfCctgdorsd9M06fMynOM=
-github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=
-github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af/go.mod h1:5Jv4cbFiHJMsVxt52+i0Ha45fjshj6wxYr1r19tB9bw=
-github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk=
-github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
-github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
-github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE=
-github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
-github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
-github.com/ajstarks/deck v0.0.0-20200831202436-30c9fc6549a9/go.mod h1:JynElWSGnm/4RlzPXRlREEwqTHAN3T56Bv2ITsFT3gY=
-github.com/ajstarks/deck/generate v0.0.0-20210309230005-c3f852c02e19/go.mod h1:T13YZdzov6OU0A1+RfKZiZN9ca6VeKdBdyDV+BY97Tk=
-github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
-github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM=
-github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
-github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190329064014-6e358769c32a/go.mod h1:T9M45xf79ahXVelWoOBmH0y4aC1t5kXO5BxwyakgIGA=
-github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190103054945-8205d1f41e70/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8=
-github.com/aliyun/aliyun-tablestore-go-sdk v4.1.2+incompatible/go.mod h1:LDQHRZylxvcg8H7wBIDfvO5g/cy4/sz1iucBlc2l3Jw=
-github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
-github.com/andybalholm/crlf v0.0.0-20171020200849-670099aa064f/go.mod h1:k8feO4+kXDxro6ErPXBRTJ/ro2mf0SsFG8s7doP9kJE=
-github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
-github.com/antchfx/xpath v0.0.0-20190129040759-c8489ed3251e/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
-github.com/antchfx/xquery v0.0.0-20180515051857-ad5b8c7a47b0/go.mod h1:LzD22aAzDP8/dyiCKFp31He4m2GPjl0AFyzDtZzUu9M=
-github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
-github.com/apache/arrow/go/v10 v10.0.1/go.mod h1:YvhnlEePVnBS4+0z3fhPfUy7W1Ikj0Ih0vcRo/gZ1M0=
-github.com/apache/arrow/go/v11 v11.0.0/go.mod h1:Eg5OsL5H+e299f7u5ssuXsuHQVEGC4xei5aX110hRiI=
-github.com/apache/thrift v0.16.0/go.mod h1:PHK3hniurgQaNMZYaCLEqXKsYK8upmhPbmdP2FXSqgU=
-github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU=
-github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc=
-github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
-github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I=
-github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
-github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
-github.com/apparentlymart/go-textseg/v12 v12.0.0 h1:bNEQyAGak9tojivJNkoqWErVCQbjdL7GzRt3F8NvfJ0=
-github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
-github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
-github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
-github.com/apparentlymart/go-userdirs v0.0.0-20200915174352-b0c018a67c13/go.mod h1:7kfpUbyCdGJ9fDRCp3fopPQi5+cKNHgTE4ZuNrO71Cw=
-github.com/apparentlymart/go-versions v1.0.1 h1:ECIpSn0adcYNsBfSRwdDdz9fWlL+S/6EUd9+irwkBgU=
-github.com/apparentlymart/go-versions v1.0.1/go.mod h1:YF5j7IQtrOAOnsGkniupEA5bfCjzd7i14yu0shZavyM=
-github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
-github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
-github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
-github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
-github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
-github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
-github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
-github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
-github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
-github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo=
-github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
-github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
-github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
-github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
-github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
-github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
-github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
-github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
-github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
-github.com/bmatcuk/doublestar v1.1.5 h1:2bNwBOmhyFEFcoB3tGvTD5xanq+4kyOZlB8wFYbMjkk=
-github.com/bmatcuk/doublestar v1.1.5/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
-github.com/bmatcuk/doublestar/v4 v4.0.1 h1:v5DFrvGpNnIKPlG7gcF4TlceHwBTvHdmjgDEkbDk9t8=
-github.com/bmatcuk/doublestar/v4 v4.0.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
-github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
-github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
-github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
-github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
-github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
-github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
-github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
-github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
-github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
-github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
-github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
-github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
-github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
-github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
-github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
-github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
-github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
-github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM=
-github.com/coreos/bbolt v1.3.0/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
-github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
-github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
-github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
-github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
-github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
-github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
-github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
-github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
-github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-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/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
-github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
-github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
-github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
-github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
-github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko=
-github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
-github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
-github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
-github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
-github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/dylanmei/iso8601 v0.1.0/go.mod h1:w9KhXSgIyROl1DefbMYIE7UVSIvELTbMrCfx+QkYnoQ=
-github.com/dylanmei/winrmtest v0.0.0-20190225150635-99b7fe2fddf1/go.mod h1:lcy9/2gH1jn/VCLouHA6tOEwLoNVd4GW6zhuKLmHC2Y=
-github.com/eapache/go-resiliency v1.3.0 h1:RRL0nge+cWGlxXbUzJ7yMcq6w2XBEr19dCN6HECGaT0=
-github.com/eapache/go-resiliency v1.3.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho=
-github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM=
-github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
-github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
-github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg=
-github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
-github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
-github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
-github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
-github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
-github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
-github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
-github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
-github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34=
-github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q=
-github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo=
-github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w=
-github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss=
-github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
-github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
-github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
-github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
-github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
-github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
-github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
-github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
-github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
-github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
-github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
-github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
-github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
-github.com/getkin/kin-openapi v0.75.0 h1:JEt2etuOJvejeoj7VBslrpGFGKd3FNOyhFAM0uTiOOw=
-github.com/getkin/kin-openapi v0.75.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4=
-github.com/getsentry/sentry-go v0.10.0 h1:6gwY+66NHKqyZrdi6O2jGdo7wGdo9b3B69E01NFgT5g=
-github.com/getsentry/sentry-go v0.10.0/go.mod h1:kELm/9iCblqUYh+ZRML7PNdCvEuw24wBvJPYyi86cws=
-github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
-github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
-github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
-github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
-github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM=
-github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
-github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98=
-github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
-github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
-github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
-github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
-github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
-github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
-github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY=
-github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4=
-github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E=
-github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
-github.com/go-git/go-billy/v5 v5.3.1 h1:CPiOUAzKtMRvolEKw+bG1PLRpT7D3LIs3/3ey4Aiu34=
-github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0=
-github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0=
-github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4=
-github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc=
-github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
-github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
-github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
-github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
-github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U=
-github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk=
-github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
-github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
-github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
-github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8=
-github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0=
-github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY=
-github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
-github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg=
-github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc=
-github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I=
-github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY=
-github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
-github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
-github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M=
-github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
-github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
-github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
-github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
-github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
-github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
-github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
-github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
-github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
-github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
-github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
-github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
-github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
-github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
-github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
-github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
-github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
-github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
-github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
-github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
-github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ=
-github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
-github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
-github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
-github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
-github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
-github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
-github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
-github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
-github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
-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/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
-github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
-github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
-github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
-github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
-github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
-github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
-github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
-github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
-github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
-github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
-github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
-github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
-github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
-github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
-github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
-github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
-github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
-github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
-github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
-github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
-github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
-github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
-github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
-github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
-github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
-github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk=
-github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw=
-github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk=
-github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
-github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
-github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
-github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
-github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
-github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
-github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
-github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
-github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-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/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
-github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
-github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
-github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
-github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k=
-github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
-github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
-github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
-github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
-github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM=
-github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM=
-github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM=
-github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c=
-github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo=
-github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY=
-github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
-github.com/googleapis/gax-go/v2 v2.7.1 h1:gF4c0zjUP2H/s/hEGyLA3I0fA2ZWjzYiONAD6cvPr8A=
-github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI=
-github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
-github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
-github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
-github.com/gophercloud/gophercloud v0.6.1-0.20191122030953-d8ac278c1c9d/go.mod h1:ozGNgr9KYOVATV5jsgHl/ceCDXGuguqOZAzoQ/2vcNM=
-github.com/gophercloud/gophercloud v0.10.1-0.20200424014253-c3bfe50899e5/go.mod h1:gmC5oQqMDOMO1t1gq5DquX/yAU808e/4mzjjDA76+Ss=
-github.com/gophercloud/utils v0.0.0-20200423144003-7c72efc7435d/go.mod h1:ehWUbLQJPqS0Ep+CxeD559hsm9pthPXadJNKwZkp43w=
-github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
-github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
-github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
-github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
-github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
-github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
-github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks=
-github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w=
-github.com/hashicorp/aws-sdk-go-base v0.6.0/go.mod h1:2fRjWDv3jJBeN6mVWFHV6hFTNeFBx2gpDLQaZNxUVAY=
-github.com/hashicorp/consul v0.0.0-20171026175957-610f3c86a089/go.mod h1:mFrjN1mfidgJfYP1xrJCF+AfRhr6Eaqhb2+sfyn/OOI=
-github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
-github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
-github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
-github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
-github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg=
-github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU=
-github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg=
-github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
-github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
-github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
-github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
-github.com/hashicorp/go-getter v1.5.1/go.mod h1:a7z7NPPfNQpJWcn4rSWFtdrSldqLdLPEF3d8nFMsSLM=
-github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI=
-github.com/hashicorp/go-getter v1.7.9 h1:G9gcjrDixz7glqJ+ll5IWvggSBR+R0B54DSRt4qfdC4=
-github.com/hashicorp/go-getter v1.7.9/go.mod h1:dyFCmT1AQkDfOIt9NH8pw9XBDqNrIKJT5ylbpi7zPNE=
-github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI=
-github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI=
-github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
-github.com/hashicorp/go-immutable-radix v0.0.0-20180129170900-7f3cd4390caa/go.mod h1:6ij3Z20p+OhOkCSrA0gImAWoHYQRGbnlcuk6XYTiaRw=
-github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
-github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
-github.com/hashicorp/go-msgpack v0.5.4/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
-github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
-github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
-github.com/hashicorp/go-plugin v1.3.0 h1:4d/wJojzvHV1I4i/rrjVaeuyxWrLzDE1mDCyDy8fXS8=
-github.com/hashicorp/go-plugin v1.3.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0=
-github.com/hashicorp/go-retryablehttp v0.5.2/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
-github.com/hashicorp/go-retryablehttp v0.7.0 h1:eu1EI/mbirUgP5C8hVsTNaGZreBDlYiwC1FZWkvQPQ4=
-github.com/hashicorp/go-retryablehttp v0.7.0/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
-github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
-github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo=
-github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I=
-github.com/hashicorp/go-slug v0.4.1/go.mod h1:I5tq5Lv0E2xcNXNkmx7BSfzi1PsJ2cNjs3cC3LwyhK8=
-github.com/hashicorp/go-slug v0.7.0 h1:8HIi6oreWPtnhpYd8lIGQBgp4rXzDWQTOhfILZm+nok=
-github.com/hashicorp/go-slug v0.7.0/go.mod h1:Ib+IWBYfEfJGI1ZyXMGNbu2BU+aa3Dzu41RKLH301v4=
-github.com/hashicorp/go-sockaddr v0.0.0-20180320115054-6d291a969b86/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
-github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
-github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
-github.com/hashicorp/go-tfe v0.8.1/go.mod h1:XAV72S4O1iP8BDaqiaPLmL2B4EE6almocnOn8E8stHc=
-github.com/hashicorp/go-tfe v0.20.0 h1:XUAhKoCX8ZUQfwBebC8hz7nkSSnqgNkaablIfxnZ0PQ=
-github.com/hashicorp/go-tfe v0.20.0/go.mod h1:gyXLXbpBVxA2F/6opah8XBsOkZJxHYQmghl0OWi8keI=
-github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE=
-github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-version v1.0.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
-github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
-github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
-github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
-github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
-github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90=
-github.com/hashicorp/hcl/v2 v2.7.2 h1:SpE9BfBb/nFxXRZvvKINKeQiGpyj6d0hhgXVqEtLGD4=
-github.com/hashicorp/hcl/v2 v2.7.2/go.mod h1:bQTN5mpo+jewjJgh8jr0JUguIi7qPHUF6yIfAEN3jqY=
-github.com/hashicorp/jsonapi v0.0.0-20210826224640-ee7dae0fb22d h1:9ARUJJ1VVynB176G1HCwleORqCaXm/Vx0uUi0dL26I0=
-github.com/hashicorp/jsonapi v0.0.0-20210826224640-ee7dae0fb22d/go.mod h1:Yog5+CPEM3c99L1CL2CFCYoSzgWm5vTU58idbRUaLik=
-github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
-github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
-github.com/hashicorp/memberlist v0.1.0/go.mod h1:ncdBp14cuox2iFOq3kDiquKU6fqsTBc3W6JvZwjxxsE=
-github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
-github.com/hashicorp/serf v0.0.0-20160124182025-e4ec8cc423bb/go.mod h1:h/Ru6tmZazX7WO/GDmwdpS975F019L4t5ng5IgwbNrE=
-github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
-github.com/hashicorp/terraform v0.14.0 h1:s0OivKdekGqireI8vzOXkXUHb0QxNfG8rnGuPS+cQMU=
-github.com/hashicorp/terraform v0.14.0/go.mod h1:K/qLM9bt3zVQPWrOn7IWiHbmNms5bn2O4UWycd2kMjk=
-github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 h1:Pc5TCv9mbxFN6UVX0LH6CpQrdTM5YjbVI2w15237Pjk=
-github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A=
-github.com/hashicorp/terraform-exec v0.14.0 h1:UQoUcxKTZZXhyyK68Cwn4mApT4mnFPmEXPiqaHL9r+w=
-github.com/hashicorp/terraform-exec v0.14.0/go.mod h1:qrAASDq28KZiMPDnQ02sFS9udcqEkRly002EA2izXTA=
-github.com/hashicorp/terraform-json v0.12.0 h1:8czPgEEWWPROStjkWPUnTQDXmpmZPlkQAwYYLETaTvw=
-github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI=
-github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=
-github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
-github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
-github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
-github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
-github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
-github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
-github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
-github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
-github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
-github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
-github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
-github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
-github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
-github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
-github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
-github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
-github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI=
-github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0=
-github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk=
-github.com/iris-contrib/pongo2 v0.0.1/go.mod h1:Ssh+00+3GAZqSQb30AvBRNxBx7rf0GqwkjqxNd0u65g=
-github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw=
-github.com/jarcoal/httpmock v1.0.6 h1:e81vOSexXU3mJuJ4l//geOmKIt+Vkxerk1feQBC8D0g=
-github.com/jarcoal/httpmock v1.0.6/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
-github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
-github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
-github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
-github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE=
-github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74=
-github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
-github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik=
-github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
-github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
-github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
-github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
-github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
-github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
-github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
-github.com/joyent/triton-go v0.0.0-20180313100802-d8f9c0314926/go.mod h1:U+RSyWxWd04xTqnuOQxnai7XGS2PrPY2cfGoDKtMHjA=
-github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
-github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
-github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
-github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
-github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
-github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
-github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
-github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
-github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
-github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
-github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
-github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
-github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
-github.com/kataras/golog v0.0.10/go.mod h1:yJ8YKCmyL+nWjERB90Qwn+bdyBZsaQwU3bTVFgkFIp8=
-github.com/kataras/iris/v12 v12.1.8/go.mod h1:LMYy4VlP67TQ3Zgriz8RE2h2kMZV2SgMYbq3UhfoFmE=
-github.com/kataras/neffos v0.0.14/go.mod h1:8lqADm8PnbeFfL7CLXh1WHw53dG27MC3pgi2R1rmoTE=
-github.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro=
-github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8=
-github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
-github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck=
-github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
-github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
-github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
-github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
-github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE=
-github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
-github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
-github.com/klauspost/compress v1.11.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
-github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
-github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
-github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
-github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
-github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
-github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
-github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
-github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
-github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
-github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
-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=
-github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
-github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
-github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
-github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
-github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g=
-github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
-github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
-github.com/likexian/gokit v0.0.0-20190309162924-0a377eecf7aa/go.mod h1:QdfYv6y6qPA9pbBA2qXtoT8BMKha6UyNbxWGWl/9Jfk=
-github.com/likexian/gokit v0.0.0-20190418170008-ace88ad0983b/go.mod h1:KKqSnk/VVSW8kEyO2vVCXoanzEutKdlBAPohmGXkxCk=
-github.com/likexian/gokit v0.0.0-20190501133040-e77ea8b19cdc/go.mod h1:3kvONayqCaj+UgrRZGpgfXzHdMYCAO0KAt4/8n0L57Y=
-github.com/likexian/gokit v0.20.15/go.mod h1:kn+nTv3tqh6yhor9BC4Lfiu58SmH8NmQ2PmEl+uM6nU=
-github.com/likexian/simplejson-go v0.0.0-20190409170913-40473a74d76d/go.mod h1:Typ1BfnATYtZ/+/shXfFYLrovhFyuKvzwrdOnIDHlmg=
-github.com/likexian/simplejson-go v0.0.0-20190419151922-c1f9f0b4f084/go.mod h1:U4O1vIJvIKwbMZKUJ62lppfdvkCdVd2nfMimHK81eec=
-github.com/likexian/simplejson-go v0.0.0-20190502021454-d8787b4bfa0b/go.mod h1:3BWwtmKP9cXWwYCr5bkoVDEfLywacOv0s06OBEDpyt8=
-github.com/lusis/go-artifactory v0.0.0-20160115162124-7e4ce345df82/go.mod h1:y54tfGmO3NKssKveTEFFzH8C/akrSOy/iW9qEAUDV84=
-github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
-github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
-github.com/lyft/protoc-gen-star/v2 v2.0.1/go.mod h1:RcCdONR2ScXaYnQC5tUzxzlpA3WVYF7/opLeUgcQs/o=
-github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4=
-github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
-github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
-github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8=
-github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
-github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9/go.mod h1:kCEbxUJlNDEBNbdQMkPSp6yaKcRXVI6f4ddk8Riv4bc=
-github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786/go.mod h1:kCEbxUJlNDEBNbdQMkPSp6yaKcRXVI6f4ddk8Riv4bc=
-github.com/masterzen/winrm v0.0.0-20200615185753-c42b5136ff88/go.mod h1:a2HXwefeat3evJHxFXSayvRHpYEPJYtErl4uIzfaUqY=
-github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=
-github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
-github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
-github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
-github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
-github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
-github.com/mattn/go-colorable v0.1.7 h1:bQGKb3vps/j0E9GfJQ03JyhRuxsvdAanXlT9BTw3mdw=
-github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
-github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
-github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
-github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
-github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
-github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
-github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/mattn/go-shellwords v1.0.4/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o=
-github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
-github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw=
-github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
-github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i4n7wVopoX3x7Bv8=
-github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc=
-github.com/miekg/dns v1.0.8/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
-github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
-github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY=
-github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=
-github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
-github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
-github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4=
-github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
-github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
-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/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
-github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-linereader v0.0.0-20190213213312-1b945b3263eb/go.mod h1:OaY7UOoTkkrX3wRwjpYRKafIkkyeD0UtweSHAWWiqQM=
-github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
-github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
-github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
-github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
-github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
-github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4=
-github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
-github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
-github.com/mitchellh/gox v1.0.1/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4=
-github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
-github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
-github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/mitchellh/panicwrap v1.0.0/go.mod h1:pKvZHwWrZowLUzftuFq7coarnxbBXU4aQh3N0BJOeeA=
-github.com/mitchellh/prefixedio v0.0.0-20190213213902-5733675afd51/go.mod h1:kB1naBgV9ORnkiTVeyJOI1DavaJkG4oNIq0Af6ZVKUo=
-github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
-github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
-github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
-github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
-github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8=
-github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
-github.com/mozillazg/go-httpheader v0.2.1/go.mod h1:jJ8xECTlalr6ValeXYdOF8fFUISeBAdw6E61aqQma60=
-github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
-github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
-github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
-github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
-github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w=
-github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
-github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
-github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
-github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U=
-github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
-github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
-github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
-github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
-github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
-github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
-github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
-github.com/packer-community/winrmcp v0.0.0-20180921211025-c76d91c1e7db/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
-github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
-github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
-github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
-github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=
-github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
-github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
-github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
-github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
-github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
-github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98=
-github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA=
-github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
-github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-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/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
-github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
-github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-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/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
-github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E=
-github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
-github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs=
-github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
-github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w=
-github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
-github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
-github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
-github.com/r3labs/diff/v2 v2.6.0 h1:9zmqWRY+/FIHqqgQOcb0re810DH7S1IFdiSYiWHqc9s=
-github.com/r3labs/diff/v2 v2.6.0/go.mod h1:m/37LMp7X15uXY9IFa+rdGr48V6R/8ShK3/+y6yJHkE=
-github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
-github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
-github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
-github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
-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 v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
-github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
-github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk=
-github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
-github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
-github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
-github.com/schollz/closestmatch v2.1.0+incompatible/go.mod h1:RtP1ddjLong6gTkbtmuhtR2uUrrJOpYzYRvbcPAid+g=
-github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
-github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4=
-github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
-github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
-github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
-github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
-github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa h1:jozR3igKlnYCj9IVHOVump59bp07oIRoLQ/CcjMYIUA=
-github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa/go.mod h1:hAF0iLZy4td2EX+/8Tw+4nodhlMrwN3HupfaXj3zkGo=
-github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a h1:KikTa6HtAK8cS1qjvUvvq4QO21QnwC+EfvB+OAuZ/ZU=
-github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a/go.mod h1:AuYgA5Kyo4c7HfUmvRGs/6rGlMMV/6B1bVnB9JxJEEg=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
-github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
-github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
-github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
-github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
-github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
-github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s=
-github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
-github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
-github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
-github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
-github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
-github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
-github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
-github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
-github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw=
-github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
-github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8=
-github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
-github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8=
-github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
-github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk=
-github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
-github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-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/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
-github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
-github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk=
-github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
-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 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
-github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
-github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
-github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
-github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
-github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-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/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
-github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY=
-github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
-github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
-github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
-github.com/svanharmelen/jsonapi v0.0.0-20180618144545-0c0828c3f16d/go.mod h1:BSTlc8jOjh0niykqEGVXOLXdi9o0r0kR8tCYiMvjFgw=
-github.com/tencentcloud/tencentcloud-sdk-go v3.0.82+incompatible/go.mod h1:0PfYow01SHPMhKY31xa+EFz2RStxIqj6JFAJS+IkCi4=
-github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20190808065407-f07404cefc8c/go.mod h1:wk2XFUg6egk4tSDNZtXeKfe2G6690UVyt163PuUxBZk=
-github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/tombuildsstuff/giovanni v0.12.0/go.mod h1:qJ5dpiYWkRsuOSXO8wHbee7+wElkLNfWVolcf59N84E=
-github.com/ugorji/go v0.0.0-20180813092308-00b869d2f4a5/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
-github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
-github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
-github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
-github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
-github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
-github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
-github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
-github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
-github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
-github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w=
-github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
-github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
-github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
-github.com/vmihailenco/msgpack/v4 v4.3.12 h1:07s4sz9IReOgdikxLTKNbBdqDMLsjPKXwvCazn8G65U=
-github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4=
-github.com/vmihailenco/tagparser v0.1.1 h1:quXMXlA39OCbd2wAdTsGDlK9RkOk6Wuw+x37wVyIuWY=
-github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
-github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
-github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI=
-github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0=
-github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
-github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
-github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
-github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/xlab/treeprint v0.0.0-20161029104018-1d6e34225557/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
-github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
-github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI=
-github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
-github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
-github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
-github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
-github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
-github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
-github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
-github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
-github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8=
-github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8=
-github.com/zclconf/go-cty v1.7.0/go.mod h1:VDR4+I79ubFBGm1uJac1226K5yANQFHeauxPBoP54+o=
-github.com/zclconf/go-cty v1.8.4 h1:pwhhz5P+Fjxse7S7UriBrMu6AUJSZM5pKqGem1PjGAs=
-github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk=
-github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8=
-github.com/zclconf/go-cty-yaml v1.0.2 h1:dNyg4QLTrv2IfJpm7Wtxi55ed5gLGOlPrZ6kMd51hY0=
-github.com/zclconf/go-cty-yaml v1.0.2/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0=
-github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
-github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA=
-go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
-go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
-go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
-go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
-go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
-go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
-go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
-go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
-go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=
-go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=
-go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
-go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU=
-go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
-go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
-go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
-go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
-golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190222235706-ffb98f73852f/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-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
-golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
-golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
-golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
-golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
-golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
-golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
-golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
-golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
-golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
-golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE=
-golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
-golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
-golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
-golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
-golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
-golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
-golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
-golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
-golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
-golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
-golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
-golang.org/x/image v0.0.0-20211028202545-6944b10bf410/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
-golang.org/x/image v0.0.0-20220302094943-723b81ca9867/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
-golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
-golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
-golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
-golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
-golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
-golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
-golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
-golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
-golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
-golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
-golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
-golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
-golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
-golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
-golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
-golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
-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-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190206173232-65e2d4e15006/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
-golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
-golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
-golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k=
-golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
-golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
-golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
-golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
-golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
-golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
-golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
-golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
-golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
-golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
-golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
-golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
-golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
-golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
-golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
-golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
-golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
-golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
-golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
-golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
-golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
-golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc=
-golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
-golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE=
-golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
-golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
-golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
-golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
-golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec=
-golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I=
-golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
-golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
-golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
-golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
-golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/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-20220601150217-0de741cfad7f/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.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
-golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
-golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/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-20190221075227-b4e8571b14e0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190509141414-a5b02f93d862/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/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-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210603125802-9665404d3644/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-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211210111614-af8b64212486/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-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/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-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220624220833-87e55d714810/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-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
-golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
-golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
-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.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
-golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
-golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
-golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
-golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
-golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY=
-golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
-golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
-golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
-golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
-golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek=
-golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
-golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
-golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
-golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
-golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
-golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
-golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
-golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
-golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
-golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
-golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
-golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
-golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
-golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
-golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
-golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
-golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191203134012-c197fd4bf371/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
-golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
-golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
-golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
-golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
-golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
-golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
-golang.org/x/tools v0.0.0-20201028111035-eafbe7b904eb/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
-golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
-golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
-golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
-golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
-golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
-golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
-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-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
-golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
-golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
-golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
-gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
-gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0=
-gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0=
-gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA=
-gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
-gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
-gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY=
-gonum.org/v1/plot v0.10.1/go.mod h1:VZW5OlhkL1mysU9vaqNHnsy86inf6Ot+jB3r+BczCEo=
-google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
-google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
-google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
-google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
-google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
-google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
-google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
-google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
-google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
-google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
-google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
-google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
-google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
-google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
-google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
-google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
-google.golang.org/api v0.34.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
-google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
-google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
-google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
-google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
-google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
-google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo=
-google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4=
-google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw=
-google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU=
-google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k=
-google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE=
-google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE=
-google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI=
-google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I=
-google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo=
-google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g=
-google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA=
-google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8=
-google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs=
-google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA=
-google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA=
-google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw=
-google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg=
-google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o=
-google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g=
-google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw=
-google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw=
-google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI=
-google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
-google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
-google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s=
-google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08=
-google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70=
-google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo=
-google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0=
-google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY=
-google.golang.org/api v0.107.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY=
-google.golang.org/api v0.108.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY=
-google.golang.org/api v0.110.0/go.mod h1:7FC4Vvx1Mooxh8C5HWjzZHcavuS2f6pmJpZx60ca7iI=
-google.golang.org/api v0.111.0/go.mod h1:qtFHvU9mhgTJegR31csQ+rwxyUTHOKFqCKWp1J0fdw0=
-google.golang.org/api v0.114.0 h1:1xQPji6cO2E2vLiI+C/XiFAnsn1WV3mjaEwGLhi3grE=
-google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg=
-google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
-google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
-google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
-google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
-google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
-google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
-google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
-google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
-google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
-google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
-google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
-google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
-google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
-google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
-google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
-google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
-google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
-google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
-google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
-google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
-google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
-google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
-google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
-google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
-google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w=
-google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
-google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
-google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
-google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
-google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
-google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
-google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
-google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
-google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
-google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
-google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E=
-google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo=
-google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
-google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
-google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
-google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4=
-google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
-google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
-google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
-google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
-google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
-google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE=
-google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc=
-google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
-google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
-google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
-google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
-google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk=
-google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
-google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
-google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
-google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
-google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
-google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw=
-google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI=
-google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI=
-google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U=
-google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
-google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
-google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s=
-google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s=
-google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo=
-google.golang.org/genproto v0.0.0-20221109142239-94d6d90a7d66/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
-google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE=
-google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230112194545-e10362b5ecf9/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230113154510-dbe35b8444a5/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230123190316-2c411cf9d197/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230124163310-31e0e69b6fc2/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230125152338-dcaf20b6aeaa/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230127162408-596548ed4efa/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230209215440-0dfe4f8abfcc/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
-google.golang.org/genproto v0.0.0-20230216225411-c8e22ba71e44/go.mod h1:8B0gmkoRebU8ukX6HP+4wrVQUY1+6PkQ44BSyIlflHA=
-google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec/go.mod h1:3Dl5ZL0q0isWJt+FVcfpQyirqemEuLAK/iFvg1UP1Hw=
-google.golang.org/genproto v0.0.0-20230223222841-637eb2293923/go.mod h1:3Dl5ZL0q0isWJt+FVcfpQyirqemEuLAK/iFvg1UP1Hw=
-google.golang.org/genproto v0.0.0-20230303212802-e74f57abe488/go.mod h1:TvhZT5f700eVlTNwND1xoEZQeWTB2RY/65kplwl/bFA=
-google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s=
-google.golang.org/genproto v0.0.0-20230320184635-7606e756e683/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s=
-google.golang.org/genproto v0.0.0-20230323212658-478b75c54725/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
-google.golang.org/genproto v0.0.0-20230330154414-c0448cd141ea/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
-google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
-google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A=
-google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU=
-google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
-google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
-google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
-google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
-google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
-google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
-google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
-google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
-google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
-google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
-google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8=
-google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
-google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
-google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
-google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
-google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
-google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
-google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
-google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
-google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
-google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
-google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
-google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
-google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
-google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
-google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
-google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
-google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
-google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
-google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
-google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
-google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
-google.golang.org/grpc v1.52.3/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY=
-google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw=
-google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
-google.golang.org/grpc v1.56.3 h1:8I4C0Yq1EjstUzUJzpcRVbuYA2mODtEmpWiQoN/b2nc=
-google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
-google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
-google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
-google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
-google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
-google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
-google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
-google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
-google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
-google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
-google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
-google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
-gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
-gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
-gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
-gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
-gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
-gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
-gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
-gopkg.in/inf.v0 v0.9.0/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
-gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
-gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
-gopkg.in/ini.v1 v1.51.1 h1:GyboHr4UqMiLUybYjd22ZjQIKEJEpgtLXtuGbR21Oho=
-gopkg.in/ini.v1 v1.51.1/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
-gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
-gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
-gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
-gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
-gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
-gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
-gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.3.0/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-20191120175047-4206685974f2/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/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=
-honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
-honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
-honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
-honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
-k8s.io/api v0.0.0-20190620084959-7cf5895f2711/go.mod h1:TBhBqb1AWbBQbW3XRusr7n7E4v2+5ZY8r8sAMnyFC5A=
-k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719/go.mod h1:I4A+glKBHiTgiEjQiCCQfCAIcIMFGt291SmsvcrFzJA=
-k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655/go.mod h1:nL6pwRT8NgfF8TT68DBI8uEePRt89cSvoXUVqbkWHq4=
-k8s.io/client-go v10.0.0+incompatible/go.mod h1:7vJpHMYJwNQCWgzmNV+VYUl1zCObLyodBc8nIyt8L5s=
-k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
-k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
-k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
-k8s.io/klog v0.4.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
-k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
-k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30/go.mod h1:BXM9ceUBTj2QnfH2MK1odQs778ajze1RxcmP6S8RVVc=
-k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
-k8s.io/utils v0.0.0-20200411171748-3d5a2fe318e4/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
-lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
-lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
-modernc.org/cc/v3 v3.36.0/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
-modernc.org/cc/v3 v3.36.2/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
-modernc.org/cc/v3 v3.36.3/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
-modernc.org/ccgo/v3 v3.0.0-20220428102840-41399a37e894/go.mod h1:eI31LL8EwEBKPpNpA4bU1/i+sKOwOrQy8D87zWUcRZc=
-modernc.org/ccgo/v3 v3.0.0-20220430103911-bc99d88307be/go.mod h1:bwdAnOoaIt8Ax9YdWGjxWsdkPcZyRPHqrOvJxaKAKGw=
-modernc.org/ccgo/v3 v3.16.4/go.mod h1:tGtX0gE9Jn7hdZFeU88slbTh1UtCYKusWOoCJuvkWsQ=
-modernc.org/ccgo/v3 v3.16.6/go.mod h1:tGtX0gE9Jn7hdZFeU88slbTh1UtCYKusWOoCJuvkWsQ=
-modernc.org/ccgo/v3 v3.16.8/go.mod h1:zNjwkizS+fIFDrDjIAgBSCLkWbJuHF+ar3QRn+Z9aws=
-modernc.org/ccgo/v3 v3.16.9/go.mod h1:zNMzC9A9xeNUepy6KuZBbugn3c0Mc9TeiJO4lgvkJDo=
-modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
-modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM=
-modernc.org/libc v0.0.0-20220428101251-2d5f3daf273b/go.mod h1:p7Mg4+koNjc8jkqwcoFBJx7tXkpj00G77X7A72jXPXA=
-modernc.org/libc v1.16.0/go.mod h1:N4LD6DBE9cf+Dzf9buBlzVJndKr/iJHG97vGLHYnb5A=
-modernc.org/libc v1.16.1/go.mod h1:JjJE0eu4yeK7tab2n4S1w8tlWd9MxXLRzheaRnAKymU=
-modernc.org/libc v1.16.17/go.mod h1:hYIV5VZczAmGZAnG15Vdngn5HSF5cSkbvfz2B7GRuVU=
-modernc.org/libc v1.16.19/go.mod h1:p7Mg4+koNjc8jkqwcoFBJx7tXkpj00G77X7A72jXPXA=
-modernc.org/libc v1.17.0/go.mod h1:XsgLldpP4aWlPlsjqKRdHPqCxCjISdHfM/yeWC5GyW0=
-modernc.org/libc v1.17.1/go.mod h1:FZ23b+8LjxZs7XtFMbSzL/EhPxNbfZbErxEHc7cbD9s=
-modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
-modernc.org/mathutil v1.4.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
-modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
-modernc.org/memory v1.1.1/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
-modernc.org/memory v1.2.0/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
-modernc.org/memory v1.2.1/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU=
-modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
-modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
-modernc.org/sqlite v1.18.1/go.mod h1:6ho+Gow7oX5V+OiOQ6Tr4xeqbx13UZ6t+Fw9IRUG4d4=
-modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
-modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw=
-modernc.org/tcl v1.13.1/go.mod h1:XOLfOwzhkljL4itZkK6T72ckMgvj0BDsnKNdZVUOecw=
-modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
-modernc.org/z v1.5.1/go.mod h1:eWFB510QWW5Th9YGZT81s+LwvaAs3Q2yr4sP0rmLkv8=
-rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
-rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
-rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
-rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
-sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
-sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
diff --git a/goland_watchers.xml b/goland_watchers.xml
deleted file mode 100644
index e0296d2e5..000000000
--- a/goland_watchers.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/logger/config.go b/logger/config.go
deleted file mode 100644
index 1720f1b11..000000000
--- a/logger/config.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package logger
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/build"
- "github.com/spf13/viper"
-)
-
-func getConfig() Config {
-
- config := Config{
- Level: logrus.WarnLevel,
- ReportCaller: false,
- Formatter: NewTextFormatter(4),
- }
-
- build := build.Build{}
- if !build.IsRelease() {
- config.Level = logrus.DebugLevel
- }
-
- if viper.IsSet("log_level") {
- level, _ := logrus.ParseLevel(viper.GetString("log_level"))
- config.Level = level
- }
-
- return config
-}
diff --git a/logger/logger.go b/logger/logger.go
deleted file mode 100644
index 9dca44fda..000000000
--- a/logger/logger.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package logger
-
-import (
- "log"
-
- "github.com/sirupsen/logrus"
-)
-
-type Config struct {
- Level logrus.Level
- Formatter logrus.Formatter
- ReportCaller bool
-}
-
-func Init() {
- config := getConfig()
- logrus.SetLevel(config.Level)
- logrus.SetReportCaller(config.ReportCaller)
- logrus.SetFormatter(config.Formatter)
-
- // Libs that use logger (like grpc provider) will log at TRACE level
- redirectLogger := logrus.New()
- redirectLogger.SetLevel(config.Level)
- redirectLogger.SetFormatter(config.Formatter)
- log.SetOutput(redirectLogger.WriterLevel(logrus.TraceLevel))
-}
diff --git a/logger/plugin_logger.go b/logger/plugin_logger.go
deleted file mode 100644
index c549437ab..000000000
--- a/logger/plugin_logger.go
+++ /dev/null
@@ -1,113 +0,0 @@
-package logger
-
-import (
- "io"
- "log"
-
- "github.com/hashicorp/go-hclog"
- "github.com/sirupsen/logrus"
-)
-
-type terraformPluginFormatter struct {
- logrus.Formatter
-}
-
-func (f *terraformPluginFormatter) Format(entry *logrus.Entry) ([]byte, error) {
- entry.Message = "[TerraformPlugin] " + entry.Message
- return f.Formatter.Format(entry)
-}
-
-type TerraformPluginLogger struct {
- logger *logrus.Logger
-}
-
-func NewTerraformPluginLogger() TerraformPluginLogger {
- config := getConfig()
- logger := logrus.New()
- logger.SetLevel(logrus.ErrorLevel)
- logger.SetReportCaller(false)
- logger.SetFormatter(&terraformPluginFormatter{Formatter: config.Formatter})
-
- // Disable terraform provider log if we are not in trace level
- if config.Level == logrus.TraceLevel {
- logger.SetLevel(logrus.TraceLevel)
- }
-
- return TerraformPluginLogger{logger}
-}
-
-func (t TerraformPluginLogger) Trace(msg string, args ...interface{}) {
- t.logger.Trace(msg, args)
-}
-
-func (t TerraformPluginLogger) Debug(msg string, args ...interface{}) {
- t.Trace(msg, args)
-}
-
-func (t TerraformPluginLogger) Info(msg string, args ...interface{}) {
- t.Trace(msg, args)
-}
-
-func (t TerraformPluginLogger) Warn(msg string, args ...interface{}) {
- t.Trace(msg, args)
-}
-
-func (t TerraformPluginLogger) Error(msg string, args ...interface{}) {
- t.Trace(msg, args)
-}
-
-func (t TerraformPluginLogger) IsTrace() bool {
- return true
-}
-
-func (t TerraformPluginLogger) IsDebug() bool {
- return false
-}
-
-func (t TerraformPluginLogger) IsInfo() bool {
- return false
-}
-
-func (t TerraformPluginLogger) IsWarn() bool {
- return false
-}
-
-func (t TerraformPluginLogger) IsError() bool {
- return false
-}
-
-func (t TerraformPluginLogger) With(args ...interface{}) hclog.Logger {
- return t
-}
-
-func (t TerraformPluginLogger) Named(name string) hclog.Logger {
- return t
-}
-
-func (t TerraformPluginLogger) ResetNamed(name string) hclog.Logger {
- return t
-}
-
-func (t TerraformPluginLogger) SetLevel(level hclog.Level) {}
-
-func (t TerraformPluginLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger {
- stdLogger := log.New(t.logger.Writer(), "", log.Flags())
- stdLogger.SetOutput(t.logger.Writer())
- return stdLogger
-}
-
-func (t TerraformPluginLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer {
- return t.logger.Writer()
-}
-
-func (t TerraformPluginLogger) Log(level hclog.Level, msg string, args ...interface{}) {
- t.logger.Log(logrus.TraceLevel, msg, args)
-}
-
-func (t TerraformPluginLogger) ImpliedArgs() []interface{} {
- return nil
-}
-
-func (t TerraformPluginLogger) Name() string {
- return "TerraformPlugin"
-}
diff --git a/logger/text_formatter.go b/logger/text_formatter.go
deleted file mode 100644
index e06400339..000000000
--- a/logger/text_formatter.go
+++ /dev/null
@@ -1,145 +0,0 @@
-package logger
-
-import (
- "bytes"
- "fmt"
- "sort"
- "strings"
- "time"
-
- "github.com/fatih/color"
-
- "github.com/sirupsen/logrus"
-)
-
-var baseTimestamp time.Time
-
-func init() {
- baseTimestamp = time.Now()
-}
-
-// TextFormatter formats logs into text
-type TextFormatter struct {
- // The max length of the level text, generated dynamically on init if == 0
- levelTextMaxLength int
-}
-
-func NewTextFormatter(levelTextMaxLength int) *TextFormatter {
- if levelTextMaxLength <= 0 {
- for _, level := range logrus.AllLevels {
- levelLen := len(level.String())
- if levelLen > levelTextMaxLength {
- levelTextMaxLength = levelLen
- }
- }
- }
-
- return &TextFormatter{levelTextMaxLength: levelTextMaxLength}
-}
-
-func (f *TextFormatter) Format(entry *logrus.Entry) ([]byte, error) {
- var b *bytes.Buffer
- if entry.Buffer != nil {
- b = entry.Buffer
- } else {
- b = &bytes.Buffer{}
- }
-
- if err := f.writeLevel(entry, b); err != nil {
- return nil, err
- }
-
- if err := f.writeElapsedTime(entry, b); err != nil {
- return nil, err
- }
-
- if err := f.writeMessage(entry, b); err != nil {
- return nil, err
- }
-
- if err := f.writeContext(entry, b); err != nil {
- return nil, err
- }
-
- if err := f.writeCaller(entry, b); err != nil {
- return nil, err
- }
- b.WriteByte('\n')
- return b.Bytes(), nil
-}
-
-func (f *TextFormatter) writeCaller(entry *logrus.Entry, b *bytes.Buffer) error {
- if entry.HasCaller() {
- caller := ""
-
- funcVal := fmt.Sprintf("%s()", entry.Caller.Function)
- fileVal := fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
-
- if fileVal == "" {
- caller = caller + funcVal
- } else if funcVal == "" {
- caller = fileVal
- } else {
- caller = fileVal + " " + funcVal
- }
-
- if _, err := fmt.Fprintf(b, " (%s)", caller); err != nil {
- return err
- }
- }
- return nil
-}
-
-func (f *TextFormatter) writeContext(entry *logrus.Entry, b *bytes.Buffer) error {
- keys := make([]string, 0)
- for key := range entry.Data {
- keys = append(keys, key)
- }
- sort.Strings(keys)
-
- for _, key := range keys {
- if _, err := fmt.Fprintf(b, " %s=%s", color.CyanString("%s", key), entry.Data[key]); err != nil {
- return err
- }
- }
- return nil
-}
-
-func (f *TextFormatter) writeMessage(entry *logrus.Entry, b *bytes.Buffer) error {
- if _, err := color.New(color.FgHiWhite).Fprintf(b, " %s", entry.Message); err != nil {
- return err
- }
- return nil
-}
-
-func (f *TextFormatter) writeElapsedTime(entry *logrus.Entry, b *bytes.Buffer) error {
- if _, err := fmt.Fprintf(b, "[%04d]", int(entry.Time.Sub(baseTimestamp)/time.Second)); err != nil {
- return err
- }
- return nil
-}
-
-func (f *TextFormatter) writeLevel(entry *logrus.Entry, b *bytes.Buffer) error {
- levelText := strings.ToUpper(entry.Level.String())
-
- var levelColor *color.Color
- switch entry.Level {
- case logrus.DebugLevel, logrus.TraceLevel:
- levelColor = color.New(color.Bold, color.FgHiWhite)
- case logrus.WarnLevel:
- levelColor = color.New(color.Bold, color.FgYellow)
- case logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel:
- levelColor = color.New(color.Bold, color.FgRed)
- default:
- levelColor = color.New(color.Bold, color.FgBlue)
- }
-
- if len(levelText) > f.levelTextMaxLength {
- levelText = levelText[0:f.levelTextMaxLength] // TRUNCATE if needed
- }
- // and then pad to f.levelTextMaxLength
- if _, err := levelColor.Fprintf(b, "%*v", -f.levelTextMaxLength, levelText); err != nil {
- return err
- }
- return nil
-}
diff --git a/main.go b/main.go
deleted file mode 100644
index b68ecd426..000000000
--- a/main.go
+++ /dev/null
@@ -1,101 +0,0 @@
-package main
-
-import (
- "fmt"
- "os"
- "time"
-
- "github.com/fatih/color"
- gosentry "github.com/getsentry/sentry-go"
- "github.com/joho/godotenv"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/build"
- "github.com/snyk/driftctl/logger"
- "github.com/snyk/driftctl/pkg/cmd"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
- "github.com/snyk/driftctl/pkg/cmd/scan"
- "github.com/snyk/driftctl/pkg/config"
- "github.com/snyk/driftctl/pkg/version"
- "github.com/snyk/driftctl/sentry"
-)
-
-func init() {
- _ = godotenv.Load(".env.local")
- _ = godotenv.Load() // The Original .env
-}
-
-func main() {
- os.Exit(run())
-}
-
-func run() int {
-
- config.Init()
- logger.Init()
- build := build.Build{}
- // Check whether driftCTL is run under Snyk CLI
- isSnyk := config.IsSnyk()
- logrus.WithFields(logrus.Fields{
- "isRelease": fmt.Sprintf("%t", build.IsRelease()),
- "isUsageReportingEnabled": fmt.Sprintf("%t", build.IsUsageReportingEnabled()),
- "version": version.Current(),
- "isSnyk": fmt.Sprintf("%t", isSnyk),
- }).Debug("Build info")
-
- // Enable colorization when driftctl is launched under snyk cli (piped)
- if isSnyk {
- color.NoColor = false
- }
-
- driftctlCmd := cmd.NewDriftctlCmd(build)
-
- checkVersion := driftctlCmd.ShouldCheckVersion()
- latestVersionChan := make(chan string)
- if checkVersion {
- go func() {
- latestVersion := version.CheckLatest()
- latestVersionChan <- latestVersion
- }()
- }
-
- // Handle panic and log them to sentry if error reporting is enabled
- defer func() {
- if cmd.IsReportingEnabled(&driftctlCmd.Command) {
- err := recover()
- if err != nil {
- gosentry.CurrentHub().Recover(err)
- flushSentry()
- logrus.Fatalf("Captured panic: %s", err)
- os.Exit(scan.EXIT_ERROR)
- }
- flushSentry()
- }
- }()
-
- if _, err := driftctlCmd.ExecuteC(); err != nil {
- if _, isNotInSync := err.(cmderrors.InfrastructureNotInSync); isNotInSync {
- return scan.EXIT_NOT_IN_SYNC
- }
- if cmd.IsReportingEnabled(&driftctlCmd.Command) {
- sentry.CaptureException(err)
- }
- _, _ = fmt.Fprintln(os.Stderr, color.RedString("%s", err))
- return scan.EXIT_ERROR
- }
-
- if checkVersion {
- newVersion := <-latestVersionChan
- if newVersion != "" {
- _, _ = fmt.Fprintln(os.Stderr, "\n\nYour version of driftctl is outdated, please upgrade!")
- _, _ = fmt.Fprintf(os.Stderr, "Current: %s; Latest: %s\n", version.Current(), newVersion)
- }
- }
-
- return scan.EXIT_IN_SYNC
-}
-
-func flushSentry() {
- ttl := 60 * time.Second
- ok := gosentry.Flush(ttl)
- logrus.WithField("timeout", ttl).WithField("success", ok).Debug("Flushed Sentry events")
-}
diff --git a/mocks/AlerterInterface.go b/mocks/AlerterInterface.go
deleted file mode 100644
index 4903a713a..000000000
--- a/mocks/AlerterInterface.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Code generated by mockery v2.3.0. DO NOT EDIT.
-
-package mocks
-
-import (
- "github.com/snyk/driftctl/enumeration/alerter"
- mock "github.com/stretchr/testify/mock"
-)
-
-// AlerterInterface is an autogenerated mock type for the AlerterInterface type
-type AlerterInterface struct {
- mock.Mock
-}
-
-// SendAlert provides a mock function with given fields: key, alert
-func (_m *AlerterInterface) SendAlert(key string, alert alerter.Alert) {
- _m.Called(key, alert)
-}
diff --git a/mocks/GithubGraphQLClient.go b/mocks/GithubGraphQLClient.go
deleted file mode 100644
index b3488d460..000000000
--- a/mocks/GithubGraphQLClient.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Code generated by mockery v2.3.0. DO NOT EDIT.
-
-package mocks
-
-import (
- context "context"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// GithubGraphQLClient is an autogenerated mock type for the GithubGraphQLClient type
-type GithubGraphQLClient struct {
- mock.Mock
-}
-
-// Query provides a mock function with given fields: ctx, q, variables
-func (_m *GithubGraphQLClient) Query(ctx context.Context, q interface{}, variables map[string]interface{}) error {
- ret := _m.Called(ctx, q, variables)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, interface{}, map[string]interface{}) error); ok {
- r0 = rf(ctx, q, variables)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
diff --git a/mocks/ProviderDownloaderInterface.go b/mocks/ProviderDownloaderInterface.go
deleted file mode 100644
index c4d78ba09..000000000
--- a/mocks/ProviderDownloaderInterface.go
+++ /dev/null
@@ -1,38 +0,0 @@
-// Code generated by mockery v1.0.0. DO NOT EDIT.
-
-package mocks
-
-import mock "github.com/stretchr/testify/mock"
-
-// ProviderDownloaderInterface is an autogenerated mock type for the ProviderDownloaderInterface type
-type ProviderDownloaderInterface struct {
- mock.Mock
-}
-
-// Download provides a mock function with given fields: url, path
-func (_m *ProviderDownloaderInterface) Download(url string, path string) error {
- ret := _m.Called(url, path)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(string, string) error); ok {
- r0 = rf(url, path)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetProviderUrl provides a mock function with given fields: name, version
-func (_m *ProviderDownloaderInterface) GetProviderUrl(name string, version string) string {
- ret := _m.Called(name, version)
-
- var r0 string
- if rf, ok := ret.Get(0).(func(string, string) string); ok {
- r0 = rf(name, version)
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
diff --git a/pkg/analyser/analysis.go b/pkg/analyser/analysis.go
deleted file mode 100644
index 008a02da2..000000000
--- a/pkg/analyser/analysis.go
+++ /dev/null
@@ -1,232 +0,0 @@
-package analyser
-
-import (
- "encoding/json"
- "fmt"
- "strings"
- "time"
-
- "github.com/snyk/driftctl/enumeration/alerter"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type Summary struct {
- TotalResources int `json:"total_resources"`
- TotalUnmanaged int `json:"total_unmanaged"`
- TotalDeleted int `json:"total_missing"`
- TotalManaged int `json:"total_managed"`
- TotalIaCSourceCount uint `json:"total_iac_source_count"`
-}
-
-type Analysis struct {
- unmanaged []*resource.Resource
- managed []*resource.Resource
- deleted []*resource.Resource
- summary Summary
- alerts alerter.Alerts
- Duration time.Duration
- Date time.Time
- ProviderName string
- ProviderVersion string
-}
-
-type serializableAnalysis struct {
- Summary Summary `json:"summary"`
- Managed []resource.SerializableResource `json:"managed"`
- Unmanaged []resource.SerializableResource `json:"unmanaged"`
- Deleted []resource.SerializableResource `json:"missing"`
- Coverage int `json:"coverage"`
- Alerts map[string][]alerter.SerializableAlert `json:"alerts"`
- ProviderName string `json:"provider_name"`
- ProviderVersion string `json:"provider_version"`
- ScanDuration uint `json:"scan_duration,omitempty"`
- Date time.Time `json:"date"`
-}
-
-type GenDriftIgnoreOptions struct {
- ExcludeUnmanaged bool
- ExcludeDeleted bool
- ExcludeDrifted bool
- InputPath string
- OutputPath string
-}
-
-func NewAnalysis() *Analysis {
- return &Analysis{}
-}
-
-func (a Analysis) MarshalJSON() ([]byte, error) {
- bla := serializableAnalysis{}
- for _, m := range a.managed {
- bla.Managed = append(bla.Managed, *resource.NewSerializableResource(m))
- }
- for _, u := range a.unmanaged {
- bla.Unmanaged = append(bla.Unmanaged, *resource.NewSerializableResource(u))
- }
- for _, d := range a.deleted {
- bla.Deleted = append(bla.Deleted, *resource.NewSerializableResource(d))
- }
- if len(a.alerts) > 0 {
- bla.Alerts = make(map[string][]alerter.SerializableAlert)
- for k, v := range a.alerts {
- for _, al := range v {
- bla.Alerts[k] = append(bla.Alerts[k], alerter.SerializableAlert{Alert: al})
- }
- }
- }
- bla.Summary = a.summary
- bla.Coverage = a.Coverage()
- bla.ProviderName = a.ProviderName
- bla.ProviderVersion = a.ProviderVersion
- bla.ScanDuration = uint(a.Duration.Seconds())
- bla.Date = a.Date
-
- return json.Marshal(bla)
-}
-
-func (a *Analysis) UnmarshalJSON(bytes []byte) error {
- bla := serializableAnalysis{}
- if err := json.Unmarshal(bytes, &bla); err != nil {
- return err
- }
- for _, u := range bla.Unmanaged {
- a.AddUnmanaged(&resource.Resource{
- Id: u.Id,
- Type: u.Type,
- })
- }
- for _, d := range bla.Deleted {
- a.AddDeleted(&resource.Resource{
- Id: d.Id,
- Type: d.Type,
- })
- }
- for _, m := range bla.Managed {
- res := &resource.Resource{
- Id: m.Id,
- Type: m.Type,
- }
- if m.Source != nil {
- // We loose the source type in the serialization process, for now everything is serialized back to a
- // TerraformStateSource.
- // TODO: Add a discriminator field to be able to serialize back to the right type
- // when we'll introduce a new source type
- res.Source = &resource.TerraformStateSource{
- State: m.Source.S,
- Module: m.Source.Ns,
- Name: m.Source.Name,
- }
- }
- a.AddManaged(res)
- }
- if len(bla.Alerts) > 0 {
- a.alerts = make(alerter.Alerts)
- for k, v := range bla.Alerts {
- for _, al := range v {
- a.alerts[k] = append(a.alerts[k], &alerter.SerializedAlert{
- Msg: al.Message(),
- })
- }
- }
- }
- a.ProviderName = bla.ProviderName
- a.ProviderVersion = bla.ProviderVersion
- a.SetIaCSourceCount(bla.Summary.TotalIaCSourceCount)
- a.Duration = time.Duration(bla.ScanDuration) * time.Second
- a.Date = bla.Date
- return nil
-}
-
-func (a *Analysis) IsSync() bool {
- return a.summary.TotalUnmanaged == 0 && a.summary.TotalDeleted == 0
-}
-
-func (a *Analysis) AddDeleted(resources ...*resource.Resource) {
- a.deleted = append(a.deleted, resources...)
- a.summary.TotalResources += len(resources)
- a.summary.TotalDeleted += len(resources)
-}
-
-func (a *Analysis) AddUnmanaged(resources ...*resource.Resource) {
- a.unmanaged = append(a.unmanaged, resources...)
- a.summary.TotalResources += len(resources)
- a.summary.TotalUnmanaged += len(resources)
-}
-
-func (a *Analysis) AddManaged(resources ...*resource.Resource) {
- a.managed = append(a.managed, resources...)
- a.summary.TotalResources += len(resources)
- a.summary.TotalManaged += len(resources)
-}
-
-func (a *Analysis) SetAlerts(alerts alerter.Alerts) {
- a.alerts = alerts
-}
-
-func (a *Analysis) SetIaCSourceCount(i uint) {
- a.summary.TotalIaCSourceCount = i
-}
-
-func (a *Analysis) Coverage() int {
- if a.summary.TotalResources > 0 {
- return int((float32(a.summary.TotalManaged) / float32(a.summary.TotalResources)) * 100.0)
- }
- return 0
-}
-
-func (a *Analysis) Managed() []*resource.Resource {
- return a.managed
-}
-
-func (a *Analysis) Unmanaged() []*resource.Resource {
- return a.unmanaged
-}
-
-func (a *Analysis) Deleted() []*resource.Resource {
- return a.deleted
-}
-
-func (a *Analysis) Summary() Summary {
- return a.summary
-}
-
-func (a *Analysis) Alerts() alerter.Alerts {
- return a.alerts
-}
-
-func (a *Analysis) SortResources() {
- a.unmanaged = resource.Sort(a.unmanaged)
- a.deleted = resource.Sort(a.deleted)
-}
-
-func (a *Analysis) DriftIgnoreList(opts GenDriftIgnoreOptions) (int, string) {
- var list []string
-
- resourceCount := 0
-
- addResources := func(res ...*resource.Resource) {
- for _, r := range res {
- list = append(list, fmt.Sprintf("%s.%s", r.ResourceType(), escapeKey(r.ResourceId())))
- }
- resourceCount += len(res)
- }
-
- if !opts.ExcludeUnmanaged && a.Summary().TotalUnmanaged > 0 {
- list = append(list, "# Resources not covered by IaC")
- addResources(a.Unmanaged()...)
- }
- if !opts.ExcludeDeleted && a.Summary().TotalDeleted > 0 {
- list = append(list, "# Missing resources")
- addResources(a.Deleted()...)
- }
-
- return resourceCount, strings.Join(list, "\n")
-}
-
-func escapeKey(line string) string {
- line = strings.ReplaceAll(line, `\`, `\\`)
- line = strings.ReplaceAll(line, `.`, `\.`)
-
- return line
-}
diff --git a/pkg/analyser/analyzer.go b/pkg/analyser/analyzer.go
deleted file mode 100644
index 9fd5ba35a..000000000
--- a/pkg/analyser/analyzer.go
+++ /dev/null
@@ -1,131 +0,0 @@
-package analyser
-
-import (
- "github.com/snyk/driftctl/enumeration/alerter"
- resourceaws "github.com/snyk/driftctl/enumeration/resource/aws"
- "github.com/snyk/driftctl/pkg/filter"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type UnmanagedSecurityGroupRulesAlert struct{}
-
-func newUnmanagedSecurityGroupRulesAlert() *UnmanagedSecurityGroupRulesAlert {
- return &UnmanagedSecurityGroupRulesAlert{}
-}
-
-func (u *UnmanagedSecurityGroupRulesAlert) Message() string {
- return "You have unmanaged security group rules that could be false positives, find out more at https://docs.driftctl.com/limitations"
-}
-
-func (u *UnmanagedSecurityGroupRulesAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (u *UnmanagedSecurityGroupRulesAlert) Resource() *resource.Resource {
- return nil
-}
-
-type ComputedDiffAlert struct{}
-
-func NewComputedDiffAlert() *ComputedDiffAlert {
- return &ComputedDiffAlert{}
-}
-
-func (c *ComputedDiffAlert) Message() string {
- return "You have diffs on computed fields, check the documentation for potential false positive drifts: https://docs.driftctl.com/limitations"
-}
-
-func (c *ComputedDiffAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (c *ComputedDiffAlert) Resource() *resource.Resource {
- return nil
-}
-
-type Analyzer struct {
- alerter *alerter.Alerter
- filter filter.Filter
-}
-
-func NewAnalyzer(alerter *alerter.Alerter, filter filter.Filter) *Analyzer {
- return &Analyzer{alerter, filter}
-}
-
-func (a Analyzer) Analyze(remoteResources, resourcesFromState []*resource.Resource) (Analysis, error) {
- analysis := Analysis{}
-
- // Iterate on remote resources and filter ignored resources
- filteredRemoteResource := make([]*resource.Resource, 0, len(remoteResources))
- for _, remoteRes := range remoteResources {
- if a.filter.IsResourceIgnored(remoteRes) || a.alerter.IsResourceIgnored(remoteRes) {
- continue
- }
- filteredRemoteResource = append(filteredRemoteResource, remoteRes)
- }
-
- haveComputedDiff := false
- for _, stateRes := range resourcesFromState {
- i, _, found := findCorrespondingRes(filteredRemoteResource, stateRes)
-
- if a.filter.IsResourceIgnored(stateRes) || a.alerter.IsResourceIgnored(stateRes) {
- continue
- }
-
- if !found {
- analysis.AddDeleted(stateRes)
- continue
- }
-
- // Remove managed resources, so it will remain only unmanaged ones
- filteredRemoteResource = removeResourceByIndex(i, filteredRemoteResource)
- analysis.AddManaged(stateRes)
- }
-
- if a.hasUnmanagedSecurityGroupRules(filteredRemoteResource) {
- a.alerter.SendAlert("", newUnmanagedSecurityGroupRulesAlert())
- }
-
- if haveComputedDiff {
- a.alerter.SendAlert("", NewComputedDiffAlert())
- }
-
- // Add remaining unmanaged resources
- analysis.AddUnmanaged(filteredRemoteResource...)
-
- // Sort resources by Terraform Id
- // The purpose is to have a predictable output
- analysis.SortResources()
-
- analysis.SetAlerts(a.alerter.Retrieve())
-
- return analysis, nil
-}
-
-func findCorrespondingRes(resources []*resource.Resource, res *resource.Resource) (int, *resource.Resource, bool) {
- for i, r := range resources {
- if res.Equal(r) {
- return i, r, true
- }
- }
- return -1, nil, false
-}
-
-func removeResourceByIndex(i int, resources []*resource.Resource) []*resource.Resource {
- if i == len(resources)-1 {
- return resources[:len(resources)-1]
- }
- return append(resources[:i], resources[i+1:]...)
-}
-
-// hasUnmanagedSecurityGroupRules returns true if we find at least one unmanaged
-// security group rule
-func (a Analyzer) hasUnmanagedSecurityGroupRules(unmanagedResources []*resource.Resource) bool {
- for _, res := range unmanagedResources {
- if res.ResourceType() == resourceaws.AwsSecurityGroupRuleResourceType {
- return true
- }
- }
- return false
-}
diff --git a/pkg/analyser/analyzer_test.go b/pkg/analyser/analyzer_test.go
deleted file mode 100644
index 838c41cab..000000000
--- a/pkg/analyser/analyzer_test.go
+++ /dev/null
@@ -1,601 +0,0 @@
-package analyser
-
-import (
- "encoding/json"
- "os"
- "testing"
- "time"
-
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-
- alerter2 "github.com/snyk/driftctl/enumeration/alerter"
-
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/stretchr/testify/mock"
-
- "github.com/stretchr/testify/assert"
-
- testresource "github.com/snyk/driftctl/test/resource"
-
- "github.com/snyk/driftctl/test/goldenfile"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-
- "github.com/r3labs/diff/v2"
-)
-
-func TestAnalyze(t *testing.T) {
- cases := []struct {
- name string
- iac []*resource.Resource
- ignoredRes []*resource.Resource
- cloud []*resource.Resource
- ignoredDrift []struct {
- res *resource.Resource
- path []string
- }
- alerts alerter2.Alerts
- expected Analysis
- hasDrifted bool
- }{
- {
- name: "TestNilValues", // Cover division by zero case
- iac: nil,
- cloud: nil,
- expected: Analysis{},
- },
- {
- name: "TestNothingToCompare", // Cover division by zero case
- iac: []*resource.Resource{},
- cloud: []*resource.Resource{},
- expected: Analysis{},
- },
- {
- name: "TestIgnoreFromCoverageIacNotInCloud",
- iac: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- cloud: []*resource.Resource{},
- expected: Analysis{
- summary: Summary{
- TotalResources: 1,
- TotalDeleted: 1,
- },
- deleted: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- },
- hasDrifted: true,
- },
- {
- name: "TestResourceIgnoredDeleted",
- iac: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- ignoredRes: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- cloud: []*resource.Resource{},
- expected: Analysis{
- summary: Summary{
- TotalResources: 0,
- TotalDeleted: 0,
- },
- },
- hasDrifted: false,
- },
- {
- name: "Test100PercentCoverage with ignore",
- iac: []*resource.Resource{
- {
- Id: "foobar",
- },
- {
- Id: "foobar2",
- },
- },
- ignoredRes: []*resource.Resource{
- {
- Id: "foobar2",
- },
- },
- cloud: []*resource.Resource{
- {
- Id: "foobar",
- },
- {
- Id: "foobar2",
- },
- },
- expected: Analysis{
- managed: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- summary: Summary{
- TotalManaged: 1,
- TotalResources: 1,
- },
- },
- },
- {
- name: "Test100PercentCoverage",
- iac: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- cloud: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- expected: Analysis{
- managed: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- summary: Summary{
- TotalManaged: 1,
- TotalResources: 1,
- },
- },
- },
- {
- name: "TestUnmanagedResource",
- iac: []*resource.Resource{},
- cloud: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- expected: Analysis{
- summary: Summary{
- TotalResources: 1,
- TotalUnmanaged: 1,
- },
- unmanaged: []*resource.Resource{
- {
- Id: "foobar",
- },
- },
- },
- hasDrifted: true,
- },
- {
- name: "Test alert on unmanaged security group rules",
- iac: []*resource.Resource{
- {
- Id: "managed security group",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "id": "managed security group",
- },
- },
- },
- cloud: []*resource.Resource{
- {
- Id: "managed security group",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "id": "managed security group",
- },
- },
- {
- Id: "unmanaged rule",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "unmanaged rule",
- },
- },
- },
- expected: Analysis{
- managed: []*resource.Resource{
- {
- Id: "managed security group",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "id": "managed security group",
- },
- },
- },
- unmanaged: []*resource.Resource{
- {
- Id: "unmanaged rule",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "unmanaged rule",
- },
- },
- },
- summary: Summary{
- TotalResources: 2,
- TotalManaged: 1,
- TotalUnmanaged: 1,
- },
- alerts: alerter2.Alerts{
- "": {
- newUnmanagedSecurityGroupRulesAlert(),
- },
- },
- },
- hasDrifted: true,
- },
- {
- name: "Test sorted unmanaged & deleted resources",
- iac: []*resource.Resource{
- {
- Id: "deleted resource 22",
- Type: "aws_s3_bucket",
- },
- {
- Id: "deleted resource 20",
- Type: "aws_ebs_volume",
- },
- {
- Id: "deleted resource 20",
- Type: "aws_s3_bucket",
- },
- },
- cloud: []*resource.Resource{
- {
- Id: "unmanaged resource 12",
- Type: "aws_s3_bucket",
- },
- {
- Id: "unmanaged resource 10",
- Type: "aws_s3_bucket",
- },
- {
- Id: "unmanaged resource 11",
- Type: "aws_ebs_volume",
- },
- },
- expected: Analysis{
- managed: []*resource.Resource{},
- unmanaged: []*resource.Resource{
- {
- Id: "unmanaged resource 11",
- Type: "aws_ebs_volume",
- },
- {
- Id: "unmanaged resource 10",
- Type: "aws_s3_bucket",
- },
- {
- Id: "unmanaged resource 12",
- Type: "aws_s3_bucket",
- },
- },
- deleted: []*resource.Resource{
- {
- Id: "deleted resource 20",
- Type: "aws_ebs_volume",
- },
- {
- Id: "deleted resource 20",
- Type: "aws_s3_bucket",
- },
- {
- Id: "deleted resource 22",
- Type: "aws_s3_bucket",
- },
- },
- summary: Summary{
- TotalResources: 6,
- TotalManaged: 0,
- TotalUnmanaged: 3,
- TotalDeleted: 3,
- },
- alerts: alerter2.Alerts{},
- },
- hasDrifted: true,
- },
- {
- name: "Test Discriminant function",
- iac: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsAppAutoscalingTargetResourceType,
- Attrs: &resource.Attributes{
- "scalable_dimension": "test2",
- },
- },
- },
- cloud: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsAppAutoscalingTargetResourceType,
- Attrs: &resource.Attributes{
- "scalable_dimension": "test1",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsAppAutoscalingTargetResourceType,
- Attrs: &resource.Attributes{
- "scalable_dimension": "test2",
- },
- },
- },
- hasDrifted: true,
- expected: Analysis{
- managed: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsAppAutoscalingTargetResourceType,
- Attrs: &resource.Attributes{
- "scalable_dimension": "test2",
- },
- },
- },
- unmanaged: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsAppAutoscalingTargetResourceType,
- Attrs: &resource.Attributes{
- "scalable_dimension": "test1",
- },
- },
- },
- summary: Summary{
- TotalResources: 2,
- TotalManaged: 1,
- TotalUnmanaged: 1,
- },
- },
- },
- }
-
- differ, err := diff.NewDiffer(diff.SliceOrdering(true))
- if err != nil {
- t.Fatalf("Error creating new differ: %e", err)
- }
-
- for _, c := range cases {
- t.Run(c.name, func(t *testing.T) {
- testFilter := &filter.MockFilter{}
- for _, ignored := range c.ignoredRes {
- testFilter.On("IsResourceIgnored", ignored).Return(true)
- }
- testFilter.On("IsResourceIgnored", mock.Anything).Return(false)
-
- al := alerter2.NewAlerter()
- if c.alerts != nil {
- al.SetAlerts(c.alerts)
- }
-
- repo := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- aws.InitResourcesMetadata(repo)
-
- analyzer := NewAnalyzer(al, testFilter)
-
- for _, res := range c.cloud {
- addSchemaToRes(res, repo)
- }
-
- for _, res := range c.iac {
- addSchemaToRes(res, repo)
- }
-
- for _, res := range c.ignoredRes {
- addSchemaToRes(res, repo)
- }
-
- for _, drift := range c.ignoredDrift {
- addSchemaToRes(drift.res, repo)
- }
-
- result, err := analyzer.Analyze(c.cloud, c.iac)
-
- if err != nil {
- t.Error(err)
- return
- }
-
- if result.IsSync() == c.hasDrifted {
- t.Errorf("Drifted state does not match, got %t expected %t", result.IsSync(), !c.hasDrifted)
- }
-
- managedChanges, err := differ.Diff(result.Managed(), c.expected.Managed())
- if err != nil {
- t.Fatalf("Unable to compare %+v", err)
- }
- if len(managedChanges) > 0 {
- for _, change := range managedChanges {
- t.Errorf("%+v", change)
- }
- }
-
- unmanagedChanges, err := differ.Diff(result.Unmanaged(), c.expected.Unmanaged())
- if err != nil {
- t.Fatalf("Unable to compare %+v", err)
- }
- if len(unmanagedChanges) > 0 {
- for _, change := range unmanagedChanges {
- t.Errorf("%+v", change)
- }
- }
-
- deletedChanges, err := differ.Diff(result.Deleted(), c.expected.Deleted())
- if err != nil {
- t.Fatalf("Unable to compare %+v", err)
- }
- if len(deletedChanges) > 0 {
- for _, change := range deletedChanges {
- t.Errorf("%+v", change)
- }
- }
-
- summaryChanges, err := differ.Diff(c.expected.Summary(), result.Summary())
- if err != nil {
- t.Fatalf("Unable to compare %+v", err)
- }
- if len(summaryChanges) > 0 {
- for _, change := range summaryChanges {
- t.Errorf("%+v", change)
- }
- }
-
- alertsChanges, err := differ.Diff(result.Alerts(), c.expected.Alerts())
- if err != nil {
- t.Fatalf("Unable to compare %+v", err)
- }
- if len(alertsChanges) > 0 {
- for _, change := range alertsChanges {
- t.Errorf("%+v", change)
- }
- }
- })
- }
-}
-
-func addSchemaToRes(res *resource.Resource, repo dctlresource.SchemaRepositoryInterface) {
- schema, _ := repo.GetSchema(res.ResourceType())
- res.Sch = schema
-}
-
-func TestAnalysis_MarshalJSON(t *testing.T) {
- goldenFile := "./testdata/output.json"
- analysis := Analysis{
- Duration: 241 * time.Second,
- Date: time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC),
- }
- analysis.SetIaCSourceCount(1)
- analysis.AddManaged(
- &resource.Resource{
- Id: "AKIA5QYBVVD25KFXJHYJ",
- Type: "aws_iam_access_key",
- }, &resource.Resource{
- Id: "driftctl2",
- Type: "aws_managed_resource",
- },
- )
- analysis.AddUnmanaged(
- &resource.Resource{
- Id: "driftctl",
- Type: "aws_s3_bucket_policy",
- }, &resource.Resource{
- Id: "driftctl",
- Type: "aws_s3_bucket_notification",
- },
- )
- analysis.AddDeleted(
- &resource.Resource{
- Id: "test-driftctl2",
- Type: "aws_iam_user",
- Attrs: &resource.Attributes{
- "foobar": "test",
- },
- },
- &resource.Resource{
- Id: "AKIA5QYBVVD2Y6PBAAPY",
- Type: "aws_iam_access_key",
- },
- )
- analysis.SetAlerts(alerter2.Alerts{
- "aws_iam_access_key": {
- &alerter2.FakeAlert{Msg: "This is an alert"},
- },
- })
- analysis.ProviderName = "AWS"
- analysis.ProviderVersion = "2.18.5"
-
- got, err := json.MarshalIndent(analysis, "", "\t")
- if err != nil {
- t.Fatal(err)
- }
- if *goldenfile.Update == "TestAnalysis_MarshalJSON" {
- if err := os.WriteFile(goldenFile, got, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(goldenFile)
- if err != nil {
- t.Fatal(err)
- }
- assert.Nil(t, err)
- assert.Equal(t, string(expected), string(got))
-}
-
-func TestAnalysis_UnmarshalJSON(t *testing.T) {
- expected := Analysis{
- summary: Summary{
- TotalResources: 6,
- TotalUnmanaged: 2,
- TotalDeleted: 2,
- TotalManaged: 2,
- TotalIaCSourceCount: 3,
- },
- managed: []*resource.Resource{
- {
- Id: "AKIA5QYBVVD25KFXJHYJ",
- Type: "aws_iam_access_key",
- },
- {
- Id: "test-managed",
- Type: "aws_iam_user",
- },
- },
- unmanaged: []*resource.Resource{
- {
- Id: "driftctl",
- Type: "aws_s3_bucket_policy",
- },
- {
- Id: "driftctl",
- Type: "aws_s3_bucket_notification",
- },
- },
- deleted: []*resource.Resource{
- {
- Id: "test-driftctl2",
- Type: "aws_iam_user",
- },
- {
- Id: "AKIA5QYBVVD2Y6PBAAPY",
- Type: "aws_iam_access_key",
- },
- },
- alerts: alerter2.Alerts{
- "aws_iam_access_key": {
- &alerter2.SerializedAlert{
- Msg: "This is an alert",
- },
- },
- },
- ProviderName: "AWS",
- ProviderVersion: "2.18.5",
- Date: time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC),
- }
-
- got := Analysis{}
- input, err := os.ReadFile("./testdata/input.json")
- if err != nil {
- t.Fatal(err)
- }
- err = json.Unmarshal(input, &got)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, expected, got)
- assert.Equal(t, 33, got.Coverage())
- assert.Equal(t, 2, got.Summary().TotalUnmanaged)
- assert.Equal(t, 2, got.Summary().TotalManaged)
- assert.Equal(t, 2, got.Summary().TotalDeleted)
- assert.Equal(t, 6, got.Summary().TotalResources)
- assert.Equal(t, uint(3), got.Summary().TotalIaCSourceCount)
- assert.Len(t, got.alerts, 1)
- assert.Equal(t, got.alerts["aws_iam_access_key"][0].Message(), "This is an alert")
-}
diff --git a/pkg/analyser/testdata/input.json b/pkg/analyser/testdata/input.json
deleted file mode 100644
index 542630c74..000000000
--- a/pkg/analyser/testdata/input.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": {
- "total_resources": 6,
- "total_unmanaged": 2,
- "total_missing": 2,
- "total_managed": 2,
- "total_iac_source_count": 3
- },
- "managed": [
- {
- "id": "AKIA5QYBVVD25KFXJHYJ",
- "type": "aws_iam_access_key"
- },
- {
- "id": "test-managed",
- "type": "aws_iam_user"
- }
- ],
- "unmanaged": [
- {
- "id": "driftctl",
- "type": "aws_s3_bucket_policy"
- },
- {
- "id": "driftctl",
- "type": "aws_s3_bucket_notification"
- }
- ],
- "missing": [
- {
- "id": "test-driftctl2",
- "type": "aws_iam_user"
- },
- {
- "id": "AKIA5QYBVVD2Y6PBAAPY",
- "type": "aws_iam_access_key"
- }
- ],
- "coverage": 33,
- "alerts": {
- "aws_iam_access_key": [
- {
- "message": "This is an alert"
- }
- ]
- },
- "provider_name": "AWS",
- "provider_version": "2.18.5",
- "date": "2022-04-08T10:35:00Z"
-}
diff --git a/pkg/analyser/testdata/output.json b/pkg/analyser/testdata/output.json
deleted file mode 100644
index b576665d9..000000000
--- a/pkg/analyser/testdata/output.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "summary": {
- "total_resources": 6,
- "total_unmanaged": 2,
- "total_missing": 2,
- "total_managed": 2,
- "total_iac_source_count": 1
- },
- "managed": [
- {
- "id": "AKIA5QYBVVD25KFXJHYJ",
- "type": "aws_iam_access_key"
- },
- {
- "id": "driftctl2",
- "type": "aws_managed_resource"
- }
- ],
- "unmanaged": [
- {
- "id": "driftctl",
- "type": "aws_s3_bucket_policy"
- },
- {
- "id": "driftctl",
- "type": "aws_s3_bucket_notification"
- }
- ],
- "missing": [
- {
- "id": "test-driftctl2",
- "type": "aws_iam_user"
- },
- {
- "id": "AKIA5QYBVVD2Y6PBAAPY",
- "type": "aws_iam_access_key"
- }
- ],
- "coverage": 33,
- "alerts": {
- "aws_iam_access_key": [
- {
- "message": "This is an alert"
- }
- ]
- },
- "provider_name": "AWS",
- "provider_version": "2.18.5",
- "scan_duration": 241,
- "date": "2022-04-08T10:35:00Z"
-}
\ No newline at end of file
diff --git a/pkg/cmd/completion.go b/pkg/cmd/completion.go
deleted file mode 100644
index 5f9e2ce4a..000000000
--- a/pkg/cmd/completion.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package cmd
-
-import (
- "github.com/spf13/cobra"
-)
-
-func NewCompletionCmd() *cobra.Command {
- var cmd = &cobra.Command{
- Use: "completion [bash|zsh|fish|powershell]",
- Short: "Generate completion script",
- Long: "Generate completion script for various shells",
- DisableFlagsInUseLine: true,
- ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
- Args: cobra.ExactValidArgs(1),
- RunE: func(cmd *cobra.Command, args []string) error {
- switch args[0] {
- case "bash":
- return cmd.Root().GenBashCompletion(cmd.OutOrStdout())
- case "zsh":
- return cmd.Root().GenZshCompletion(cmd.OutOrStdout())
- case "fish":
- return cmd.Root().GenFishCompletion(cmd.OutOrStdout(), true)
- case "powershell":
- return cmd.Root().GenPowerShellCompletion(cmd.OutOrStdout())
- default:
- return nil
- }
- },
- }
- return cmd
-}
diff --git a/pkg/cmd/completion_test.go b/pkg/cmd/completion_test.go
deleted file mode 100644
index b0a7c143a..000000000
--- a/pkg/cmd/completion_test.go
+++ /dev/null
@@ -1,72 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/spf13/cobra"
-)
-
-func TestCompletionCmd(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewCompletionCmd())
-
- tests := []struct {
- name string
- args []string
- expected string
- err error
- }{
- {
- name: "Without args",
- args: []string{"completion"},
- err: fmt.Errorf("accepts 1 arg(s), received 0"),
- },
- {
- name: "With wrong arg",
- args: []string{"completion", "test"},
- err: fmt.Errorf("invalid argument \"test\" for \"root completion\""),
- },
- {
- name: "With multiple args",
- args: []string{"completion", "bash", "zsh"},
- err: fmt.Errorf("accepts 1 arg(s), received 2"),
- },
- {
- name: "With bash arg",
- args: []string{"completion", "bash"},
- expected: "# bash completion for root",
- },
- {
- name: "With zsh arg",
- args: []string{"completion", "zsh"},
- expected: "#compdef _root root",
- },
- {
- name: "With fish arg",
- args: []string{"completion", "fish"},
- expected: "# fish completion for root",
- },
- {
- name: "With powershell arg",
- args: []string{"completion", "powershell"},
- expected: "Register-ArgumentCompleter -Native -CommandName 'root'",
- },
- }
-
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- output, err := test.Execute(rootCmd, tt.args...)
-
- if tt.expected != "" && !strings.Contains(output, tt.expected) {
- t.Errorf("Expected to contain: \n %v\nGot:\n %v", tt.expected, output)
- }
- if tt.err != nil && tt.err.Error() != err.Error() {
- t.Errorf("Expected %v, got %v", tt.err, err)
- }
- })
- }
-}
diff --git a/pkg/cmd/driftctl.go b/pkg/cmd/driftctl.go
deleted file mode 100644
index 81bc5eab2..000000000
--- a/pkg/cmd/driftctl.go
+++ /dev/null
@@ -1,144 +0,0 @@
-package cmd
-
-import (
- "os"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/build"
- "github.com/snyk/driftctl/pkg"
- "github.com/snyk/driftctl/sentry"
- "github.com/spf13/cobra"
- "github.com/spf13/pflag"
- "github.com/spf13/viper"
-)
-
-var usageTemplate = `Usage: {{.UseLine}}{{if .HasAvailableSubCommands}}
-
-COMMANDS:{{range .Commands}}{{if .IsAvailableCommand}}
- {{rpad .Name 24 }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
-
-FLAGS:
-{{ .LocalFlags.FlagUsages | trimTrailingWhitespaces }}{{end}}{{if .HasAvailableInheritedFlags}}
-
-INHERITED FLAGS:
-{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableSubCommands}}
-
-LEARN MORE:
- Use "{{.CommandPath}} --help" for more information about a command{{end}}
-`
-
-var versionTemplate = `{{ printf "%s\n" .Version }}`
-
-type DriftctlCmd struct {
- cobra.Command
- build build.BuildInterface
-}
-
-func NewDriftctlCmd(build build.BuildInterface) *DriftctlCmd {
- cmd := &DriftctlCmd{
- cobra.Command{
- Use: "driftctl [flags]",
- Short: "Driftctl CLI",
- PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
- err := bindEnvToFlags(cmd)
- if err != nil {
- return err
- }
- return handleReporting(cmd)
- },
- Long: "Detect, track and alert on infrastructure drift.",
- SilenceErrors: true,
- SilenceUsage: true,
- },
- build,
- }
-
- cmd.SetVersionTemplate(versionTemplate)
- cmd.AddCommand(NewVersionCmd())
-
- cmd.AddCommand(NewCompletionCmd())
-
- cmd.SetUsageTemplate(usageTemplate)
-
- cmd.PersistentFlags().BoolP("help", "h", false, "Display help for command")
- if cmd.build.IsUsageReportingEnabled() {
- cmd.PersistentFlags().BoolP("no-version-check", "", false, "Disable the version check")
- cmd.PersistentFlags().BoolP("disable-telemetry", "", false, "Disable telemetry")
- }
- cmd.PersistentFlags().BoolP("send-crash-report", "", false, "Enable error reporting. Crash data will be sent to us via Sentry.\nWARNING: may leak sensitive data (please read the documentation for more details)\nThis flag should be used only if an error occurs during execution")
-
- cmd.AddCommand(NewScanCmd(&pkg.ScanOptions{}))
- cmd.AddCommand(NewFmtCmd(&pkg.FmtOptions{}))
- cmd.AddCommand(NewGenDriftIgnoreCmd())
-
- return cmd
-}
-
-func contains(args []string, cmd string) bool {
- for _, arg := range args {
- if arg == cmd {
- return true
- }
- }
- return false
-}
-
-func (driftctlCmd DriftctlCmd) ShouldCheckVersion() bool {
- _, noVersionCheckEnv := os.LookupEnv("DCTL_NO_VERSION_CHECK")
- noVersionCheckVal := contains(os.Args[1:], "--no-version-check")
- hasVersionCmd := contains(os.Args[1:], "version")
- hasCompletionCmd := contains(os.Args[1:], "completion")
- isHelp := contains(os.Args[1:], "help") || contains(os.Args[1:], "--help") || contains(os.Args[1:], "-h")
- return driftctlCmd.build.IsRelease() && driftctlCmd.build.IsUsageReportingEnabled() && !hasVersionCmd && !hasCompletionCmd && !noVersionCheckVal && !isHelp && !noVersionCheckEnv
-}
-
-func IsReportingEnabled(cmd *cobra.Command) bool {
- enableReporting, err := cmd.Flags().GetBool("send-crash-report")
- if err != nil {
- return false
- }
- return enableReporting
-}
-
-func handleReporting(cmd *cobra.Command) error {
- if IsReportingEnabled(cmd) {
- return sentry.Initialize()
- }
- return nil
-}
-
-// Iterate over command flags
-// If the command flag is not manually set (f.Changed) we override its value
-// from the according env value
-func bindEnvToFlags(cmd *cobra.Command) error {
- var err error
- cmd.Flags().VisitAll(func(f *pflag.Flag) {
- if err != nil {
- return
- }
- // Ignore some global flags
- // no-version-check is ignored because we don't use cmd flags to retrieve flag in version check function
- // as we check version before cmd, we use os.Args
- if f.Name == "help" || f.Name == "no-version-check" {
- return
- }
- envKey := strings.ReplaceAll(f.Name, "-", "_")
- // Apply the viper config value to the flag when the flag is not set and viper has a value
- // Allow flags precedence over env variables
- if !f.Changed && viper.IsSet(envKey) {
- envVal := viper.GetString(envKey)
- err = cmd.Flags().Set(f.Name, envVal)
- if err != nil {
- return
- }
- logrus.WithFields(logrus.Fields{
- "env": envKey,
- "flag": f.Name,
- "value": envVal,
- }).Debug("Bound environment variable to flag")
- }
- })
-
- return err
-}
diff --git a/pkg/cmd/driftctl_test.go b/pkg/cmd/driftctl_test.go
deleted file mode 100644
index 63b068297..000000000
--- a/pkg/cmd/driftctl_test.go
+++ /dev/null
@@ -1,290 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "os"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/pkg/config"
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/mocks"
- "github.com/spf13/cobra"
- "github.com/stretchr/testify/assert"
-)
-
-func TestDriftctlCmd_Help(t *testing.T) {
- cmd := NewDriftctlCmd(mocks.MockBuild{})
-
- cases := []struct {
- args []string
- }{
- {args: []string{}},
- {args: []string{"help"}},
- {args: []string{"--help"}},
- {args: []string{"-h"}},
- }
-
- for _, tt := range cases {
- output, err := test.Execute(&cmd.Command, tt.args...)
- if output == "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
-
- expected := cmd.UsageString()
- if !strings.Contains(output, expected) {
- t.Errorf("Expected to contain: \n %v\nGot:\n %v", expected, output)
- }
- }
-}
-
-func TestDriftctlCmd_Completion(t *testing.T) {
- cmd := NewDriftctlCmd(mocks.MockBuild{})
-
- output, err := test.Execute(&cmd.Command, "completion", "bash")
- if output == "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
-
- expected := "# bash completion for driftctl"
- if !strings.Contains(output, expected) {
- t.Errorf("Expected to contain: \n %v\nGot:\n %v", expected, output)
- }
-}
-
-func TestDriftctlCmd_Scan(t *testing.T) {
-
- cases := []struct {
- env map[string]string
- args []string
- err error
- }{
- {},
- {
- env: map[string]string{
- "DCTL_TO": "test",
- },
- err: fmt.Errorf("unsupported cloud provider 'test'\nValid values are: aws+tf,github+tf,gcp+tf,azure+tf"),
- },
- {
- env: map[string]string{
- "DCTL_TO": "test",
- },
- args: []string{"--to", "aws+tf"},
- },
- {
- env: map[string]string{
- "DCTL_FROM": "test",
- },
- err: fmt.Errorf("Unable to parse from flag 'test': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"),
- },
- {
- env: map[string]string{
- "DCTL_FROM": "test",
- },
- args: []string{"--from", "tfstate://terraform.tfstate"},
- },
- {
- env: map[string]string{
- "DCTL_OUTPUT": "test",
- },
- err: fmt.Errorf("Unable to parse output flag 'test': \nAccepted formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- env: map[string]string{
- "DCTL_OUTPUT": "test",
- },
- args: []string{"--output", "console://"},
- },
- {
- env: map[string]string{
- "DCTL_FILTER": "Type='test'",
- },
- err: fmt.Errorf("unable to parse filter expression: SyntaxError: Expected tRbracket, received: tUnknown"),
- },
- {
- env: map[string]string{
- "DCTL_FILTER": "Type='test'",
- },
- args: []string{"--filter", "Type=='test'"},
- },
- }
-
- config.Init()
- for index, c := range cases {
- t.Run(fmt.Sprintf("%d", index), func(t *testing.T) {
- if len(c.env) > 0 {
- for key, val := range c.env {
- _ = os.Setenv(key, val)
- defer os.Unsetenv(key)
- }
- }
- cmd := NewDriftctlCmd(mocks.MockBuild{})
- scanCmd, _, _ := cmd.Find([]string{"scan"})
- scanCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- args := append([]string{"scan"}, c.args...)
- _, err := test.Execute(&cmd.Command, args...)
- if c.err == nil && err != nil || c.err != nil && err == nil {
- t.Fatalf("Got error '%s', expected '%s'", err, c.err)
- }
- if c.err != nil && err != nil && err.Error() != c.err.Error() {
- t.Fatalf("Got error '%s', expected '%s'", err.Error(), c.err.Error())
- }
- })
- }
-}
-
-func TestDriftctlCmd_Invalid(t *testing.T) {
- cmd := NewDriftctlCmd(mocks.MockBuild{})
-
- cases := []struct {
- args []string
- expected string
- }{
- {args: []string{"test"}, expected: `unknown command "test" for "driftctl"`},
- {args: []string{"-t"}, expected: `unknown shorthand flag: 't' in -t`},
- {args: []string{"--test"}, expected: `unknown flag: --test`},
- }
-
- for _, tt := range cases {
- _, err := test.Execute(&cmd.Command, tt.args...)
- if err == nil {
- t.Errorf("Invalid arg should generate error")
- }
- if err.Error() != tt.expected {
- t.Errorf("Expected %v, got %v", tt.expected, err)
- }
- }
-}
-
-func TestDriftctlCmd_ShouldCheckVersion(t *testing.T) {
- cases := []struct {
- Name string
- IsRelease bool
- UsageReport bool
- args []string
- env map[string]string
- expected bool
- }{
- {
- Name: "When we are in release mode and no args, should check for update",
- IsRelease: true,
- UsageReport: true,
- args: []string{""},
- expected: true,
- },
- {
- Name: "Do not check for update when usage reporting is disabled",
- IsRelease: true,
- UsageReport: false,
- args: []string{""},
- expected: false,
- },
- {
- Name: "Don't check for update for version cmd",
- IsRelease: true,
- UsageReport: true,
- args: []string{"version"},
- expected: false,
- },
- {
- Name: "Don't check for update for help cmd",
- IsRelease: true,
- UsageReport: true,
- args: []string{"help"},
- expected: false,
- },
- {
- Name: "Don't check for update for cmd --help",
- IsRelease: true,
- UsageReport: true,
- args: []string{"scan", "--help"},
- expected: false,
- },
- {
- Name: "Don't check for update for cmd -h",
- IsRelease: true,
- UsageReport: true,
- args: []string{"scan", "-h"},
- expected: false,
- },
- {
- Name: "Don't check for update when no check flag present",
- IsRelease: true,
- UsageReport: true,
- args: []string{"--no-version-check"},
- expected: false,
- },
- {
- Name: "Don't check for update in dev mode",
- IsRelease: false,
- UsageReport: true,
- args: []string{""},
- expected: false,
- },
- {
- Name: "Don't check for update when env DCTL_NO_VERSION_CHECK set",
- IsRelease: true,
- UsageReport: true,
- env: map[string]string{
- "DCTL_NO_VERSION_CHECK": "foo",
- },
- expected: false,
- },
- {
- Name: "Should not return error when launching sub command",
- IsRelease: false,
- UsageReport: true,
- args: []string{"scan", "--from", "tfstate://terraform.tfstate"},
- expected: false,
- },
- {
- Name: "Don't check for update for completion cmd",
- IsRelease: true,
- UsageReport: true,
- args: []string{"completion", "bash"},
- expected: false,
- },
- }
-
- for _, c := range cases {
- t.Run(c.Name, func(tt *testing.T) {
- assert := assert.New(tt)
-
- os.Clearenv()
- for key, val := range c.env {
- os.Setenv(key, val)
- }
-
- cmd := NewDriftctlCmd(mocks.MockBuild{Release: c.IsRelease, UsageReporting: c.UsageReport})
- os.Args = append([]string{"driftctl"}, c.args...)
- result := cmd.ShouldCheckVersion()
-
- assert.Equal(c.expected, result)
- })
- }
-}
-
-func TestContainCmd(t *testing.T) {
- cases := []struct {
- args []string
- cmd string
- expected bool
- }{
- {args: []string{}, cmd: "", expected: false},
- {args: []string{"scan"}, cmd: "version", expected: false},
- {args: []string{"version"}, cmd: "version", expected: true},
- }
-
- for _, tt := range cases {
- if got := contains(tt.args, tt.cmd); got != tt.expected {
- t.Errorf("Expected %v, got %v", tt.expected, got)
- }
- }
-}
diff --git a/pkg/cmd/errors/errors.go b/pkg/cmd/errors/errors.go
deleted file mode 100644
index 35ef98826..000000000
--- a/pkg/cmd/errors/errors.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package errors
-
-type UsageError struct {
- msg string
-}
-
-func NewUsageError(msg string) UsageError {
- return UsageError{msg}
-}
-
-func (u UsageError) Error() string {
- return u.msg
-}
diff --git a/pkg/cmd/errors/scan.go b/pkg/cmd/errors/scan.go
deleted file mode 100644
index b4a63961c..000000000
--- a/pkg/cmd/errors/scan.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package errors
-
-type InfrastructureNotInSync struct{}
-
-func (i InfrastructureNotInSync) Error() string {
- return "Infrastructure is not in sync"
-}
diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go
deleted file mode 100644
index 19198ce30..000000000
--- a/pkg/cmd/flags.go
+++ /dev/null
@@ -1,181 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "strings"
-
- "github.com/pkg/errors"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/supplier"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
-)
-
-func parseFromFlag(from []string) ([]config.SupplierConfig, error) {
-
- configs := make([]config.SupplierConfig, 0, len(from))
-
- for _, flag := range from {
- schemePath := strings.Split(flag, "://")
- if len(schemePath) != 2 || schemePath[1] == "" || schemePath[0] == "" {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nAccepted schemes are: %s",
- strings.Join(supplier.GetSupportedSchemes(), ","),
- ),
- ),
- "Unable to parse from flag '%s'",
- flag,
- )
- }
-
- scheme := schemePath[0]
- path := schemePath[1]
- supplierBackend := strings.Split(scheme, "+")
- if len(supplierBackend) > 2 {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(fmt.Sprintf(
- "\nAccepted schemes are: %s",
- strings.Join(supplier.GetSupportedSchemes(), ","),
- ),
- ),
- "Unable to parse from scheme '%s'",
- scheme,
- )
- }
-
- supplierKey := supplierBackend[0]
- if !supplier.IsSupplierSupported(supplierKey) {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nAccepted values are: %s",
- strings.Join(supplier.GetSupportedSuppliers(), ","),
- ),
- ),
- "Unsupported IaC source '%s'",
- supplierKey,
- )
- }
-
- backendString := ""
- if len(supplierBackend) == 2 {
- backendString = supplierBackend[1]
- if !backend.IsSupported(backendString) {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nAccepted values are: %s",
- strings.Join(backend.GetSupportedBackends(), ","),
- ),
- ),
- "Unsupported IaC backend '%s'",
- backendString,
- )
- }
- }
-
- configs = append(configs, config.SupplierConfig{
- Key: supplierKey,
- Backend: backendString,
- Path: path,
- })
- }
-
- return configs, nil
-}
-
-func parseOutputFlags(out []string) ([]output.OutputConfig, error) {
- result := make([]output.OutputConfig, 0, len(out))
- for _, v := range out {
- o, err := parseOutputFlag(v)
- if err != nil {
- return result, err
- }
- result = append(result, *o)
- }
- return result, nil
-}
-
-func parseOutputFlag(out string) (*output.OutputConfig, error) {
- schemeOpts := strings.Split(out, "://")
- if len(schemeOpts) < 2 || schemeOpts[0] == "" {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nAccepted formats are: %s",
- strings.Join(output.SupportedOutputsExample(), ","),
- ),
- ),
- "Unable to parse output flag '%s'",
- out,
- )
- }
-
- o := &output.OutputConfig{
- Key: schemeOpts[0],
- }
- if !output.IsSupported(o.Key) {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nValid formats are: %s",
- strings.Join(output.SupportedOutputsExample(), ","),
- ),
- ),
- "Unsupported output '%s'",
- o.Key,
- )
- }
-
- opts := schemeOpts[1:]
-
- switch o.Key {
- case output.JSONOutputType:
- if len(opts) != 1 || opts[0] == "" {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nMust be of kind: %s",
- output.Example(output.JSONOutputType),
- ),
- ),
- "Invalid json output '%s'",
- out,
- )
- }
- o.Path = opts[0]
- case output.HTMLOutputType:
- if len(opts) != 1 || opts[0] == "" {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nMust be of kind: %s",
- output.Example(output.HTMLOutputType),
- ),
- ),
- "Invalid html output '%s'",
- out,
- )
- }
- o.Path = opts[0]
- case output.PlanOutputType:
- if len(opts) != 1 || opts[0] == "" {
- return nil, errors.Wrapf(
- cmderrors.NewUsageError(
- fmt.Sprintf(
- "\nMust be of kind: %s",
- output.Example(output.PlanOutputType),
- ),
- ),
- "Invalid plan output '%s'",
- out,
- )
- }
- o.Path = opts[0]
- }
-
- return o, nil
-}
diff --git a/pkg/cmd/flags_test.go b/pkg/cmd/flags_test.go
deleted file mode 100644
index c70d14693..000000000
--- a/pkg/cmd/flags_test.go
+++ /dev/null
@@ -1,235 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
- "github.com/snyk/driftctl/pkg/iac/config"
-)
-
-func Test_parseFromFlag(t *testing.T) {
- type args struct {
- from []string
- }
- tests := []struct {
- name string
- args args
- want []config.SupplierConfig
- wantErr bool
- }{
- {
- name: "test complete from parsing",
- args: args{
- from: []string{"tfstate+s3://bucket/path/to/state.tfstate"},
- },
- want: []config.SupplierConfig{
- {
- Key: "tfstate",
- Backend: "s3",
- Path: "bucket/path/to/state.tfstate",
- },
- },
- wantErr: false,
- },
- {
- name: "test complete from parsing with multiples flags",
- args: args{
- from: []string{"tfstate+s3://bucket/path/to/state.tfstate", "tfstate:///tmp/my-state.tfstate"},
- },
- want: []config.SupplierConfig{
- {
- Key: "tfstate",
- Backend: "s3",
- Path: "bucket/path/to/state.tfstate",
- },
- {
- Key: "tfstate",
- Backend: "",
- Path: "/tmp/my-state.tfstate",
- },
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got, err := parseFromFlag(tt.args.from)
- if (err != nil) != tt.wantErr {
- t.Errorf("parseFromFlag() error = %v, err %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("parseFromFlag() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func Test_parseOutputFlag(t *testing.T) {
- type args struct {
- out []string
- }
- tests := []struct {
- name string
- args args
- want []output.OutputConfig
- err error
- }{
- {
- name: "test empty output",
- args: args{
- out: []string{""},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Unable to parse output flag '': \nAccepted formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- name: "test empty array",
- args: args{
- out: []string{},
- },
- want: []output.OutputConfig{},
- err: nil,
- },
- {
- name: "test invalid",
- args: args{
- out: []string{"sdgjsdgjsdg"},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Unable to parse output flag 'sdgjsdgjsdg': \nAccepted formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- name: "test invalid",
- args: args{
- out: []string{"://"},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Unable to parse output flag '://': \nAccepted formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- name: "test unsupported",
- args: args{
- out: []string{"foobar://"},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Unsupported output 'foobar': \nValid formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- name: "test empty json",
- args: args{
- out: []string{"json://"},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Invalid json output 'json://': \nMust be of kind: json://PATH/TO/FILE.json"),
- },
- {
- name: "test valid console",
- args: args{
- out: []string{"console://"},
- },
- want: []output.OutputConfig{
- {
- Key: "console",
- },
- },
- err: nil,
- },
- {
- name: "test valid json",
- args: args{
- out: []string{"json:///tmp/foobar.json"},
- },
- want: []output.OutputConfig{
- {
- Key: "json",
- Path: "/tmp/foobar.json",
- },
- },
- err: nil,
- },
- {
- name: "test empty jsonplan",
- args: args{
- out: []string{"plan://"},
- },
- want: []output.OutputConfig{},
- err: fmt.Errorf("Invalid plan output 'plan://': \nMust be of kind: plan://PATH/TO/FILE.json"),
- },
- {
- name: "test valid jsonplan",
- args: args{
- out: []string{"plan:///tmp/foobar.json"},
- },
- want: []output.OutputConfig{
- {
- Key: "plan",
- Path: "/tmp/foobar.json",
- },
- },
- err: nil,
- },
- {
- name: "test multiple output values",
- args: args{
- out: []string{"console:///dev/stdout", "json://result.json"},
- },
- want: []output.OutputConfig{
- {
- Key: "console",
- },
- {
- Key: "json",
- Path: "result.json",
- },
- },
- err: nil,
- },
- {
- name: "test multiple output values with invalid value",
- args: args{
- out: []string{"console:///dev/stdout", "invalid://result.json"},
- },
- want: []output.OutputConfig{
- {
- Key: "console",
- },
- },
- err: fmt.Errorf("Unsupported output 'invalid': \nValid formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"),
- },
- {
- name: "test multiple valid output values",
- args: args{
- out: []string{"json://result1.json", "json://result2.json", "json://result3.json"},
- },
- want: []output.OutputConfig{
- {
- Key: "json",
- Path: "result1.json",
- },
- {
- Key: "json",
- Path: "result2.json",
- },
- {
- Key: "json",
- Path: "result3.json",
- },
- },
- err: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got, err := parseOutputFlags(tt.args.out)
- if err != nil && err.Error() != tt.err.Error() {
- t.Fatalf("got error = '%v', expected '%v'", err, tt.err)
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Fatalf("parseOutputFlag() got = '%v', want '%v'", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/cmd/fmt.go b/pkg/cmd/fmt.go
deleted file mode 100644
index 9e67c816c..000000000
--- a/pkg/cmd/fmt.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package cmd
-
-import (
- "bufio"
- "encoding/json"
- "io"
- "os"
- "strings"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/spf13/cobra"
-
- "github.com/snyk/driftctl/pkg"
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
-)
-
-func NewFmtCmd(opts *pkg.FmtOptions) *cobra.Command {
- cmd := &cobra.Command{
- Use: "fmt",
- Long: "Take an analysis results in JSON on stdin and return it in another format",
- Hidden: true,
- Args: cobra.NoArgs,
- PreRunE: func(cmd *cobra.Command, args []string) error {
- outputFlag, _ := cmd.Flags().GetStringSlice("output")
- if len(outputFlag) > 1 {
- return errors.New("Only one output format can be set")
- }
- out, err := parseOutputFlags(outputFlag)
- if err != nil {
- return err
- }
- opts.Output = out[0]
- return nil
- },
- RunE: func(cmd *cobra.Command, args []string) error {
- return runFmt(opts, os.Stdin)
- },
- }
-
- fl := cmd.Flags()
- fl.StringSliceP(
- "output",
- "o",
- []string{output.Example(output.ConsoleOutputType)},
- "Output format, by default it will write to the console\n"+
- "Accepted formats are: "+strings.Join(output.SupportedOutputsExample(), ",")+"\n",
- )
-
- return cmd
-}
-
-func runFmt(opts *pkg.FmtOptions, reader io.Reader) error {
-
- var analysisText []byte
- scanner := bufio.NewScanner(reader)
- for scanner.Scan() {
- analysisText = append(analysisText, scanner.Bytes()...)
- }
-
- analysis := analyser.NewAnalysis()
- err := json.Unmarshal(analysisText, analysis)
- if err != nil {
- return err
- }
-
- return output.GetOutput(opts.Output).Write(analysis)
-}
diff --git a/pkg/cmd/fmt_test.go b/pkg/cmd/fmt_test.go
deleted file mode 100644
index d4c90451d..000000000
--- a/pkg/cmd/fmt_test.go
+++ /dev/null
@@ -1,131 +0,0 @@
-package cmd
-
-import (
- "bytes"
- "io"
- "os"
- "testing"
-
- "github.com/snyk/driftctl/pkg"
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
- "github.com/snyk/driftctl/test"
- "github.com/spf13/cobra"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/require"
-)
-
-func Test_runFmt_InvalidInput(t *testing.T) {
- opts := &pkg.FmtOptions{
- Output: output.OutputConfig{
- Key: output.ConsoleOutputType,
- },
- }
-
- input, err := os.Open("testdata/fmt/input_stdin_invalid.json")
- if err != nil {
- t.Fatal(err)
- }
- defer input.Close()
-
- err = runFmt(opts, input)
- require.NotNil(t, err)
- assert.Equal(t, "invalid character 'i' looking for beginning of value", err.Error())
-}
-
-func Test_runFmt(t *testing.T) {
- opts := &pkg.FmtOptions{
- Output: output.OutputConfig{
- Key: output.ConsoleOutputType,
- },
- }
-
- input, err := os.Open("testdata/fmt/input_stdin_valid.json")
- if err != nil {
- t.Fatal(err)
- }
- defer input.Close()
-
- stdout := os.Stdout // keep backup of the real stdout
- stderr := os.Stderr // keep backup of the real stderr
- r, w, _ := os.Pipe()
- os.Stdout = w
- os.Stderr = w
-
- err = runFmt(opts, input)
-
- outC := make(chan []byte)
- // copy the output in a separate goroutine so printing can't block indefinitely
- go func() {
- var buf bytes.Buffer
- _, _ = io.Copy(&buf, r)
- outC <- buf.Bytes()
- }()
-
- // back to normal state
- assert.Nil(t, w.Close())
- os.Stdout = stdout // restoring the real stdout
- os.Stderr = stderr
- output := <-outC
-
- if err != nil {
- t.Fatal(err)
- }
-
- expectedBytes, err := os.ReadFile("testdata/fmt/expected_console.txt")
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, string(expectedBytes), string(output))
-}
-
-func TestFmtCmd_Valid(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- scanCmd := NewFmtCmd(&pkg.FmtOptions{})
- scanCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- rootCmd.AddCommand(scanCmd)
-
- cases := []struct {
- args []string
- }{
- {args: []string{"fmt"}},
- {args: []string{"fmt", "-o", "json://test.json"}},
- }
-
- for _, tt := range cases {
- t.Run("", func(t *testing.T) {
- output, err := test.Execute(rootCmd, tt.args...)
- if output != "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
- })
- }
-}
-
-func TestFmtCmd_Invalid(t *testing.T) {
- cases := []struct {
- args []string
- expected string
- }{
- {args: []string{"fmt", "test"}, expected: `unknown command "test" for "root fmt"`},
- {args: []string{"fmt", "-o", "json://test.json", "-o", "html://test.html"}, expected: "Only one output format can be set"},
- {args: []string{"fmt", "-o", "foobar://barfoo"}, expected: "Unsupported output 'foobar': \nValid formats are: console://,html://PATH/TO/FILE.html,json://PATH/TO/FILE.json,plan://PATH/TO/FILE.json"},
- }
-
- for _, tt := range cases {
- t.Run("", func(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewFmtCmd(&pkg.FmtOptions{}))
- _, err := test.Execute(rootCmd, tt.args...)
- if err == nil {
- t.Errorf("Invalid arg should generate error")
- }
- if err.Error() != tt.expected {
- t.Errorf("Expected '%v', got '%v'", tt.expected, err)
- }
- })
- }
-}
diff --git a/pkg/cmd/gen_driftignore.go b/pkg/cmd/gen_driftignore.go
deleted file mode 100644
index 1f2421504..000000000
--- a/pkg/cmd/gen_driftignore.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package cmd
-
-import (
- "encoding/json"
- "fmt"
- "io"
- "os"
- "time"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/spf13/cobra"
-)
-
-func NewGenDriftIgnoreCmd() *cobra.Command {
- opts := &analyser.GenDriftIgnoreOptions{}
-
- cmd := &cobra.Command{
- Use: "gen-driftignore",
- Short: "Generate a .driftignore file based on your scan result",
- Long: "This command will generate a new .driftignore file containing your current drifts\n\nExample: driftctl scan -o json://stdout | driftctl gen-driftignore",
- Args: cobra.NoArgs,
- RunE: func(cmd *cobra.Command, args []string) error {
- _, list, err := genDriftIgnore(opts)
- if err != nil {
- return err
- }
-
- ignoreFile := os.Stdout
- if opts.OutputPath != "-" {
- var err error
- ignoreFile, err = os.OpenFile(opts.OutputPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
- if err != nil {
- return errors.Errorf("error opening output file: %s", err)
- }
- defer ignoreFile.Close()
- fmt.Fprintf(os.Stderr, "Appending ignore rules to %s\n", opts.OutputPath)
- }
- fmt.Fprintf(ignoreFile, "# Generated by gen-driftignore cmd @ %s\n%s\n", time.Now().Format(time.RFC1123), list)
-
- return nil
- },
- }
-
- fl := cmd.Flags()
-
- fl.BoolVar(&opts.ExcludeUnmanaged, "exclude-unmanaged", false, "Exclude resources not managed by IaC")
- fl.BoolVar(&opts.ExcludeDeleted, "exclude-missing", false, "Exclude missing resources")
- fl.StringVarP(&opts.InputPath, "input", "i", "-", "Input where the JSON should be parsed from. Defaults to stdin.")
- fl.StringVarP(&opts.OutputPath, "output", "o", ".driftignore", "Output file path to write the driftignore to.")
-
- return cmd
-}
-
-func genDriftIgnore(opts *analyser.GenDriftIgnoreOptions) (int, string, error) {
- driftFile := os.Stdin
- if opts.InputPath != "-" {
- var err error
- driftFile, err = os.Open(opts.InputPath)
- if err != nil {
- return 0, "", err
- }
- defer driftFile.Close()
- }
-
- input, err := io.ReadAll(driftFile)
- if err != nil {
- return 0, "", err
- }
-
- analysis := &analyser.Analysis{}
- err = json.Unmarshal(input, analysis)
- if err != nil {
- return 0, "", err
- }
-
- n, list := analysis.DriftIgnoreList(*opts)
-
- return n, list, nil
-}
diff --git a/pkg/cmd/gen_driftignore_test.go b/pkg/cmd/gen_driftignore_test.go
deleted file mode 100644
index c50a3571b..000000000
--- a/pkg/cmd/gen_driftignore_test.go
+++ /dev/null
@@ -1,145 +0,0 @@
-package cmd
-
-import (
- "errors"
- "os"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/spf13/cobra"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/require"
-)
-
-func TestGenDriftIgnoreCmd_Input(t *testing.T) {
- cases := []struct {
- name string
- args []string
- output string
- err error
- }{
- {
- name: "test error on invalid input",
- args: []string{"-i", "./testdata/input_stdin_invalid.json"},
- output: "./testdata/output_stdin_empty.txt",
- err: errors.New("invalid character 'i' looking for beginning of value"),
- },
- {
- name: "test empty driftignore with valid input",
- args: []string{"-i", "./testdata/input_stdin_empty.json"},
- output: "./testdata/output_stdin_empty.txt",
- err: nil,
- },
- {
- name: "test driftignore content with valid input",
- args: []string{"-i", "./testdata/input_stdin_valid.json"},
- output: "./testdata/output_stdin_valid.txt",
- err: nil,
- },
- {
- name: "test driftignore content with valid input and filter unmanaged only",
- args: []string{"-i", "./testdata/input_stdin_valid.json", "--exclude-missing"},
- output: "./testdata/output_stdin_valid_filter2.txt",
- err: nil,
- },
- {
- name: "test error when input file does not exist",
- args: []string{"-i", "doesnotexist"},
- output: "./testdata/output_stdin_valid_filter2.txt",
- err: errors.New("open doesnotexist: no such file or directory"),
- },
- }
-
- for _, c := range cases {
- t.Run(c.name, func(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewGenDriftIgnoreCmd())
-
- f, err := os.CreateTemp("", "TestGenDriftIgnoreCmd_Input")
- require.Nil(t, err)
- defer func() {
- f.Close()
- os.Remove(f.Name())
- }()
-
- args := append([]string{"gen-driftignore", "-o", f.Name()}, c.args...)
-
- _, err = test.Execute(rootCmd, args...)
- if c.err != nil {
- assert.EqualError(t, err, c.err.Error())
- return
- } else {
- assert.Equal(t, c.err, err)
- }
-
- output, err := os.ReadFile(f.Name())
- require.Nil(t, err)
-
- if c.output != "" {
- expectedOutput, err := os.ReadFile(c.output)
- require.Nil(t, err)
- assert.Equal(t, string(expectedOutput), trimLeadingComment(string(output)))
- }
- })
- }
-}
-
-func TestGenDriftIgnoreCmd_ValidFlags(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- genDriftIgnoreCmd := NewGenDriftIgnoreCmd()
- genDriftIgnoreCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- rootCmd.AddCommand(genDriftIgnoreCmd)
-
- cases := []struct {
- args []string
- }{
- {args: []string{"gen-driftignore"}},
- {args: []string{"gen-driftignore", "--exclude-unmanaged"}},
- {args: []string{"gen-driftignore", "--exclude-missing"}},
- {args: []string{"gen-driftignore", "--exclude-missing=false", "--exclude-unmanaged=true"}},
- {args: []string{"gen-driftignore", "--input", "-"}},
- {args: []string{"gen-driftignore", "-i", "/dev/stdout"}},
- }
-
- for _, tt := range cases {
- output, err := test.Execute(rootCmd, tt.args...)
- if output != "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
- }
-}
-
-func TestGenDriftIgnoreCmd_InvalidFlags(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- genDriftIgnoreCmd := NewGenDriftIgnoreCmd()
- genDriftIgnoreCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- rootCmd.AddCommand(genDriftIgnoreCmd)
-
- cases := []struct {
- args []string
- err error
- }{
- {args: []string{"gen-driftignore", "--deleted"}, err: errors.New("unknown flag: --deleted")},
- {args: []string{"gen-driftignore", "--drifted"}, err: errors.New("unknown flag: --drifted")},
- {args: []string{"gen-driftignore", "--changed"}, err: errors.New("unknown flag: --changed")},
- {args: []string{"gen-driftignore", "--missing"}, err: errors.New("unknown flag: --missing")},
- {args: []string{"gen-driftignore", "--input"}, err: errors.New("flag needs an argument: --input")},
- {args: []string{"gen-driftignore", "-i"}, err: errors.New("flag needs an argument: 'i' in -i")},
- }
-
- for _, tt := range cases {
- _, err := test.Execute(rootCmd, tt.args...)
- assert.EqualError(t, err, tt.err.Error())
- }
-}
-
-// The leading comment, "Generated by gen-driftignore..." contains a timestamp,
-// that we don't care to assert on.
-func trimLeadingComment(content string) string {
- lines := strings.Split(content, "\n")
- return strings.Join(lines[1:], "\n")
-}
diff --git a/pkg/cmd/scan.go b/pkg/cmd/scan.go
deleted file mode 100644
index ca4efaa88..000000000
--- a/pkg/cmd/scan.go
+++ /dev/null
@@ -1,419 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "os"
- "os/signal"
- "path"
- "path/filepath"
- "regexp"
- "strings"
- "syscall"
- "time"
-
- "github.com/fatih/color"
- "github.com/mitchellh/go-homedir"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/build"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote"
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/common"
- "github.com/snyk/driftctl/enumeration/terraform"
- "github.com/snyk/driftctl/enumeration/terraform/lock"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state"
- "github.com/snyk/driftctl/pkg/memstore"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/schemas"
- "github.com/snyk/driftctl/pkg/telemetry"
- "github.com/snyk/driftctl/pkg/terraform/hcl"
- "github.com/spf13/cobra"
-
- "github.com/snyk/driftctl/pkg"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/iac/supplier"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- globaloutput "github.com/snyk/driftctl/pkg/output"
-)
-
-func NewScanCmd(opts *pkg.ScanOptions) *cobra.Command {
- opts.BackendOptions = &backend.Options{}
-
- cmd := &cobra.Command{
- Use: "scan",
- Short: "Scan",
- Long: "Scan",
- Args: cobra.NoArgs,
- PreRunE: func(cmd *cobra.Command, args []string) error {
- from, _ := cmd.Flags().GetStringSlice("from")
-
- iacSource, err := parseFromFlag(from)
- if err != nil {
- return err
- }
-
- opts.From = iacSource
-
- to, _ := cmd.Flags().GetString("to")
- if !remote.IsSupported(to) {
- return errors.Errorf(
- "unsupported cloud provider '%s'\nValid values are: %s",
- to,
- strings.Join(remote.GetSupportedRemotes(), ","),
- )
- }
-
- outputFlag, _ := cmd.Flags().GetStringSlice("output")
-
- out, err := parseOutputFlags(outputFlag)
- if err != nil {
- return err
- }
- opts.Output = out
-
- filterFlag, _ := cmd.Flags().GetStringArray("filter")
-
- if len(filterFlag) > 1 {
- return errors.New("Filter flag should be specified only once")
- }
-
- if len(filterFlag) == 1 && filterFlag[0] != "" {
- expr, err := filter.BuildExpression(filterFlag[0])
- if err != nil {
- return errors.Wrap(err, "unable to parse filter expression")
- }
- opts.Filter = expr
- }
-
- providerVersion, _ := cmd.Flags().GetString("tf-provider-version")
- if err := validateTfProviderVersionString(providerVersion); err != nil {
- return err
- }
- opts.ProviderVersion = providerVersion
-
- if opts.ProviderVersion == "" {
- lockfilePath, _ := cmd.Flags().GetString("tf-lockfile")
-
- // Attempt to read the provider version from a terraform lock file
- lockFile, err := lock.ReadLocksFromFile(lockfilePath)
- if err != nil {
- logrus.WithField("error", err.Error()).Debug("Error while parsing terraform lock file")
- }
- if provider := lockFile.GetProviderByAddress(common.RemoteParameter(to).GetProviderAddress()); provider != nil {
- opts.ProviderVersion = provider.Version
- logrus.WithFields(logrus.Fields{"version": opts.ProviderVersion, "provider": to}).Debug("Found provider version in terraform lock file")
- }
- }
-
- opts.Quiet, _ = cmd.Flags().GetBool("quiet")
- opts.DisableTelemetry, _ = cmd.Flags().GetBool("disable-telemetry")
-
- opts.ConfigDir, _ = cmd.Flags().GetString("config-dir")
-
- return nil
- },
- RunE: func(cmd *cobra.Command, args []string) error {
- return scanRun(opts)
- },
- }
-
- warn := color.New(color.FgYellow, color.Bold).SprintfFunc()
-
- fl := cmd.Flags()
- fl.Bool(
- "quiet",
- false,
- "Do not display anything but scan results",
- )
- fl.StringArray(
- "filter",
- []string{},
- "JMESPath expression to filter on\n"+
- "Examples : \n"+
- " - Type == 'aws_s3_bucket' (will filter only s3 buckets)\n"+
- " - Type =='aws_s3_bucket && Id != 'my_bucket' (excludes s3 bucket 'my_bucket')\n"+
- " - Attr.Tags.Terraform == 'true' (include only resources that have Tag Terraform equal to 'true')\n",
- )
- fl.StringSliceP(
- "output",
- "o",
- []string{output.Example(output.ConsoleOutputType)},
- "Output format, by default it will write to the console\n"+
- "Accepted formats are: "+strings.Join(output.SupportedOutputsExample(), ",")+"\n",
- )
- fl.StringSliceP(
- "from",
- "f",
- []string{},
- "IaC sources, by default try to find local terraform.tfstate file\n"+
- "Accepted schemes are: "+strings.Join(supplier.GetSupportedSchemes(), ",")+"\n",
- )
- supportedRemotes := remote.GetSupportedRemotes()
- fl.StringVarP(
- &opts.To,
- "to",
- "t",
- supportedRemotes[0],
- "Cloud provider source\n"+
- "Accepted values are: "+strings.Join(supportedRemotes, ",")+"\n",
- )
- fl.StringToStringVarP(&opts.BackendOptions.Headers,
- "headers",
- "H",
- map[string]string{},
- "Use those HTTP headers to query the provided URL.\n"+
- "Only used with tfstate+http(s) backend for now.\n",
- )
- fl.StringVar(&opts.BackendOptions.TFCloudToken,
- "tfc-token",
- "",
- "Terraform Cloud / Enterprise API token.\n"+
- "Only used with tfstate+tfcloud backend.\n",
- )
- fl.StringVar(&opts.BackendOptions.TFCloudEndpoint,
- "tfc-endpoint",
- "https://app.terraform.io/api/v2",
- "Terraform Cloud / Enterprise API endpoint.\n"+
- "Only used with tfstate+tfcloud backend.\n",
- )
- fl.StringVar(&opts.BackendOptions.AzureRMBackendOptions.StorageAccount,
- "azurerm-storage-account",
- os.Getenv("AZURE_STORAGE_ACCOUNT"),
- "Azure storage account name for state backend.\n",
- )
- fl.StringVar(&opts.BackendOptions.AzureRMBackendOptions.StorageKey,
- "azurerm-account-key",
- os.Getenv("AZURE_STORAGE_KEY"),
- "Azure storage account key for state backend.\n",
- )
- fl.String(
- "tf-provider-version",
- "",
- "Terraform provider version to use.\n",
- )
- fl.BoolVar(&opts.StrictMode,
- "strict",
- false,
- "Includes cloud provider service-linked roles (disabled by default)",
- )
- fl.StringVar(&opts.DriftignorePath,
- "driftignore",
- ".driftignore",
- "Path to the driftignore file",
- )
- fl.StringSliceVar(&opts.Driftignores,
- "ignore",
- []string{},
- fmt.Sprintf("%s Patterns to be used for ignoring resources\n", warn("EXPERIMENTAL:"))+
- "Example: *,!aws_s3* (everything but resources that are prefixed with aws_s3 are ignored) \n"+
- "When using this parameter the driftignore file is not processed\n"+
- "When using multiple instances of this argument, order will be respected")
- fl.String(
- "tf-lockfile",
- ".terraform.lock.hcl",
- "Terraform lock file to get the provider's version from. Will be ignored if the file doesn't exist.\n",
- )
-
- configDir, err := homedir.Dir()
- if err != nil {
- configDir = os.TempDir()
- }
- fl.String(
- "config-dir",
- configDir,
- "Directory path that driftctl uses for configuration.\n",
- )
- var deprecatedOnlyUnmanaged bool
- fl.BoolVar(&deprecatedOnlyUnmanaged,
- "only-unmanaged",
- false,
- fmt.Sprintf("%s Report only what's not managed by your IaC.\nThis option is a no-op as unmanaged is the only supported mode.\n", warn("DEPRECATED:")),
- )
-
- return cmd
-}
-
-func scanRun(opts *pkg.ScanOptions) error {
- store := memstore.New()
-
- c := make(chan os.Signal, 1)
- signal.Notify(c, os.Interrupt, syscall.SIGTERM)
-
- alerter := alerter.NewAlerter()
-
- // For now, we only use the global printer to print progress and information about the current scan, so unless one
- // of the configured output should silence global output we simply use console by default.
- if output.ShouldPrint(opts.Output, opts.Quiet) {
- globaloutput.ChangePrinter(globaloutput.NewConsolePrinter())
- }
-
- if len(opts.From) == 0 {
- supplierConfigs, err := retrieveBackendsFromHCL("")
- if err != nil {
- return err
- }
- opts.From = append(opts.From, supplierConfigs...)
- }
-
- if len(opts.From) == 0 {
- opts.From = append(opts.From, config.SupplierConfig{
- Key: state.TerraformStateReaderSupplier,
- Backend: backend.BackendKeyFile,
- Path: "terraform.tfstate",
- })
- }
-
- providerLibrary := terraform.NewProviderLibrary()
- remoteLibrary := common.NewRemoteLibrary()
-
- iacProgress := globaloutput.NewProgress("Scanning states", "Scanned states", true)
- scanProgress := globaloutput.NewProgress("Scanning resources", "Scanned resources", false)
-
- resourceSchemaRepository := schemas.NewSchemaRepository()
-
- resFactory := dctlresource.NewDriftctlResourceFactory(resourceSchemaRepository)
-
- err := remote.Activate(opts.To, opts.ProviderVersion, alerter, providerLibrary, remoteLibrary, scanProgress, resFactory, opts.ConfigDir)
- if err != nil {
- if err == aws.AWSCredentialsNotFoundError {
- // special case command-line advice, because AWS is the default cloud
- // provider, and users may be confused by a cloud-specific error out of
- // the box
- return fmt.Errorf("%s\n\n%s", err, "To use a different cloud provider, use --to=\"gcp+tf\" for GCP or --to=\"azure+tf\" for Azure.")
- }
- return err
- }
-
- providerName := common.RemoteParameter(opts.To).GetProviderAddress().Type
- err = resourceSchemaRepository.Init(providerName, opts.ProviderVersion, providerLibrary.Provider(providerName).Schema())
- if err != nil {
- return err
- }
-
- // Teardown
- defer func() {
- logrus.Trace("Exiting scan cmd")
- providerLibrary.Cleanup()
- logrus.Trace("Exited")
- }()
-
- logrus.Debug("Checking for driftignore")
- driftIgnore := filter.NewDriftIgnore(opts.DriftignorePath, opts.Driftignores...)
-
- // TODO use enum library interface here
- scanner := remote.NewScanner(remoteLibrary, alerter, driftIgnore)
-
- iacSupplier, err := supplier.GetIACSupplier(opts.From, providerLibrary, opts.BackendOptions, iacProgress, alerter, resFactory, driftIgnore)
- if err != nil {
- return err
- }
-
- ctl := pkg.NewDriftCTL(
- scanner,
- iacSupplier,
- alerter,
- analyser.NewAnalyzer(alerter, driftIgnore),
- resFactory,
- opts,
- scanProgress,
- iacProgress,
- resourceSchemaRepository,
- store,
- )
-
- go func() {
- <-c
- logrus.Warn("Detected interrupt, cleanup ...")
- ctl.Stop()
- }()
-
- analysis, err := ctl.Run()
- if err != nil {
- return err
- }
-
- analysis.ProviderVersion = opts.ProviderVersion
- analysis.ProviderName = opts.To
- store.Bucket(memstore.TelemetryBucket).Set("provider_name", analysis.ProviderName)
-
- validOutput := false
- for _, o := range opts.Output {
- if err = output.GetOutput(o).Write(analysis); err != nil {
- logrus.Errorf("Error writing to output %s: %v", o.String(), err.Error())
- continue
- }
- validOutput = true
- }
-
- // Fallback to console output if all output failed
- if !validOutput {
- logrus.Debug("All outputs failed, fallback to console output")
- if err = output.NewConsole().Write(analysis); err != nil {
- return err
- }
- }
-
- globaloutput.Printf(color.WhiteString("Scan duration: %s\n", analysis.Duration.Round(time.Second)))
- globaloutput.Printf(color.WhiteString("Provider version used to scan: %s. Use --tf-provider-version to use another version.\n"), opts.ProviderVersion)
-
- if !opts.DisableTelemetry {
- tl := telemetry.NewTelemetry(&build.Build{})
- tl.SendTelemetry(store.Bucket(memstore.TelemetryBucket))
- }
-
- if !analysis.IsSync() {
- return cmderrors.InfrastructureNotInSync{}
- }
-
- return nil
-}
-
-func validateTfProviderVersionString(version string) error {
- if version == "" {
- return nil
- }
- if match, _ := regexp.MatchString("^\\d+\\.\\d+\\.\\d+$", version); !match {
- return errors.Errorf("Invalid version argument %s, expected a valid semver string (e.g. 2.13.4)", version)
- }
- return nil
-}
-
-func retrieveBackendsFromHCL(workdir string) ([]config.SupplierConfig, error) {
- matches, err := filepath.Glob(path.Join(workdir, "*.tf"))
- if err != nil {
- return nil, err
- }
- supplierConfigs := make([]config.SupplierConfig, 0)
-
- for _, match := range matches {
- body, err := hcl.ParseTerraformFromHCL(match)
- if err != nil {
- logrus.
- WithField("file", match).
- WithField("error", err).
- Debug("Error parsing backend block in Terraform file")
- continue
- }
-
- var cfg *config.SupplierConfig
- ws := hcl.GetCurrentWorkspaceName(path.Dir(match))
-
- if body.Cloud != nil {
- cfg = body.Cloud.SupplierConfig(ws)
- }
- if body.Backend != nil {
- cfg = body.Backend.SupplierConfig(ws)
- }
- if cfg != nil {
- globaloutput.Printf(color.WhiteString("Using Terraform state %s found in %s. Use the --from flag to specify another state file.\n"), cfg, match)
- supplierConfigs = append(supplierConfigs, *cfg)
- }
- }
-
- return supplierConfigs, nil
-}
diff --git a/pkg/cmd/scan/exit_codes.go b/pkg/cmd/scan/exit_codes.go
deleted file mode 100644
index 9b0ee6a08..000000000
--- a/pkg/cmd/scan/exit_codes.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package scan
-
-const (
- EXIT_IN_SYNC = 0
- EXIT_NOT_IN_SYNC = 1
- EXIT_ERROR = 2
-)
diff --git a/pkg/cmd/scan/output/assets/driftctl_light.svg b/pkg/cmd/scan/output/assets/driftctl_light.svg
deleted file mode 100644
index 516366a18..000000000
--- a/pkg/cmd/scan/output/assets/driftctl_light.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/pkg/cmd/scan/output/assets/favicon.ico b/pkg/cmd/scan/output/assets/favicon.ico
deleted file mode 100644
index ca6babfc5..000000000
Binary files a/pkg/cmd/scan/output/assets/favicon.ico and /dev/null differ
diff --git a/pkg/cmd/scan/output/assets/index.tmpl b/pkg/cmd/scan/output/assets/index.tmpl
deleted file mode 100644
index b7e12a796..000000000
--- a/pkg/cmd/scan/output/assets/index.tmpl
+++ /dev/null
@@ -1,370 +0,0 @@
-
-
-
- driftctl Scan Report
-
-
-
-
-
-
-
-
-
-
- Total Resources:
- {{.Summary.TotalResources}}
-
-
- Coverage:
- {{.Coverage}}%
-
-
- Managed:
- {{rate .Summary.TotalManaged}}%
- {{.Summary.TotalManaged}}/{{.Summary.TotalResources}}
-
-
- Unmanaged:
- {{rate .Summary.TotalUnmanaged}}%
- {{.Summary.TotalUnmanaged}}/{{.Summary.TotalResources}}
-
-
- Missing:
- {{rate .Summary.TotalDeleted}}%
- {{.Summary.TotalDeleted}}/{{.Summary.TotalResources}}
-
-
-
- {{ if not .IsSync }}
-
-
-
-
- {{if (gt (len .Unmanaged) 0)}}
-
- Unmanaged Resources ({{len .Unmanaged}} )
-
- {{end}}
- {{if (gt (len .Deleted) 0)}}
-
- Missing Resources ({{len .Deleted}} )
-
- {{end}}
- {{if (gt (len .Alerts) 0)}}
-
- Alerts (0 )
-
- {{end}}
-
-
- {{ if (gt (len .Unmanaged) 0) }}
-
-
-
-
-
-
- {{range $res := .Unmanaged}}
-
- {{$res.ResourceId}}
- {{$res.ResourceType}}
-
- {{end}}
-
-
-
-
No results matched your filters
-
-
- {{end}}
- {{ if (gt (len .Deleted) 0) }}
-
-
-
-
-
-
- {{range $res := .Deleted}}
-
-
- {{$res.ResourceId}}
- {{ if $res.Src }}({{$res.SourceString}}) {{ else }}({{$res.ResourceType}}) {{ end }}
- {{$res.ResourceType}}
-
- {{ if $res.Src }}{{$res.Src.Source}} {{ end }}
-
- {{end}}
-
-
-
-
No results matched your filters
-
-
- {{end}}
- {{ if (gt (len .Alerts) 0) }}
-
-
- {{range $type, $messages := .Alerts}}
- {{range $el := $messages}}
-
- {{ if $type }}
- {{ $type }}
- {{end}}
- {{ $el.Message }}
-
- {{end}}
- {{end}}
-
-
-
No results matched your filters
-
-
- {{end}}
-
-
- {{else}}
- Congrats! Your infrastructure is in sync
- {{end}}
-
-
-
-
-
-
diff --git a/pkg/cmd/scan/output/assets/style.css b/pkg/cmd/scan/output/assets/style.css
deleted file mode 100644
index dff62ff30..000000000
--- a/pkg/cmd/scan/output/assets/style.css
+++ /dev/null
@@ -1,361 +0,0 @@
-html, body, div, span, h1, h2, p, pre, a, code, img, ul, li, form, label, table, tbody, thead, tr, th, td, header, section, button {
- border: 0;
- font: inherit;
- margin: 0;
- padding: 0;
- vertical-align: baseline;
-}
-
-body {
- background-color: #f7f7f9;
- color: #1c1e21;
- font-family: Helvetica, sans-serif;
- padding-bottom: 50px;
-}
-
-form {
- align-items: center;
- display: flex;
- flex-direction: column;
- justify-content: center;
- margin-bottom: 20px;
-}
-
-h1 {
- font-size: 24px;
- font-weight: 700;
- margin-bottom: 5px;
-}
-
-h2 {
- font-size: 20px;
- font-weight: 700;
- margin-bottom: 5px;
-}
-
-header {
- align-items: center;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding: 12px 0;
-}
-
-#brand_logo {
- margin-right: 20px;
- width: 100px;
- height: 81px;
- display: inline-block;
-}
-
-#brand_logo svg {
- width: 100%;
- height: 100%;
-}
-
-input::placeholder {
- color: #ccc;
- opacity: 1;
-}
-
-main {
- background-color: #fff;
- border-top: 3px solid #71b2c3;
- box-shadow: 0 0 5px #0000000a;
- padding: 25px;
-}
-
-section {
- background: #fff;
- border-radius: 3px;
- box-shadow: 0 0 5px #0000000a;
- color: #747578;
- display: flex;
- flex-direction: column;
- font-size: 15px;
- margin-bottom: 20px;
- padding: 15px;
-}
-
-select {
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 97% 50%;
-}
-
-table {
- border-collapse: collapse;
- border-spacing: 0;
- width: 100%;
-}
-
-tbody, ul, .table-body {
- border-left: 1px solid #ececec;
- border-right: 1px solid #ececec;
- border-top: 1px solid #ececec;
- border-radius: 3px;
- display: block;
-}
-
-ul {
- list-style: none;
-}
-
-[role="tab"] {
- background: transparent;
- border-radius: 3px;
- color: #747578;
- cursor: pointer;
- display: inline-block;
- font-size: 16px;
- margin: 4px;
- padding: 10px 20px;
-}
-
-[role="tab"]:hover {
- background-color: #f9f9f9;
-}
-
-[role="tab"][aria-selected="true"] {
- background: #71b2c3;
- color: #fff;
-}
-
-[role="tablist"] {
- display: flex;
- flex-direction: column;
-}
-
-[role="tabpanel"] {
- -webkit-animation: fadein .8s;
- animation: fadein .8s;
- width: 100%;
- overflow: scroll;
-}
-
-[role="tabpanel"].is-hidden {
- opacity: 0;
-}
-
-input[type="reset"] {
- background-color: transparent;
- border: none;
- color: #5faabd;
- cursor: pointer;
- font-size: 14px;
- height: 34px;
- margin: 5px;
- width: 100px;
-}
-
-input[type="search"], select {
- border: 1px solid #ececec;
- border-radius: 3px;
- color: #6e7071;
- font-size: 14px;
- height: 36px;
- margin: 5px;
- max-width: 300px;
- padding: 8px;
- width: 100%;
-}
-
-.card {
- align-items: center;
- display: flex;
- flex-direction: row;
- justify-content: center;
- margin: 5px 0;
-}
-
-.code-box {
- background: #eee;
- border-radius: 3px;
- color: #747578;
- display: flex;
- margin-top: 20px;
-}
-
-.code-box-line {
- line-height: 30px;
- overflow-x: auto;
- padding: 10px;
- width: 100%;
-}
-
-.code-box-line-create {
- background-color: #22863a1a;
- border-radius: 3px;
- color: #22863a;
- padding: 3px;
-}
-
-.code-box-line-delete {
- background-color: #bf404a17;
- border-radius: 3px;
- color: #bf404a;
- padding: 3px;
- text-decoration: line-through;
-}
-
-.congrats {
- color: #4d9221;
- text-align: center;
- margin: 50px 0;
-}
-
-.container {
- margin: auto;
- max-width: 100%;
- width: 1280px;
-}
-
-.div-left {
- display: flex;
- flex-direction: row;
- align-items: center;
-}
-
-.div-right {
- margin: 12px 0;
- text-align: center;
-}
-
-.empty-panel {
- color: #747578;
- display: flex;
- flex-direction: row;
- font-size: 20px;
- font-weight: 600;
- justify-content: center;
- padding: 25px;
-}
-
-.fraction {
- background: #e8e8e8;
- border-radius: 3px;
- color: #555;
- font-size: 12px;
- margin-left: 5px;
- padding: 4px 5px;
-}
-
-.panels {
- padding: 10px;
- width: 100%;
-}
-
-.provider {
- font-size: 14px;
- font-weight: 600;
- margin: 5px 0;
-}
-
-.resource-item {
- border-bottom: 1px solid #ececec;
- color: #6e7071;
- font-size: 14px;
- padding: 15px;
-}
-
-.resource-item:hover {
- background-color: #f9f9f9;
-}
-
-.row {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
-}
-
-.strong {
- color: #333;
- font-weight: 700;
- margin-left: 5px;
-}
-
-.table-header {
- color: #747578;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- padding: 10px;
-}
-
-.tabs-wrapper {
- align-items: center;
- display: flex;
- flex-direction: column;
-}
-
-.visuallyhidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
-}
-
-.is-hidden {
- display: none;
-}
-
-@-webkit-keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-@keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-@media (min-width: 768px) {
- form {
- flex-direction: row;
- }
-
- header {
- height: 130px;
- padding: 0 50px;
- flex-direction: row;
- justify-content: space-between;
- }
-
- section {
- flex-direction: row;
- justify-content: space-around;
- }
-
- [role="tab"] {
- font-size: 18px;
- }
-
- [role="tablist"] {
- flex-direction: row;
- }
-
- .card {
- margin: 0;
- }
-
- .div-right {
- text-align: right;
- }
-
- .panels {
- padding: 20px;
- }
-}
diff --git a/pkg/cmd/scan/output/config.go b/pkg/cmd/scan/output/config.go
deleted file mode 100644
index 895a12163..000000000
--- a/pkg/cmd/scan/output/config.go
+++ /dev/null
@@ -1,12 +0,0 @@
-package output
-
-import "fmt"
-
-type OutputConfig struct {
- Key string
- Path string
-}
-
-func (o *OutputConfig) String() string {
- return fmt.Sprintf("%s://%s", o.Key, o.Path)
-}
diff --git a/pkg/cmd/scan/output/console.go b/pkg/cmd/scan/output/console.go
deleted file mode 100644
index 71374863f..000000000
--- a/pkg/cmd/scan/output/console.go
+++ /dev/null
@@ -1,193 +0,0 @@
-package output
-
-import (
- "fmt"
- "os"
- "sort"
-
- "github.com/snyk/driftctl/enumeration/remote/alerts"
-
- "github.com/fatih/color"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
-)
-
-const ConsoleOutputType = "console"
-const ConsoleOutputExample = "console://"
-
-type Console struct {
- summary string
-}
-
-func NewConsole() *Console {
- return &Console{
- `Total coverage is {{ analysis.Coverage }}`,
- }
-}
-
-func (c *Console) Write(analysis *analyser.Analysis) error {
- if analysis.Summary().TotalDeleted > 0 {
- var sources []string
- groupedBySource := make(map[string][]*resource.Resource)
-
- for _, deletedResource := range analysis.Deleted() {
- key := ""
- if deletedResource.Source != nil {
- key = deletedResource.Source.Source()
- }
-
- if _, exist := groupedBySource[key]; !exist {
- groupedBySource[key] = []*resource.Resource{deletedResource}
- continue
- }
-
- groupedBySource[key] = append(groupedBySource[key], deletedResource)
- }
-
- for s := range groupedBySource {
- sources = append(sources, s)
- }
- sort.Strings(sources)
-
- fmt.Println("Found missing resources:")
-
- for _, source := range sources {
- indentBase := " "
- if source != "" {
- fmt.Print(color.BlueString("%sFrom %s\n", indentBase, source))
- indentBase += indentBase
- }
- for _, deletedResource := range groupedBySource[source] {
- humanStringSource := deletedResource.ResourceType()
- if deletedResource.SourceString() != "" {
- humanStringSource = deletedResource.SourceString()
- }
- humanString := fmt.Sprintf("%s- %s (%s)", indentBase, deletedResource.ResourceId(), humanStringSource)
-
- if humanAttrs := formatResourceAttributes(deletedResource); humanAttrs != "" {
- humanString += fmt.Sprintf("\n%s %s", indentBase, humanAttrs)
- }
- fmt.Println(humanString)
- }
- }
- }
-
- if analysis.Summary().TotalUnmanaged > 0 {
- fmt.Println("Found resources not covered by IaC:")
- unmanagedByType, keys := groupByType(analysis.Unmanaged())
- for _, ty := range keys {
- fmt.Printf(" %s:\n", ty)
- for _, res := range unmanagedByType[ty] {
- humanString := fmt.Sprintf(" - %s", res.ResourceId())
- if humanAttrs := formatResourceAttributes(res); humanAttrs != "" {
- humanString += fmt.Sprintf("\n %s", humanAttrs)
- }
- fmt.Println(humanString)
- }
- }
- }
-
- c.writeSummary(analysis)
-
- enumerationErrorMessage := ""
- for _, a := range analysis.Alerts() {
- for _, alert := range a {
- fmt.Println(color.YellowString(alert.Message()))
- if alert, ok := alert.(*alerts.RemoteAccessDeniedAlert); ok && enumerationErrorMessage == "" {
- enumerationErrorMessage = alert.GetProviderMessage()
- }
- }
- }
-
- if enumerationErrorMessage != "" {
- _, _ = fmt.Fprintf(os.Stderr, "\n%s\n", color.YellowString(enumerationErrorMessage))
- }
-
- return nil
-}
-
-func (c Console) writeSummary(analysis *analyser.Analysis) {
- boldWriter := color.New(color.Bold)
- successWriter := color.New(color.Bold, color.FgGreen)
- warningWriter := color.New(color.Bold, color.FgYellow)
- errorWriter := color.New(color.Bold, color.FgRed)
- total := boldWriter.Sprintf("%d", analysis.Summary().TotalResources)
-
- fmt.Printf(
- "Found %s resource(s)\n",
- total,
- )
- fmt.Printf(
- " - %s%% coverage\n",
- boldWriter.Sprintf(
- "%d",
- analysis.Coverage(),
- ),
- )
- if !analysis.IsSync() {
- managed := successWriter.Sprintf("0")
- if analysis.Summary().TotalManaged > 0 {
- managed = warningWriter.Sprintf("%d", analysis.Summary().TotalManaged)
- }
- fmt.Printf(" - %s resource(s) managed by Terraform\n", managed)
-
- unmanaged := successWriter.Sprintf("0")
- if analysis.Summary().TotalUnmanaged > 0 {
- unmanaged = warningWriter.Sprintf("%d", analysis.Summary().TotalUnmanaged)
- }
- deleted := successWriter.Sprintf("0")
- if analysis.Summary().TotalDeleted > 0 {
- deleted = errorWriter.Sprintf("%d", analysis.Summary().TotalDeleted)
- }
- fmt.Printf(" - %s resource(s) not managed by Terraform\n", unmanaged)
- fmt.Printf(" - %s resource(s) found in a Terraform state but missing on the cloud provider\n", deleted)
- }
- if analysis.IsSync() {
- fmt.Println(color.GreenString("Congrats! Your infrastructure is fully in sync."))
- }
-}
-
-func groupByType(resources []*resource.Resource) (map[string][]*resource.Resource, []string) {
- result := map[string][]*resource.Resource{}
- for _, res := range resources {
- if result[res.ResourceType()] == nil {
- result[res.ResourceType()] = []*resource.Resource{res}
- continue
- }
- result[res.ResourceType()] = append(result[res.ResourceType()], res)
- }
-
- keys := make([]string, 0, len(result))
- for k := range result {
- keys = append(keys, k)
- }
- sort.Strings(keys)
-
- return result, keys
-}
-
-func formatResourceAttributes(res *resource.Resource) string {
- if res.Schema() == nil || res.Schema().HumanReadableAttributesFunc == nil {
- return ""
- }
- attributes := res.Schema().HumanReadableAttributesFunc(res)
- if len(attributes) <= 0 {
- return ""
- }
- // sort attributes
- keys := make([]string, 0, len(attributes))
- for k := range attributes {
- keys = append(keys, k)
- }
- sort.Strings(keys)
- // retrieve stringer
- attrString := ""
- for _, k := range keys {
- if attrString != "" {
- attrString += ", "
- }
- attrString += fmt.Sprintf("%s: %s", k, attributes[k])
- }
- return attrString
-}
diff --git a/pkg/cmd/scan/output/console_test.go b/pkg/cmd/scan/output/console_test.go
deleted file mode 100644
index 352d56fc0..000000000
--- a/pkg/cmd/scan/output/console_test.go
+++ /dev/null
@@ -1,145 +0,0 @@
-package output
-
-import (
- "bytes"
- "io"
- "os"
- "path"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/snyk/driftctl/test/goldenfile"
- testresource "github.com/snyk/driftctl/test/resource"
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/pkg/analyser"
-)
-
-func TestConsole_Write(t *testing.T) {
- type args struct {
- analysis *analyser.Analysis
- }
- tests := []struct {
- name string
- goldenfile string
- args args
- wantErr bool
- }{
- {
- name: "test console output",
- goldenfile: "output.txt",
- args: args{analysis: func() *analyser.Analysis {
- a := fakeAnalysis()
- a.AddDeleted(
- &resource.Resource{
- Id: "test-id-1",
- Type: "aws_test_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://test_state.tfstate",
- Module: "module",
- Name: "name",
- },
- },
- &resource.Resource{
- Id: "test-id-2",
- Type: "aws_test_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://test_state.tfstate",
- Module: "module",
- Name: "name",
- },
- },
- )
- a.AddUnmanaged(
- &resource.Resource{
- Id: "test-id-1",
- Type: "aws_testing_resource",
- },
- &resource.Resource{
- Id: "test-id-2",
- Type: "aws_resource",
- },
- )
- return a
- }()},
- wantErr: false,
- },
- {
- name: "test console output no drift",
- goldenfile: "output_no_drift.txt",
- args: args{analysis: fakeAnalysisNoDrift()},
- wantErr: false,
- },
- {
- name: "test console output with resource without attributes",
- goldenfile: "output_empty_attributes.txt",
- args: args{analysis: fakeAnalysisWithoutAttrs()},
- wantErr: false,
- },
- {
- name: "test console output with AWS enumeration alerts",
- goldenfile: "output_access_denied_alert_aws.txt",
- args: args{analysis: fakeAnalysisWithAWSEnumerationError()},
- wantErr: false,
- },
- {
- name: "test console output with Github enumeration alerts",
- goldenfile: "output_access_denied_alert_github.txt",
- args: args{analysis: fakeAnalysisWithGithubEnumerationError()},
- wantErr: false,
- },
- {
- name: "test console output without deep mode",
- goldenfile: "output_without_deep.txt",
- args: args{analysis: fakeAnalysisWithoutDeep()},
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- repo := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- aws.InitResourcesMetadata(repo)
-
- c := NewConsole()
-
- stdout := os.Stdout // keep backup of the real stdout
- stderr := os.Stderr // keep backup of the real stderr
- r, w, _ := os.Pipe()
- os.Stdout = w
- os.Stderr = w
-
- if err := c.Write(tt.args.analysis); (err != nil) != tt.wantErr {
- t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr)
- }
-
- outC := make(chan []byte)
- // copy the output in a separate goroutine so printing can't block indefinitely
- go func() {
- var buf bytes.Buffer
- _, _ = io.Copy(&buf, r)
- outC <- buf.Bytes()
- }()
-
- // back to normal state
- assert.Nil(t, w.Close())
- os.Stdout = stdout // restoring the real stdout
- os.Stderr = stderr
- out := <-outC
-
- expectedFilePath := path.Join("./testdata", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, out, 0600); err != nil {
- t.Fatal(err)
- }
- }
-
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, string(expected), string(out))
- })
- }
-}
diff --git a/pkg/cmd/scan/output/html.go b/pkg/cmd/scan/output/html.go
deleted file mode 100644
index b7129fb53..000000000
--- a/pkg/cmd/scan/output/html.go
+++ /dev/null
@@ -1,173 +0,0 @@
-package output
-
-import (
- "embed"
- "encoding/base64"
- "html/template"
- "math"
- "os"
- "time"
-
- "github.com/snyk/driftctl/enumeration/alerter"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
-)
-
-const HTMLOutputType = "html"
-const HTMLOutputExample = "html://PATH/TO/FILE.html"
-
-// assets holds our static web content.
-//
-//go:embed assets/*
-var assets embed.FS
-
-type HTML struct {
- path string
-}
-
-type HTMLTemplateParams struct {
- IsSync bool
- ScanDate string
- Coverage int
- Summary analyser.Summary
- Unmanaged []*resource.Resource
- Deleted []*resource.Resource
- Alerts alerter.Alerts
- Stylesheet template.CSS
- ScanDuration string
- ProviderName string
- ProviderVersion string
- LogoSvg template.HTML
- FaviconBase64 string
-}
-
-func NewHTML(path string) *HTML {
- return &HTML{path}
-}
-
-func (c *HTML) Write(analysis *analyser.Analysis) error {
- file := os.Stdout
- if !isStdOut(c.path) {
- f, err := os.OpenFile(c.path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0600)
- if err != nil {
- return err
- }
- defer f.Close()
- file = f
- }
-
- tmplFile, err := assets.ReadFile("assets/index.tmpl")
- if err != nil {
- return err
- }
-
- styleFile, err := assets.ReadFile("assets/style.css")
- if err != nil {
- return err
- }
-
- logoSvgFile, err := assets.ReadFile("assets/driftctl_light.svg")
- if err != nil {
- return err
- }
-
- faviconFile, err := assets.ReadFile("assets/favicon.ico")
- if err != nil {
- return err
- }
-
- funcMap := template.FuncMap{
- "getResourceTypes": func() []string {
- resources := make([]*resource.Resource, 0)
- resources = append(resources, analysis.Unmanaged()...)
- resources = append(resources, analysis.Deleted()...)
-
- return distinctResourceTypes(resources)
- },
- "getIaCSources": func() []string {
- resources := make([]*resource.Resource, 0)
- resources = append(resources, analysis.Deleted()...)
- resources = append(resources, analysis.Managed()...)
-
- return distinctIaCSources(resources)
- },
- "rate": func(count int) float64 {
- if analysis.Summary().TotalResources == 0 {
- return 0
- }
- rate := 100 * float64(count) / float64(analysis.Summary().TotalResources)
- return math.Floor(rate*100) / 100
- },
- }
-
- tmpl, err := template.New("main").Funcs(funcMap).Parse(string(tmplFile))
- if err != nil {
- return err
- }
-
- data := &HTMLTemplateParams{
- IsSync: analysis.IsSync(),
- ScanDate: analysis.Date.Format("Jan 02, 2006"),
- Coverage: analysis.Coverage(),
- Summary: analysis.Summary(),
- Unmanaged: analysis.Unmanaged(),
- Deleted: analysis.Deleted(),
- Alerts: analysis.Alerts(),
- Stylesheet: template.CSS(styleFile),
- ScanDuration: analysis.Duration.Round(time.Second).String(),
- ProviderName: analysis.ProviderName,
- ProviderVersion: analysis.ProviderVersion,
- LogoSvg: template.HTML(logoSvgFile),
- FaviconBase64: base64.StdEncoding.EncodeToString(faviconFile),
- }
-
- err = tmpl.Execute(file, data)
- if err != nil {
- return err
- }
-
- return nil
-}
-
-func distinctResourceTypes(resources []*resource.Resource) []string {
- types := make([]string, 0)
-
- for _, res := range resources {
- found := false
- for _, v := range types {
- if v == res.ResourceType() {
- found = true
- break
- }
- }
- if !found {
- types = append(types, res.ResourceType())
- }
- }
-
- return types
-}
-
-func distinctIaCSources(resources []*resource.Resource) []string {
- types := make([]string, 0)
-
- for _, res := range resources {
- if res.Src() == nil {
- continue
- }
-
- found := false
- for _, v := range types {
- if v == res.Src().Source() {
- found = true
- break
- }
- }
- if !found {
- types = append(types, res.Src().Source())
- }
- }
-
- return types
-}
diff --git a/pkg/cmd/scan/output/html_test.go b/pkg/cmd/scan/output/html_test.go
deleted file mode 100644
index 46849814f..000000000
--- a/pkg/cmd/scan/output/html_test.go
+++ /dev/null
@@ -1,305 +0,0 @@
-package output
-
-import (
- "os"
- "path"
- "testing"
- "time"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/test/goldenfile"
-)
-
-func TestHTML_Write(t *testing.T) {
- tests := []struct {
- name string
- goldenfile string
- analysis func() *analyser.Analysis
- err error
- }{
- {
- name: "test html output when there's no resources",
- goldenfile: "output_empty.html",
- analysis: func() *analyser.Analysis {
- a := &analyser.Analysis{}
- a.Date = time.Date(2021, 06, 10, 0, 0, 0, 0, &time.Location{})
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
- },
- err: nil,
- },
- {
- name: "test html output when infrastructure is in sync",
- goldenfile: "output_sync.html",
- analysis: func() *analyser.Analysis {
- a := &analyser.Analysis{}
- a.Date = time.Date(2021, 06, 10, 0, 0, 0, 0, &time.Location{})
- a.Duration = 72 * time.Second
- a.AddManaged(
- &resource.Resource{
- Id: "deleted-id-3",
- Type: "aws_deleted_resource",
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
- },
- err: nil,
- },
- {
- name: "test html output",
- goldenfile: "output.html",
- analysis: func() *analyser.Analysis {
- a := fakeAnalysisWithAlerts()
- a.Date = time.Date(2021, 06, 10, 0, 0, 0, 0, &time.Location{})
- a.Duration = 91 * time.Second
- a.AddManaged(
- &resource.Resource{
- Id: "diff-id-2",
- Type: "aws_diff_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://state.tfstate",
- Name: "diff-id-2",
- Module: "module",
- },
- },
- &resource.Resource{
- Id: "diff-id-3",
- Type: "aws_diff_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate+s3://state2.tfstate",
- Name: "b",
- },
- },
- )
- a.AddDeleted(
- &resource.Resource{
- Id: "deleted-id-3",
- Type: "aws_deleted_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://deleted/terraform.tfstate",
- Name: "deleted-id-3",
- },
- },
- &resource.Resource{
- Id: "deleted-id-4",
- Type: "aws_deleted_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://deleted/terraform.tfstate",
- Name: "deleted-id-3",
- },
- },
- &resource.Resource{
- Id: "deleted-id-5",
- Type: "aws_deleted_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://deleted/terraform.tfstate",
- Name: "deleted-id-3",
- Module: "module-1",
- },
- },
- &resource.Resource{
- Id: "deleted-id-6",
- Type: "aws_deleted_resource",
- },
- )
- a.AddUnmanaged(
- &resource.Resource{
- Id: "unmanaged-id-3",
- Type: "aws_unmanaged_resource",
- },
- &resource.Resource{
- Id: "unmanaged-id-4",
- Type: "aws_unmanaged_resource",
- },
- &resource.Resource{
- Id: "unmanaged-id-5",
- Type: "aws_unmanaged_resource",
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
- },
- err: nil,
- },
- {
- name: "test html output when coverage is 100",
- goldenfile: "output_coverage_100.html",
- analysis: func() *analyser.Analysis {
- a := &analyser.Analysis{}
- a.Date = time.Date(2021, 06, 10, 0, 0, 0, 0, &time.Location{})
- a.Duration = 91 * time.Second
- a.AddManaged(
- &resource.Resource{
- Id: "resource-id-1",
- Type: "aws_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://state.tfstate",
- Module: "module",
- Name: "name",
- },
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
- },
- err: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- tempDir := t.TempDir()
- tempFile, err := os.CreateTemp(tempDir, "result")
-
- if err != nil {
- t.Fatal(err)
- }
- c := NewHTML(tempFile.Name())
-
- err = c.Write(tt.analysis())
- if tt.err != nil {
- assert.EqualError(t, err, tt.err.Error())
- } else {
- assert.NoError(t, err)
- }
-
- got, err := os.ReadFile(tempFile.Name())
- if err != nil {
- t.Fatal(err)
- }
-
- expectedFilePath := path.Join("./testdata/", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, got, 0600); err != nil {
- t.Fatal(err)
- }
- }
-
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, string(expected), string(got))
- })
- }
-}
-
-func TestHTML_DistinctResourceTypes(t *testing.T) {
- tests := []struct {
- name string
- resources []*resource.Resource
- value []string
- }{
- {
- name: "should return empty array",
- resources: []*resource.Resource{},
- value: []string{},
- },
- {
- name: "should return distinct list of resource types",
- resources: []*resource.Resource{
- {
- Id: "deleted-id-1",
- Type: "aws_deleted_resource",
- },
- {
- Id: "unmanaged-id-1",
- Type: "aws_unmanaged_resource",
- },
- {
- Id: "unmanaged-id-2",
- Type: "aws_unmanaged_resource",
- },
- {
- Id: "diff-id-1",
- Type: "aws_diff_resource",
- },
- {
- Id: "deleted-id-2",
- Type: "aws_deleted_resource",
- },
- },
- value: []string{"aws_deleted_resource", "aws_unmanaged_resource", "aws_diff_resource"},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got := distinctResourceTypes(tt.resources)
- assert.Equal(t, tt.value, got)
- })
- }
-}
-
-func TestHTML_DistinctIaCSources(t *testing.T) {
- tests := []struct {
- name string
- resources []*resource.Resource
- value []string
- }{
- {
- name: "should return empty array",
- resources: []*resource.Resource{},
- value: []string{},
- },
- {
- name: "should return distinct list of iac sources",
- resources: []*resource.Resource{
- {
- Id: "deleted-id-1",
- Type: "aws_deleted_resource",
- Source: &resource.TerraformStateSource{
- Module: "module",
- Name: "test",
- State: "tfstate://terraform.tfstate",
- },
- },
- {
- Id: "unmanaged-id-1",
- Type: "aws_unmanaged_resource",
- Source: &resource.TerraformStateSource{
- Module: "module",
- Name: "test",
- State: "tfstate://terraform2.tfstate",
- },
- },
- {
- Id: "unmanaged-id-2",
- Type: "aws_unmanaged_resource",
- Source: &resource.TerraformStateSource{
- Module: "module",
- Name: "test",
- State: "tfstate+s3://test/terraform.tfstate",
- },
- },
- {
- Id: "diff-id-1",
- Type: "aws_diff_resource",
- Source: &resource.TerraformStateSource{
- Module: "module",
- Name: "test",
- State: "tfstate://terraform.tfstate",
- },
- },
- {
- Id: "deleted-id-2",
- Type: "aws_deleted_resource",
- },
- },
- value: []string{"tfstate://terraform.tfstate", "tfstate://terraform2.tfstate", "tfstate+s3://test/terraform.tfstate"},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got := distinctIaCSources(tt.resources)
- assert.Equal(t, tt.value, got)
- })
- }
-}
diff --git a/pkg/cmd/scan/output/json.go b/pkg/cmd/scan/output/json.go
deleted file mode 100644
index a2480c970..000000000
--- a/pkg/cmd/scan/output/json.go
+++ /dev/null
@@ -1,40 +0,0 @@
-package output
-
-import (
- "encoding/json"
- "os"
-
- "github.com/snyk/driftctl/pkg/analyser"
-)
-
-const JSONOutputType = "json"
-const JSONOutputExample = "json://PATH/TO/FILE.json"
-
-type JSON struct {
- path string
-}
-
-func NewJSON(path string) *JSON {
- return &JSON{path}
-}
-
-func (c *JSON) Write(analysis *analyser.Analysis) error {
- file := os.Stdout
- if !isStdOut(c.path) {
- f, err := os.OpenFile(c.path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0600)
- if err != nil {
- return err
- }
- defer f.Close()
- file = f
- }
-
- json, err := json.MarshalIndent(analysis, "", "\t")
- if err != nil {
- return err
- }
- if _, err := file.Write(json); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/cmd/scan/output/json_test.go b/pkg/cmd/scan/output/json_test.go
deleted file mode 100644
index 4eef4c3f3..000000000
--- a/pkg/cmd/scan/output/json_test.go
+++ /dev/null
@@ -1,186 +0,0 @@
-package output
-
-import (
- "bytes"
- "io"
- "os"
- "path"
- "testing"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/test/goldenfile"
-)
-
-func TestJSON_Write(t *testing.T) {
- type args struct {
- analysis *analyser.Analysis
- }
- tests := []struct {
- name string
- goldenfile string
- args args
- wantErr bool
- }{
- {
- name: "test json output",
- goldenfile: "output.json",
- args: args{
- analysis: fakeAnalysis(),
- },
- wantErr: false,
- },
- {
- name: "test json output with AWS enumeration alerts",
- goldenfile: "output_access_denied_alert_aws.json",
- args: args{
- analysis: fakeAnalysisWithAWSEnumerationError(),
- },
- wantErr: false,
- },
- {
- name: "test json output with Github enumeration alerts",
- goldenfile: "output_access_denied_alert_github.json",
- args: args{
- analysis: fakeAnalysisWithGithubEnumerationError(),
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- tempDir := t.TempDir()
- tempFile, err := os.CreateTemp(tempDir, "result")
- if err != nil {
- t.Fatal(err)
- }
- c := NewJSON(tempFile.Name())
- if err := c.Write(tt.args.analysis); (err != nil) != tt.wantErr {
- t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr)
- }
- result, err := os.ReadFile(tempFile.Name())
- if err != nil {
- t.Fatal(err)
- }
- expectedFilePath := path.Join("./testdata/", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, result, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, string(expected), string(result))
- })
- }
-}
-
-func TestJSON_Write_stdout(t *testing.T) {
- type args struct {
- analysis *analyser.Analysis
- }
- tests := []struct {
- name string
- path string
- goldenfile string
- args args
- wantErr bool
- }{
- {
- name: "test json output stdout",
- goldenfile: "output.json",
- path: "stdout",
- args: args{
- analysis: fakeAnalysis(),
- },
- wantErr: false,
- },
-
- {
- name: "test json output /dev/stdout",
- goldenfile: "output.json",
- path: "/dev/stdout",
- args: args{
- analysis: fakeAnalysis(),
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- stdout := os.Stdout // keep backup of the real stdout
- r, w, _ := os.Pipe()
- os.Stdout = w
-
- c := NewJSON(tt.path)
- if err := c.Write(tt.args.analysis); (err != nil) != tt.wantErr {
- t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr)
- }
-
- outC := make(chan []byte)
- // copy the output in a separate goroutine so printing can't block indefinitely
- go func() {
- var buf bytes.Buffer
- _, _ = io.Copy(&buf, r)
- outC <- buf.Bytes()
- }()
-
- // back to normal state
- w.Close()
- os.Stdout = stdout // restoring the real stdout
- result := <-outC
-
- expectedFilePath := path.Join("./testdata/", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, result, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, string(expected), string(result))
- })
- }
-}
-
-func TestJSON_WriteMultiplesTimesInSameFile(t *testing.T) {
- emptyAnalysis := &analyser.Analysis{}
- longerAnalysis := fakeAnalysis()
- tempDir := t.TempDir()
- tempFile, err := os.CreateTemp(tempDir, "result")
- if err != nil {
- t.Fatal(err)
- }
- c := NewJSON(tempFile.Name())
-
- if err := c.Write(longerAnalysis); err != nil {
- t.Errorf("First write error = %v", err)
- }
-
- if err := c.Write(emptyAnalysis); err != nil {
- t.Errorf("Second write error = %v", err)
- }
-
- result, err := os.ReadFile(tempFile.Name())
- if err != nil {
- t.Fatal(err)
- }
- goldenFileName := "output_multiples_times.json"
- expectedFilePath := path.Join("./testdata/", goldenFileName)
- if *goldenfile.Update == goldenFileName {
- if err := os.WriteFile(expectedFilePath, result, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, string(expected), string(result))
-}
diff --git a/pkg/cmd/scan/output/output.go b/pkg/cmd/scan/output/output.go
deleted file mode 100644
index 38b984630..000000000
--- a/pkg/cmd/scan/output/output.go
+++ /dev/null
@@ -1,97 +0,0 @@
-package output
-
-import (
- "sort"
-
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/pkg/output"
-)
-
-type Output interface {
- Write(analysis *analyser.Analysis) error
-}
-
-var supportedOutputTypes = []string{
- ConsoleOutputType,
- JSONOutputType,
- HTMLOutputType,
- PlanOutputType,
-}
-
-var supportedOutputExample = map[string]string{
- ConsoleOutputType: ConsoleOutputExample,
- JSONOutputType: JSONOutputExample,
- HTMLOutputType: HTMLOutputExample,
- PlanOutputType: PlanOutputExample,
-}
-
-func SupportedOutputsExample() []string {
- examples := make([]string, 0, len(supportedOutputExample))
- for _, ex := range supportedOutputExample {
- examples = append(examples, ex)
- }
- sort.Strings(examples)
- return examples
-}
-
-func Example(key string) string {
- return supportedOutputExample[key]
-}
-
-func IsSupported(key string) bool {
- for _, o := range supportedOutputTypes {
- if o == key {
- return true
- }
- }
- return false
-}
-
-func GetOutput(config OutputConfig) Output {
- switch config.Key {
- case JSONOutputType:
- return NewJSON(config.Path)
- case HTMLOutputType:
- return NewHTML(config.Path)
- case PlanOutputType:
- return NewPlan(config.Path)
- case ConsoleOutputType:
- fallthrough
- default:
- return NewConsole()
- }
-}
-
-// ShouldPrint indicate if we should use the global output or not (e.g. when outputting to stdout).
-func ShouldPrint(outputs []OutputConfig, quiet bool) bool {
- for _, c := range outputs {
- p := GetPrinter(c, quiet)
- if _, ok := p.(*output.VoidPrinter); ok {
- return false
- }
- }
- return true
-}
-
-func GetPrinter(config OutputConfig, quiet bool) output.Printer {
- if quiet {
- return &output.VoidPrinter{}
- }
-
- switch config.Key {
- case JSONOutputType:
- fallthrough
- case PlanOutputType:
- fallthrough
- case HTMLOutputType:
- fallthrough
- case ConsoleOutputType:
- fallthrough
- default:
- return output.NewConsolePrinter()
- }
-}
-
-func isStdOut(path string) bool {
- return path == "/dev/stdout" || path == "stdout"
-}
diff --git a/pkg/cmd/scan/output/output_test.go b/pkg/cmd/scan/output/output_test.go
deleted file mode 100644
index adb342583..000000000
--- a/pkg/cmd/scan/output/output_test.go
+++ /dev/null
@@ -1,361 +0,0 @@
-package output
-
-import (
- "fmt"
- "reflect"
- "testing"
- "time"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/remote/alerts"
- "github.com/snyk/driftctl/enumeration/remote/common"
- remoteerr "github.com/snyk/driftctl/enumeration/remote/error"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/pkg/output"
-)
-
-func fakeAnalysis() *analyser.Analysis {
- a := analyser.NewAnalysis()
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.SetIaCSourceCount(3)
- a.Duration = 12 * time.Second
- a.AddUnmanaged(
- &resource.Resource{
- Id: "unmanaged-id-1",
- Type: "aws_unmanaged_resource",
- },
- &resource.Resource{
- Id: "unmanaged-id-2",
- Type: "aws_unmanaged_resource",
- },
- )
- a.AddDeleted(
- &resource.Resource{
- Id: "deleted-id-1",
- Type: "aws_deleted_resource",
- Source: &resource.TerraformStateSource{
- State: "tfstate://delete_state.tfstate",
- Module: "module",
- Name: "name",
- },
- }, &resource.Resource{
- Id: "deleted-id-2",
- Type: "aws_deleted_resource",
- },
- )
- a.AddManaged(
- &resource.Resource{
- Id: "diff-id-1",
- Type: "aws_diff_resource",
- },
- &resource.Resource{
- Id: "no-diff-id-1",
- Type: "aws_no_diff_resource",
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
-}
-
-func fakeAnalysisWithAlerts() *analyser.Analysis {
- a := fakeAnalysis()
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.SetAlerts(alerter.Alerts{
- "": []alerter.Alert{
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_vpc", "aws_vpc"), alerts.EnumerationPhase),
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_sqs", "aws_sqs"), alerts.EnumerationPhase),
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_sns", "aws_sns"), alerts.EnumerationPhase),
- },
- })
- a.ProviderVersion = "3.19.0"
- return a
-}
-
-func fakeAnalysisNoDrift() *analyser.Analysis {
- a := analyser.Analysis{}
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- for i := 0; i < 5; i++ {
- a.AddManaged(&resource.Resource{
- Id: "managed-id-" + fmt.Sprintf("%d", i),
- Type: "aws_managed_resource",
- })
- }
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return &a
-}
-
-func fakeAnalysisWithoutAttrs() *analyser.Analysis {
- a := analyser.NewAnalysis()
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.AddDeleted(
- &resource.Resource{
- Id: "dfjkgnbsgj",
- Type: "FakeResourceStringer",
- Attrs: &resource.Attributes{},
- Source: &resource.TerraformStateSource{
- State: "tfstate://state.tfstate",
- Module: "module",
- Name: "name",
- },
- },
- )
- a.AddManaged(
- &resource.Resource{
- Id: "usqyfsdbgjsdgjkdfg",
- Type: "FakeResourceStringer",
- Attrs: &resource.Attributes{},
- },
- )
- a.AddUnmanaged(
- &resource.Resource{
- Id: "duysgkfdjfdgfhd",
- Type: "FakeResourceStringer",
- Attrs: &resource.Attributes{},
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return a
-}
-
-func fakeAnalysisWithAWSEnumerationError() *analyser.Analysis {
- a := analyser.Analysis{}
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.SetAlerts(alerter.Alerts{
- "": []alerter.Alert{
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_vpc", "aws_vpc"), alerts.EnumerationPhase),
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_sqs", "aws_sqs"), alerts.EnumerationPhase),
- alerts.NewRemoteAccessDeniedAlert(common.RemoteAWSTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "aws_sns", "aws_sns"), alerts.EnumerationPhase),
- },
- })
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return &a
-}
-
-func fakeAnalysisWithGithubEnumerationError() *analyser.Analysis {
- a := analyser.Analysis{}
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.SetAlerts(alerter.Alerts{
- "": []alerter.Alert{
- alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "github_team", "github_team"), alerts.EnumerationPhase),
- alerts.NewRemoteAccessDeniedAlert(common.RemoteGithubTerraform, remoteerr.NewResourceListingErrorWithType(errors.New("dummy error"), "github_team_membership", "github_team"), alerts.EnumerationPhase),
- },
- })
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return &a
-}
-
-func fakeAnalysisForJSONPlan() *analyser.Analysis {
- a := analyser.Analysis{}
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.AddUnmanaged(
- &resource.Resource{
- Id: "unmanaged-id-1",
- Type: "aws_unmanaged_resource",
- Attrs: &resource.Attributes{
- "name": "First unmanaged resource",
- },
- },
- &resource.Resource{
- Id: "unmanaged-id-2",
- Type: "aws_unmanaged_resource",
- Attrs: &resource.Attributes{
- "name": "Second unmanaged resource",
- },
- },
- )
- a.AddManaged(
- &resource.Resource{
- Id: "managed-id-1",
- Type: "aws_managed_resource",
- Attrs: &resource.Attributes{
- "name": "First managed resource",
- },
- },
- &resource.Resource{
- Id: "managed-id-2",
- Type: "aws_managed_resource",
- Attrs: &resource.Attributes{
- "name": "Second managed resource",
- },
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return &a
-}
-
-func fakeAnalysisWithoutDeep() *analyser.Analysis {
- a := analyser.Analysis{}
- a.Date = time.Date(2022, 4, 8, 10, 35, 0, 0, time.UTC)
- a.AddUnmanaged(
- &resource.Resource{
- Id: "unmanaged-id-1",
- Type: "aws_unmanaged_resource",
- Attrs: &resource.Attributes{
- "name": "First unmanaged resource",
- },
- },
- )
- a.ProviderName = "AWS"
- a.ProviderVersion = "3.19.0"
- return &a
-}
-
-func TestGetPrinter(t *testing.T) {
- tests := []struct {
- name string
- path string
- key string
- quiet bool
- want output.Printer
- }{
- {
- name: "json file output",
- path: "/path/to/file",
- key: JSONOutputType,
- want: output.NewConsolePrinter(),
- },
- {
- name: "json file output quiet",
- path: "/path/to/file",
- key: JSONOutputType,
- quiet: true,
- want: &output.VoidPrinter{},
- },
- {
- name: "json stdout output",
- path: "stdout",
- key: JSONOutputType,
- want: &output.ConsolePrinter{},
- },
- {
- name: "json /dev/stdout output",
- path: "/dev/stdout",
- key: JSONOutputType,
- want: &output.ConsolePrinter{},
- },
- {
- name: "console stdout output",
- path: "stdout",
- key: ConsoleOutputType,
- want: output.NewConsolePrinter(),
- },
- {
- name: "quiet console stdout output",
- path: "stdout",
- quiet: true,
- key: ConsoleOutputType,
- want: &output.VoidPrinter{},
- },
- {
- name: "jsonplan file output",
- path: "/path/to/file",
- key: PlanOutputType,
- want: output.NewConsolePrinter(),
- },
- {
- name: "jsonplan stdout output",
- path: "stdout",
- key: PlanOutputType,
- want: &output.ConsolePrinter{},
- },
- {
- name: "jsonplan /dev/stdout output",
- path: "/dev/stdout",
- key: PlanOutputType,
- want: &output.ConsolePrinter{},
- },
- {
- name: "html stdout output",
- path: "stdout",
- key: HTMLOutputType,
- want: &output.ConsolePrinter{},
- },
- {
- name: "html /dev/stdout output",
- path: "/dev/stdout",
- key: HTMLOutputType,
- want: &output.ConsolePrinter{},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := GetPrinter(OutputConfig{
- Key: tt.key,
- Path: tt.path,
- }, tt.quiet); !reflect.DeepEqual(got, tt.want) {
- t.Errorf("GetPrinter() = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestShouldPrint(t *testing.T) {
- tests := []struct {
- name string
- outputs []OutputConfig
- quiet bool
- want bool
- }{
- {
- name: "test stdout should not prevents printing",
- outputs: []OutputConfig{
- {
- Path: "stdout",
- Key: JSONOutputType,
- },
- },
- want: true,
- },
- {
- name: "test output to file doesn't prevent printing",
- outputs: []OutputConfig{
- {
- Path: "result.json",
- Key: JSONOutputType,
- },
- },
- want: true,
- },
- {
- name: "test quiet should prevents printing",
- outputs: []OutputConfig{
- {
- Path: "result.json",
- Key: JSONOutputType,
- },
- },
- quiet: true,
- want: false,
- },
- {
- name: "test stdout should not prevents printing",
- outputs: []OutputConfig{
- {
- Path: "result.json",
- Key: JSONOutputType,
- },
- {
- Path: "stdout",
- Key: PlanOutputType,
- },
- },
- want: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := ShouldPrint(tt.outputs, tt.quiet); got != tt.want {
- t.Errorf("ShouldPrint() = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/cmd/scan/output/plan.go b/pkg/cmd/scan/output/plan.go
deleted file mode 100644
index ceed70aae..000000000
--- a/pkg/cmd/scan/output/plan.go
+++ /dev/null
@@ -1,128 +0,0 @@
-package output
-
-import (
- "encoding/json"
- "fmt"
- "os"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
-)
-
-const FormatVersion = "0.1"
-const PlanOutputType = "plan"
-const PlanOutputExample = "plan://PATH/TO/FILE.json"
-
-type plan struct {
- FormatVersion string `json:"format_version,omitempty"`
- PlannedValues plannedValues `json:"planned_values,omitempty"`
- ResourceChanges []rscChange `json:"resource_changes,omitempty"`
-}
-
-type plannedValues struct {
- RootModule module `json:"root_module,omitempty"`
-}
-
-type rscChange struct {
- Address string `json:"address,omitempty"`
- Type string `json:"type,omitempty"`
- Name string `json:"name,omitempty"`
- Change change `json:"change,omitempty"`
-}
-
-type change struct {
- Actions []string `json:"actions,omitempty"`
- Before map[string]interface{} `json:"before,omitempty"`
- After map[string]interface{} `json:"after,omitempty"`
-}
-
-type module struct {
- Resources []rsc `json:"resources,omitempty"`
-}
-
-type rsc struct {
- Address string `json:"address,omitempty"`
- Type string `json:"type,omitempty"`
- Name string `json:"name,omitempty"`
- AttributeValues map[string]interface{} `json:"values,omitempty"`
-}
-
-type Plan struct {
- path string
-}
-
-func NewPlan(path string) *Plan {
- return &Plan{path}
-}
-
-func (c *Plan) Write(analysis *analyser.Analysis) error {
- file := os.Stdout
- if !isStdOut(c.path) {
- f, err := os.OpenFile(c.path, os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0600)
- if err != nil {
- return err
- }
- defer f.Close()
- file = f
- }
- output := plan{FormatVersion: FormatVersion}
- output.PlannedValues.RootModule = addPlannedValues(analysis)
- output.ResourceChanges = addResourceChanges(analysis)
- jsonPlan, err := json.MarshalIndent(output, "", "\t")
- if err != nil {
- return err
- }
- if _, err := file.Write(jsonPlan); err != nil {
- return err
- }
- return nil
-}
-
-func addPlannedValues(analysis *analyser.Analysis) module {
- managedRsc := listRsc(analysis.Managed())
- unmanagedRsc := listRsc(analysis.Unmanaged())
- return module{
- Resources: append(managedRsc, unmanagedRsc...),
- }
-}
-
-func listRsc(resources []*resource.Resource) []rsc {
- var ret []rsc
- for _, res := range resources {
- r := rsc{
- Address: fmt.Sprintf("%s.%s", res.ResourceType(), res.ResourceId()),
- Type: res.ResourceType(),
- Name: res.ResourceId(),
- AttributeValues: *res.Attributes(),
- }
- ret = append(ret, r)
- }
- return ret
-}
-
-func addResourceChanges(analysis *analyser.Analysis) []rscChange {
- managedRsc := listRscChange(analysis.Managed(), "no-op")
- unmanagedRsc := listRscChange(analysis.Unmanaged(), "create")
- return append(managedRsc, unmanagedRsc...)
-}
-
-func listRscChange(resources []*resource.Resource, action string) []rscChange {
- var ret []rscChange
- for _, res := range resources {
- r := rscChange{
- Address: fmt.Sprintf("%s.%s", res.ResourceType(), res.ResourceId()),
- Type: res.ResourceType(),
- Name: res.ResourceId(),
- Change: change{
- Actions: []string{action},
- After: *res.Attributes(),
- },
- }
- if action == "no-op" {
- r.Change.Before = *res.Attributes()
- }
- ret = append(ret, r)
-
- }
- return ret
-}
diff --git a/pkg/cmd/scan/output/plan_test.go b/pkg/cmd/scan/output/plan_test.go
deleted file mode 100644
index 4571a596f..000000000
--- a/pkg/cmd/scan/output/plan_test.go
+++ /dev/null
@@ -1,126 +0,0 @@
-package output
-
-import (
- "bytes"
- "io"
- "os"
- "path"
- "testing"
-
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/stretchr/testify/assert"
-)
-
-func TestPlan_Write(t *testing.T) {
- tests := []struct {
- name string
- goldenfile string
- analysis *analyser.Analysis
- wantErr bool
- }{
- {
- name: "test jsonplan output",
- goldenfile: "output_plan.json",
- analysis: fakeAnalysisForJSONPlan(),
- wantErr: false,
- },
- {
- name: "test jsonplan output when no infra",
- goldenfile: "output_plan_empty.json",
- analysis: &analyser.Analysis{},
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- tempDir := t.TempDir()
- tempFile, err := os.CreateTemp(tempDir, "result")
- if err != nil {
- t.Fatal(err)
- }
- c := NewPlan(tempFile.Name())
- if err := c.Write(tt.analysis); (err != nil) != tt.wantErr {
- t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr)
- }
- result, err := os.ReadFile(tempFile.Name())
- if err != nil {
- t.Fatal(err)
- }
- expectedFilePath := path.Join("./testdata/", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, result, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, string(expected), string(result))
- })
- }
-}
-
-func TestPlan_Write_stdout(t *testing.T) {
- tests := []struct {
- name string
- path string
- goldenfile string
- analysis *analyser.Analysis
- wantErr bool
- }{
- {
- name: "test jsonplan output on stdout",
- goldenfile: "output_plan.json",
- path: "stdout",
- analysis: fakeAnalysisForJSONPlan(),
- wantErr: false,
- },
-
- {
- name: "test jsonplan output on /dev/stdout",
- goldenfile: "output_plan.json",
- path: "/dev/stdout",
- analysis: fakeAnalysisForJSONPlan(),
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- stdout := os.Stdout // keep backup of the real stdout
- r, w, _ := os.Pipe()
- os.Stdout = w
-
- c := NewPlan(tt.path)
- if err := c.Write(tt.analysis); (err != nil) != tt.wantErr {
- t.Errorf("Write() error = %v, wantErr %v", err, tt.wantErr)
- }
-
- outC := make(chan []byte)
- // copy the output in a separate goroutine so printing can't block indefinitely
- go func() {
- var buf bytes.Buffer
- _, _ = io.Copy(&buf, r)
- outC <- buf.Bytes()
- }()
-
- // back to normal state
- w.Close()
- os.Stdout = stdout // restoring the real stdout
- result := <-outC
-
- expectedFilePath := path.Join("./testdata/", tt.goldenfile)
- if *goldenfile.Update == tt.goldenfile {
- if err := os.WriteFile(expectedFilePath, result, 0600); err != nil {
- t.Fatal(err)
- }
- }
- expected, err := os.ReadFile(expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
- assert.Equal(t, string(expected), string(result))
- })
- }
-}
diff --git a/pkg/cmd/scan/output/testdata/output.html b/pkg/cmd/scan/output/testdata/output.html
deleted file mode 100644
index 0d3e7f774..000000000
--- a/pkg/cmd/scan/output/testdata/output.html
+++ /dev/null
@@ -1,811 +0,0 @@
-
-
-
- driftctl Scan Report
-
-
-
-
-
-
-
-
-
-
- Total Resources:
- 15
-
-
- Coverage:
- 26%
-
-
- Managed:
- 26.66%
- 4/15
-
-
- Unmanaged:
- 33.33%
- 5/15
-
-
- Missing:
- 40%
- 6/15
-
-
-
-
-
-
-
-
-
-
- Unmanaged Resources (5 )
-
-
-
-
- Missing Resources (6 )
-
-
-
-
- Alerts (0 )
-
-
-
-
-
-
-
-
-
-
-
-
-
- unmanaged-id-1
- aws_unmanaged_resource
-
-
-
- unmanaged-id-2
- aws_unmanaged_resource
-
-
-
- unmanaged-id-3
- aws_unmanaged_resource
-
-
-
- unmanaged-id-4
- aws_unmanaged_resource
-
-
-
- unmanaged-id-5
- aws_unmanaged_resource
-
-
-
-
-
-
No results matched your filters
-
-
-
-
-
-
-
-
-
-
-
-
-
- deleted-id-1
- (module.aws_deleted_resource.name)
- aws_deleted_resource
-
- tfstate://delete_state.tfstate
-
-
-
-
- deleted-id-2
- (aws_deleted_resource)
- aws_deleted_resource
-
-
-
-
-
-
- deleted-id-3
- (aws_deleted_resource.deleted-id-3)
- aws_deleted_resource
-
- tfstate://deleted/terraform.tfstate
-
-
-
-
- deleted-id-4
- (aws_deleted_resource.deleted-id-3)
- aws_deleted_resource
-
- tfstate://deleted/terraform.tfstate
-
-
-
-
- deleted-id-5
- (module-1.aws_deleted_resource.deleted-id-3)
- aws_deleted_resource
-
- tfstate://deleted/terraform.tfstate
-
-
-
-
- deleted-id-6
- (aws_deleted_resource)
- aws_deleted_resource
-
-
-
-
-
-
-
-
No results matched your filters
-
-
-
-
-
-
-
-
-
-
- An error occured listing aws_vpc: listing aws_vpc is forbidden: dummy error
-
-
-
-
- An error occured listing aws_sqs: listing aws_sqs is forbidden: dummy error
-
-
-
-
- An error occured listing aws_sns: listing aws_sns is forbidden: dummy error
-
-
-
-
-
-
No results matched your filters
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pkg/cmd/scan/output/testdata/output.json b/pkg/cmd/scan/output/testdata/output.json
deleted file mode 100644
index 3598df9ed..000000000
--- a/pkg/cmd/scan/output/testdata/output.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "summary": {
- "total_resources": 6,
- "total_unmanaged": 2,
- "total_missing": 2,
- "total_managed": 2,
- "total_iac_source_count": 3
- },
- "managed": [
- {
- "id": "diff-id-1",
- "type": "aws_diff_resource"
- },
- {
- "id": "no-diff-id-1",
- "type": "aws_no_diff_resource"
- }
- ],
- "unmanaged": [
- {
- "id": "unmanaged-id-1",
- "type": "aws_unmanaged_resource"
- },
- {
- "id": "unmanaged-id-2",
- "type": "aws_unmanaged_resource"
- }
- ],
- "missing": [
- {
- "id": "deleted-id-1",
- "type": "aws_deleted_resource",
- "source": {
- "source": "tfstate://delete_state.tfstate",
- "namespace": "module",
- "internal_name": "name"
- }
- },
- {
- "id": "deleted-id-2",
- "type": "aws_deleted_resource"
- }
- ],
- "coverage": 33,
- "alerts": null,
- "provider_name": "AWS",
- "provider_version": "3.19.0",
- "scan_duration": 12,
- "date": "2022-04-08T10:35:00Z"
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output.txt b/pkg/cmd/scan/output/testdata/output.txt
deleted file mode 100644
index 22905fad7..000000000
--- a/pkg/cmd/scan/output/testdata/output.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Found missing resources:
- - deleted-id-2 (aws_deleted_resource)
- From tfstate://delete_state.tfstate
- - deleted-id-1 (module.aws_deleted_resource.name)
- From tfstate://test_state.tfstate
- - test-id-1 (module.aws_test_resource.name)
- - test-id-2 (module.aws_test_resource.name)
-Found resources not covered by IaC:
- aws_resource:
- - test-id-2
- aws_testing_resource:
- - test-id-1
- aws_unmanaged_resource:
- - unmanaged-id-1
- - unmanaged-id-2
-Found 10 resource(s)
- - 20% coverage
- - 2 resource(s) managed by Terraform
- - 4 resource(s) not managed by Terraform
- - 4 resource(s) found in a Terraform state but missing on the cloud provider
diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json b/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json
deleted file mode 100644
index 97ca0464a..000000000
--- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "summary": {
- "total_resources": 0,
- "total_unmanaged": 0,
- "total_missing": 0,
- "total_managed": 0,
- "total_iac_source_count": 0
- },
- "managed": null,
- "unmanaged": null,
- "missing": null,
- "coverage": 0,
- "alerts": {
- "": [
- {
- "message": "An error occured listing aws_vpc: listing aws_vpc is forbidden: dummy error"
- },
- {
- "message": "An error occured listing aws_sqs: listing aws_sqs is forbidden: dummy error"
- },
- {
- "message": "An error occured listing aws_sns: listing aws_sns is forbidden: dummy error"
- }
- ]
- },
- "provider_name": "AWS",
- "provider_version": "3.19.0",
- "date": "2022-04-08T10:35:00Z"
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.txt b/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.txt
deleted file mode 100644
index 849dae899..000000000
--- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_aws.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Found 0 resource(s)
- - 0% coverage
-Congrats! Your infrastructure is fully in sync.
-An error occured listing aws_vpc: listing aws_vpc is forbidden: dummy error
-An error occured listing aws_sqs: listing aws_sqs is forbidden: dummy error
-An error occured listing aws_sns: listing aws_sns is forbidden: dummy error
-
-It seems that we got access denied exceptions while listing resources.
-The latest minimal read-only IAM policy for driftctl is always available here, please update yours: https://docs.driftctl.com/aws/policy
diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json b/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json
deleted file mode 100644
index e14d31ffe..000000000
--- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "summary": {
- "total_resources": 0,
- "total_unmanaged": 0,
- "total_missing": 0,
- "total_managed": 0,
- "total_iac_source_count": 0
- },
- "managed": null,
- "unmanaged": null,
- "missing": null,
- "coverage": 0,
- "alerts": {
- "": [
- {
- "message": "An error occured listing github_team: listing github_team is forbidden: dummy error"
- },
- {
- "message": "An error occured listing github_team_membership: listing github_team is forbidden: dummy error"
- }
- ]
- },
- "provider_name": "AWS",
- "provider_version": "3.19.0",
- "date": "2022-04-08T10:35:00Z"
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.txt b/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.txt
deleted file mode 100644
index 4d70d5b6a..000000000
--- a/pkg/cmd/scan/output/testdata/output_access_denied_alert_github.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-Found 0 resource(s)
- - 0% coverage
-Congrats! Your infrastructure is fully in sync.
-An error occured listing github_team: listing github_team is forbidden: dummy error
-An error occured listing github_team_membership: listing github_team is forbidden: dummy error
-
-It seems that we got access denied exceptions while listing resources.
-Please be sure that your Github token has the right permissions, check the last up-to-date documentation there: https://docs.driftctl.com/github/policy
diff --git a/pkg/cmd/scan/output/testdata/output_coverage_100.html b/pkg/cmd/scan/output/testdata/output_coverage_100.html
deleted file mode 100644
index 4f030be64..000000000
--- a/pkg/cmd/scan/output/testdata/output_coverage_100.html
+++ /dev/null
@@ -1,619 +0,0 @@
-
-
-
- driftctl Scan Report
-
-
-
-
-
-
-
-
-
-
- Total Resources:
- 1
-
-
- Coverage:
- 100%
-
-
- Managed:
- 100%
- 1/1
-
-
- Unmanaged:
- 0%
- 0/1
-
-
- Missing:
- 0%
- 0/1
-
-
-
-
- Congrats! Your infrastructure is in sync
-
-
-
-
-
-
-
diff --git a/pkg/cmd/scan/output/testdata/output_empty.html b/pkg/cmd/scan/output/testdata/output_empty.html
deleted file mode 100644
index 3f08d6678..000000000
--- a/pkg/cmd/scan/output/testdata/output_empty.html
+++ /dev/null
@@ -1,619 +0,0 @@
-
-
-
- driftctl Scan Report
-
-
-
-
-
-
-
-
-
-
- Total Resources:
- 0
-
-
- Coverage:
- 0%
-
-
- Managed:
- 0%
- 0/0
-
-
- Unmanaged:
- 0%
- 0/0
-
-
- Missing:
- 0%
- 0/0
-
-
-
-
- Congrats! Your infrastructure is in sync
-
-
-
-
-
-
-
diff --git a/pkg/cmd/scan/output/testdata/output_empty_attributes.txt b/pkg/cmd/scan/output/testdata/output_empty_attributes.txt
deleted file mode 100644
index 026531e78..000000000
--- a/pkg/cmd/scan/output/testdata/output_empty_attributes.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Found missing resources:
- From tfstate://state.tfstate
- - dfjkgnbsgj (module.FakeResourceStringer.name)
-Found resources not covered by IaC:
- FakeResourceStringer:
- - duysgkfdjfdgfhd
-Found 3 resource(s)
- - 33% coverage
- - 1 resource(s) managed by Terraform
- - 1 resource(s) not managed by Terraform
- - 1 resource(s) found in a Terraform state but missing on the cloud provider
diff --git a/pkg/cmd/scan/output/testdata/output_multiples_times.json b/pkg/cmd/scan/output/testdata/output_multiples_times.json
deleted file mode 100644
index d7b7d08cd..000000000
--- a/pkg/cmd/scan/output/testdata/output_multiples_times.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "summary": {
- "total_resources": 0,
- "total_unmanaged": 0,
- "total_missing": 0,
- "total_managed": 0,
- "total_iac_source_count": 0
- },
- "managed": null,
- "unmanaged": null,
- "missing": null,
- "coverage": 0,
- "alerts": null,
- "provider_name": "",
- "provider_version": "",
- "date": "0001-01-01T00:00:00Z"
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output_no_drift.txt b/pkg/cmd/scan/output/testdata/output_no_drift.txt
deleted file mode 100644
index 767d91ce3..000000000
--- a/pkg/cmd/scan/output/testdata/output_no_drift.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Found 5 resource(s)
- - 100% coverage
-Congrats! Your infrastructure is fully in sync.
diff --git a/pkg/cmd/scan/output/testdata/output_plan.json b/pkg/cmd/scan/output/testdata/output_plan.json
deleted file mode 100644
index 3e83a31a5..000000000
--- a/pkg/cmd/scan/output/testdata/output_plan.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "format_version": "0.1",
- "planned_values": {
- "root_module": {
- "resources": [
- {
- "address": "aws_managed_resource.managed-id-1",
- "type": "aws_managed_resource",
- "name": "managed-id-1",
- "values": {
- "name": "First managed resource"
- }
- },
- {
- "address": "aws_managed_resource.managed-id-2",
- "type": "aws_managed_resource",
- "name": "managed-id-2",
- "values": {
- "name": "Second managed resource"
- }
- },
- {
- "address": "aws_unmanaged_resource.unmanaged-id-1",
- "type": "aws_unmanaged_resource",
- "name": "unmanaged-id-1",
- "values": {
- "name": "First unmanaged resource"
- }
- },
- {
- "address": "aws_unmanaged_resource.unmanaged-id-2",
- "type": "aws_unmanaged_resource",
- "name": "unmanaged-id-2",
- "values": {
- "name": "Second unmanaged resource"
- }
- }
- ]
- }
- },
- "resource_changes": [
- {
- "address": "aws_managed_resource.managed-id-1",
- "type": "aws_managed_resource",
- "name": "managed-id-1",
- "change": {
- "actions": [
- "no-op"
- ],
- "before": {
- "name": "First managed resource"
- },
- "after": {
- "name": "First managed resource"
- }
- }
- },
- {
- "address": "aws_managed_resource.managed-id-2",
- "type": "aws_managed_resource",
- "name": "managed-id-2",
- "change": {
- "actions": [
- "no-op"
- ],
- "before": {
- "name": "Second managed resource"
- },
- "after": {
- "name": "Second managed resource"
- }
- }
- },
- {
- "address": "aws_unmanaged_resource.unmanaged-id-1",
- "type": "aws_unmanaged_resource",
- "name": "unmanaged-id-1",
- "change": {
- "actions": [
- "create"
- ],
- "after": {
- "name": "First unmanaged resource"
- }
- }
- },
- {
- "address": "aws_unmanaged_resource.unmanaged-id-2",
- "type": "aws_unmanaged_resource",
- "name": "unmanaged-id-2",
- "change": {
- "actions": [
- "create"
- ],
- "after": {
- "name": "Second unmanaged resource"
- }
- }
- }
- ]
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output_plan_empty.json b/pkg/cmd/scan/output/testdata/output_plan_empty.json
deleted file mode 100644
index e96993896..000000000
--- a/pkg/cmd/scan/output/testdata/output_plan_empty.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "format_version": "0.1",
- "planned_values": {
- "root_module": {}
- }
-}
\ No newline at end of file
diff --git a/pkg/cmd/scan/output/testdata/output_sync.html b/pkg/cmd/scan/output/testdata/output_sync.html
deleted file mode 100644
index 6fc4ad4d5..000000000
--- a/pkg/cmd/scan/output/testdata/output_sync.html
+++ /dev/null
@@ -1,619 +0,0 @@
-
-
-
- driftctl Scan Report
-
-
-
-
-
-
-
-
-
-
- Total Resources:
- 1
-
-
- Coverage:
- 100%
-
-
- Managed:
- 100%
- 1/1
-
-
- Unmanaged:
- 0%
- 0/1
-
-
- Missing:
- 0%
- 0/1
-
-
-
-
- Congrats! Your infrastructure is in sync
-
-
-
-
-
-
-
diff --git a/pkg/cmd/scan/output/testdata/output_without_deep.txt b/pkg/cmd/scan/output/testdata/output_without_deep.txt
deleted file mode 100644
index 53945c1ed..000000000
--- a/pkg/cmd/scan/output/testdata/output_without_deep.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-Found resources not covered by IaC:
- aws_unmanaged_resource:
- - unmanaged-id-1
-Found 1 resource(s)
- - 0% coverage
- - 0 resource(s) managed by Terraform
- - 1 resource(s) not managed by Terraform
- - 0 resource(s) found in a Terraform state but missing on the cloud provider
diff --git a/pkg/cmd/scan_test.go b/pkg/cmd/scan_test.go
deleted file mode 100644
index 0348a549c..000000000
--- a/pkg/cmd/scan_test.go
+++ /dev/null
@@ -1,193 +0,0 @@
-package cmd
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/pkg"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- "github.com/snyk/driftctl/test"
- "github.com/spf13/cobra"
- "github.com/stretchr/testify/assert"
-)
-
-// TODO: Test successful scan
-func TestScanCmd(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewScanCmd(&pkg.ScanOptions{}))
- // test.Execute(rootCmd, "scan")
-
-}
-
-func TestScanCmd_Valid(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- scanCmd := NewScanCmd(&pkg.ScanOptions{})
- scanCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- rootCmd.AddCommand(scanCmd)
-
- cases := []struct {
- args []string
- }{
- {args: []string{"scan"}},
- {args: []string{"scan", "-t", "aws+tf"}},
- {args: []string{"scan", "--to", "aws+tf"}},
- {args: []string{"scan", "-f", "tfstate://test"}},
- {args: []string{"scan", "--from", "tfstate://test"}},
- {args: []string{"scan", "--from", "tfstate://test", "--from", "tfstate://test2"}},
- {args: []string{"scan", "-t", "aws+tf", "-f", "tfstate://test"}},
- {args: []string{"scan", "--to", "aws+tf", "--from", "tfstate://test"}},
- {args: []string{"scan", "--to", "aws+tf", "--from", "tfstate+https://github.com/state.tfstate"}},
- {args: []string{"scan", "--to", "aws+tf", "--from", "tfstate+tfcloud://workspace_id"}},
- {args: []string{"scan", "--tfc-token", "token"}},
- {args: []string{"scan", "--filter", "Type=='aws_s3_bucket'"}},
- {args: []string{"scan", "--strict"}},
- {args: []string{"scan", "--tf-provider-version", "1.2.3"}},
- {args: []string{"scan", "--tf-provider-version", "3.30.2"}},
- {args: []string{"scan", "--driftignore", "./path/to/driftignore.s3"}},
- {args: []string{"scan", "--driftignore", ".driftignore"}},
- {args: []string{"scan", "-o", "html://result.html", "-o", "json://result.json"}},
- {args: []string{"scan", "--tf-lockfile", "../.terraform.lock.hcl"}},
- {args: []string{"scan", "--only-unmanaged"}},
- }
-
- for _, tt := range cases {
- output, err := test.Execute(rootCmd, tt.args...)
- if output != "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
- }
-}
-
-func TestScanCmd_Invalid(t *testing.T) {
- cases := []struct {
- args []string
- expected string
- }{
- {args: []string{"scan", "test"}, expected: `unknown command "test" for "root scan"`},
- {args: []string{"scan", "-e"}, expected: `unknown shorthand flag: 'e' in -e`},
- {args: []string{"scan", "--error"}, expected: `unknown flag: --error`},
- {args: []string{"scan", "-t"}, expected: `flag needs an argument: 't' in -t`},
- {args: []string{"scan", "-t", "glou"}, expected: "unsupported cloud provider 'glou'\nValid values are: aws+tf,github+tf,gcp+tf,azure+tf"},
- {args: []string{"scan", "--to"}, expected: `flag needs an argument: --to`},
- {args: []string{"scan", "--to", "glou"}, expected: "unsupported cloud provider 'glou'\nValid values are: aws+tf,github+tf,gcp+tf,azure+tf"},
- {args: []string{"scan", "-f"}, expected: `flag needs an argument: 'f' in -f`},
- {args: []string{"scan", "--from"}, expected: `flag needs an argument: --from`},
- {args: []string{"scan", "--from"}, expected: `flag needs an argument: --from`},
- {args: []string{"scan", "--from", "tosdgjhgsdhgkjs"}, expected: "Unable to parse from flag 'tosdgjhgsdhgkjs': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"},
- {args: []string{"scan", "--from", "://"}, expected: "Unable to parse from flag '://': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"},
- {args: []string{"scan", "--from", "://test"}, expected: "Unable to parse from flag '://test': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"},
- {args: []string{"scan", "--from", "tosdgjhgsdhgkjs://"}, expected: "Unable to parse from flag 'tosdgjhgsdhgkjs://': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"},
- {args: []string{"scan", "--from", "terraform+foo+bar://test"}, expected: "Unable to parse from scheme 'terraform+foo+bar': \nAccepted schemes are: tfstate://,tfstate+s3://,tfstate+http://,tfstate+https://,tfstate+tfcloud://,tfstate+gs://,tfstate+azurerm://"},
- {args: []string{"scan", "--from", "unsupported://test"}, expected: "Unsupported IaC source 'unsupported': \nAccepted values are: tfstate"},
- {args: []string{"scan", "--from", "tfstate+foobar://test"}, expected: "Unsupported IaC backend 'foobar': \nAccepted values are: s3,http,https,tfcloud,gs,azurerm"},
- {args: []string{"scan", "--from", "tfstate:///tmp/test", "--from", "tfstate+toto://test"}, expected: "Unsupported IaC backend 'toto': \nAccepted values are: s3,http,https,tfcloud,gs,azurerm"},
- {args: []string{"scan", "--filter", "Type='test'"}, expected: "unable to parse filter expression: SyntaxError: Expected tRbracket, received: tUnknown"},
- {args: []string{"scan", "--filter", "Type='test'", "--filter", "Type='test2'"}, expected: "Filter flag should be specified only once"},
- {args: []string{"scan", "--tf-provider-version", ".30.2"}, expected: "Invalid version argument .30.2, expected a valid semver string (e.g. 2.13.4)"},
- {args: []string{"scan", "--tf-provider-version", "foo"}, expected: "Invalid version argument foo, expected a valid semver string (e.g. 2.13.4)"},
- {args: []string{"scan", "--driftignore"}, expected: "flag needs an argument: --driftignore"},
- {args: []string{"scan", "--tf-lockfile"}, expected: "flag needs an argument: --tf-lockfile"},
- }
-
- for _, tt := range cases {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewScanCmd(&pkg.ScanOptions{}))
- _, err := test.Execute(rootCmd, tt.args...)
- if err == nil {
- t.Errorf("Invalid arg should generate error")
- }
- if err.Error() != tt.expected {
- t.Errorf("Expected '%v', got '%v'", tt.expected, err)
- }
- }
-}
-
-func Test_Options(t *testing.T) {
- cases := []struct {
- name string
- args []string
- assertOptions func(*testing.T, *pkg.ScanOptions)
- }{
- {
- name: "lockfile should be ignored by tf-provider-version flag",
- args: []string{"scan", "--to", "aws+tf", "--tf-lockfile", "testdata/terraform_valid.lock.hcl", "--tf-provider-version", "3.41.0"},
- assertOptions: func(t *testing.T, opts *pkg.ScanOptions) {
- assert.Equal(t, "3.41.0", opts.ProviderVersion)
- },
- },
- {
- name: "should get provider version from lockfile",
- args: []string{"scan", "--to", "aws+tf", "--tf-lockfile", "testdata/terraform_valid.lock.hcl"},
- assertOptions: func(t *testing.T, opts *pkg.ScanOptions) {
- assert.Equal(t, "3.47.0", opts.ProviderVersion)
- },
- },
- {
- name: "should not find provider version in lockfile",
- args: []string{"scan", "--to", "gcp+tf", "--tf-lockfile", "testdata/terraform_valid.lock.hcl"},
- assertOptions: func(t *testing.T, opts *pkg.ScanOptions) {
- assert.Equal(t, "", opts.ProviderVersion)
- },
- },
- {
- name: "should fail to read lockfile with silent error",
- args: []string{"scan", "--to", "gcp+tf", "--tf-lockfile", "testdata/terraform_invalid.lock.hcl"},
- assertOptions: func(t *testing.T, opts *pkg.ScanOptions) {
- assert.Equal(t, "", opts.ProviderVersion)
- },
- },
- }
-
- for _, tt := range cases {
- t.Run(tt.name, func(t *testing.T) {
- opts := &pkg.ScanOptions{}
-
- rootCmd := &cobra.Command{Use: "root"}
- scanCmd := NewScanCmd(opts)
- scanCmd.RunE = func(_ *cobra.Command, args []string) error { return nil }
- rootCmd.AddCommand(scanCmd)
-
- _, err := test.Execute(rootCmd, tt.args...)
- assert.NoError(t, err)
- tt.assertOptions(t, opts)
- })
- }
-}
-
-func Test_RetrieveBackendsFromHCL(t *testing.T) {
- cases := []struct {
- name string
- dir string
- expected []config.SupplierConfig
- wantErr error
- }{
- {
- name: "should parse s3 backend and ignore invalid file",
- dir: "testdata/backend/s3",
- expected: []config.SupplierConfig{
- {
- Key: state.TerraformStateReaderSupplier,
- Backend: backend.BackendKeyS3,
- Path: "terraform-state-prod/network/terraform.tfstate",
- },
- },
- },
- {
- name: "should not find any match and return empty slice",
- dir: "testdata/backend",
- expected: []config.SupplierConfig{},
- },
- }
-
- for _, tt := range cases {
- t.Run(tt.name, func(t *testing.T) {
- configs, err := retrieveBackendsFromHCL(tt.dir)
- assert.Equal(t, tt.wantErr, err)
- assert.Equal(t, tt.expected, configs)
- })
- }
-}
diff --git a/pkg/cmd/testdata/backend/s3/invalid.tf b/pkg/cmd/testdata/backend/s3/invalid.tf
deleted file mode 100644
index 06608d73e..000000000
--- a/pkg/cmd/testdata/backend/s3/invalid.tf
+++ /dev/null
@@ -1 +0,0 @@
-invalid {}
diff --git a/pkg/cmd/testdata/backend/s3/s3.tf b/pkg/cmd/testdata/backend/s3/s3.tf
deleted file mode 100644
index fbc1c9831..000000000
--- a/pkg/cmd/testdata/backend/s3/s3.tf
+++ /dev/null
@@ -1,7 +0,0 @@
-terraform {
- backend "s3" {
- bucket = "terraform-state-prod"
- key = "network/terraform.tfstate"
- region = "us-east-1"
- }
-}
diff --git a/pkg/cmd/testdata/fmt/expected_console.txt b/pkg/cmd/testdata/fmt/expected_console.txt
deleted file mode 100644
index 45098cc9c..000000000
--- a/pkg/cmd/testdata/fmt/expected_console.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-Found missing resources:
- - testuser1 (aws_iam_user)
- - testrole1 (aws_iam_role)
-Found resources not covered by IaC:
- aws_iam_access_key:
- - AKIAXYUOJZ3H5YCXF34G
- - AKIAXYUOJZ3HV2LTLXD2
- - AKIAXYUOJZ3HUSPPQQ4L
- aws_iam_role:
- - OrganizationAccountAccessRole
- - driftctl_assume\_role
- aws_iam_role_policy:
- - OrganizationAccountAccessRole:AdministratorAccess
- - driftctl_assume_role:driftctl_policy.10
- aws_iam_user:
- - driftctl
- - sundowndev
- - test_user
- aws_iam_user_policy:
- - driftctl:driftctlrole
-Found 14 resource(s)
- - 7% coverage
- - 1 resource(s) managed by Terraform
- - 11 resource(s) not managed by Terraform
- - 2 resource(s) found in a Terraform state but missing on the cloud provider
diff --git a/pkg/cmd/testdata/fmt/input_stdin_invalid.json b/pkg/cmd/testdata/fmt/input_stdin_invalid.json
deleted file mode 100644
index e466dcbd8..000000000
--- a/pkg/cmd/testdata/fmt/input_stdin_invalid.json
+++ /dev/null
@@ -1 +0,0 @@
-invalid
\ No newline at end of file
diff --git a/pkg/cmd/testdata/fmt/input_stdin_valid.json b/pkg/cmd/testdata/fmt/input_stdin_valid.json
deleted file mode 100644
index 0cb4261e6..000000000
--- a/pkg/cmd/testdata/fmt/input_stdin_valid.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "summary": {
- "total_resources": 12,
- "total_unmanaged": 11,
- "total_missing": 0,
- "total_managed": 1
- },
- "managed": [
- {
- "id": "test-20210416154114486700000001",
- "type": "aws_s3_bucket"
- }
- ],
- "unmanaged": [
- {
- "id": "driftctl",
- "type": "aws_iam_user"
- },
- {
- "id": "sundowndev",
- "type": "aws_iam_user"
- },
- {
- "id": "test_user",
- "type": "aws_iam_user"
- },
- {
- "id": "OrganizationAccountAccessRole:AdministratorAccess",
- "type": "aws_iam_role_policy"
- },
- {
- "id": "driftctl_assume_role:driftctl_policy.10",
- "type": "aws_iam_role_policy"
- },
- {
- "id": "OrganizationAccountAccessRole",
- "type": "aws_iam_role"
- },
- {
- "id": "driftctl_assume\\_role",
- "type": "aws_iam_role"
- },
- {
- "id": "driftctl:driftctlrole",
- "type": "aws_iam_user_policy"
- },
- {
- "id": "AKIAXYUOJZ3H5YCXF34G",
- "type": "aws_iam_access_key"
- },
- {
- "id": "AKIAXYUOJZ3HV2LTLXD2",
- "type": "aws_iam_access_key"
- },
- {
- "id": "AKIAXYUOJZ3HUSPPQQ4L",
- "type": "aws_iam_access_key"
- }
- ],
- "missing": [
- {
- "id": "testuser1",
- "type": "aws_iam_user"
- },
- {
- "id": "testrole1",
- "type": "aws_iam_role"
- }
- ],
- "differences": [
- {
- "res": {
- "id": "test-20210416154114486700000001",
- "type": "aws_s3_bucket"
- },
- "changelog": [
- {
- "type": "update",
- "path": [
- "BucketPrefix"
- ],
- "from": "test-",
- "to": null,
- "computed": false
- },
- {
- "type": "create",
- "path": [
- "Tags",
- "tag2"
- ],
- "from": null,
- "to": "value",
- "computed": false
- },
- {
- "type": "update",
- "path": [
- "Tags",
- "test"
- ],
- "from": "test",
- "to": "test1",
- "computed": false
- }
- ]
- }
- ],
- "coverage": 8,
- "alerts": null
-}
\ No newline at end of file
diff --git a/pkg/cmd/testdata/input_stdin_empty.json b/pkg/cmd/testdata/input_stdin_empty.json
deleted file mode 100644
index 0da4a07a5..000000000
--- a/pkg/cmd/testdata/input_stdin_empty.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "summary": {
- "total_resources": 0,
- "total_changed": 0,
- "total_unmanaged": 0,
- "total_missing": 0,
- "total_managed": 0
- },
- "managed": null,
- "unmanaged": null,
- "missing": null,
- "differences": null,
- "coverage": 0,
- "alerts": null
-}
\ No newline at end of file
diff --git a/pkg/cmd/testdata/input_stdin_invalid.json b/pkg/cmd/testdata/input_stdin_invalid.json
deleted file mode 100644
index e466dcbd8..000000000
--- a/pkg/cmd/testdata/input_stdin_invalid.json
+++ /dev/null
@@ -1 +0,0 @@
-invalid
\ No newline at end of file
diff --git a/pkg/cmd/testdata/input_stdin_valid.json b/pkg/cmd/testdata/input_stdin_valid.json
deleted file mode 100644
index c8c743abc..000000000
--- a/pkg/cmd/testdata/input_stdin_valid.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "summary": {
- "total_resources": 12,
- "total_unmanaged": 11,
- "total_missing": 0,
- "total_managed": 1
- },
- "managed": [
- {
- "id": "test-20210416154114486700000001",
- "type": "aws_s3_bucket"
- }
- ],
- "unmanaged": [
- {
- "id": "driftctl",
- "type": "aws_iam_user"
- },
- {
- "id": "sundowndev",
- "type": "aws_iam_user"
- },
- {
- "id": "test_user",
- "type": "aws_iam_user"
- },
- {
- "id": "OrganizationAccountAccessRole:AdministratorAccess",
- "type": "aws_iam_role_policy"
- },
- {
- "id": "driftctl_assume_role:driftctl_policy.10",
- "type": "aws_iam_role_policy"
- },
- {
- "id": "OrganizationAccountAccessRole",
- "type": "aws_iam_role"
- },
- {
- "id": "driftctl_assume\\_role",
- "type": "aws_iam_role"
- },
- {
- "id": "driftctl:driftctlrole",
- "type": "aws_iam_user_policy"
- },
- {
- "id": "AKIAXYUOJZ3H5YCXF34G",
- "type": "aws_iam_access_key"
- },
- {
- "id": "AKIAXYUOJZ3HV2LTLXD2",
- "type": "aws_iam_access_key"
- },
- {
- "id": "AKIAXYUOJZ3HUSPPQQ4L",
- "type": "aws_iam_access_key"
- }
- ],
- "missing": [
- {
- "id": "testuser1",
- "type": "aws_iam_user"
- },
- {
- "id": "testrole1",
- "type": "aws_iam_role"
- }
- ],
- "coverage": 8,
- "alerts": null
-}
\ No newline at end of file
diff --git a/pkg/cmd/testdata/output_stdin_empty.txt b/pkg/cmd/testdata/output_stdin_empty.txt
deleted file mode 100644
index 8b1378917..000000000
--- a/pkg/cmd/testdata/output_stdin_empty.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/pkg/cmd/testdata/output_stdin_valid.txt b/pkg/cmd/testdata/output_stdin_valid.txt
deleted file mode 100644
index dc7fba365..000000000
--- a/pkg/cmd/testdata/output_stdin_valid.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-# Resources not covered by IaC
-aws_iam_user.driftctl
-aws_iam_user.sundowndev
-aws_iam_user.test_user
-aws_iam_role_policy.OrganizationAccountAccessRole:AdministratorAccess
-aws_iam_role_policy.driftctl_assume_role:driftctl_policy\.10
-aws_iam_role.OrganizationAccountAccessRole
-aws_iam_role.driftctl_assume\\_role
-aws_iam_user_policy.driftctl:driftctlrole
-aws_iam_access_key.AKIAXYUOJZ3H5YCXF34G
-aws_iam_access_key.AKIAXYUOJZ3HV2LTLXD2
-aws_iam_access_key.AKIAXYUOJZ3HUSPPQQ4L
-# Missing resources
-aws_iam_user.testuser1
-aws_iam_role.testrole1
diff --git a/pkg/cmd/testdata/output_stdin_valid_filter.txt b/pkg/cmd/testdata/output_stdin_valid_filter.txt
deleted file mode 100644
index d13a46a0a..000000000
--- a/pkg/cmd/testdata/output_stdin_valid_filter.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Missing resources
-aws_iam_user.testuser1
-aws_iam_role.testrole1
diff --git a/pkg/cmd/testdata/output_stdin_valid_filter2.txt b/pkg/cmd/testdata/output_stdin_valid_filter2.txt
deleted file mode 100644
index 703047160..000000000
--- a/pkg/cmd/testdata/output_stdin_valid_filter2.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-# Resources not covered by IaC
-aws_iam_user.driftctl
-aws_iam_user.sundowndev
-aws_iam_user.test_user
-aws_iam_role_policy.OrganizationAccountAccessRole:AdministratorAccess
-aws_iam_role_policy.driftctl_assume_role:driftctl_policy\.10
-aws_iam_role.OrganizationAccountAccessRole
-aws_iam_role.driftctl_assume\\_role
-aws_iam_user_policy.driftctl:driftctlrole
-aws_iam_access_key.AKIAXYUOJZ3H5YCXF34G
-aws_iam_access_key.AKIAXYUOJZ3HV2LTLXD2
-aws_iam_access_key.AKIAXYUOJZ3HUSPPQQ4L
diff --git a/pkg/cmd/testdata/terraform_invalid.lock.hcl b/pkg/cmd/testdata/terraform_invalid.lock.hcl
deleted file mode 100644
index fd760c98b..000000000
--- a/pkg/cmd/testdata/terraform_invalid.lock.hcl
+++ /dev/null
@@ -1,17 +0,0 @@
-provider "registry.terraform.io/hashicorp/aws" {
- constraints = "~> 3.47.0"
- hashes = [
- "h1:gXncRh1KtgLNMeb3/bYq5CvGfy8YTR+n6ds1noc5ggc=",
- "zh:07bb6bda5b9fdb782dd568a2e85cfe0ab108770e2218f3411e57ed845c58af40",
- "zh:0926b161a109e75bdc8691e8a32f568b4cd77a55510cf27573261fb5ba382287",
- "zh:0a91adf25a78ad31d547da513db24f493d27592d3675ed291a7698351c30992d",
- "zh:0f95f01e3bf0dab306ed86afb1ca00e01ce94ed6696765158d544b1569483b13",
- "zh:10466a520c617354ebbee9366267e0878b091a15d49cb97846511e952bd9db90",
- "zh:2fc627d3dc5a6df904591c673d640e6d3a697dcc12d1a43cf71066a47314f7c0",
- "zh:a85476047ddb359acdc0db5b9cbe0a7e13c4e65289b03f6c93303d0452db450b",
- "zh:cbadde98d44e8953cc78487b6788b97cff12632e9fda065bb970b001205662cb",
- "zh:db05702323c5fa253d5e067458340b89126738b8f6a9847465ee3e75b0f28320",
- "zh:e16cf52ff3b067adb33a75b89c03f9b03e666e2d45adb2ee296ae12b36cd5776",
- "zh:fcb8f73f7f5e195e3345d5694b526e0d5e77562d2e7dd468366ee15b1be6b418",
- ]
-}
diff --git a/pkg/cmd/testdata/terraform_valid.lock.hcl b/pkg/cmd/testdata/terraform_valid.lock.hcl
deleted file mode 100644
index 0fbf55a43..000000000
--- a/pkg/cmd/testdata/terraform_valid.lock.hcl
+++ /dev/null
@@ -1,18 +0,0 @@
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.47.0"
- constraints = "~> 3.47.0"
- hashes = [
- "h1:gXncRh1KtgLNMeb3/bYq5CvGfy8YTR+n6ds1noc5ggc=",
- "zh:07bb6bda5b9fdb782dd568a2e85cfe0ab108770e2218f3411e57ed845c58af40",
- "zh:0926b161a109e75bdc8691e8a32f568b4cd77a55510cf27573261fb5ba382287",
- "zh:0a91adf25a78ad31d547da513db24f493d27592d3675ed291a7698351c30992d",
- "zh:0f95f01e3bf0dab306ed86afb1ca00e01ce94ed6696765158d544b1569483b13",
- "zh:10466a520c617354ebbee9366267e0878b091a15d49cb97846511e952bd9db90",
- "zh:2fc627d3dc5a6df904591c673d640e6d3a697dcc12d1a43cf71066a47314f7c0",
- "zh:a85476047ddb359acdc0db5b9cbe0a7e13c4e65289b03f6c93303d0452db450b",
- "zh:cbadde98d44e8953cc78487b6788b97cff12632e9fda065bb970b001205662cb",
- "zh:db05702323c5fa253d5e067458340b89126738b8f6a9847465ee3e75b0f28320",
- "zh:e16cf52ff3b067adb33a75b89c03f9b03e666e2d45adb2ee296ae12b36cd5776",
- "zh:fcb8f73f7f5e195e3345d5694b526e0d5e77562d2e7dd468366ee15b1be6b418",
- ]
-}
diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go
deleted file mode 100644
index aa9263db3..000000000
--- a/pkg/cmd/version.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package cmd
-
-import (
- "text/template"
-
- "github.com/snyk/driftctl/pkg/version"
-
- "github.com/spf13/cobra"
-)
-
-func NewVersionCmd() *cobra.Command {
- cmd := &cobra.Command{
- Use: "version",
- Short: "Display driftctl version",
- Long: "Display driftctl version",
- Args: cobra.NoArgs,
- Run: func(cmd *cobra.Command, args []string) {
- data := struct {
- Version string
- }{Version: version.Current()}
- t := template.Must(template.New("version").Parse(versionTemplate))
- err := t.Execute(cmd.OutOrStdout(), data)
- if err != nil {
- panic(err)
- }
- },
- }
- return cmd
-}
diff --git a/pkg/cmd/version_test.go b/pkg/cmd/version_test.go
deleted file mode 100644
index c67e1ddcf..000000000
--- a/pkg/cmd/version_test.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package cmd
-
-import (
- "fmt"
- "testing"
-
- "github.com/snyk/driftctl/pkg/version"
- "github.com/snyk/driftctl/test"
-
- "github.com/spf13/cobra"
-)
-
-func TestVersionCmd(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewVersionCmd())
-
- output, err := test.Execute(rootCmd, "version")
- if output == "" {
- t.Errorf("Unexpected output: %v", output)
- }
- if err != nil {
- t.Errorf("Unexpected error: %v", err)
- }
-
- expected := fmt.Sprintf("%s\n", version.Current())
- if output != expected {
- t.Errorf("Expected %v, got %v", expected, output)
- }
-}
-
-func TestVersionCmd_Invalid(t *testing.T) {
- rootCmd := &cobra.Command{Use: "root"}
- rootCmd.AddCommand(NewVersionCmd())
-
- _, err := test.Execute(rootCmd, "version", "test")
- if err == nil {
- t.Errorf("Invalid arg should generate error")
- }
-
- expected := `unknown command "test" for "root version"`
- if err.Error() != expected {
- t.Errorf("Expected %v, got %v", expected, err)
- }
-}
diff --git a/pkg/config/config.go b/pkg/config/config.go
deleted file mode 100644
index d630e56d5..000000000
--- a/pkg/config/config.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package config
-
-import "github.com/spf13/viper"
-
-func Init() {
- _ = viper.BindEnv("log_level")
- viper.AutomaticEnv()
- viper.SetEnvPrefix("dctl")
-}
-
-func IsSnyk() bool {
- return viper.GetBool("IS_SNYK")
-}
diff --git a/pkg/driftctl.go b/pkg/driftctl.go
deleted file mode 100644
index 17efeb2b6..000000000
--- a/pkg/driftctl.go
+++ /dev/null
@@ -1,226 +0,0 @@
-package pkg
-
-import (
- "fmt"
- "time"
-
- "github.com/jmespath/go-jmespath"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/pkg/cmd/scan/output"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- "github.com/snyk/driftctl/pkg/memstore"
- "github.com/snyk/driftctl/pkg/middlewares"
- globaloutput "github.com/snyk/driftctl/pkg/output"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-type FmtOptions struct {
- Output output.OutputConfig
-}
-
-type ScanOptions struct {
- Coverage bool
- Detect bool
- From []config.SupplierConfig
- To string
- Output []output.OutputConfig
- Filter *jmespath.JMESPath
- Quiet bool
- BackendOptions *backend.Options
- StrictMode bool
- DisableTelemetry bool
- ProviderVersion string
- ConfigDir string
- DriftignorePath string
- Driftignores []string
-}
-
-type DriftCTL struct {
- remoteSupplier resource.Supplier
- iacSupplier dctlresource.IaCSupplier
- alerter alerter.AlerterInterface
- analyzer *analyser.Analyzer
- resourceFactory resource.ResourceFactory
- scanProgress globaloutput.Progress
- iacProgress globaloutput.Progress
- resourceSchemaRepository dctlresource.SchemaRepositoryInterface
- opts *ScanOptions
- store memstore.Store
-}
-
-func NewDriftCTL(remoteSupplier resource.Supplier,
- iacSupplier dctlresource.IaCSupplier,
- alerter *alerter.Alerter,
- analyzer *analyser.Analyzer,
- resFactory resource.ResourceFactory,
- opts *ScanOptions,
- scanProgress globaloutput.Progress,
- iacProgress globaloutput.Progress,
- resourceSchemaRepository dctlresource.SchemaRepositoryInterface,
- store memstore.Store) *DriftCTL {
- return &DriftCTL{
- remoteSupplier,
- iacSupplier,
- alerter,
- analyzer,
- resFactory,
- scanProgress,
- iacProgress,
- resourceSchemaRepository,
- opts,
- store,
- }
-}
-
-func (d DriftCTL) Run() (*analyser.Analysis, error) {
- start := time.Now()
- remoteResources, resourcesFromState, err := d.scan()
- if err != nil {
- return nil, err
- }
-
- middleware := middlewares.NewChain(
- middlewares.NewRoute53RecordIDReconcilier(),
- middlewares.NewRoute53DefaultZoneRecordSanitizer(),
- middlewares.NewS3BucketAcl(),
- middlewares.NewAwsInstanceBlockDeviceResourceMapper(d.resourceFactory),
- middlewares.NewAwsDefaultSecurityGroupRule(),
- middlewares.NewVPCDefaultSecurityGroupSanitizer(),
- middlewares.NewVPCSecurityGroupRuleSanitizer(d.resourceFactory),
- middlewares.NewIamPolicyAttachmentTransformer(d.resourceFactory),
- middlewares.NewIamPolicyAttachmentExpander(d.resourceFactory),
- middlewares.AwsInstanceEIP{},
- middlewares.NewAwsDefaultInternetGatewayRoute(),
- middlewares.NewAwsDefaultInternetGateway(),
- middlewares.NewAwsDefaultVPC(),
- middlewares.NewAwsDefaultSubnet(),
- middlewares.NewAwsRouteTableExpander(d.alerter, d.resourceFactory),
- middlewares.NewAwsDefaultRouteTable(),
- middlewares.NewAwsDefaultRoute(),
- middlewares.NewAwsDefaultNetworkACL(),
- middlewares.NewAwsDefaultNetworkACLRule(),
- middlewares.NewAwsNetworkACLExpander(d.resourceFactory),
- middlewares.NewAwsBucketPolicyExpander(d.resourceFactory),
- middlewares.NewAwsSQSQueuePolicyExpander(d.resourceFactory, d.resourceSchemaRepository),
- middlewares.NewAwsDefaultSQSQueuePolicy(),
- middlewares.NewAwsSNSTopicPolicyExpander(d.resourceFactory, d.resourceSchemaRepository),
- middlewares.NewAwsRoleManagedPolicyExpander(d.resourceFactory),
- middlewares.NewTagsAllManager(),
- middlewares.NewEipAssociationExpander(d.resourceFactory),
- middlewares.NewAwsNatGatewayEipAssoc(),
- middlewares.NewRDSClusterInstanceExpander(d.resourceFactory),
- middlewares.NewAwsApiGatewayDeploymentExpander(d.resourceFactory),
- middlewares.NewAwsApiGatewayResourceExpander(d.resourceFactory),
- middlewares.NewAwsApiGatewayApiExpander(d.resourceFactory),
- middlewares.NewAwsApiGatewayRestApiPolicyExpander(d.resourceFactory),
- middlewares.NewAwsConsoleApiGatewayGatewayResponse(),
- middlewares.NewAwsApiGatewayDomainNamesReconciler(),
- middlewares.NewAwsApiGatewayBasePathMappingReconciler(),
- middlewares.NewAwsEbsEncryptionByDefaultReconciler(d.resourceFactory),
- middlewares.NewAwsALBTransformer(d.resourceFactory),
- middlewares.NewAwsALBListenerTransformer(d.resourceFactory),
-
- middlewares.NewGoogleIAMBindingTransformer(d.resourceFactory),
- middlewares.NewGoogleIAMPolicyTransformer(d.resourceFactory),
- middlewares.NewGoogleComputeInstanceGroupManagerReconciler(),
-
- middlewares.NewAzurermRouteExpander(d.resourceFactory),
- middlewares.NewAzurermSubnetExpander(d.resourceFactory),
- middlewares.NewAwsS3BucketPublicAccessBlockReconciler(),
- )
-
- if !d.opts.StrictMode {
- middleware = append(middleware,
- middlewares.NewAwsDefaults(),
- middlewares.NewGoogleLegacyBucketIAMMember(),
- middlewares.NewGoogleDefaultIAMMember(),
- middlewares.NewAwsDefaultApiGatewayAccount(),
- )
- }
-
- logrus.Debug("Ready to run middlewares")
- err = middleware.Execute(&remoteResources, &resourcesFromState)
- if err != nil {
- return nil, err
- }
-
- if d.opts.Filter != nil {
- engine := filter.NewFilterEngine(d.opts.Filter)
- remoteResources, err = engine.Run(remoteResources)
- if err != nil {
- return nil, err
- }
- resourcesFromState, err = engine.Run(resourcesFromState)
- if err != nil {
- return nil, err
- }
- }
-
- analysis, err := d.analyzer.Analyze(remoteResources, resourcesFromState)
- if err != nil {
- return nil, err
- }
-
- analysis.SetIaCSourceCount(d.iacSupplier.SourceCount())
- analysis.Duration = time.Since(start)
- analysis.Date = time.Now()
-
- d.store.Bucket(memstore.TelemetryBucket).Set("total_resources", analysis.Summary().TotalResources)
- d.store.Bucket(memstore.TelemetryBucket).Set("total_managed", analysis.Summary().TotalManaged)
- d.store.Bucket(memstore.TelemetryBucket).Set("duration", uint(analysis.Duration.Seconds()+0.5))
- d.store.Bucket(memstore.TelemetryBucket).Set("iac_source_count", d.iacSupplier.SourceCount())
-
- return &analysis, nil
-}
-
-func (d DriftCTL) Stop() {
- stoppableSupplier, ok := d.remoteSupplier.(resource.StoppableSupplier)
- if ok {
- logrus.WithFields(logrus.Fields{
- "supplier": fmt.Sprintf("%T", d.remoteSupplier),
- }).Debug("Stopping remote supplier")
- stoppableSupplier.Stop()
- }
-
- stoppableSupplier, ok = d.iacSupplier.(resource.StoppableSupplier)
- if ok {
- stoppableSupplier.Stop()
- }
-}
-
-func (d DriftCTL) scan() (remoteResources []*resource.Resource, resourcesFromState []*resource.Resource, err error) {
- logrus.Info("Start reading IaC")
- d.iacProgress.Start()
- resourcesFromState, err = d.iacSupplier.Resources()
- d.iacProgress.Stop()
- if err != nil {
- return nil, nil, err
- }
-
- logrus.Info("Start scanning cloud provider")
- d.scanProgress.Start()
- defer d.scanProgress.Stop()
- remoteResources, err = d.remoteSupplier.Resources()
- if err != nil {
- return nil, nil, err
- }
-
- // We do a normalization pass to resources from remote because resource in IaC supplier
- // are already created using DriftctlFactory.CreateAbstractResource and thus are already normalized
- var normalizedRemoteResources []*resource.Resource
- for _, res := range remoteResources {
- attrs := resource.Attributes{}
- if res.Attributes() != nil {
- attrs = *res.Attributes()
- }
- normalizedRes := d.resourceFactory.CreateAbstractResource(res.ResourceType(), res.ResourceId(), attrs)
- normalizedRemoteResources = append(normalizedRemoteResources, normalizedRes)
- }
-
- return normalizedRemoteResources, resourcesFromState, err
-}
diff --git a/pkg/driftctl_test.go b/pkg/driftctl_test.go
deleted file mode 100644
index 9c0dc628c..000000000
--- a/pkg/driftctl_test.go
+++ /dev/null
@@ -1,1357 +0,0 @@
-package pkg_test
-
-import (
- "encoding/json"
- "os"
- "path"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg"
- "github.com/snyk/driftctl/pkg/analyser"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/memstore"
- "github.com/snyk/driftctl/pkg/output"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/snyk/driftctl/test"
- testresource "github.com/snyk/driftctl/test/resource"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/mock"
-)
-
-type TestProvider struct {
- Name string
- Version string
-}
-
-type TestCase struct {
- name string
- provider *TestProvider
- stateResources []*resource.Resource
- remoteResources []*resource.Resource
- assert func(t *testing.T, result *test.ScanResult, err error)
- assertStore func(*testing.T, memstore.Store)
- options *pkg.ScanOptions
-}
-
-type TestCases []TestCase
-
-func runTest(t *testing.T, cases TestCases) {
- for _, c := range cases {
- if c.provider == nil {
- c.provider = &TestProvider{
- Name: "aws",
- Version: "3.19.0",
- }
- }
- repo := testresource.InitFakeSchemaRepository(c.provider.Name, c.provider.Version)
- t.Run(c.name, func(t *testing.T) {
- testAlerter := alerter.NewAlerter()
-
- if c.stateResources == nil {
- c.stateResources = []*resource.Resource{}
- }
-
- for _, res := range c.stateResources {
- schema, _ := repo.GetSchema(res.ResourceType())
- res.Sch = schema
- }
-
- stateSupplier := &dctlresource.MockIaCSupplier{}
- stateSupplier.On("Resources").Return(c.stateResources, nil)
- stateSupplier.On("SourceCount").Return(uint(2))
-
- if c.remoteResources == nil {
- c.remoteResources = []*resource.Resource{}
- }
-
- for _, res := range c.remoteResources {
- schema, _ := repo.GetSchema(res.ResourceType())
- res.Sch = schema
- }
- remoteSupplier := &resource.MockSupplier{}
- remoteSupplier.On("Resources").Return(c.remoteResources, nil)
-
- var resourceFactory resource.ResourceFactory = dctlresource.NewDriftctlResourceFactory(repo)
-
- if c.options == nil {
- c.options = &pkg.ScanOptions{}
- }
-
- scanProgress := &output.MockProgress{}
- scanProgress.On("Start").Return().Once()
- scanProgress.On("Stop").Return().Once()
-
- iacProgress := &output.MockProgress{}
- iacProgress.On("Start").Return().Once()
- iacProgress.On("Stop").Return().Once()
-
- testFilter := &filter.MockFilter{}
- testFilter.On("IsTypeIgnored", mock.Anything).Return(false)
- testFilter.On("IsResourceIgnored", mock.Anything).Return(false)
- analyzer := analyser.NewAnalyzer(testAlerter, testFilter)
-
- store := memstore.New()
- driftctl := pkg.NewDriftCTL(remoteSupplier, stateSupplier, testAlerter, analyzer, resourceFactory, c.options, scanProgress, iacProgress, repo, store)
-
- analysis, err := driftctl.Run()
-
- c.assert(t, test.NewScanResult(t, analysis), err)
- if c.assertStore != nil {
- c.assertStore(t, store)
- }
- scanProgress.AssertExpectations(t)
- })
- }
-}
-
-func TestDriftctlRun_BasicBehavior(t *testing.T) {
-
- cases := TestCases{
- {
- name: "analysis duration is set",
- stateResources: []*resource.Resource{},
- remoteResources: []*resource.Resource{},
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.NotZero(result.Duration)
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 0, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 0, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- },
- {
- name: "infrastructure should be in sync",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "id",
- Type: "type",
- Attrs: &resource.Attributes{
- "foobar": "barfoo",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "id",
- Type: "type",
- Attrs: &resource.Attributes{
- "foobar": "barfoo",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertInfrastructureIsInSync()
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 1, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 1, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- return &pkg.ScanOptions{}
- }(t),
- },
- {
- name: "we should have deleted resource",
- stateResources: []*resource.Resource{
- &resource.Resource{},
- },
- remoteResources: []*resource.Resource{},
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertDeletedCount(1)
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 1, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 0, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- },
- {
- name: "we should have unmanaged resource",
- stateResources: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- &resource.Resource{},
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertUnmanagedCount(1)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 1, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 0, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- },
- },
- {
- name: "we should ignore default AWS IAM role when strict mode is disabled",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "role-policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- "policy": "",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "role-test-1",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/test",
- },
- },
- &resource.Resource{
- Id: "role-policy-test-1",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "role-test-1",
- },
- },
- &resource.Resource{
- Id: "role-policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- },
- },
- &resource.Resource{
- Id: "policy-attachment-test-1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy-test-1",
- "users": []interface{}{},
- "roles": []interface{}{"role-test-1"},
- },
- },
- &resource.Resource{
- Id: "role-test-2",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/test",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(2)
- result.AssertUnmanagedCount(2)
- result.AssertDeletedCount(0)
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 4, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 2, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- return &pkg.ScanOptions{
- StrictMode: false,
- }
- }(t),
- },
- {
- name: "we should not ignore default AWS IAM role when strict mode is enabled",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- "policy": "",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "role-test-1",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/test",
- },
- },
- &resource.Resource{
- Id: "role-policy-test-1",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "role-test-1",
- },
- },
- &resource.Resource{
- Id: "policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- },
- },
- &resource.Resource{
- Id: "policy-attachment-test-1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy-test-1",
- "users": []interface{}{},
- "roles": []interface{}{"role-test-1"},
- },
- },
- &resource.Resource{
- Id: "role-test-2",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/test",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(2)
- result.AssertUnmanagedCount(4)
- result.AssertDeletedCount(0)
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 6, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 2, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- return &pkg.ScanOptions{
- StrictMode: true,
- }
- }(t),
- },
- {
- name: "we should not ignore default AWS IAM role when strict mode is enabled and a filter is specified",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "fake",
- Type: "FakeResource",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "role-test-1",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/test",
- },
- },
- &resource.Resource{
- Id: "role-policy-test-1",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "role-test-1",
- },
- },
- &resource.Resource{
- Id: "policy-test-1",
- Type: aws.AwsIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "policy-test-1",
- },
- },
- &resource.Resource{
- Id: "policy-attachment-test-1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy-test-1",
- "users": []interface{}{},
- "roles": []interface{}{"role-test-1"},
- },
- },
- &resource.Resource{
- Id: "role-test-2",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/test",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertCoverage(0)
- result.AssertInfrastructureIsNotSync()
- result.AssertManagedCount(0)
- result.AssertUnmanagedCount(1)
- result.AssertDeletedCount(0)
- result.Equal(uint(2), result.Summary().TotalIaCSourceCount)
- },
- assertStore: func(t *testing.T, store memstore.Store) {
- assert.Equal(t, 1, store.Bucket(memstore.TelemetryBucket).Get("total_resources"))
- assert.Equal(t, 0, store.Bucket(memstore.TelemetryBucket).Get("total_managed"))
- assert.Equal(t, uint(0), store.Bucket(memstore.TelemetryBucket).Get("duration"))
- assert.Equal(t, uint(2), store.Bucket(memstore.TelemetryBucket).Get("iac_source_count"))
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Id=='role-test-1'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{
- Filter: f,
- StrictMode: true,
- }
- }(t),
- },
- }
-
- runTest(t, cases)
-}
-
-func TestDriftctlRun_BasicFilter(t *testing.T) {
- cases := TestCases{
- {
- name: "test filtering on Type",
- stateResources: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "res1",
- Type: "not-filtered",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "res2",
- Type: "filtered",
- Attrs: &resource.Attributes{},
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertUnmanagedCount(1)
- result.AssertResourceUnmanaged("res2", "filtered")
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='filtered'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test filtering on Id",
- stateResources: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "res1",
- Type: "not-filtered",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "res2",
- Type: "filtered",
- Attrs: &resource.Attributes{},
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertUnmanagedCount(1)
- result.AssertResourceUnmanaged("res2", "filtered")
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Id=='res2'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test filtering on attribute",
- stateResources: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "res1",
- Type: "filtered",
- Attrs: &resource.Attributes{
- "test_field": "value to filter on",
- },
- },
- &resource.Resource{
- Id: "res2",
- Type: "not-filtered",
- Attrs: &resource.Attributes{},
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertUnmanagedCount(1)
- result.AssertResourceUnmanaged("res1", "filtered")
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Attr.test_field=='value to filter on'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- }
-
- runTest(t, cases)
-}
-
-func TestDriftctlRun_Middlewares(t *testing.T) {
- cases := TestCases{
- {
- name: "test bucket policy expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "{\"Id\":\"foo\"}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "bucket": "foo",
- "policy": "{\"Id\":\"bar\"}",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(1)
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_s3_bucket_policy' && Attr.bucket=='foo'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test instance block device middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "us-east-1",
- "root_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-02862d9b39045a3a4",
- "volume_type": "gp2",
- },
- },
- "ebs_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-018c5ae89895aca4c",
- "encrypted": true,
- },
- },
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "vol-018c5ae89895aca4c",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "encrypted": false,
- "multi_attach_enabled": false,
- "availability_zone": "us-east-1",
- },
- },
- &resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "type": "gp3",
- "multi_attach_enabled": false,
- "availability_zone": "us-east-1",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(2)
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_ebs_volume' && Attr.availability_zone=='us-east-1'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test route table expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "table",
- Type: "aws_route_table",
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "0.0.0.0/0",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "",
- "ipv6_cidr_block": "::/0",
- },
- },
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "r-table1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "id": "r-table1080289494",
- "state": "active",
- },
- },
- &resource.Resource{
- Id: "r-table2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "id": "r-table2750132062",
- "state": "active",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(2)
- result.AssertInfrastructureIsInSync()
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_route' && Attr.gateway_id=='igw-07b7844a8fd17a638'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test sns topic policy expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "foo",
- "policy": "{\"policy\":\"bar\"}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "arn": "arn",
- "policy": "{\"policy\":\"baz\"}",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(1)
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_sns_topic_policy' && Attr.arn=='arn'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test sqs queue policy expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "policy": "{\"policy\":\"bar\"}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"policy\":\"baz\"}",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(1)
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_sqs_queue_policy' && Attr.queue_url=='foo'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test security group rule sanitizer middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3970541193",
- Attrs: &resource.Attributes{
- "id": "sgrule-3970541193",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "self": true,
- "source_security_group_id": "sg-0254c038e32f25530",
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-845917806",
- Attrs: &resource.Attributes{
- "id": "sgrule-845917806",
- "type": "egress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-294318973",
- Attrs: &resource.Attributes{
- "id": "sgrule-294318973",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"1.2.0.0/16", "5.6.7.0/24"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-2471889226",
- Attrs: &resource.Attributes{
- "id": "sgrule-2471889226",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(0),
- "prefix_list_ids": []interface{}{"pl-abb451c2"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3587309474",
- Attrs: &resource.Attributes{
- "id": "sgrule-3587309474",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "source_security_group_id": "sg-9e0204ff",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3970541193",
- Attrs: &resource.Attributes{
- "id": "sgrule-3970541193",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "self": true,
- "source_security_group_id": "sg-0254c038e32f25530",
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-1707973622",
- Attrs: &resource.Attributes{
- "id": "sgrule-1707973622",
- "type": "egress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-2821752134",
- Attrs: &resource.Attributes{
- "id": "sgrule-2821752134",
- "type": "egress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-2165103420",
- Attrs: &resource.Attributes{
- "id": "sgrule-2165103420",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"5.6.7.0/24"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-2582518759",
- Attrs: &resource.Attributes{
- "id": "sgrule-2582518759",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"1.2.0.0/16"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-2471889226",
- Attrs: &resource.Attributes{
- "id": "sgrule-2471889226",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(0),
- "prefix_list_ids": []interface{}{"pl-abb451c2"},
- },
- },
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3587309474",
- Attrs: &resource.Attributes{
- "id": "sgrule-3587309474",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "source_security_group_id": "sg-9e0204ff",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(7)
- result.AssertInfrastructureIsInSync()
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_security_group_rule' && Attr.security_group_id=='sg-0254c038e32f25530'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test iam_policy_attachment_transformer & iam_policy_attachment_expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3970541193",
- Attrs: &resource.Attributes{
- "id": "sgrule-3970541193",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "self": true,
- "source_security_group_id": "sg-0254c038e32f25530",
- },
- },
- &resource.Resource{
- Id: "iduser1",
- Type: aws.AwsIamUserPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "user": "user1",
- },
- },
- &resource.Resource{
- Id: "idrole1",
- Type: aws.AwsIamRolePolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "role": "role1",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Type: aws.AwsSecurityGroupRuleResourceType,
- Id: "sgrule-3970541193",
- Attrs: &resource.Attributes{
- "id": "sgrule-3970541193",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "self": true,
- "source_security_group_id": "sg-0254c038e32f25530",
- },
- },
- &resource.Resource{
- Id: "iduser1",
- Type: aws.AwsIamUserPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "user": "user1",
- },
- },
- &resource.Resource{
- Id: "idrole1",
- Type: aws.AwsIamRolePolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "role": "role1",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertManagedCount(2)
- result.AssertInfrastructureIsInSync()
- },
- options: func(t *testing.T) *pkg.ScanOptions {
- filterStr := "Type=='aws_iam_policy_attachment'"
- f, err := filter.BuildExpression(filterStr)
- if err != nil {
- t.Fatalf("Unable to build filter expression: %s\n%s", filterStr, err)
- }
-
- return &pkg.ScanOptions{Filter: f}
- }(t),
- },
- {
- name: "test aws role managed policy expander",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "role_with_managed_policy_attr",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "name": "role_with_managed_policy_attr",
- "managed_policy_arns": []interface{}{
- "arn1",
- "arn2",
- },
- },
- },
- &resource.Resource{
- Id: "role_with_managed_policy_attr-arn2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn2",
- "roles": []interface{}{"role_with_managed_policy_attr"},
- },
- },
- &resource.Resource{
- Id: "role_with_empty_managed_policy_attribute",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "managed_policy_arns": []interface{}{},
- },
- },
- &resource.Resource{
- Id: "role_without_managed_policy_attribute",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "role_with_managed_policy_attr",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "name": "role_with_managed_policy_attr",
- },
- },
- &resource.Resource{
- Id: "role_with_managed_policy_attr-arn1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn1",
- "roles": []interface{}{"role_with_managed_policy_attr"},
- },
- },
- &resource.Resource{
- Id: "role_with_managed_policy_attr-arn2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn2",
- "roles": []interface{}{"role_with_managed_policy_attr"},
- },
- },
- &resource.Resource{
- Id: "role_with_empty_managed_policy_attribute",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "role_without_managed_policy_attribute",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(5)
- },
- },
- {
- name: "test aws eip association expander middleware",
- stateResources: []*resource.Resource{
- &resource.Resource{
- Id: "ID",
- Type: "ANOTHERTYPE",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "associdpresentinstate",
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "associdpresentinstate",
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "association_id": "associdpresentinstate",
- },
- },
- &resource.Resource{
- Id: "associdNOTpresentinstate",
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "association_id": "associdNOTpresentinstate",
- "instance": "instanceidNOTpresentinstate",
- "network_interface": "networkinterface",
- "private_ip": "privateip",
- "public_ip": "publicip",
- },
- },
- },
- remoteResources: []*resource.Resource{
- &resource.Resource{
- Id: "ID",
- Type: "ANOTHERTYPE",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "associdpresentinstate",
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "associdpresentinstate",
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "association_id": "associdpresentinstate",
- },
- },
- &resource.Resource{
- Id: "associdNOTpresentinstate",
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "associdNOTpresentinstate",
- "id": "associdNOTpresentinstate",
- "instance_id": "instanceidNOTpresentinstate",
- "network_interface_id": "networkinterface",
- "private_ip_address": "privateip",
- "public_ip": "publicip",
- },
- },
- &resource.Resource{
- Id: "associdNOTpresentinstate",
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "association_id": "associdNOTpresentinstate",
- "instance": "instanceidNOTpresentinstate",
- "network_interface": "networkinterface",
- "private_ip": "privateip",
- "public_ip": "publicip",
- },
- },
- },
- assert: func(t *testing.T, result *test.ScanResult, err error) {
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(5)
- },
- },
- }
-
- runTest(t, cases)
-}
-
-type normalizationTestCase struct {
- Resource string
- ProviderName string
- ProviderVersion string
-}
-
-func TestDriftctlRun_TestResourcesNormalization(t *testing.T) {
-
- readResourceFile := func(ty, path string) ([]*resource.Resource, error) {
- results := []*resource.Resource{}
- file, err := os.ReadFile(path)
- if err != nil {
- return nil, err
- }
- err = json.Unmarshal(file, &results)
- if err != nil {
- return nil, err
- }
- for _, res := range results {
- res.Type = ty
- }
- return results, nil
- }
-
- defaultProviderVersions := map[string]string{
- "aws": "3.19.0",
- "github": "4.4.0",
- "google": "3.78.0",
- "azurerm": "2.71.0",
- }
-
- cases := []normalizationTestCase{}
- for _, res := range dctlresource.GetSupportedTypes() {
-
- providerName := strings.SplitN(res, "_", 2)[0]
- providerVersion, exist := defaultProviderVersions[providerName]
- if !exist {
- t.Fatal("Provider not supported for normalisation test of " + res)
- }
-
- cases = append(cases, normalizationTestCase{
- Resource: res,
- ProviderVersion: providerVersion,
- ProviderName: providerName,
- })
- }
-
- for _, c := range cases {
- t.Run(c.Resource, func(t *testing.T) {
-
- folder := path.Join(c.ProviderName, c.ProviderVersion, c.Resource)
-
- // _ = os.MkdirAll(path.Join("test", folder), os.ModePerm)
- // wd, _ := os.Getwd()
- // globPath := path.Join(wd, fmt.Sprintf("../enumeration/remote/test/%s*", c.Resource))
- // matches, err := filepath.Glob(globPath)
- // if err != nil {
- // t.Fatal(err)
- // }
- // if len(matches) > 0 {
- // fileToCopy, err := ioutil.ReadFile(path.Join(matches[0], "results.golden.json"))
- // if err != nil {
- // t.Fatal(err)
- // }
- //
- // tmpInputRes := []*resource.Resource{}
- // var tmpAttributtes []resource.Attributes
- // err = json.Unmarshal(fileToCopy, &tmpAttributtes)
- // if err != nil {
- // t.Fatal(err)
- // }
- // for _, attrs := range tmpAttributtes {
- // attrs := attrs
- // res := &resource.Resource{
- // Type: c.Resource,
- // Id: attrs["id"].(string),
- // Attrs: &attrs,
- // }
- // tmpInputRes = append(tmpInputRes, res)
- // }
- // resourcesToCopy, err := json.MarshalIndent(tmpInputRes, "", " ")
- // if err != nil {
- // t.Fatal(err)
- // }
- // err = ioutil.WriteFile(path.Join("test", folder, "input.json"), resourcesToCopy, os.ModePerm)
- // if err != nil {
- // t.Fatal(err)
- // }
- // }
-
- // wd, _ := os.Getwd()
- // globPath := path.Join(wd, fmt.Sprintf("iac/terraform/state/test/%s*", c.Resource))
- // matches, err := filepath.Glob(globPath)
- // if err != nil {
- // t.Fatal(err)
- // }
- // if len(matches) > 0 {
- // fileToCopy, err := ioutil.ReadFile(path.Join(matches[0], "results.golden.json"))
- // if err != nil {
- // t.Fatal(err)
- // }
- // err = ioutil.WriteFile(path.Join("test", folder, "expected.json"), fileToCopy, os.ModePerm)
- // if err != nil {
- // t.Fatal(err)
- // }
- // }
-
- inputFilePath := path.Join("test", folder, "input.json")
- inputResources, err := readResourceFile(c.Resource, inputFilePath)
- if err != nil {
- t.Skip(err)
- }
-
- expectedFilePath := path.Join("test", folder, "expected.json")
- expectedResources, err := readResourceFile(c.Resource, expectedFilePath)
- if err != nil {
- t.Fatal(err)
- }
-
- options := &pkg.ScanOptions{}
-
- repo := testresource.InitFakeSchemaRepository(c.ProviderName, c.ProviderVersion)
- resourceFactory := dctlresource.NewDriftctlResourceFactory(repo)
- testAlerter := alerter.NewAlerter()
- store := memstore.New()
-
- scanProgress := &output.MockProgress{}
- scanProgress.On("Start").Return().Once()
- scanProgress.On("Stop").Return().Once()
- iacProgress := &output.MockProgress{}
- iacProgress.On("Start").Return().Once()
- iacProgress.On("Stop").Return().Once()
-
- testFilter := &filter.MockFilter{}
- testFilter.On("IsResourceIgnored", mock.MatchedBy(func(res *resource.Resource) bool {
- return res.ResourceType() == c.Resource
- })).Return(false)
- testFilter.On("IsResourceIgnored", mock.MatchedBy(func(res *resource.Resource) bool {
- return res.ResourceType() != c.Resource
- })).Return(true)
- analyzer := analyser.NewAnalyzer(testAlerter, testFilter)
-
- stateSupplier := &dctlresource.MockIaCSupplier{}
- stateSupplier.On("Resources").Return(expectedResources, nil)
- stateSupplier.On("SourceCount").Return(uint(1))
- remoteSupplier := &resource.MockSupplier{}
- remoteSupplier.On("Resources").Return(inputResources, nil)
-
- driftctl := pkg.NewDriftCTL(
- remoteSupplier,
- stateSupplier,
- testAlerter,
- analyzer,
- resourceFactory,
- options,
- scanProgress,
- iacProgress,
- repo,
- store,
- )
-
- analysis, err := driftctl.Run()
- if err != nil {
- t.Fatal(err)
- }
- results := test.NewScanResult(t, analysis)
- results.AssertInfrastructureIsInSync()
- })
- }
-
-}
diff --git a/pkg/envproxy/env_proxy.go b/pkg/envproxy/env_proxy.go
deleted file mode 100644
index 4fce1e2d3..000000000
--- a/pkg/envproxy/env_proxy.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package envproxy
-
-import (
- "os"
- "strings"
-)
-
-type EnvProxy struct {
- fromPrefix string
- toPrefix string
- defaultEnv map[string]string
-}
-
-func NewEnvProxy(fromPrefix, toPrefix string) *EnvProxy {
- envMap := map[string]string{}
- for _, variable := range os.Environ() {
- tmp := strings.SplitN(variable, "=", 2)
- envMap[tmp[0]] = tmp[1]
- }
- return &EnvProxy{
- fromPrefix: fromPrefix,
- toPrefix: toPrefix,
- defaultEnv: envMap,
- }
-}
-
-func (s *EnvProxy) Apply() {
- if s.fromPrefix == "" || s.toPrefix == "" {
- return
- }
- for key, value := range s.defaultEnv {
- if strings.HasPrefix(key, s.fromPrefix) {
- key = strings.Replace(key, s.fromPrefix, s.toPrefix, 1)
- os.Setenv(key, value)
- }
- }
-}
-
-func (s *EnvProxy) Restore() {
- if s.fromPrefix == "" || s.toPrefix == "" {
- return
- }
- for key, value := range s.defaultEnv {
- if strings.HasPrefix(key, s.fromPrefix) {
- key = strings.Replace(key, s.fromPrefix, s.toPrefix, 1)
- value = s.defaultEnv[key]
- }
- os.Setenv(key, value)
- }
-}
diff --git a/pkg/envproxy/env_proxy_test.go b/pkg/envproxy/env_proxy_test.go
deleted file mode 100644
index 358a0e99d..000000000
--- a/pkg/envproxy/env_proxy_test.go
+++ /dev/null
@@ -1,85 +0,0 @@
-package envproxy
-
-import (
- "os"
- "strings"
- "testing"
-)
-
-func TestEnvProxy(t *testing.T) {
- tests := []struct {
- name string
- proxyArgs []string
- initialEnv []string
- modifiedEnv []string
- }{
- {
- name: "Without args on SetProxy",
- proxyArgs: []string{"", ""},
- initialEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- modifiedEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- },
- {
- name: "With args on SetProxy",
- proxyArgs: []string{"TEST_DCTL_S3_", "TEST_AWS_"},
- initialEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- modifiedEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_dctl_s3_profile"},
- },
- {
- name: "Without toPrefix on SetProxy",
- proxyArgs: []string{"TEST_DCTL_S3_", ""},
- initialEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- modifiedEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- },
- {
- name: "Without fromPrefix on SetProxy",
- proxyArgs: []string{"", "TEST_AWS_"},
- initialEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- modifiedEnv: []string{"TEST_DCTL_S3_PROFILE=test_dctl_s3_profile", "TEST_AWS_PROFILE=test_aws_profile"},
- },
- {
- name: "Without initialEnv",
- proxyArgs: []string{"TEST_DCTL_S3_", "TEST_AWS_"},
- initialEnv: []string{},
- modifiedEnv: []string{},
- },
- }
-
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- for _, value := range tt.initialEnv {
- tmp := strings.SplitN(value, "=", 2)
- os.Setenv(tmp[0], tmp[1])
- }
-
- envProxy := NewEnvProxy(tt.proxyArgs[0], tt.proxyArgs[1])
-
- envProxy.Apply()
-
- currentEnv := os.Environ()
- if !compareEnv(currentEnv, tt.modifiedEnv) {
- t.Errorf("Expected %v, got %v", tt.modifiedEnv, currentEnv)
- }
-
- envProxy.Restore()
-
- currentEnv = os.Environ()
- if !compareEnv(currentEnv, tt.initialEnv) {
- t.Errorf("Expected %v, got %v", tt.initialEnv, currentEnv)
- }
- })
- }
-}
-
-func compareEnv(currentEnv, testEnv []string) bool {
- isValid := 0
- for _, initialValue := range testEnv {
- for _, value := range currentEnv {
- if initialValue == value {
- isValid++
- }
- }
- }
- return isValid == len(testEnv)
-}
diff --git a/pkg/filter/driftignore.go b/pkg/filter/driftignore.go
deleted file mode 100644
index 3a0197b3c..000000000
--- a/pkg/filter/driftignore.go
+++ /dev/null
@@ -1,130 +0,0 @@
-package filter
-
-import (
- "bufio"
- "fmt"
- "os"
- "strings"
-
- "github.com/go-git/go-git/v5/plumbing/format/gitignore"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-const separator = "_-_"
-
-type DriftIgnore struct {
- driftignorePath string
- ignorePatterns []string
- matcher gitignore.Matcher
-}
-
-func NewDriftIgnore(path string, ignorePatterns ...string) *DriftIgnore {
- d := DriftIgnore{
- driftignorePath: path,
- ignorePatterns: ignorePatterns,
- matcher: gitignore.NewMatcher(nil),
- }
- var err error
- if len(ignorePatterns) > 0 {
- err = d.parseIgnorePatterns()
- } else {
- err = d.readIgnoreFile()
- }
-
- if err != nil {
- logrus.Debug(err)
- }
- return &d
-}
-
-func (r *DriftIgnore) readIgnoreFile() error {
- file, err := os.Open(r.driftignorePath)
- if err != nil {
- return err
- }
- defer file.Close()
-
- var lines []gitignore.Pattern
- scanner := bufio.NewScanner(file)
- for lineNumber := 1; scanner.Scan(); lineNumber++ {
- line := scanner.Text()
- r.parseIgnorePattern(line, &lines)
- }
-
- if err := scanner.Err(); err != nil {
- return err
- }
-
- r.matcher = gitignore.NewMatcher(lines)
-
- return nil
-}
-
-func (r *DriftIgnore) parseIgnorePatterns() error {
- var lines []gitignore.Pattern
- for _, p := range r.ignorePatterns {
- r.parseIgnorePattern(p, &lines)
- }
- r.matcher = gitignore.NewMatcher(lines)
- return nil
-}
-
-func (r *DriftIgnore) parseIgnorePattern(line string, patterns *[]gitignore.Pattern) {
- if len(strings.ReplaceAll(line, " ", "")) <= 0 {
- return // empty
- }
-
- if strings.HasPrefix(line, "#") {
- return // this is a comment
- }
- line = strings.ReplaceAll(line, "/", separator)
-
- *patterns = append(*patterns, gitignore.ParsePattern(line, nil))
- if !strings.HasSuffix(line, "*") {
- line := fmt.Sprintf("%s.*", line)
- *patterns = append(*patterns, gitignore.ParsePattern(line, nil))
- }
-}
-
-func (r *DriftIgnore) isAnyOfChildrenTypesNotIgnored(ty resource.ResourceType) bool {
- childrenTypes := resource.GetMeta(ty).GetChildrenTypes()
- for _, childrenType := range childrenTypes {
- if !r.shouldIgnoreType(childrenType) {
- return true
- }
- if r.isAnyOfChildrenTypesNotIgnored(childrenType) {
- return true
- }
- }
- return false
-}
-
-func (r *DriftIgnore) IsTypeIgnored(ty resource.ResourceType) bool {
- // Iterate over children types, and do not ignore parent resource
- // if at least one of children type is not ignored.
- if r.isAnyOfChildrenTypesNotIgnored(ty) {
- return false
- }
-
- return r.shouldIgnoreType(ty)
-}
-
-func (r *DriftIgnore) shouldIgnoreType(ty resource.ResourceType) bool {
- for _, pattern := range r.ignorePatterns {
- // If a line start with a `!` and if the type match, we should not ignore it
- if strings.HasPrefix(pattern, fmt.Sprintf("!%s.", ty)) {
- return false
- }
- }
-
- return r.match(fmt.Sprintf("%s.*", ty))
-}
-
-func (r *DriftIgnore) IsResourceIgnored(res *resource.Resource) bool {
- return r.match(fmt.Sprintf("%s.%s", res.ResourceType(), res.ResourceId()))
-}
-
-func (r *DriftIgnore) match(strRes string) bool {
- return r.matcher.Match([]string{strings.ReplaceAll(strRes, "/", separator)}, false)
-}
diff --git a/pkg/filter/driftignore_test.go b/pkg/filter/driftignore_test.go
deleted file mode 100644
index 8733994b3..000000000
--- a/pkg/filter/driftignore_test.go
+++ /dev/null
@@ -1,493 +0,0 @@
-package filter
-
-import (
- "os"
- "testing"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestDriftIgnore_IsResourceIgnored(t *testing.T) {
- tests := []struct {
- name string
- resources []*resource.Resource
- want []bool
- path string
- ignores []string
- }{
- {
- name: "drift_ignore_no_file",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- },
- want: []bool{
- false,
- },
- path: "testdata/drift_ignore_no_file/.driftignore",
- },
- {
- name: "drift_ignore_empty",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- },
- want: []bool{
- false,
- },
- path: "testdata/drift_ignore_empty/.driftignore",
- },
- {
- name: "drift_ignore_invalid_lines",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- {
- Type: "ignored_resource",
- Id: "id2",
- },
- },
- want: []bool{
- false,
- true,
- },
- path: "testdata/drift_ignore_invalid_lines/.driftignore",
- },
- {
- name: "drift_ignore_valid",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- {
- Type: "wildcard_resource",
- Id: "id1/with/slash",
- },
- {
- Type: "wildcard_resource",
- Id: "id1",
- },
- {
- Type: "wildcard_resource",
- Id: "id2",
- },
- {
- Type: "wildcard_resource",
- Id: "id3",
- },
- {
- Type: "ignored_resource",
- Id: "id2",
- },
- {
- Type: "resource_type",
- Id: "id.with.dots",
- },
- {
- Type: "resource_type",
- Id: "idwith\\",
- },
- {
- Type: "resource_type",
- Id: "idwith\\backslashes",
- },
- {
- Type: "resource_type",
- Id: "idwith/slashes",
- },
- },
- want: []bool{
- false,
- true,
- true,
- true,
- true,
- true,
- true,
- true,
- true,
- true,
- },
- path: "testdata/drift_ignore_valid/.driftignore",
- },
- {
- name: "drift_ignore_wildcard",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id11",
- },
- {
- Type: "type2",
- Id: "id2",
- },
- {
- Type: "type3",
- Id: "id100",
- },
- {
- Type: "type3",
- Id: "id101",
- },
- {
- Type: "type4",
- Id: "id\\WithBac*slash***\\*\\",
- },
- },
- want: []bool{
- false,
- true,
- true,
- false,
- true,
- false,
- true,
- },
- path: "testdata/drift_ignore_wildcard/.driftignore",
- },
- {
- name: "drift_ignore_all_exclude",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id11",
- },
- {
- Type: "type2",
- Id: "id2",
- },
- {
- Type: "type3",
- Id: "id100",
- },
- {
- Type: "type3",
- Id: "id101",
- },
- {
- Type: "iam_user",
- Id: "id\\WithBac*slash***\\*\\",
- },
- {
- Type: "some_type",
- Id: "idwith/slash",
- },
- {
- Type: "some_type",
- Id: "idwith/slash/",
- },
- },
- want: []bool{
- true,
- true,
- true,
- true,
- true,
- true,
- false,
- false,
- true,
- },
- path: "testdata/drift_ignore_all_exclude/.driftignore",
- },
- {
- name: "drift_ignore_all_exclude_with_ignore_patterns",
- resources: []*resource.Resource{
- {
- Type: "type1",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id1",
- },
- {
- Type: "type2",
- Id: "id11",
- },
- {
- Type: "type2",
- Id: "id2",
- },
- {
- Type: "type3",
- Id: "id100",
- },
- {
- Type: "type3",
- Id: "id101",
- },
- {
- Type: "iam_user",
- Id: "id\\WithBac*slash***\\*\\",
- },
- {
- Type: "some_type",
- Id: "idwith/slash",
- },
- {
- Type: "some_type",
- Id: "idwith/slash/",
- },
- },
- want: []bool{
- true,
- true,
- true,
- true,
- true,
- true,
- false,
- false,
- true,
- },
- path: "testdata/drift_ignore_all/.driftignore",
- ignores: []string{"*", "!iam_user.*", "!some_type.idwith/slash"},
- },
- {
- name: "drift_ignore_none_with_ignore_patterns",
- resources: []*resource.Resource{
- {
- Type: "aws_s3_access_point",
- },
- },
- want: []bool{
- false,
- },
- path: "testdata/drift_ignore_all/.driftignore",
- ignores: []string{"!*"},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- cwd, _ := os.Getwd()
- defer func() { _ = os.Chdir(cwd) }()
-
- r := NewDriftIgnore(tt.path, tt.ignores...)
- got := make([]bool, 0, len(tt.want))
- for _, res := range tt.resources {
- got = append(got, r.IsResourceIgnored(res))
- }
- assert.Equal(t, tt.want, got)
- })
- }
-}
-
-func TestDriftIgnore_IsTypeIgnored(t *testing.T) {
- tests := []struct {
- name string
- resources []*resource.Resource
- want []bool
- path string
- ignores []string
- }{
- {
- name: "drift_ignore_type_exclude_with_child_1_nesting",
- resources: []*resource.Resource{
- {
- Type: "aws_route",
- },
- {
- Type: "aws_route_table",
- },
- {
- Type: "non_ignored_type",
- },
- {
- Type: "ignored_type",
- },
- },
- want: []bool{
- false,
- false,
- false,
- true,
- },
- path: "testdata/drift_ignore_type/.driftignore_child_1",
- },
- {
- name: "drift_ignore_type_exclude_with_child_2_nesting",
- resources: []*resource.Resource{
- {
- Type: "non_ignored_type",
- },
- {
- Type: "aws_iam_user",
- },
- {
- Type: "aws_iam_user_policy",
- },
- {
- Type: "aws_iam_user_policy_attachment",
- },
- {
- Type: "ignored_type",
- },
- },
- want: []bool{
- false,
- false,
- false,
- false,
- true,
- },
- path: "testdata/drift_ignore_type/.driftignore_child_2",
- },
- {
- name: "drift_ignore_type_exclude",
- resources: []*resource.Resource{
- {
- Type: "type",
- },
- {
- Type: "type_1",
- },
- {
- Type: "type_2",
- },
- {
- Type: "type_3",
- },
- },
- want: []bool{
- true,
- false,
- true,
- true,
- },
- path: "testdata/drift_ignore_type/.driftignore",
- },
- {
- name: "drift_ignore_non_aws_s3_resources",
- resources: []*resource.Resource{
- {
- Type: "aws_s3_access_point",
- },
- {
- Type: "aws_s3_bucket",
- },
- {
- Type: "aws_s3_bucket_acl",
- },
- {
- Type: "aws_route53_delegation_set",
- },
- },
- want: []bool{
- false,
- false,
- false,
- true,
- },
- path: "testdata/drift_ignore_all/.driftignore",
- ignores: []string{"*", "!aws_s3*"},
- },
- {
- name: "drift_ignore_non_aws_s3_and_non_route53_resources",
- resources: []*resource.Resource{
- {
- Type: "aws_s3_access_point",
- },
- {
- Type: "aws_s3_bucket",
- },
- {
- Type: "aws_s3_bucket_acl",
- },
- {
- Type: "aws_route53_delegation_set",
- },
- },
- want: []bool{
- false,
- false,
- false,
- false,
- },
- path: "testdata/drift_ignore_all/.driftignore",
- ignores: []string{"*", "!aws_s3*", "!aws_route53*"},
- },
- {
- name: "do not ignore type when one inclusion rule with resource ID exist",
- resources: []*resource.Resource{
- // This type should not be ignored because of `!aws_iam_policy_attachment.foo*` expression
- {
- Type: "aws_iam_policy_attachment",
- Id: "foobar",
- },
- // This type should not be ignored because `azurerm_route` type is not ignored and is a child of `azurerm_route_table`
- {
- Type: "azurerm_route_table",
- Id: "uselessId",
- },
- // This type should not be ignored because of `!azurerm_route.barfoo` expression
- {
- Type: "azurerm_route",
- Id: "barfoo",
- },
- },
- want: []bool{
- false,
- false,
- false,
- },
- path: "",
- ignores: []string{"*", "!aws_iam_policy_attachment.foobar", "!azurerm_route.barfoo"},
- },
- {
- name: "ignore type wildcard while excluding one",
- resources: []*resource.Resource{
- {
- Type: "type_ignored",
- },
- {
- Type: "type_not_ignored",
- },
- },
- want: []bool{
- true,
- false,
- },
- path: "",
- ignores: []string{"type_*", "!type_not_ignored"},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- cwd, _ := os.Getwd()
- defer func() { _ = os.Chdir(cwd) }()
-
- r := NewDriftIgnore(tt.path, tt.ignores...)
- got := make([]bool, 0, len(tt.want))
- for _, res := range tt.resources {
- got = append(got, r.IsTypeIgnored(resource.ResourceType(res.ResourceType())))
- }
- assert.Equal(t, tt.want, got)
- })
- }
-}
diff --git a/pkg/filter/expression.go b/pkg/filter/expression.go
deleted file mode 100644
index fa0d9384f..000000000
--- a/pkg/filter/expression.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package filter
-
-import (
- "fmt"
-
- "github.com/jmespath/go-jmespath"
-)
-
-func BuildExpression(expressionStr string) (*jmespath.JMESPath, error) {
- expr, err := jmespath.Compile(fmt.Sprintf("[?%s]", expressionStr))
- if err != nil {
- return nil, err
- }
- return expr, nil
-}
diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go
deleted file mode 100644
index d9875054b..000000000
--- a/pkg/filter/filter.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package filter
-
-import "github.com/snyk/driftctl/enumeration/resource"
-
-type Filter interface {
- IsTypeIgnored(ty resource.ResourceType) bool
- IsResourceIgnored(res *resource.Resource) bool
-}
diff --git a/pkg/filter/filter_engine.go b/pkg/filter/filter_engine.go
deleted file mode 100644
index 8bcacdea9..000000000
--- a/pkg/filter/filter_engine.go
+++ /dev/null
@@ -1,64 +0,0 @@
-package filter
-
-import (
- "errors"
-
- "github.com/jmespath/go-jmespath"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type FilterEngine struct {
- expr *jmespath.JMESPath
-}
-
-func NewFilterEngine(expr *jmespath.JMESPath) *FilterEngine {
- return &FilterEngine{expr: expr}
-}
-
-type filtrableResource struct {
- Attr interface{}
- Res *resource.Resource
- Type, Id string
-}
-
-func (e *FilterEngine) Run(resources []*resource.Resource) ([]*resource.Resource, error) {
-
- if e.expr == nil {
- return nil, errors.New("expression is nil")
- }
-
- // We convert a list of resource in a list of DTO to run JMESPath on
- filtrableResources := make([]filtrableResource, 0, len(resources))
- for _, res := range resources {
- // We need to serialize all attributes to untyped interface from JMESPath to work
- // map[string]string and map[string]SomeThing will not work without it
- // https://github.com/jmespath/go-jmespath/issues/22
- var attrs map[string]interface{} = *res.Attributes()
-
- f := filtrableResource{
- Attr: attrs,
- Res: res,
- Id: res.ResourceId(),
- Type: res.ResourceType(),
- }
- filtrableResources = append(
- filtrableResources,
- f,
- )
- }
-
- // Do the filter
- JMESPathOutput, err := e.expr.Search(filtrableResources)
- if err != nil {
- return nil, err
- }
-
- // Convert back filtered results into a resource list
- filteredRawList := JMESPathOutput.([]interface{})
- results := make([]*resource.Resource, 0, len(filteredRawList))
- for _, elem := range filteredRawList {
- results = append(results, elem.(filtrableResource).Res)
- }
-
- return results, nil
-}
diff --git a/pkg/filter/filter_engine_test.go b/pkg/filter/filter_engine_test.go
deleted file mode 100644
index 8eee8a2f7..000000000
--- a/pkg/filter/filter_engine_test.go
+++ /dev/null
@@ -1,298 +0,0 @@
-package filter
-
-import (
- "errors"
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestFilterEngine_Run(t *testing.T) {
- tests := []struct {
- name string
- expr string
- resources []*resource.Resource
- want []*resource.Resource
- compileErr error
- err error
- }{
- {
- name: "invalid expression (fail during expr compilation)",
- expr: "???",
- compileErr: errors.New("SyntaxError: Unknown char: '?'"),
- },
- {
- name: "filter on type",
- expr: "Type=='filtered_resource'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- },
- {
- Attrs: &resource.Attributes{},
- Type: "filtered_resource",
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- Type: "filtered_resource",
- },
- },
- },
- {
- name: "exclude all resource of type",
- expr: "Type!='filtered_resource'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{}},
- {
- Attrs: &resource.Attributes{},
- Type: "filtered_resource",
- },
- {
- Attrs: &resource.Attributes{},
- Type: "filtered_resource",
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{}},
- },
- },
- {
- name: "filter on id",
- expr: "Id=='foobar'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- Id: "barfoo",
- },
- {
- Attrs: &resource.Attributes{},
- Id: "foobar",
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- Id: "foobar",
- },
- },
- },
- {
- name: "filter on id and type",
- expr: "Id=='foobar' && Type=='filtered_resource'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- Id: "foobar",
- },
- {
- Attrs: &resource.Attributes{},
- Id: "foobar",
- Type: "filtered_resource",
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- Id: "foobar",
- Type: "filtered_resource",
- },
- },
- },
- {
- name: "filter on resource field",
- expr: "Attr.bar_foo=='filtered'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{}},
- {
- Attrs: &resource.Attributes{
- "bar_foo": "filtered",
- },
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "bar_foo": "filtered",
- },
- },
- },
- },
- {
- name: "filter on resource type and field",
- expr: "Type=='filtered_resource' && Attr.bar_foo=='filtered'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{},
- },
- {
- Type: "filtered_resource",
- Attrs: &resource.Attributes{
- "bar_foo": "filtered",
- },
- },
- },
- want: []*resource.Resource{
- {
- Type: "filtered_resource",
- Attrs: &resource.Attributes{
- "bar_foo": "filtered",
- },
- },
- },
- },
- {
- name: "filter on resource map of native type field",
- expr: "Attr.tags.foo=='foo'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "foo": "bar",
- "bar": "foo",
- },
- },
- },
- {
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "foo": "foo",
- "bar": "bar",
- },
- },
- },
- {
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "foo": "foo",
- "bar": "foo",
- },
- },
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "foo": "foo",
- "bar": "bar",
- },
- },
- },
- {
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "foo": "foo",
- "bar": "foo",
- },
- },
- },
- },
- },
- {
- name: "filter on resource map of custom type field",
- expr: "Attr.custom_map.test.tag=='foo'",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "custom_map": map[string]interface{}{
- "test": map[string]interface{}{
- "tag": "foo",
- },
- },
- },
- },
- {
- Attrs: &resource.Attributes{
- "custom_map": map[string]interface{}{
- "test": map[string]interface{}{
- "tag": "bar",
- },
- },
- },
- },
- {
- Attrs: &resource.Attributes{
- "custom_map": map[string]interface{}{
- "bar": map[string]interface{}{
- "tag": "foo",
- },
- },
- },
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "custom_map": map[string]interface{}{
- "test": map[string]interface{}{
- "tag": "foo",
- },
- },
- },
- },
- },
- },
- {
- name: "filter on resource field array contains",
- expr: "Attr.slice[?contains(@, 'd')]",
- resources: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "slice": []string{"a", "b", "c"},
- },
- },
- {
- Attrs: &resource.Attributes{
- "slice": []string{"a", "b", "c", "d"},
- },
- },
- {
- Attrs: &resource.Attributes{
- "slice": []string{"d"},
- },
- },
- },
- want: []*resource.Resource{
- {
- Attrs: &resource.Attributes{
- "slice": []string{"a", "b", "c", "d"},
- },
- },
- {
- Attrs: &resource.Attributes{
- "slice": []string{"d"},
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- expr, err := BuildExpression(tt.expr)
- if tt.compileErr != nil && err == nil {
- t.Fatal("Expected compileErr got nil")
- }
- if err != nil && err.Error() != tt.compileErr.Error() {
- t.Fatalf("BuildExpression() error = '%s', want '%s'", err, tt.compileErr)
- }
- e := NewFilterEngine(expr)
- got, err := e.Run(tt.resources)
- if tt.err != nil && err == nil {
- t.Fatal("Expected err got nil")
- }
- if tt.err != nil && err.Error() != tt.err.Error() {
- t.Errorf("Run() error = %s, wantErr %s", err, tt.err)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("Run() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/filter/mock_Filter.go b/pkg/filter/mock_Filter.go
deleted file mode 100644
index 2e166e940..000000000
--- a/pkg/filter/mock_Filter.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by mockery v2.35.4. DO NOT EDIT.
-
-package filter
-
-import (
- resource "github.com/snyk/driftctl/enumeration/resource"
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockFilter is an autogenerated mock type for the Filter type
-type MockFilter struct {
- mock.Mock
-}
-
-// IsResourceIgnored provides a mock function with given fields: res
-func (_m *MockFilter) IsResourceIgnored(res *resource.Resource) bool {
- ret := _m.Called(res)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(*resource.Resource) bool); ok {
- r0 = rf(res)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// IsTypeIgnored provides a mock function with given fields: ty
-func (_m *MockFilter) IsTypeIgnored(ty resource.ResourceType) bool {
- ret := _m.Called(ty)
-
- var r0 bool
- if rf, ok := ret.Get(0).(func(resource.ResourceType) bool); ok {
- r0 = rf(ty)
- } else {
- r0 = ret.Get(0).(bool)
- }
-
- return r0
-}
-
-// NewMockFilter creates a new instance of MockFilter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-// The first argument is typically a *testing.T value.
-func NewMockFilter(t interface {
- mock.TestingT
- Cleanup(func())
-}) *MockFilter {
- mock := &MockFilter{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/pkg/filter/testdata/drift_ignore_all/.driftignore b/pkg/filter/testdata/drift_ignore_all/.driftignore
deleted file mode 100644
index 72e8ffc0d..000000000
--- a/pkg/filter/testdata/drift_ignore_all/.driftignore
+++ /dev/null
@@ -1 +0,0 @@
-*
diff --git a/pkg/filter/testdata/drift_ignore_all_exclude/.driftignore b/pkg/filter/testdata/drift_ignore_all_exclude/.driftignore
deleted file mode 100644
index 11f17b328..000000000
--- a/pkg/filter/testdata/drift_ignore_all_exclude/.driftignore
+++ /dev/null
@@ -1,3 +0,0 @@
-*
-!iam_user.*
-!some_type.idwith/slash
diff --git a/pkg/filter/testdata/drift_ignore_all_exclude_field/.driftignore b/pkg/filter/testdata/drift_ignore_all_exclude_field/.driftignore
deleted file mode 100644
index e90ae521c..000000000
--- a/pkg/filter/testdata/drift_ignore_all_exclude_field/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!*.bar
diff --git a/pkg/filter/testdata/drift_ignore_empty/.driftignore b/pkg/filter/testdata/drift_ignore_empty/.driftignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/filter/testdata/drift_ignore_fields/.driftignore b/pkg/filter/testdata/drift_ignore_fields/.driftignore
deleted file mode 100644
index aab28701f..000000000
--- a/pkg/filter/testdata/drift_ignore_fields/.driftignore
+++ /dev/null
@@ -1,8 +0,0 @@
-res_type.full_drift_ignored.json
-res_type.full_drift_ignored.foobar
-res_type.partial_drift_ignored.foobar
-res_type.wildcard_drift_ignored.*.baz
-res_type.endofpath_drift_ignored.struct
-resource_type.id\.with\.dots.json
-resource_type.idwith\\.json
-resource_type.idwith\\backslashes.foobar
diff --git a/pkg/filter/testdata/drift_ignore_invalid_lines/.driftignore b/pkg/filter/testdata/drift_ignore_invalid_lines/.driftignore
deleted file mode 100644
index eec7d3f09..000000000
--- a/pkg/filter/testdata/drift_ignore_invalid_lines/.driftignore
+++ /dev/null
@@ -1,9 +0,0 @@
-foobar
-
-4("è-(_ç'è-ç'("
-ignored_resource.id2
-sdgksdbgjkl
-.id
-\
-\\
-.
diff --git a/pkg/filter/testdata/drift_ignore_no_file/.gitkeep b/pkg/filter/testdata/drift_ignore_no_file/.gitkeep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/filter/testdata/drift_ignore_type/.driftignore b/pkg/filter/testdata/drift_ignore_type/.driftignore
deleted file mode 100644
index e783651da..000000000
--- a/pkg/filter/testdata/drift_ignore_type/.driftignore
+++ /dev/null
@@ -1,3 +0,0 @@
-type
-type_2
-type_3.*
diff --git a/pkg/filter/testdata/drift_ignore_type/.driftignore_child_1 b/pkg/filter/testdata/drift_ignore_type/.driftignore_child_1
deleted file mode 100644
index 1d80bd988..000000000
--- a/pkg/filter/testdata/drift_ignore_type/.driftignore_child_1
+++ /dev/null
@@ -1,3 +0,0 @@
-*
-!aws_route
-!non_ignored_type.*
diff --git a/pkg/filter/testdata/drift_ignore_type/.driftignore_child_2 b/pkg/filter/testdata/drift_ignore_type/.driftignore_child_2
deleted file mode 100644
index 8ce314e5e..000000000
--- a/pkg/filter/testdata/drift_ignore_type/.driftignore_child_2
+++ /dev/null
@@ -1,3 +0,0 @@
-*
-!aws_iam_user_policy_attachment
-!non_ignored_type.*
diff --git a/pkg/filter/testdata/drift_ignore_valid/.driftignore b/pkg/filter/testdata/drift_ignore_valid/.driftignore
deleted file mode 100644
index b8e0b6fb4..000000000
--- a/pkg/filter/testdata/drift_ignore_valid/.driftignore
+++ /dev/null
@@ -1,8 +0,0 @@
-ignored_resource.id2
-wildcard_resource.*
-resource_type.id\.with\.dots
-resource_type.idwith\\
-resource_type.idwith\\backslashes
-resource_type.idwith/slashes
-
-# this is a comment
diff --git a/pkg/filter/testdata/drift_ignore_wildcard/.driftignore b/pkg/filter/testdata/drift_ignore_wildcard/.driftignore
deleted file mode 100644
index af4b74841..000000000
--- a/pkg/filter/testdata/drift_ignore_wildcard/.driftignore
+++ /dev/null
@@ -1,5 +0,0 @@
-*2**.**d1*
-type3.id1***0
-*.id\\WithBa*slas*\\**\\
-
-# this is *** comment
diff --git a/pkg/helpers/azure/storage.go b/pkg/helpers/azure/storage.go
deleted file mode 100644
index fc7a277eb..000000000
--- a/pkg/helpers/azure/storage.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package azure
-
-import (
- "os"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azidentity"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
-)
-
-func NewStorageAccountsClient() (*armstorage.StorageAccountsClient, error) {
- cred, err := azidentity.NewDefaultAzureCredential(nil)
- if err != nil {
- return nil, err
- }
- return armstorage.NewStorageAccountsClient(os.Getenv("AZURE_SUBSCRIPTION_ID"), cred, nil), nil
-
-}
diff --git a/pkg/helpers/normalize_json.go b/pkg/helpers/normalize_json.go
deleted file mode 100644
index 5ce8b380b..000000000
--- a/pkg/helpers/normalize_json.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package helpers
-
-import "encoding/json"
-
-// Since we can't use both hashicorp/terraform and hashicorp/terraform-plugin-sdk
-// dependencies together, we decided to duplicate the helper function below from
-// the original repo.
-// https://github.com/hashicorp/terraform-plugin-sdk/issues/268
-// https://www.terraform.io/docs/extend/guides/v1-upgrade-guide.html
-// https://github.com/hashicorp/terraform-website/blob/master/content/source/docs/extend/best-practices/depending-on-providers.html.md#using-the-rpc-protocol
-
-// Takes a value containing JSON string and passes it through
-// the JSON parser to normalize it, returns either a parsing
-// error or normalized JSON string.
-func NormalizeJsonString(jsonString interface{}) (string, error) {
- var j interface{}
-
- if jsonString == nil || jsonString.(string) == "" {
- return "", nil
- }
-
- s := jsonString.(string)
-
- err := json.Unmarshal([]byte(s), &j)
- if err != nil {
- return s, err
- }
-
- bytes, _ := json.Marshal(j)
- return string(bytes[:]), nil
-}
diff --git a/pkg/http/client.go b/pkg/http/client.go
deleted file mode 100644
index 2d5f4738b..000000000
--- a/pkg/http/client.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package http
-
-import "net/http"
-
-// HTTPClient is an interface for http.Client type
-type HTTPClient interface {
- Do(req *http.Request) (*http.Response, error)
-}
diff --git a/pkg/http/mock_HTTPClient.go b/pkg/http/mock_HTTPClient.go
deleted file mode 100644
index 87f6c26c3..000000000
--- a/pkg/http/mock_HTTPClient.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package http
-
-import (
- nethttp "net/http"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockHTTPClient is an autogenerated mock type for the HTTPClient type
-type MockHTTPClient struct {
- mock.Mock
-}
-
-// Do provides a mock function with given fields: req
-func (_m *MockHTTPClient) Do(req *nethttp.Request) (*nethttp.Response, error) {
- ret := _m.Called(req)
-
- var r0 *nethttp.Response
- var r1 error
- if rf, ok := ret.Get(0).(func(*nethttp.Request) (*nethttp.Response, error)); ok {
- return rf(req)
- }
- if rf, ok := ret.Get(0).(func(*nethttp.Request) *nethttp.Response); ok {
- r0 = rf(req)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*nethttp.Response)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*nethttp.Request) error); ok {
- r1 = rf(req)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockHTTPClient interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockHTTPClient creates a new instance of MockHTTPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockHTTPClient(t mockConstructorTestingTNewMockHTTPClient) *MockHTTPClient {
- mock := &MockHTTPClient{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/pkg/iac/config/config.go b/pkg/iac/config/config.go
deleted file mode 100644
index aa6ed1e84..000000000
--- a/pkg/iac/config/config.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package config
-
-import "fmt"
-
-type SupplierConfig struct {
- Key string
- Backend string
- Path string
-}
-
-func (c *SupplierConfig) String() string {
- str := c.Key
- if c.Backend != "" {
- str += fmt.Sprintf("+%s", c.Backend)
- }
- if str != "" {
- str += "://"
- }
- if c.Path != "" {
- str += c.Path
- }
- return str
-}
diff --git a/pkg/iac/config/config_test.go b/pkg/iac/config/config_test.go
deleted file mode 100644
index f72c71a26..000000000
--- a/pkg/iac/config/config_test.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package config
-
-import "testing"
-
-func TestSupplierConfig_String(t *testing.T) {
- tests := []struct {
- name string
- config SupplierConfig
- want string
- }{
- {
- name: "test with empty config",
- config: SupplierConfig{},
- want: "",
- },
- {
- name: "test with empty path",
- config: SupplierConfig{
- Key: "tfstate",
- Backend: "s3",
- Path: "",
- },
- want: "tfstate+s3://",
- },
- {
- name: "test valid config",
- config: SupplierConfig{
- Key: "tfstate",
- Backend: "s3",
- Path: "my-bucket/terraform.tfstate",
- },
- want: "tfstate+s3://my-bucket/terraform.tfstate",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := tt.config.String(); got != tt.want {
- t.Errorf("String() = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/iac/errors.go b/pkg/iac/errors.go
deleted file mode 100644
index f99fc819d..000000000
--- a/pkg/iac/errors.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package iac
-
-import (
- "fmt"
- "strings"
-)
-
-type StateReadingError struct {
- errors []error
-}
-
-func NewStateReadingError() *StateReadingError {
- return &StateReadingError{}
-}
-
-func (s *StateReadingError) Add(err error) {
- s.errors = append(s.errors, err)
-}
-
-func (s *StateReadingError) Error() string {
- var err strings.Builder
- _, _ = fmt.Fprint(&err, "There were errors reading your states files : \n")
- for _, e := range s.errors {
- _, _ = fmt.Fprintf(&err, " - %s\n", e.Error())
- }
- return err.String()
-}
diff --git a/pkg/iac/supplier/IacChainSupplier.go b/pkg/iac/supplier/IacChainSupplier.go
deleted file mode 100644
index d2ca27a88..000000000
--- a/pkg/iac/supplier/IacChainSupplier.go
+++ /dev/null
@@ -1,87 +0,0 @@
-package supplier
-
-import (
- "context"
- "runtime"
-
- "github.com/snyk/driftctl/enumeration/parallel"
- resource2 "github.com/snyk/driftctl/pkg/resource"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/iac"
-)
-
-type IacChainSupplier struct {
- suppliers []resource2.IaCSupplier
- runner *parallel.ParallelRunner
-}
-
-func NewIacChainSupplier() *IacChainSupplier {
- return &IacChainSupplier{
- runner: parallel.NewParallelRunner(context.TODO(), int64(runtime.NumCPU())),
- }
-}
-
-func (r *IacChainSupplier) SourceCount() uint {
- count := uint(0)
- for _, supplier := range r.suppliers {
- count += supplier.SourceCount()
- }
- return count
-}
-
-func (r *IacChainSupplier) AddSupplier(supplier resource2.IaCSupplier) {
- r.suppliers = append(r.suppliers, supplier)
-}
-
-func (r *IacChainSupplier) Resources() ([]*resource.Resource, error) {
-
- for _, supplier := range r.suppliers {
- sup := supplier
- r.runner.Run(func() (interface{}, error) {
- resources, err := sup.Resources()
- return &result{err, resources}, nil
- })
- }
-
- results := make([]*resource.Resource, 0)
- isSuccess := false
- retrieveError := iac.NewStateReadingError()
-ReadLoop:
- for {
- select {
- case supplierResult, ok := <-r.runner.Read():
- if !ok || supplierResult == nil {
- break ReadLoop
- }
- // Type cannot be invalid as return type is enforced
- // in run function on top
- result, _ := supplierResult.(*result)
-
- if result.err != nil {
- retrieveError.Add(result.err)
- continue
- }
- isSuccess = true
- results = append(results, result.res...)
- case <-r.runner.DoneChan():
- break ReadLoop
- }
- }
-
- if r.runner.Err() != nil {
- return nil, r.runner.Err()
- }
-
- if !isSuccess {
- // only fail if all suppliers failed
- return nil, retrieveError
- }
-
- return results, nil
-}
-
-type result struct {
- err error
- res []*resource.Resource
-}
diff --git a/pkg/iac/supplier/IacChainSupplier_test.go b/pkg/iac/supplier/IacChainSupplier_test.go
deleted file mode 100644
index c2071c728..000000000
--- a/pkg/iac/supplier/IacChainSupplier_test.go
+++ /dev/null
@@ -1,88 +0,0 @@
-package supplier
-
-import (
- "reflect"
- "testing"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/enumeration/resource"
- resource2 "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestIacChainSupplier_Resources(t *testing.T) {
- tests := []struct {
- name string
- initSuppliers func(suppliers *[]resource2.IaCSupplier)
- want []*resource.Resource
- wantErr bool
- }{
- {
- name: "All failed",
- initSuppliers: func(suppliers *[]resource2.IaCSupplier) {
- sup := &resource2.MockIaCSupplier{}
- sup.On("Resources").Return(nil, errors.New("1"))
- *suppliers = append(*suppliers, sup)
-
- sup = &resource2.MockIaCSupplier{}
- sup.On("Resources").Return(nil, errors.New("2"))
- *suppliers = append(*suppliers, sup)
-
- sup = &resource2.MockIaCSupplier{}
- sup.On("Resources").Return(nil, errors.New("3"))
- *suppliers = append(*suppliers, sup)
- },
- want: nil,
- wantErr: true,
- },
- {
- name: "Partial failed",
- initSuppliers: func(suppliers *[]resource2.IaCSupplier) {
- sup := &resource2.MockIaCSupplier{}
- sup.On("Resources").Return(nil, errors.New("1"))
- *suppliers = append(*suppliers, sup)
-
- sup = &resource2.MockIaCSupplier{}
- sup.On("Resources").Return(nil, errors.New("2"))
- *suppliers = append(*suppliers, sup)
-
- sup = &resource2.MockIaCSupplier{}
- sup.On("Resources").Return([]*resource.Resource{
- &resource.Resource{
- Id: "ID",
- Type: "TYPE",
- Attrs: nil,
- },
- }, nil)
- *suppliers = append(*suppliers, sup)
- },
- want: []*resource.Resource{
- &resource.Resource{
- Id: "ID",
- Type: "TYPE",
- Attrs: nil,
- },
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- r := NewIacChainSupplier()
- suppliers := make([]resource2.IaCSupplier, 0)
- tt.initSuppliers(&suppliers)
-
- for _, supplier := range suppliers {
- r.AddSupplier(supplier)
- }
-
- got, err := r.Resources()
- if (err != nil) != tt.wantErr {
- t.Errorf("Resources() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("Resources() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/iac/supplier/supplier.go b/pkg/iac/supplier/supplier.go
deleted file mode 100644
index 8840afb1f..000000000
--- a/pkg/iac/supplier/supplier.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package supplier
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/terraform"
- resource2 "github.com/snyk/driftctl/pkg/resource"
-
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- "github.com/snyk/driftctl/pkg/output"
-
- "github.com/snyk/driftctl/pkg/iac/terraform/state"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-var supportedSuppliers = []string{
- state.TerraformStateReaderSupplier,
-}
-
-func IsSupplierSupported(supplierKey string) bool {
- for _, s := range supportedSuppliers {
- if s == supplierKey {
- return true
- }
- }
- return false
-}
-
-func GetIACSupplier(configs []config.SupplierConfig,
- library *terraform.ProviderLibrary,
- backendOpts *backend.Options,
- progress output.Progress,
- alerter *alerter.Alerter,
- factory resource.ResourceFactory,
- filter filter.Filter) (resource2.IaCSupplier, error) {
-
- chainSupplier := NewIacChainSupplier()
- for _, config := range configs {
- if !IsSupplierSupported(config.Key) {
- return nil, errors.Errorf("Unsupported supplier '%s'", config.Key)
- }
-
- deserializer := resource.NewDeserializer(factory)
-
- var supplier resource2.IaCSupplier
- var err error
- switch config.Key {
- case state.TerraformStateReaderSupplier:
- supplier, err = state.NewReader(config, library, backendOpts, progress, alerter, deserializer, filter)
- default:
- return nil, errors.Errorf("Unsupported supplier '%s'", config.Key)
- }
-
- if err != nil {
- return nil, err
- }
-
- logrus.WithFields(logrus.Fields{
- "supplier": config.Key,
- "backend": config.Backend,
- "path": config.Path,
- }).Debug("Found IAC supplier")
-
- chainSupplier.AddSupplier(supplier)
- }
- return chainSupplier, nil
-}
-
-func GetSupportedSuppliers() []string {
- return supportedSuppliers
-}
-
-func GetSupportedSchemes() []string {
- schemes := []string{
- "tfstate://",
- }
- for _, supplier := range supportedSuppliers {
- for _, backend := range backend.GetSupportedBackends() {
- schemes = append(schemes, fmt.Sprintf("%s+%s://", supplier, backend))
- }
- }
- return schemes
-}
diff --git a/pkg/iac/supplier/supplier_test.go b/pkg/iac/supplier/supplier_test.go
deleted file mode 100644
index e7ae18ba2..000000000
--- a/pkg/iac/supplier/supplier_test.go
+++ /dev/null
@@ -1,125 +0,0 @@
-package supplier
-
-import (
- "fmt"
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/terraform"
- "github.com/snyk/driftctl/pkg/resource"
- testresource "github.com/snyk/driftctl/test/resource"
-
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- "github.com/snyk/driftctl/pkg/output"
-)
-
-func TestGetIACSupplier(t *testing.T) {
- type args struct {
- config []config.SupplierConfig
- options *backend.Options
- }
- tests := []struct {
- name string
- args args
- wantErr error
- }{
- {
- name: "test unknown supplier",
- args: args{
- config: []config.SupplierConfig{
- {
- Key: "foobar",
- },
- },
- options: &backend.Options{
- Headers: map[string]string{},
- },
- },
- wantErr: fmt.Errorf("Unsupported supplier 'foobar'"),
- },
- {
- name: "test unknown supplier in multiples states",
- args: args{
- config: []config.SupplierConfig{
- {
- Key: "foobar",
- },
- {
- Key: "tfstate",
- Backend: "",
- Path: "terraform.tfstate",
- },
- },
- options: &backend.Options{
- Headers: map[string]string{},
- },
- },
- wantErr: fmt.Errorf("Unsupported supplier 'foobar'"),
- },
- {
- name: "test valid tfstate://terraform.tfstate",
- args: args{
- config: []config.SupplierConfig{
- {Key: "tfstate", Backend: "", Path: "terraform.tfstate"},
- },
- options: &backend.Options{
- Headers: map[string]string{},
- },
- },
- wantErr: nil,
- },
- {
- name: "test valid multiples states",
- args: args{
- config: []config.SupplierConfig{
- {Key: "tfstate", Backend: "", Path: "terraform.tfstate"},
- {Key: "tfstate", Backend: "s3", Path: "terraform.tfstate"},
- {Key: "tfstate", Backend: "", Path: "terraform2.tfstate"},
- },
- options: &backend.Options{
- Headers: map[string]string{},
- },
- },
- wantErr: nil,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Start").Return().Times(1)
-
- repo := testresource.InitFakeSchemaRepository(terraform.AWS, "3.19.0")
- factory := resource.NewDriftctlResourceFactory(repo)
- alerter := alerter.NewAlerter()
-
- testFilter := &filter.MockFilter{}
-
- _, err := GetIACSupplier(tt.args.config, terraform.NewProviderLibrary(), tt.args.options, progress, alerter, factory, testFilter)
-
- if tt.wantErr != nil && err.Error() != tt.wantErr.Error() {
- t.Errorf("GetIACSupplier() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- })
- }
-}
-
-func TestGetSupportedSchemes(t *testing.T) {
-
- want := []string{
- "tfstate://",
- "tfstate+s3://",
- "tfstate+http://",
- "tfstate+https://",
- "tfstate+tfcloud://",
- "tfstate+gs://",
- "tfstate+azurerm://",
- }
-
- if got := GetSupportedSchemes(); !reflect.DeepEqual(got, want) {
- t.Errorf("GetSupportedSchemes() = %v, want %v", got, want)
- }
-}
diff --git a/pkg/iac/terraform/state/alerts.go b/pkg/iac/terraform/state/alerts.go
deleted file mode 100644
index e50b56971..000000000
--- a/pkg/iac/terraform/state/alerts.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package state
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type StateReadingAlert struct {
- key string
- err string
-}
-
-func NewStateReadingAlert(key string, err error) *StateReadingAlert {
- return &StateReadingAlert{key: key, err: err.Error()}
-}
-
-func (s *StateReadingAlert) Message() string {
- return fmt.Sprintf("Your analysis may be incomplete. There was an error reading state file '%s': %s", s.key, s.err)
-}
-
-func (s *StateReadingAlert) ShouldIgnoreResource() bool {
- return false
-}
-
-func (s *StateReadingAlert) Resource() *resource.Resource {
- return nil
-}
diff --git a/pkg/iac/terraform/state/backend/azureblob_reader.go b/pkg/iac/terraform/state/backend/azureblob_reader.go
deleted file mode 100644
index 6b198c2b5..000000000
--- a/pkg/iac/terraform/state/backend/azureblob_reader.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package backend
-
-import (
- "context"
- "fmt"
- "io"
- "strings"
-
- "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend/options"
-)
-
-const BackendKeyAzureRM = "azurerm"
-
-type AzureRMBackend struct {
- reader io.ReadCloser
- storageClient azblob.BlockBlobClient
-}
-
-func NewAzureRMReader(path string, opts options.AzureRMBackendOptions) (*AzureRMBackend, error) {
- bucketPath := strings.Split(path, "/")
- if len(bucketPath) < 2 || bucketPath[1] == "" {
- return nil, errors.Errorf("Unable to parse azurerm backend storage path: %s. Must be CONTAINER/PATH/TO/OBJECT", path)
- }
- containerName := bucketPath[0]
- objectPath := strings.Join(bucketPath[1:], "/")
-
- credential, err := azblob.NewSharedKeyCredential(opts.StorageAccount, opts.StorageKey)
- if err != nil {
- return nil, err
- }
-
- blobClient, err := azblob.NewBlockBlobClientWithSharedKey(
- fmt.Sprintf(
- "https://%s.blob.core.windows.net/%s/%s",
- credential.AccountName(),
- containerName,
- objectPath,
- ),
- credential,
- nil,
- )
- if err != nil {
- return nil, err
- }
-
- return &AzureRMBackend{
- storageClient: blobClient,
- }, nil
-}
-
-func (s *AzureRMBackend) Read(p []byte) (int, error) {
- if s.reader == nil {
- ctx := context.Background()
- data, err := s.storageClient.Download(ctx, nil)
- if err != nil {
- return 0, err
- }
- s.reader = data.Body(azblob.RetryReaderOptions{})
- }
- return s.reader.Read(p)
-}
-
-func (s *AzureRMBackend) Close() error {
- if s.reader != nil {
- return s.reader.Close()
- }
- return errors.New("Unable to close reader as nothing was opened")
-}
diff --git a/pkg/iac/terraform/state/backend/azureblob_reader_test.go b/pkg/iac/terraform/state/backend/azureblob_reader_test.go
deleted file mode 100644
index b14928daa..000000000
--- a/pkg/iac/terraform/state/backend/azureblob_reader_test.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package backend
-
-import (
- "fmt"
- "testing"
-
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend/options"
- "github.com/stretchr/testify/assert"
-)
-
-func TestNewAzureRMReader(t *testing.T) {
- tests := []struct {
- name string
- options options.AzureRMBackendOptions
- path string
- wantErr assert.ErrorAssertionFunc
- }{
- {
- name: "invalid path",
- path: "containerName/",
- wantErr: func(t assert.TestingT, err error, i ...interface{}) bool {
- assert.NotNil(t, err)
- assert.Equal(t, "Unable to parse azurerm backend storage path: containerName/. Must be CONTAINER/PATH/TO/OBJECT", err.Error())
- return true
- },
- },
- // This is not supposed to do any network call during azure client init
- // It this behavior change that logic should be moved in the Read function like we already
- // did for some other backend
- {
- name: "valid",
- path: "containerName/valid.tfstate",
- wantErr: func(t assert.TestingT, err error, i ...interface{}) bool {
- return false
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- _, err := NewAzureRMReader(tt.path, tt.options)
- if !tt.wantErr(t, err, fmt.Sprintf("NewAzureRMReader(%v)", tt.path)) {
- return
- }
- })
- }
-}
diff --git a/pkg/iac/terraform/state/backend/backend.go b/pkg/iac/terraform/state/backend/backend.go
deleted file mode 100644
index 56f4b3b1d..000000000
--- a/pkg/iac/terraform/state/backend/backend.go
+++ /dev/null
@@ -1,71 +0,0 @@
-package backend
-
-import (
- "fmt"
- "io"
- "net/http"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend/options"
-)
-
-var supportedBackends = []string{
- BackendKeyFile,
- BackendKeyS3,
- BackendKeyHTTP,
- BackendKeyHTTPS,
- BackendKeyTFCloud,
- BackendKeyGS,
- BackendKeyAzureRM,
-}
-
-type Backend io.ReadCloser
-
-type Options struct {
- Headers map[string]string
- TFCloudToken string
- TFCloudEndpoint string
- options.AzureRMBackendOptions
-}
-
-func IsSupported(backend string) bool {
- for _, b := range supportedBackends {
- if b == backend {
- return true
- }
- }
-
- return false
-}
-
-func GetBackend(config config.SupplierConfig, opts *Options) (Backend, error) {
- backend := config.Backend
-
- if !IsSupported(backend) {
- return nil, errors.Errorf("Unsupported backend '%s'", backend)
- }
-
- switch backend {
- case BackendKeyFile:
- return NewFileReader(config.Path)
- case BackendKeyS3:
- return NewS3Reader(config.Path)
- case BackendKeyHTTP:
- fallthrough
- case BackendKeyHTTPS:
- return NewHTTPReader(&http.Client{}, fmt.Sprintf("%s://%s", config.Backend, config.Path), opts)
- case BackendKeyTFCloud:
- return NewTFCloudReader(config.Path, opts), nil
- case BackendKeyGS:
- return NewGSReader(config.Path)
- case BackendKeyAzureRM:
- return NewAzureRMReader(config.Path, opts.AzureRMBackendOptions)
- default:
- return nil, errors.Errorf("Unsupported backend '%s'", backend)
- }
-}
-
-func GetSupportedBackends() []string {
- return supportedBackends[1:]
-}
diff --git a/pkg/iac/terraform/state/backend/file_reader.go b/pkg/iac/terraform/state/backend/file_reader.go
deleted file mode 100644
index f59ade45e..000000000
--- a/pkg/iac/terraform/state/backend/file_reader.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package backend
-
-import (
- "os"
-)
-
-const BackendKeyFile = ""
-
-func NewFileReader(path string) (Backend, error) {
- return os.Open(path)
-}
diff --git a/pkg/iac/terraform/state/backend/gs_reader.go b/pkg/iac/terraform/state/backend/gs_reader.go
deleted file mode 100644
index 21dec0568..000000000
--- a/pkg/iac/terraform/state/backend/gs_reader.go
+++ /dev/null
@@ -1,66 +0,0 @@
-package backend
-
-import (
- "context"
- "io"
- "strings"
-
- "cloud.google.com/go/storage"
- "github.com/pkg/errors"
-)
-
-const BackendKeyGS = "gs"
-
-type GSBackend struct {
- bucketName string
- path string
- reader io.ReadCloser
- storageClient *storage.Client
-}
-
-func NewGSReader(path string) (*GSBackend, error) {
- bucketPath := strings.Split(path, "/")
- if len(bucketPath) < 2 {
- return nil, errors.Errorf("Unable to parse Google Storage path: %s. Must be BUCKET_NAME/PATH/TO/OBJECT", path)
- }
- bucketName := bucketPath[0]
- key := strings.Join(bucketPath[1:], "/")
-
- return &GSBackend{
- bucketName: bucketName,
- path: key,
- }, nil
-}
-
-func (s *GSBackend) Read(p []byte) (int, error) {
- if s.reader == nil {
- if s.storageClient == nil {
- client, err := storage.NewClient(context.Background())
- if err != nil {
- return 0, err
- }
- s.storageClient = client
- }
-
- ctx := context.Background()
- rc, err := s.storageClient.Bucket(s.bucketName).Object(s.path).NewReader(ctx)
- if err != nil {
- return 0, err
- }
- s.reader = rc
- }
- return s.reader.Read(p)
-}
-
-func (s *GSBackend) Close() error {
- if s.storageClient == nil {
- return nil
- }
- if err := s.storageClient.Close(); err != nil {
- return err
- }
- if s.reader != nil {
- return s.reader.Close()
- }
- return errors.New("Unable to close reader as nothing was opened")
-}
diff --git a/pkg/iac/terraform/state/backend/gs_reader_test.go b/pkg/iac/terraform/state/backend/gs_reader_test.go
deleted file mode 100644
index b87676c4a..000000000
--- a/pkg/iac/terraform/state/backend/gs_reader_test.go
+++ /dev/null
@@ -1,174 +0,0 @@
-package backend
-
-import (
- "errors"
- "fmt"
- "io"
- "net/http"
- "reflect"
- "testing"
-
- "cloud.google.com/go/storage"
- googletest "github.com/snyk/driftctl/test/google"
- "github.com/stretchr/testify/assert"
-)
-
-func TestGSBackend_NewGSReader(t *testing.T) {
- type args struct {
- path string
- }
- tests := []struct {
- name string
- args args
- want *GSBackend
- wantErr error
- }{
- {
- name: "valid path",
- args: args{
- path: "bucket-1/path/to/terraform.tfstate",
- },
- want: &GSBackend{
- bucketName: "bucket-1",
- path: "path/to/terraform.tfstate",
- },
- },
- {
- name: "invalid path",
- args: args{
- path: "foobar",
- },
- want: nil,
- wantErr: fmt.Errorf("Unable to parse Google Storage path: foobar. Must be BUCKET_NAME/PATH/TO/OBJECT"),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got, err := NewGSReader(tt.args.path)
- if tt.wantErr != nil {
- assert.EqualError(t, err, tt.wantErr.Error())
- return
- } else {
- assert.NoError(t, err)
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewGSReader() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestGSBackend_Read(t *testing.T) {
- type args struct {
- bucketName string
- path string
- }
- tests := []struct {
- name string
- args args
- wantErr error
- handlerFunc map[string]http.HandlerFunc
- expected string
- }{
- {
- name: "should succeed",
- args: args{
- bucketName: "bucket-1",
- path: "terraform.tfstate",
- },
- handlerFunc: map[string]http.HandlerFunc{
- "/bucket-1/terraform.tfstate": func(w http.ResponseWriter, r *http.Request) {
- _, _ = w.Write([]byte(`{"version": "1.0.0"}`))
- },
- },
- expected: `{"version": "1.0.0"}`,
- },
- {
- name: "should fail to read remote file",
- args: args{
- bucketName: "bucket-2",
- path: "path/to/terraform.tfstate",
- },
- wantErr: errors.New("storage: object doesn't exist"),
- handlerFunc: map[string]http.HandlerFunc{
- "/bucket-2/path/to/terraform.tfstate": func(w http.ResponseWriter, r *http.Request) {
- w.WriteHeader(http.StatusNotFound)
- _, _ = w.Write([]byte("Not Found"))
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- client, server, err := googletest.NewFakeStorageServer(tt.handlerFunc)
- if err != nil {
- t.Fatal(err)
- }
- defer client.Close()
- defer server.Close()
-
- reader := &GSBackend{
- bucketName: tt.args.bucketName,
- path: tt.args.path,
- storageClient: client,
- }
- assert.NoError(t, err)
-
- got := make([]byte, len(tt.expected))
- _, err = reader.Read(got)
- if tt.wantErr != nil {
- assert.EqualError(t, err, tt.wantErr.Error())
- return
- } else {
- assert.Equal(t, io.EOF, err)
- }
- assert.NotNil(t, got)
- assert.Equal(t, tt.expected, string(got))
- })
- }
-}
-
-func TestGSBackend_Close(t *testing.T) {
- tests := []struct {
- name string
- reader *MockReaderMock
- client *storage.Client
- wantErr error
- }{
- {
- name: "should fail to close reader",
- reader: func() *MockReaderMock {
- m := &MockReaderMock{}
- m.On("Close").Return(errors.New("dummy error"))
- return m
- }(),
- client: &storage.Client{},
- wantErr: errors.New("dummy error"),
- },
- {
- name: "should close reader",
- reader: func() *MockReaderMock {
- m := &MockReaderMock{}
- m.On("Close").Return(nil)
- return m
- }(),
- client: &storage.Client{},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- h := &GSBackend{
- reader: tt.reader,
- storageClient: tt.client,
- }
- err := h.Close()
- if tt.wantErr == nil {
- assert.Nil(t, err)
- } else {
- assert.EqualError(t, err, tt.wantErr.Error())
- }
-
- tt.reader.AssertExpectations(t)
- })
- }
-}
diff --git a/pkg/iac/terraform/state/backend/http_reader.go b/pkg/iac/terraform/state/backend/http_reader.go
deleted file mode 100644
index 4e3f9ac86..000000000
--- a/pkg/iac/terraform/state/backend/http_reader.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package backend
-
-import (
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- pkghttp "github.com/snyk/driftctl/pkg/http"
-
- "io"
- "net/http"
-)
-
-const BackendKeyHTTP = "http"
-const BackendKeyHTTPS = "https"
-
-type HTTPBackend struct {
- request *http.Request
- client pkghttp.HTTPClient
- reader io.ReadCloser
-}
-
-func NewHTTPReader(client pkghttp.HTTPClient, rawURL string, opts *Options) (*HTTPBackend, error) {
- req, err := http.NewRequest(http.MethodGet, rawURL, nil)
- if err != nil {
- return nil, err
- }
-
- for key, value := range opts.Headers {
- req.Header.Add(key, value)
- }
-
- return &HTTPBackend{req, client, nil}, nil
-}
-
-func (h *HTTPBackend) Read(p []byte) (n int, err error) {
- if h.reader == nil {
- res, err := h.client.Do(h.request)
- if err != nil {
- return 0, err
- }
- h.reader = res.Body
-
- if res.StatusCode < 200 || res.StatusCode >= 400 {
- body, _ := io.ReadAll(h.reader)
- logrus.WithFields(logrus.Fields{"body": string(body)}).Trace("HTTP(s) backend response")
-
- return 0, errors.Errorf("error requesting HTTP(s) backend state: status code: %d", res.StatusCode)
- }
- }
- return h.reader.Read(p)
-}
-
-func (h *HTTPBackend) Close() error {
- if h.reader != nil {
- return h.reader.Close()
- }
- return errors.New("Unable to close reader as nothing was opened")
-}
diff --git a/pkg/iac/terraform/state/backend/http_reader_test.go b/pkg/iac/terraform/state/backend/http_reader_test.go
deleted file mode 100644
index 3f11097ad..000000000
--- a/pkg/iac/terraform/state/backend/http_reader_test.go
+++ /dev/null
@@ -1,160 +0,0 @@
-package backend
-
-import (
- "errors"
- "io"
- "net/http"
- "strings"
- "testing"
-
- pkghttp "github.com/snyk/driftctl/pkg/http"
- "github.com/stretchr/testify/assert"
-)
-
-func TestHTTPBackend_Read(t *testing.T) {
- type args struct {
- url string
- options *Options
- }
- tests := []struct {
- name string
- args args
- wantErr error
- httpClient pkghttp.HTTPClient
- expected string
- }{
- {
- name: "Should fail with wrong URL",
- args: args{
- url: "wrong_url",
- options: &Options{
- Headers: map[string]string{},
- },
- },
- wantErr: errors.New("Get \"wrong_url\": unsupported protocol scheme \"\""),
- httpClient: func() pkghttp.HTTPClient {
- return &http.Client{}
- }(),
- expected: "",
- },
- {
- name: "Should fetch URL with auth header",
- args: args{
- url: "https://example.com/cloudskiff/driftctl/main/terraform.tfstate",
- options: &Options{
- Headers: map[string]string{
- "Authorization": "Basic Test",
- },
- },
- },
- wantErr: nil,
- httpClient: func() pkghttp.HTTPClient {
- m := &pkghttp.MockHTTPClient{}
-
- req, _ := http.NewRequest(http.MethodGet, "https://example.com/cloudskiff/driftctl/main/terraform.tfstate", nil)
-
- req.Header.Add("Authorization", "Basic Test")
-
- bodyReader := strings.NewReader("{}")
- bodyReadCloser := io.NopCloser(bodyReader)
-
- m.On("Do", req).Return(&http.Response{
- StatusCode: 200,
- Body: bodyReadCloser,
- }, nil)
-
- return m
- }(),
- expected: "{}",
- },
- {
- name: "Should fail with bad status code",
- args: args{
- url: "https://example.com/cloudskiff/driftctl/main/terraform.tfstate",
- options: &Options{
- Headers: map[string]string{},
- },
- },
- wantErr: errors.New("error requesting HTTP(s) backend state: status code: 404"),
- httpClient: func() pkghttp.HTTPClient {
- m := &pkghttp.MockHTTPClient{}
-
- req, _ := http.NewRequest(http.MethodGet, "https://example.com/cloudskiff/driftctl/main/terraform.tfstate", nil)
-
- bodyReader := strings.NewReader("test")
- bodyReadCloser := io.NopCloser(bodyReader)
-
- m.On("Do", req).Return(&http.Response{
- StatusCode: 404,
- Body: bodyReadCloser,
- }, nil)
-
- return m
- }(),
- expected: "test",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- reader, err := NewHTTPReader(tt.httpClient, tt.args.url, tt.args.options)
- assert.NoError(t, err)
-
- got := make([]byte, len(tt.expected))
- _, err = reader.Read(got)
- if tt.wantErr != nil {
- assert.EqualError(t, err, tt.wantErr.Error())
- return
- } else {
- assert.NoError(t, err)
- }
- assert.NotNil(t, got)
- assert.Equal(t, tt.expected, string(got))
- })
- }
-}
-
-func TestHTTPBackend_Close(t *testing.T) {
- type fields struct {
- req *http.Request
- reader io.ReadCloser
- }
- tests := []struct {
- name string
- fields fields
- wantErr bool
- }{
- {
- name: "should fail to close reader",
- fields: fields{
- req: &http.Request{},
- reader: func() io.ReadCloser {
- return nil
- }(),
- },
- wantErr: true,
- },
- {
- name: "should close reader",
- fields: fields{
- req: &http.Request{},
- reader: func() io.ReadCloser {
- m := &MockReaderMock{}
- m.On("Close").Return(nil)
- return m
- }(),
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- h := &HTTPBackend{
- request: tt.fields.req,
- reader: tt.fields.reader,
- }
- if err := h.Close(); (err != nil) != tt.wantErr {
- t.Errorf("Close() error = %v, wantErr %v", err, tt.wantErr)
- }
- })
- }
-}
diff --git a/pkg/iac/terraform/state/backend/mock_ReaderMock.go b/pkg/iac/terraform/state/backend/mock_ReaderMock.go
deleted file mode 100644
index 93bd76b42..000000000
--- a/pkg/iac/terraform/state/backend/mock_ReaderMock.go
+++ /dev/null
@@ -1,45 +0,0 @@
-// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
-
-package backend
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockReaderMock is an autogenerated mock type for the ReaderMock type
-type MockReaderMock struct {
- mock.Mock
-}
-
-// Close provides a mock function with given fields:
-func (_m *MockReaderMock) Close() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// Read provides a mock function with given fields: p
-func (_m *MockReaderMock) Read(p []byte) (int, error) {
- ret := _m.Called(p)
-
- var r0 int
- if rf, ok := ret.Get(0).(func([]byte) int); ok {
- r0 = rf(p)
- } else {
- r0 = ret.Get(0).(int)
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func([]byte) error); ok {
- r1 = rf(p)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
diff --git a/pkg/iac/terraform/state/backend/options/azure.go b/pkg/iac/terraform/state/backend/options/azure.go
deleted file mode 100644
index bba04839f..000000000
--- a/pkg/iac/terraform/state/backend/options/azure.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package options
-
-type AzureRMBackendOptions struct {
- StorageAccount, StorageKey string
-}
diff --git a/pkg/iac/terraform/state/backend/s3_reader.go b/pkg/iac/terraform/state/backend/s3_reader.go
deleted file mode 100644
index d0f9dc2e0..000000000
--- a/pkg/iac/terraform/state/backend/s3_reader.go
+++ /dev/null
@@ -1,72 +0,0 @@
-package backend
-
-import (
- "io"
- "strings"
-
- "github.com/aws/aws-sdk-go/aws/session"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/envproxy"
-
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
-)
-
-const BackendKeyS3 = "s3"
-
-type S3Backend struct {
- input s3.GetObjectInput
- reader io.ReadCloser
- S3Client s3iface.S3API
-}
-
-func NewS3Reader(path string) (*S3Backend, error) {
-
- backend := S3Backend{}
- bucketPath := strings.Split(path, "/")
- if len(bucketPath) < 2 {
- return nil, errors.Errorf("Unable to parse S3 path: %s. Must be BUCKET_NAME/PATH/TO/OBJECT", path)
- }
- bucket := bucketPath[0]
- key := strings.Join(bucketPath[1:], "/")
-
- backend.input = s3.GetObjectInput{
- Key: &key,
- Bucket: &bucket,
- }
- envProxy := envproxy.NewEnvProxy("DCTL_S3_", "AWS_")
- envProxy.Apply()
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
- envProxy.Restore()
- backend.S3Client = s3.New(sess)
- return &backend, nil
-}
-
-func (s *S3Backend) Read(p []byte) (n int, err error) {
- if s.reader == nil {
- response, err := s.S3Client.GetObject(&s.input)
- if err != nil {
- requestFailure, ok := err.(s3.RequestFailure)
- if ok {
- return 0, errors.Errorf(
- "Error reading state '%s' from s3 bucket '%s': %s",
- *s.input.Key,
- *s.input.Bucket,
- requestFailure.Message(),
- )
- }
- return 0, err
- }
- s.reader = response.Body
- }
- return s.reader.Read(p)
-}
-
-func (s *S3Backend) Close() error {
- if s.reader != nil {
- return s.reader.Close()
- }
- return errors.New("Unable to close reader as nothing was opened")
-}
diff --git a/pkg/iac/terraform/state/backend/s3_reader_test.go b/pkg/iac/terraform/state/backend/s3_reader_test.go
deleted file mode 100644
index 54bce5e1f..000000000
--- a/pkg/iac/terraform/state/backend/s3_reader_test.go
+++ /dev/null
@@ -1,130 +0,0 @@
-package backend
-
-import (
- "fmt"
- "io"
- "os"
- "reflect"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
- awstest "github.com/snyk/driftctl/test/aws"
-
- "github.com/aws/aws-sdk-go/service/s3"
-
- "github.com/stretchr/testify/mock"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestNewS3ReaderInvalid(t *testing.T) {
- type args struct {
- path string
- }
- tests := []struct {
- name string
- args args
- want *S3Backend
- wantErr error
- }{
- {
- name: "invalid path",
- args: args{
- path: "foobar",
- },
- want: nil,
- wantErr: fmt.Errorf("Unable to parse S3 path: foobar. Must be BUCKET_NAME/PATH/TO/OBJECT"),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- got, err := NewS3Reader(tt.args.path)
- if err.Error() != tt.wantErr.Error() {
- t.Errorf("NewS3Reader() error = '%s', wantErr '%s'", err, tt.wantErr)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("NewS3Reader() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestNewS3Reader(t *testing.T) {
- assert := assert.New(t)
- reader, err := NewS3Reader("sample_bucket/path/to/state.tfstate")
- if err != nil {
- t.Error(err)
- }
-
- assert.Equal(
- "path/to/state.tfstate",
- *reader.input.Key,
- )
- assert.Equal(
- "sample_bucket",
- *reader.input.Bucket,
- )
-}
-
-func TestNewS3ReaderWithEnvProxy(t *testing.T) {
- assert := assert.New(t)
- os.Setenv("AWS_DEFAULT_REGION", "us-east-1")
- os.Setenv("DCTL_S3_DEFAULT_REGION", "eu-west-3")
- reader, err := NewS3Reader("sample_bucket/path/to/state.tfstate")
-
- got := reader.S3Client.(*s3.S3).Config.Region
- if aws.StringValue(got) != "eu-west-3" {
- t.Errorf("NewS3Reader().S3Client.Config.Region got = %v, want %v", aws.StringValue(got), "eu-west-3")
- }
-
- if err != nil {
- t.Error(err)
- }
-
- assert.Equal(
- "path/to/state.tfstate",
- *reader.input.Key,
- )
- assert.Equal(
- "sample_bucket",
- *reader.input.Bucket,
- )
-}
-
-func TestS3Backend_ReadWithError(t *testing.T) {
- assert := assert.New(t)
- fakeS3 := &awstest.MockFakeS3{}
- fakeErr := &awstest.MockFakeRequestFailure{}
- fakeErr.On("Message").Return("Request failed on aws side")
- fakeS3.On("GetObject", mock.Anything).Return(nil, fakeErr)
-
- reader, err := NewS3Reader("foobar/path/to/state")
- if err != nil {
- t.Error(err)
- }
- reader.S3Client = fakeS3
- var b []byte
- n, err := reader.Read(b)
- assert.Empty(n)
- assert.Equal("Error reading state 'path/to/state' from s3 bucket 'foobar': Request failed on aws side", err.Error())
-}
-
-func TestS3Backend_Read(t *testing.T) {
- assert := assert.New(t)
- fakeS3 := &awstest.MockFakeS3{}
- fakeResponse, _ := os.Open("testdata/valid.tfstate")
- defer fakeResponse.Close()
- fakeS3.On("GetObject", &s3.GetObjectInput{
- Bucket: aws.String("foobar"),
- Key: aws.String("path/to/state"),
- }).Return(&s3.GetObjectOutput{Body: fakeResponse}, nil).Once()
-
- reader, err := NewS3Reader("foobar/path/to/state")
- if err != nil {
- t.Error(err)
- }
- reader.S3Client = fakeS3
- _, err = io.ReadAll(reader)
- assert.Nil(err)
-}
diff --git a/pkg/iac/terraform/state/backend/testdata/valid.tfstate b/pkg/iac/terraform/state/backend/testdata/valid.tfstate
deleted file mode 100644
index 0d629892c..000000000
--- a/pkg/iac/terraform/state/backend/testdata/valid.tfstate
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "version": 4,
- "terraform_version": "0.12.29",
- "serial": 144,
- "lineage": "c1bb6946-ebdb-0cd0-b5e1-943feef31964",
- "outputs": {},
- "resources": []
-}
diff --git a/pkg/iac/terraform/state/backend/tfcloud_config_reader.go b/pkg/iac/terraform/state/backend/tfcloud_config_reader.go
deleted file mode 100644
index ef41007e6..000000000
--- a/pkg/iac/terraform/state/backend/tfcloud_config_reader.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package backend
-
-import (
- "encoding/json"
- "errors"
- "io"
- "os"
- "path/filepath"
- "runtime"
-
- "github.com/mitchellh/go-homedir"
-)
-
-type container struct {
- Credentials map[string]containerToken
-}
-
-type containerToken struct {
- Token string
-}
-
-type tfCloudConfigReader struct {
- reader io.ReadCloser
-}
-
-func NewTFCloudConfigReader(reader io.ReadCloser) *tfCloudConfigReader {
- return &tfCloudConfigReader{reader}
-}
-
-func (r *tfCloudConfigReader) GetToken(host string) (string, error) {
- b, err := io.ReadAll(r.reader)
- if err != nil {
- return "", errors.New("unable to read file")
- }
-
- var container container
- if err := json.Unmarshal(b, &container); err != nil {
- return "", err
- }
- if container.Credentials[host].Token == "" {
- return "", errors.New("driftctl could not read your Terraform configuration file, please check that this is a valid Terraform credentials file")
- }
- return container.Credentials[host].Token, nil
-}
-
-func getTerraformConfigFile() (string, error) {
- homeDir, err := homedir.Dir()
- if err != nil {
- return "", err
- }
- basePath := filepath.Join(homeDir, ".terraform.d")
- if runtime.GOOS == "windows" {
- basePath = filepath.Join(os.Getenv("APPDATA"), "terraform.d")
- }
- return filepath.Join(basePath, "credentials.tfrc.json"), nil
-}
diff --git a/pkg/iac/terraform/state/backend/tfcloud_config_reader_test.go b/pkg/iac/terraform/state/backend/tfcloud_config_reader_test.go
deleted file mode 100644
index ac76d9efd..000000000
--- a/pkg/iac/terraform/state/backend/tfcloud_config_reader_test.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package backend
-
-import (
- "fmt"
- "io"
- "strings"
- "testing"
-)
-
-func TestTFCloudConfigReader_GetToken(t *testing.T) {
- tests := []struct {
- name string
- src string
- want string
- wantErr error
- }{
- {
- name: "get terraform cloud creds with config file",
- src: `{"credentials": {"app.terraform.io": {"token": "token.creds.test"}}}`,
- want: "token.creds.test",
- wantErr: nil,
- },
- {
- name: "test with wrong credentials key in config file",
- src: `{"test": {"app.terraform.io": {"token": "token.creds.test"}}}`,
- want: "",
- wantErr: fmt.Errorf("driftctl could not read your Terraform configuration file, please check that this is a valid Terraform credentials file"),
- },
- {
- name: "test with wrong terraform cloud hostname key in config file",
- src: `{"credentials": {"test": {"token": "token.creds.test"}}}`,
- want: "",
- wantErr: fmt.Errorf("driftctl could not read your Terraform configuration file, please check that this is a valid Terraform credentials file"),
- },
- {
- name: "test with wrong terraform cloud token key in config file",
- src: `{"credentials": {"app.terraform.io": {"test": "token.creds.test"}}}`,
- want: "",
- wantErr: fmt.Errorf("driftctl could not read your Terraform configuration file, please check that this is a valid Terraform credentials file"),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- readerCloser := io.NopCloser(strings.NewReader(tt.src))
- defer readerCloser.Close()
- r := NewTFCloudConfigReader(readerCloser)
- got, err := r.GetToken("app.terraform.io")
- if err != nil && err.Error() != tt.wantErr.Error() {
- t.Errorf("GetToken() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- if got != tt.want {
- t.Errorf("GetToken() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/iac/terraform/state/backend/tfcloud_reader.go b/pkg/iac/terraform/state/backend/tfcloud_reader.go
deleted file mode 100644
index 3032b01b9..000000000
--- a/pkg/iac/terraform/state/backend/tfcloud_reader.go
+++ /dev/null
@@ -1,137 +0,0 @@
-package backend
-
-import (
- "bytes"
- "context"
- "io"
- "net/url"
- "os"
- "regexp"
- "strings"
-
- tfe "github.com/hashicorp/go-tfe"
- "github.com/pkg/errors"
-)
-
-const BackendKeyTFCloud = "tfcloud"
-
-type TFCloudAttributes struct {
- HostedStateDownloadUrl string `json:"hosted-state-download-url"`
-}
-
-type TFCloudData struct {
- Attributes TFCloudAttributes `json:"attributes"`
-}
-
-type TFCloudBody struct {
- Data TFCloudData `json:"data"`
-}
-
-type TFCloudBackend struct {
- client *tfe.Client
- reader io.ReadCloser
- opts *Options
- workspacePath string
-}
-
-func NewTFCloudReader(workspacePath string, opts *Options) *TFCloudBackend {
- return &TFCloudBackend{opts: opts, workspacePath: workspacePath}
-}
-
-func (t *TFCloudBackend) getToken() (string, error) {
- token := t.opts.TFCloudToken
- if token == "" {
- tfConfigFile, err := getTerraformConfigFile()
- if err != nil {
- return "", err
- }
-
- file, err := os.Open(tfConfigFile)
- if err != nil {
- return "", err
- }
- defer file.Close()
- reader := NewTFCloudConfigReader(file)
-
- u, err := url.Parse(t.opts.TFCloudEndpoint)
- if err != nil {
- return "", err
- }
- return reader.GetToken(u.Host)
- }
- return token, nil
-}
-
-// A regular expression used to validate string workspace ID patterns.
-var reStringID = regexp.MustCompile(`^ws-[a-zA-Z0-9\-\._]+$`)
-
-// isValidWorkspaceID checks if the given input is present and non-empty.
-func isValidWorkspaceID(v string) bool {
- return v != "" && reStringID.MatchString(v)
-}
-
-func (t *TFCloudBackend) getWorkspaceId() (string, error) {
- if isValidWorkspaceID(t.workspacePath) {
- return t.workspacePath, nil
- }
- workspacePath := strings.Split(t.workspacePath, "/")
- if len(workspacePath) != 2 {
- return "", errors.New("unable to parse terraform cloud workspace, it should be either a workspace id (ws-xxxxx) or a {org}/{workspaceName}")
- }
- workspace, err := t.client.Workspaces.Read(context.Background(), workspacePath[0], workspacePath[1])
- if err != nil {
- return "", errors.Errorf("unable to read terraform workspace id: %s", err.Error())
- }
- return workspace.ID, nil
-}
-
-func (t *TFCloudBackend) initTFEClient() error {
- token, err := t.getToken()
- if err != nil {
- return err
- }
- config := &tfe.Config{
- Token: token,
- Address: t.opts.TFCloudEndpoint,
- }
- tfcClient, err := tfe.NewClient(config)
- if err != nil {
- return err
- }
- t.client = tfcClient
- return nil
-}
-
-func (t *TFCloudBackend) Read(p []byte) (n int, err error) {
- if t.reader == nil {
- if t.client == nil {
- if err := t.initTFEClient(); err != nil {
- return 0, err
- }
- }
-
- workspaceId, err := t.getWorkspaceId()
- if err != nil {
- return 0, err
- }
-
- stateVersion, err := t.client.StateVersions.Current(context.Background(), workspaceId)
- if err != nil {
- return 0, errors.Errorf("unable to read current state version: %s", err.Error())
- }
-
- state, err := t.client.StateVersions.Download(context.Background(), stateVersion.DownloadURL)
- if err != nil {
- return 0, errors.Errorf("unable to download current state content: %s", err.Error())
- }
- t.reader = io.NopCloser(bytes.NewReader(state))
- }
- return t.reader.Read(p)
-}
-
-func (t *TFCloudBackend) Close() error {
- if t.reader != nil {
- return t.reader.Close()
- }
- return errors.New("Unable to close reader as nothing was opened")
-}
diff --git a/pkg/iac/terraform/state/backend/tfcloud_reader_test.go b/pkg/iac/terraform/state/backend/tfcloud_reader_test.go
deleted file mode 100644
index 01c5e5c28..000000000
--- a/pkg/iac/terraform/state/backend/tfcloud_reader_test.go
+++ /dev/null
@@ -1,150 +0,0 @@
-package backend
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test/mocks"
-
- tfe "github.com/hashicorp/go-tfe"
- "github.com/pkg/errors"
- "github.com/stretchr/testify/assert"
- mock "github.com/stretchr/testify/mock"
-)
-
-func TestTFCloudBackend_Read(t *testing.T) {
- type args struct {
- workspaceId string
- options *Options
- }
- tests := []struct {
- name string
- args args
- wantErr error
- expected string
- mock func(*mocks.Workspaces, *mocks.StateVersions)
- }{
- {
- name: "Should fetch URL with auth header",
- args: args{
- workspaceId: "ws-ABCDEFG12345678",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- wantErr: nil,
- expected: "{}",
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- retDownloadUrl := "https://archivist.terraform.io/v1/object/test"
- StateVersions.On("Current", mock.Anything, "ws-ABCDEFG12345678").Return(&tfe.StateVersion{DownloadURL: retDownloadUrl}, nil)
- StateVersions.On("Download", mock.Anything, retDownloadUrl).Return([]byte(`{}`), nil)
- },
- },
- {
- name: "Should resolve path and return state",
- args: args{
- workspaceId: "some-org/some-workspace",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- wantErr: nil,
- expected: "{}",
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- Workspaces.On("Read", mock.Anything, "some-org", "some-workspace").Return(&tfe.Workspace{ID: "ws-ABCDEFG12345678"}, nil)
- retDownloadUrl := "https://archivist.terraform.io/v1/object/test"
- StateVersions.On("Current", mock.Anything, "ws-ABCDEFG12345678").Return(&tfe.StateVersion{DownloadURL: retDownloadUrl}, nil)
- StateVersions.On("Download", mock.Anything, retDownloadUrl).Return([]byte(`{}`), nil)
- },
- },
- {
- name: "Should fail with wrong workspaceId",
- args: args{
- workspaceId: "ws-ABCDEFG12345678",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- retDownloadUrl := "https://archivist.terraform.io/v1/object/test"
- StateVersions.On("Current", mock.Anything, "ws-ABCDEFG12345678").Return(&tfe.StateVersion{DownloadURL: retDownloadUrl}, errors.New("resource not found"))
- },
- wantErr: errors.New("unable to read current state version: resource not found"),
- },
- {
- name: "Should fail with download error",
- args: args{
- workspaceId: "ws-ABCDEFG12345678",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- retDownloadUrl := "https://archivist.terraform.io/v1/object/test"
- StateVersions.On("Current", mock.Anything, "ws-ABCDEFG12345678").Return(&tfe.StateVersion{DownloadURL: retDownloadUrl}, nil)
- StateVersions.On("Download", mock.Anything, retDownloadUrl).Return([]byte(`{}`), errors.New("connection terminated"))
- },
- wantErr: errors.New("unable to download current state content: connection terminated"),
- },
- {
- name: "Should fail with bad authentication token - workspace id",
- args: args{
- workspaceId: "ws-ABCDEFG12345678",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- retDownloadUrl := "https://archivist.terraform.io/v1/object/test"
- StateVersions.On("Current", mock.Anything, "ws-ABCDEFG12345678").Return(&tfe.StateVersion{DownloadURL: retDownloadUrl}, errors.New("unauthorized"))
- },
- wantErr: errors.New("unable to read current state version: unauthorized"),
- },
- {
- name: "Should fail with bad authentication token - full path",
- args: args{
- workspaceId: "some-org/some-workspace",
- options: &Options{
- TFCloudToken: "TOKEN",
- TFCloudEndpoint: "https://app.terraform.io/api/v2",
- },
- },
- mock: func(Workspaces *mocks.Workspaces, StateVersions *mocks.StateVersions) {
- Workspaces.On("Read", mock.Anything, "some-org", "some-workspace").Return(&tfe.Workspace{ID: "ws-ABCDEFG12345678"}, errors.New("unauthorized"))
- },
- wantErr: errors.New("unable to read terraform workspace id: unauthorized"),
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- reader := NewTFCloudReader(tt.args.workspaceId, tt.args.options)
-
- fakeWorkspaces := &mocks.Workspaces{}
- fakeStateVersions := &mocks.StateVersions{}
- tt.mock(fakeWorkspaces, fakeStateVersions)
-
- reader.client = &tfe.Client{
- Workspaces: fakeWorkspaces,
- StateVersions: fakeStateVersions,
- }
-
- got := make([]byte, len(tt.expected))
- _, err := reader.Read(got)
- if tt.wantErr != nil {
- assert.EqualError(t, err, tt.wantErr.Error())
- return
- } else {
- assert.NoError(t, err)
- }
-
- fakeWorkspaces.AssertExpectations(t)
- fakeStateVersions.AssertExpectations(t)
- assert.NotNil(t, got)
- assert.Equal(t, tt.expected, string(got))
- })
- }
-}
diff --git a/pkg/iac/terraform/state/enumerator/azurerm.go b/pkg/iac/terraform/state/enumerator/azurerm.go
deleted file mode 100644
index 3cfbda97f..000000000
--- a/pkg/iac/terraform/state/enumerator/azurerm.go
+++ /dev/null
@@ -1,98 +0,0 @@
-package enumerator
-
-import (
- "context"
- "fmt"
- "path"
- "strings"
-
- "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
- "github.com/bmatcuk/doublestar/v4"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend/options"
-)
-
-type AzureRMEnumerator struct {
- containerName, objectPath string
- containerClient azblob.ContainerClient
- origin string
-}
-
-func NewAzureRMEnumerator(config config.SupplierConfig, opts options.AzureRMBackendOptions) (*AzureRMEnumerator, error) {
- splitPath := strings.Split(config.Path, "/")
- if len(splitPath) < 2 || splitPath[1] == "" {
- return nil, errors.Errorf("Unable to parse azurerm backend storage splitPath: %s. Must be CONTAINER/PATH/TO/OBJECT", config.Path)
- }
- containerName := splitPath[0]
- objectPath := strings.Join(splitPath[1:], "/")
-
- if opts.StorageKey == "" || opts.StorageAccount == "" {
- return nil, errors.New("AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY should be defined to be able to read state from azure backend")
- }
- credential, err := azblob.NewSharedKeyCredential(opts.StorageAccount, opts.StorageKey)
- if err != nil {
- return nil, err
- }
- container, err := azblob.NewContainerClientWithSharedKey(
- fmt.Sprintf(
- "https://%s.blob.core.windows.net/%s",
- credential.AccountName(),
- containerName,
- ),
- credential,
- nil,
- )
- if err != nil {
- return nil, err
- }
- return &AzureRMEnumerator{
- containerName: containerName,
- objectPath: objectPath,
- containerClient: container,
- origin: config.String(),
- }, nil
-}
-
-func (s *AzureRMEnumerator) Origin() string {
- return s.origin
-}
-
-func (s *AzureRMEnumerator) Enumerate() ([]string, error) {
- // prefix should contains everything that does not have a glob pattern
- // Pattern should be the glob matcher string
- prefix, pattern := extractPrefixAndPattern(s.objectPath)
-
- // We combine the prefix and pattern to match file names against.
- fullPattern := path.Join(prefix, pattern)
-
- pager := s.containerClient.ListBlobsFlat(&azblob.ContainerListBlobFlatSegmentOptions{
- Prefix: &prefix,
- })
-
- files := make([]string, 0)
- for pager.NextPage(context.Background()) {
- resp := pager.PageResponse()
- for _, v := range resp.ContainerListBlobFlatSegmentResult.Segment.BlobItems {
- if *v.Properties.ContentLength == 0 {
- continue
- }
- if match, _ := doublestar.Match(fullPattern, *v.Name); match {
- files = append(files, strings.Join([]string{s.containerName, *v.Name}, "/"))
- }
- }
- }
-
- if err := pager.Err(); err != nil {
- if storageErr, ok := err.(azblob.ResponseError); ok && storageErr.RawResponse() != nil {
- return nil, errors.WithMessage(err, storageErr.RawResponse().Status)
- }
- return nil, err
- }
-
- if len(files) == 0 {
- return nil, errors.Errorf("no Terraform state was found for %s, exiting", s.origin)
- }
-
- return files, nil
-}
diff --git a/pkg/iac/terraform/state/enumerator/common.go b/pkg/iac/terraform/state/enumerator/common.go
deleted file mode 100644
index 448c9607b..000000000
--- a/pkg/iac/terraform/state/enumerator/common.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package enumerator
-
-import (
- "strings"
-)
-
-// Returns the below segments:
-// - prefix : path part that should not contains glob patterns, that is used in S3 query to filter result
-// - pattern : should contains the glob pattern to be used by doublestar matching library
-func extractPrefixAndPattern(path string) (prefix string, pattern string) {
- sep := "/"
-
- splitPath := strings.Split(path, sep)
- prefixEnded := false
- for _, s := range splitPath {
- if HasMeta(s) || prefixEnded {
- prefixEnded = true
- pattern = strings.Join([]string{pattern, s}, sep)
- continue
- }
-
- prefix = strings.Join([]string{prefix, s}, sep)
-
- }
- return strings.Trim(prefix, sep), strings.Trim(pattern, sep)
-}
-
-// HasMeta reports whether path contains any of the magic characters
-func HasMeta(path string) bool {
- magicChars := `?*[]`
- return strings.ContainsAny(path, magicChars)
-}
diff --git a/pkg/iac/terraform/state/enumerator/file.go b/pkg/iac/terraform/state/enumerator/file.go
deleted file mode 100644
index 3e3754c70..000000000
--- a/pkg/iac/terraform/state/enumerator/file.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package enumerator
-
-import (
- "fmt"
- "os"
- "path/filepath"
-
- "github.com/snyk/driftctl/pkg/iac/config"
-)
-
-type FileEnumeratorConfig struct {
- Bucket *string
- Prefix *string
-}
-
-type FileEnumerator struct {
- config config.SupplierConfig
-}
-
-func NewFileEnumerator(config config.SupplierConfig) *FileEnumerator {
- return &FileEnumerator{
- config,
- }
-}
-
-func (s *FileEnumerator) Origin() string {
- return s.config.String()
-}
-
-func (s *FileEnumerator) Enumerate() ([]string, error) {
- path := s.config.Path
-
- info, err := os.Lstat(path)
- if isGlob := HasMeta(path); !isGlob && err != nil {
- return nil, err
- }
- if err == nil {
- // if we got a symlink, use its destination
- if info.Mode()&os.ModeSymlink != 0 {
- destination, err := filepath.EvalSymlinks(path)
- if err != nil {
- return nil, err
- }
- path = destination
- info, err = os.Stat(destination)
- if err != nil {
- return nil, err
- }
- }
-
- if info != nil && !info.IsDir() {
- return []string{path}, nil
- }
-
- path = filepath.Join(path, "**/*.tfstate")
- }
-
- keys, err := Glob(path)
- if err != nil {
- return keys, err
- }
-
- if len(keys) == 0 {
- return keys, fmt.Errorf("no Terraform state was found in %s, exiting", s.config.Path)
- }
-
- return keys, err
-}
diff --git a/pkg/iac/terraform/state/enumerator/file_test.go b/pkg/iac/terraform/state/enumerator/file_test.go
deleted file mode 100644
index 47f954dce..000000000
--- a/pkg/iac/terraform/state/enumerator/file_test.go
+++ /dev/null
@@ -1,152 +0,0 @@
-package enumerator
-
-import (
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/stretchr/testify/assert"
-)
-
-func TestFileEnumerator_Enumerate(t *testing.T) {
- tests := []struct {
- name string
- config config.SupplierConfig
- want []string
- err string
- }{
- {
- name: "subfolder nesting",
- config: config.SupplierConfig{
- Path: "testdata/states",
- },
- want: []string{
- "testdata/states/symlink.tfstate",
- "testdata/states/terraform.tfstate",
- "testdata/states/lambda/lambda.tfstate",
- "testdata/states/s3/terraform.tfstate",
- "testdata/states/symlink-to-s3-folder/terraform.tfstate",
- },
- },
- {
- name: "subfolder nesting glob",
- config: config.SupplierConfig{
- Path: "testdata/states/**/*.tfstate",
- },
- want: []string{
- "testdata/states/symlink.tfstate",
- "testdata/states/terraform.tfstate",
- "testdata/states/lambda/lambda.tfstate",
- "testdata/states/s3/terraform.tfstate",
- "testdata/states/symlink-to-s3-folder/terraform.tfstate",
- },
- },
- {
- name: "subfolder nesting glob upper directory",
- config: config.SupplierConfig{
- Path: "testdata/states/s3/../**/*.tfstate",
- },
- want: []string{
- "testdata/states/symlink.tfstate",
- "testdata/states/terraform.tfstate",
- "testdata/states/lambda/lambda.tfstate",
- "testdata/states/s3/terraform.tfstate",
- "testdata/states/symlink-to-s3-folder/terraform.tfstate",
- },
- },
- {
- name: "symlinked folder",
- config: config.SupplierConfig{
- Path: "testdata/symlink",
- },
- want: []string{
- "testdata/states/symlink.tfstate",
- "testdata/states/terraform.tfstate",
- "testdata/states/lambda/lambda.tfstate",
- "testdata/states/s3/terraform.tfstate",
- "testdata/states/symlink-to-s3-folder/terraform.tfstate",
- },
- },
- {
- name: "single state file",
- config: config.SupplierConfig{
- Path: "testdata/states/terraform.tfstate",
- },
- want: []string{
- "testdata/states/terraform.tfstate",
- },
- },
- {
- name: "single symlink state file",
- config: config.SupplierConfig{
- Path: "testdata/states/symlink.tfstate",
- },
- want: []string{
- "testdata/states/terraform.tfstate",
- },
- },
- {
- name: "invalid folder",
- config: config.SupplierConfig{
- Path: "/tmp/dummy-folder/that/does/not/exist",
- },
- want: nil,
- err: "lstat /tmp/dummy-folder/that/does/not/exist: no such file or directory",
- },
- {
- name: "invalid symlink",
- config: config.SupplierConfig{
- Path: "testdata/invalid_symlink/invalid",
- },
- want: nil,
- err: "lstat testdata/invalid_symlink/test: no such file or directory",
- },
- {
- name: "test no state found with simple path",
- config: config.SupplierConfig{
- Path: "testdata/no_state_here",
- },
- want: nil,
- err: "no Terraform state was found in testdata/no_state_here, exiting",
- },
- {
- name: "test no state found with double star glob path",
- config: config.SupplierConfig{
- Path: "testdata/no_state_here/**/*.tfstate",
- },
- want: nil,
- err: "no Terraform state was found in testdata/no_state_here/**/*.tfstate, exiting",
- },
- {
- name: "test no state found with simple glob path",
- config: config.SupplierConfig{
- Path: "testdata/no_state_here/test/*",
- },
- want: nil,
- err: "no Terraform state was found in testdata/no_state_here/test/*, exiting",
- },
- {
- name: "test folder terraform.tfstate is not recognized as a file",
- config: config.SupplierConfig{
- Path: "testdata/edge_cases/**/*.tfstate",
- },
- want: []string{
- "testdata/edge_cases/terraform.tfstate/terraform.tfstate",
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- s := NewFileEnumerator(tt.config)
- got, err := s.Enumerate()
- if tt.err != "" {
- assert.EqualError(t, err, tt.err)
- } else {
- assert.NoError(t, err)
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("Enumerate() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/iac/terraform/state/enumerator/glob.go b/pkg/iac/terraform/state/enumerator/glob.go
deleted file mode 100644
index 43e3808bb..000000000
--- a/pkg/iac/terraform/state/enumerator/glob.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package enumerator
-
-import (
- "io/fs"
- "os"
- "path"
- "path/filepath"
- "strings"
-
- "github.com/bmatcuk/doublestar/v4"
-)
-
-func Glob(pattern string) ([]string, error) {
- if !strings.Contains(pattern, "**") {
- return filepath.Glob(pattern)
- }
-
- var files []string
-
- err := doublestar.GlobWalk(os.DirFS("."), path.Clean(pattern), func(path string, d fs.DirEntry) error {
- // Ensure paths aren't actually directories
- // For example when the directory matches the glob pattern like it's a file
- if !d.IsDir() {
- files = append(files, path)
- }
- return nil
- })
- if err != nil {
- return nil, err
- }
-
- return files, nil
-}
diff --git a/pkg/iac/terraform/state/enumerator/gs.go b/pkg/iac/terraform/state/enumerator/gs.go
deleted file mode 100644
index 1bb981f07..000000000
--- a/pkg/iac/terraform/state/enumerator/gs.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package enumerator
-
-import (
- "context"
- "fmt"
- "path"
- "strings"
-
- "cloud.google.com/go/storage"
- "google.golang.org/api/iterator"
-
- "github.com/bmatcuk/doublestar/v4"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/iac/config"
-)
-
-type GSEnumerator struct {
- config config.SupplierConfig
- client storage.Client
-}
-
-func NewGSEnumerator(config config.SupplierConfig) (*GSEnumerator, error) {
- ctx := context.Background()
- client, err := storage.NewClient(ctx)
- if err != nil {
- return nil, errors.Errorf("storage.NewClient: %v", err)
- }
- defer client.Close()
-
- return &GSEnumerator{
- config,
- *client,
- }, nil
-}
-
-func (s *GSEnumerator) Origin() string {
- return s.config.String()
-}
-
-func (s *GSEnumerator) Enumerate() ([]string, error) {
- bucketPath := strings.Split(s.config.Path, "/")
- if len(bucketPath) < 2 {
- return nil, fmt.Errorf("unable to parse GS path: %s. Must be BUCKET_NAME/PREFIX", s.config.Path)
- }
-
- bucketName := bucketPath[0]
- // prefix should contains everything that does not have a glob pattern
- // Pattern should be the glob matcher string
- prefix, pattern := extractPrefixAndPattern(strings.Join(bucketPath[1:], "/"))
-
- // We combine the prefix and pattern to match file names against.
- fullPattern := path.Join(prefix, pattern)
-
- files := make([]string, 0)
-
- bucket := s.client.Bucket(bucketName)
-
- it := bucket.Objects(context.Background(), &storage.Query{})
- for {
- attrs, err := it.Next()
- if err == iterator.Done {
- break
- }
- if err != nil {
- return nil, err
- }
- if attrs.Size == 0 {
- continue
- }
- if attrs.Size > 0 {
- if match, _ := doublestar.Match(fullPattern, attrs.Name); match {
- files = append(files, strings.Join([]string{bucketPath[0], attrs.Name}, "/"))
- }
- }
- }
-
- if len(files) == 0 {
- return files, fmt.Errorf("no Terraform state was found in %s, exiting", s.config.Path)
- }
-
- return files, nil
-}
diff --git a/pkg/iac/terraform/state/enumerator/s3.go b/pkg/iac/terraform/state/enumerator/s3.go
deleted file mode 100644
index 96a59c3fd..000000000
--- a/pkg/iac/terraform/state/enumerator/s3.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package enumerator
-
-import (
- "fmt"
- "path"
- "strings"
-
- "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/aws/aws-sdk-go/service/s3/s3iface"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/envproxy"
-
- "github.com/bmatcuk/doublestar/v4"
- "github.com/snyk/driftctl/pkg/iac/config"
-)
-
-type S3Enumerator struct {
- config config.SupplierConfig
- client s3iface.S3API
-}
-
-func NewS3Enumerator(config config.SupplierConfig) *S3Enumerator {
- envProxy := envproxy.NewEnvProxy("DCTL_S3_", "AWS_")
- envProxy.Apply()
- sess := session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
- envProxy.Restore()
- return &S3Enumerator{
- config,
- s3.New(sess),
- }
-}
-
-func (s *S3Enumerator) Origin() string {
- return s.config.String()
-}
-
-func (s *S3Enumerator) Enumerate() ([]string, error) {
- bucketPath := strings.Split(s.config.Path, "/")
- if len(bucketPath) < 2 {
- return nil, errors.Errorf("Unable to parse S3 path: %s. Must be BUCKET_NAME/PREFIX", s.config.Path)
- }
-
- bucket := bucketPath[0]
- // prefix should contains everything that does not have a glob pattern
- // Pattern should be the glob matcher string
- prefix, pattern := extractPrefixAndPattern(strings.Join(bucketPath[1:], "/"))
-
- // We combine the prefix and pattern to match file names against.
- fullPattern := path.Join(prefix, pattern)
-
- files := make([]string, 0)
- input := &s3.ListObjectsV2Input{
- Bucket: &bucket,
- Prefix: &prefix,
- }
- err := s.client.ListObjectsV2Pages(input, func(output *s3.ListObjectsV2Output, lastPage bool) bool {
- for _, metadata := range output.Contents {
- if aws.Int64Value(metadata.Size) > 0 {
- key := *metadata.Key
- if match, _ := doublestar.Match(fullPattern, key); match {
- files = append(files, strings.Join([]string{bucket, key}, "/"))
- }
- }
- }
- return !lastPage
- })
- if err != nil {
- return nil, err
- }
-
- if len(files) == 0 {
- return files, fmt.Errorf("no Terraform state was found in %s, exiting", s.config.Path)
- }
-
- return files, nil
-}
diff --git a/pkg/iac/terraform/state/enumerator/s3_test.go b/pkg/iac/terraform/state/enumerator/s3_test.go
deleted file mode 100644
index ad5af5090..000000000
--- a/pkg/iac/terraform/state/enumerator/s3_test.go
+++ /dev/null
@@ -1,556 +0,0 @@
-package enumerator
-
-import (
- "errors"
- "os"
- "reflect"
- "testing"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/snyk/driftctl/pkg/iac/config"
- awstest "github.com/snyk/driftctl/test/aws"
- "github.com/stretchr/testify/mock"
-)
-
-func TestS3Enumerator_NewS3Enumerator(t *testing.T) {
- tests := []struct {
- name string
- config config.SupplierConfig
- setEnv map[string]string
- want string
- }{
- {
- name: "test with no proxy env var",
- config: config.SupplierConfig{
- Key: "tfstate",
- Backend: "s3",
- Path: "terraform.tfstate",
- },
- setEnv: map[string]string{
- "AWS_DEFAULT_REGION": "us-east-1",
- },
- want: "us-east-1",
- },
- {
- name: "test with proxy env var",
- config: config.SupplierConfig{
- Key: "tfstate",
- Backend: "s3",
- Path: "terraform.tfstate",
- },
- setEnv: map[string]string{
- "AWS_DEFAULT_REGION": "us-east-1",
- "DCTL_S3_DEFAULT_REGION": "eu-west-3",
- },
- want: "eu-west-3",
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- for key, value := range tt.setEnv {
- os.Setenv(key, value)
- }
- got := NewS3Enumerator(tt.config).client.(*s3.S3).Config.Region
- if awssdk.StringValue(got) != tt.want {
- t.Errorf("NewS3Enumerator().client.Config.Region got = %v, want %v", got, tt.want)
- }
- })
- }
-}
-
-func TestS3Enumerator_Enumerate(t *testing.T) {
- tests := []struct {
- name string
- config config.SupplierConfig
- mocks func(client *awstest.MockFakeS3)
- want []string
- err string
- }{
- {
- name: "no test results are returned",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/state1"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state2"),
- Size: awssdk.Int64(2),
- },
- {
- Key: awssdk.String("a/nested/prefix/state3"),
- Size: awssdk.Int64(1),
- },
- },
- }, false)
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/state4"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/folder1/state5"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/folder2/subfolder1/state6"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{},
- err: "no Terraform state was found in bucket-name/a/nested/prefix, exiting",
- },
- {
- name: "one test result is returned",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix/state2",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix/state2"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/state1"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state2"),
- Size: awssdk.Int64(2),
- },
- {
- Key: awssdk.String("a/nested/prefix/state3"),
- Size: awssdk.Int64(1),
- },
- },
- }, false)
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/state4"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/folder1/state5"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/folder2/subfolder1/state6"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{"bucket-name/a/nested/prefix/state2"},
- },
- {
- name: "test results with simple doublestar glob",
- config: config.SupplierConfig{
- Path: "bucket-name/**/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String(""),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/folder1/2/state2.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state3.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, false)
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/4/4/state4.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/state5.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state6.tfstate.backup"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{
- "bucket-name/a/nested/prefix/1/state1.tfstate",
- "bucket-name/a/nested/folder1/2/state2.tfstate",
- "bucket-name/a/nested/prefix/state3.tfstate",
- "bucket-name/a/nested/prefix/4/4/state4.tfstate",
- "bucket-name/a/nested/state5.tfstate",
- },
- err: "",
- },
- {
- name: "test results with glob and prefix after glob",
- config: config.SupplierConfig{
- Path: "bucket-name/a/**/b/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/prefix/b/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/b/state2.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/prefix/state3.tfstate"),
- Size: awssdk.Int64(5),
- }, {
- Key: awssdk.String("a/prefix/state4.tfstate.backup"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{
- "bucket-name/a/prefix/b/state1.tfstate",
- "bucket-name/a/b/state2.tfstate",
- },
- err: "",
- },
- {
- name: "test results with glob",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix/**/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/folder1/2/state2.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state3.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, false)
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/4/4/state4.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/state5.state"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state6.tfstate.backup"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{
- "bucket-name/a/nested/prefix/1/state1.tfstate",
- "bucket-name/a/nested/prefix/state3.tfstate",
- "bucket-name/a/nested/prefix/4/4/state4.tfstate",
- },
- err: "",
- },
- {
- name: "test results with simple glob",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/2/state2.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state3.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, false)
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/4/4/state4.tfstate"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state5.state"),
- Size: awssdk.Int64(5),
- },
- {
- Key: awssdk.String("a/nested/prefix/state6.tfstate.backup"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{"bucket-name/a/nested/prefix/state3.tfstate"},
- err: "",
- },
- {
- name: "test when invalid config used",
- config: config.SupplierConfig{
- Path: "bucket-name",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("ListObjectsV2Pages", mock.Anything, mock.Anything).Return(errors.New("error when listing"))
- },
- want: nil,
- err: "Unable to parse S3 path: bucket-name. Must be BUCKET_NAME/PREFIX",
- },
- {
- name: "test when empty config used",
- config: config.SupplierConfig{},
- mocks: func(client *awstest.MockFakeS3) {
- client.On("ListObjectsV2Pages", mock.Anything, mock.Anything).Return(errors.New("error when listing"))
- },
- want: nil,
- err: "Unable to parse S3 path: . Must be BUCKET_NAME/PREFIX",
- },
- {
- name: "test enumeration return error",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix",
- },
- mocks: func(client *awstest.MockFakeS3) {
- client.On("ListObjectsV2Pages", mock.Anything, mock.Anything).Return(errors.New("error when listing"))
- },
- want: nil,
- err: "error when listing",
- },
- {
- name: "test no state found with simple path",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{},
- err: "no Terraform state was found in bucket-name/a/nested/prefix, exiting",
- },
- {
- name: "test no state found with simple glob path",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix/*",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/state1.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{},
- err: "no Terraform state was found in bucket-name/a/nested/prefix/*, exiting",
- },
- {
- name: "test no state found with double star glob path",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/prefix/**/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested/prefix"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/1/dummy.json"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{},
- err: "no Terraform state was found in bucket-name/a/nested/prefix/**/*.tfstate, exiting",
- },
- {
- name: "test folder terraform.tfstate is not recognized as a file",
- config: config.SupplierConfig{
- Path: "bucket-name/a/nested/**/*.tfstate",
- },
- mocks: func(client *awstest.MockFakeS3) {
- input := &s3.ListObjectsV2Input{
- Bucket: awssdk.String("bucket-name"),
- Prefix: awssdk.String("a/nested"),
- }
- client.On(
- "ListObjectsV2Pages",
- input,
- mock.MatchedBy(func(callback func(res *s3.ListObjectsV2Output, lastPage bool) bool) bool {
- callback(&s3.ListObjectsV2Output{
- Contents: []*s3.Object{
- {
- Key: awssdk.String("a/nested/prefix/terraform.tfstate/terraform.tfstate"),
- Size: awssdk.Int64(5),
- },
- },
- }, true)
- return true
- }),
- ).Return(nil)
- },
- want: []string{"bucket-name/a/nested/prefix/terraform.tfstate/terraform.tfstate"},
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- fakeS3 := awstest.MockFakeS3{}
- tt.mocks(&fakeS3)
- s := &S3Enumerator{
- config: tt.config,
- client: &fakeS3,
- }
- got, err := s.Enumerate()
- if err != nil && err.Error() != tt.err {
- t.Fatalf("Expected error '%s', got '%s'", tt.err, err.Error())
- return
- }
- if tt.err != "" && err == nil {
- t.Fatalf("Expected error '%s' but got nil", tt.err)
- return
- }
- if !reflect.DeepEqual(got, tt.want) {
- t.Errorf("Enumerate() got = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/pkg/iac/terraform/state/enumerator/state_enumerator.go b/pkg/iac/terraform/state/enumerator/state_enumerator.go
deleted file mode 100644
index 0f44e5378..000000000
--- a/pkg/iac/terraform/state/enumerator/state_enumerator.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package enumerator
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
-)
-
-type StateEnumerator interface {
- Origin() string
- Enumerate() ([]string, error)
-}
-
-func GetEnumerator(config config.SupplierConfig, opts *backend.Options) (StateEnumerator, error) {
-
- switch config.Backend {
- case backend.BackendKeyFile:
- return NewFileEnumerator(config), nil
- case backend.BackendKeyS3:
- return NewS3Enumerator(config), nil
- case backend.BackendKeyGS:
- return NewGSEnumerator(config)
- case backend.BackendKeyAzureRM:
- return NewAzureRMEnumerator(config, opts.AzureRMBackendOptions)
- }
-
- logrus.WithFields(logrus.Fields{
- "backend": config.Backend,
- }).Debug("No enumerator for backend")
-
- return nil, nil
-}
diff --git a/pkg/iac/terraform/state/enumerator/testdata/edge_cases/terraform.tfstate/terraform.tfstate b/pkg/iac/terraform/state/enumerator/testdata/edge_cases/terraform.tfstate/terraform.tfstate
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/invalid_symlink/invalid b/pkg/iac/terraform/state/enumerator/testdata/invalid_symlink/invalid
deleted file mode 120000
index 30d74d258..000000000
--- a/pkg/iac/terraform/state/enumerator/testdata/invalid_symlink/invalid
+++ /dev/null
@@ -1 +0,0 @@
-test
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/enumerator/testdata/no_state_here/dummy.json b/pkg/iac/terraform/state/enumerator/testdata/no_state_here/dummy.json
deleted file mode 100644
index 9e26dfeeb..000000000
--- a/pkg/iac/terraform/state/enumerator/testdata/no_state_here/dummy.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/lambda/lambda.tfstate b/pkg/iac/terraform/state/enumerator/testdata/states/lambda/lambda.tfstate
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/route53/directory/route53.state b/pkg/iac/terraform/state/enumerator/testdata/states/route53/directory/route53.state
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/s3/terraform.tfstate b/pkg/iac/terraform/state/enumerator/testdata/states/s3/terraform.tfstate
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/symlink-to-s3-folder b/pkg/iac/terraform/state/enumerator/testdata/states/symlink-to-s3-folder
deleted file mode 120000
index c8da893b2..000000000
--- a/pkg/iac/terraform/state/enumerator/testdata/states/symlink-to-s3-folder
+++ /dev/null
@@ -1 +0,0 @@
-s3
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/symlink.tfstate b/pkg/iac/terraform/state/enumerator/testdata/states/symlink.tfstate
deleted file mode 120000
index 63a0ae93b..000000000
--- a/pkg/iac/terraform/state/enumerator/testdata/states/symlink.tfstate
+++ /dev/null
@@ -1 +0,0 @@
-terraform.tfstate
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/terraform.tfstate b/pkg/iac/terraform/state/enumerator/testdata/states/terraform.tfstate
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/states/terraform.tfstate.backup b/pkg/iac/terraform/state/enumerator/testdata/states/terraform.tfstate.backup
deleted file mode 100644
index e69de29bb..000000000
diff --git a/pkg/iac/terraform/state/enumerator/testdata/symlink b/pkg/iac/terraform/state/enumerator/testdata/symlink
deleted file mode 120000
index 177344567..000000000
--- a/pkg/iac/terraform/state/enumerator/testdata/symlink
+++ /dev/null
@@ -1 +0,0 @@
-states
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/terraform_state_reader.go b/pkg/iac/terraform/state/terraform_state_reader.go
deleted file mode 100644
index bf6545d3d..000000000
--- a/pkg/iac/terraform/state/terraform_state_reader.go
+++ /dev/null
@@ -1,317 +0,0 @@
-package state
-
-import (
- "fmt"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/alerter"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/hashicorp/terraform/addrs"
- "github.com/hashicorp/terraform/states"
- "github.com/hashicorp/terraform/states/statefile"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/iac"
- "github.com/snyk/driftctl/pkg/output"
- "github.com/zclconf/go-cty/cty"
- ctyconvert "github.com/zclconf/go-cty/cty/convert"
- ctyjson "github.com/zclconf/go-cty/cty/json"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/backend"
- "github.com/snyk/driftctl/pkg/iac/terraform/state/enumerator"
- resdriftctl "github.com/snyk/driftctl/pkg/resource"
-)
-
-const TerraformStateReaderSupplier = "tfstate"
-
-type decodedRes struct {
- source resource.Source
- val cty.Value
-}
-
-type TerraformStateReader struct {
- library *terraform.ProviderLibrary
- config config.SupplierConfig
- backend backend.Backend
- enumerator enumerator.StateEnumerator
- deserializer *resource.Deserializer
- backendOptions *backend.Options
- progress output.Progress
- filter filter.Filter
- alerter *alerter.Alerter
- sourceCount uint
-}
-
-func (r *TerraformStateReader) initReader() error {
- enumerator, err := enumerator.GetEnumerator(r.config, r.backendOptions)
- if err != nil {
- return err
- }
- r.enumerator = enumerator
- return nil
-}
-
-func NewReader(config config.SupplierConfig, library *terraform.ProviderLibrary, backendOpts *backend.Options, progress output.Progress, alerter *alerter.Alerter, deserializer *resource.Deserializer, filter filter.Filter) (*TerraformStateReader, error) {
- reader := TerraformStateReader{
- library: library,
- config: config,
- deserializer: deserializer,
- backendOptions: backendOpts,
- progress: progress,
- alerter: alerter,
- filter: filter,
- sourceCount: 0,
- }
- err := reader.initReader()
- if err != nil {
- return nil, err
- }
- return &reader, nil
-}
-
-func (r *TerraformStateReader) retrieve() (map[string][]decodedRes, error) {
- b, err := backend.GetBackend(r.config, r.backendOptions)
- if err != nil {
- return nil, err
- }
- r.backend = b
-
- state, err := read(r.config.Path, r.backend)
- defer r.backend.Close()
- if err != nil {
- return nil, err
- }
-
- resMap := make(map[string][]decodedRes)
- for moduleName, module := range state.Modules {
- logrus.WithFields(logrus.Fields{
- "module": moduleName,
- "resourceCount": fmt.Sprintf("%d", len(module.Resources)),
- }).Debug("Found module in state")
- for _, stateRes := range module.Resources {
- resName := stateRes.Addr.Resource.Name
- resType := stateRes.Addr.Resource.Type
-
- if !resdriftctl.IsResourceTypeSupported(resType) {
- logrus.WithFields(logrus.Fields{
- "name": resName,
- "type": resType,
- }).Debug("Ignored unsupported resource from state")
- continue
- }
-
- if r.filter != nil && r.filter.IsTypeIgnored(resource.ResourceType(resType)) {
- logrus.WithFields(logrus.Fields{
- "name": resName,
- "type": resType,
- }).Debug("Ignored resource from state since it is ignored in filter")
- continue
- }
-
- if stateRes.Addr.Resource.Mode != addrs.ManagedResourceMode {
- logrus.WithFields(logrus.Fields{
- "mode": stateRes.Addr.Resource.Mode,
- "name": resName,
- "type": resType,
- }).Debug("Skipping state entry as it is not a managed resource")
- continue
- }
- providerType := stateRes.ProviderConfig.Provider.Type
- provider := r.library.Provider(providerType)
- if provider == nil {
- logrus.WithFields(logrus.Fields{
- "providerKey": providerType,
- }).Debug("Unsupported provider found in state")
- continue
- }
- schema := provider.Schema()[stateRes.Addr.Resource.Type]
- for _, instance := range stateRes.Instances {
- decodedVal, err := instance.Current.Decode(schema.Block.ImpliedType())
- if err != nil {
- // Try to do a manual type conversion if we got a path error
- // It will allow driftctl to read state generated with a superior version of provider
- // than the actually supported one
- // by ignoring new fields
- _, isPathError := err.(cty.PathError)
- if isPathError {
- logrus.WithFields(logrus.Fields{
- "name": resName,
- "type": resType,
- "err": err.Error(),
- }).Debug("Got a cty path error when deserializing state")
-
- decodedVal, err = r.convertInstance(instance.Current, schema.Block.ImpliedType())
- }
-
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "name": resName,
- "type": resType,
- }).Error("Unable to decode resource from state")
- return nil, err
- }
- }
- _, exists := resMap[stateRes.Addr.Resource.Type]
- val := decodedRes{
- source: resource.NewTerraformStateSource(r.config.String(), moduleName, resName),
- val: decodedVal.Value,
- }
- if !exists {
- resMap[stateRes.Addr.Resource.Type] = []decodedRes{val}
- } else {
- resMap[stateRes.Addr.Resource.Type] = append(resMap[stateRes.Addr.Resource.Type], val)
- }
- }
- }
- }
-
- return resMap, nil
-}
-
-func (r *TerraformStateReader) convertInstance(instance *states.ResourceInstanceObjectSrc, ty cty.Type) (*states.ResourceInstanceObject, error) {
- inputType, err := ctyjson.ImpliedType(instance.AttrsJSON)
- if err != nil {
- return nil, err
- }
- input, err := ctyjson.Unmarshal(instance.AttrsJSON, inputType)
- if err != nil {
- return nil, err
- }
-
- convertedVal, err := ctyconvert.Convert(input, ty)
- if err != nil {
- return nil, err
- }
-
- instanceObj := &states.ResourceInstanceObject{
- Value: convertedVal,
- Status: instance.Status,
- Dependencies: instance.Dependencies,
- Private: instance.Private,
- CreateBeforeDestroy: instance.CreateBeforeDestroy,
- }
-
- logrus.Debug("Successfully converted resource")
-
- return instanceObj, nil
-}
-
-func (r *TerraformStateReader) decode(valFromState map[string][]decodedRes) ([]*resource.Resource, error) {
- results := make([]*resource.Resource, 0)
-
- for ty, val := range valFromState {
- for _, stateVal := range val {
- res, err := r.deserializer.DeserializeOne(ty, stateVal.val)
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "type": ty,
- "name": stateVal.source.InternalName(),
- "state": stateVal.source.Source(),
- }).Warnf("Could not read from state: %+v", err)
- continue
- }
- res.Source = stateVal.source
- results = append(results, res)
- }
- }
-
- return results, nil
-}
-
-func (r *TerraformStateReader) Resources() ([]*resource.Resource, error) {
- if r.enumerator == nil {
- return r.retrieveForState(r.config.Path)
- }
-
- return r.retrieveMultiplesStates()
-}
-
-func (r *TerraformStateReader) SourceCount() uint {
- return r.sourceCount
-}
-
-func (r *TerraformStateReader) retrieveForState(path string) ([]*resource.Resource, error) {
- r.config.Path = path
- r.sourceCount += 1
- logrus.WithFields(logrus.Fields{
- "path": r.config.Path,
- "backend": r.config.Backend,
- }).Debug("Reading resources from state")
- r.progress.Inc()
- values, err := r.retrieve()
- if err != nil {
- return nil, errors.Wrap(err, r.config.String())
- }
- decode, err := r.decode(values)
- return decode, errors.Wrap(err, r.config.String())
-}
-
-func (r *TerraformStateReader) retrieveMultiplesStates() ([]*resource.Resource, error) {
- keys, err := r.enumerator.Enumerate()
- if err != nil {
- r.alerter.SendAlert("", NewStateReadingAlert(r.enumerator.Origin(), err))
- return nil, errors.Wrap(err, r.config.String())
- }
-
- logrus.WithFields(logrus.Fields{
- "keys": keys,
- }).Debug("Enumerated keys")
-
- results := make([]*resource.Resource, 0)
- isSuccess := false
- readingError := iac.NewStateReadingError()
-
- for _, key := range keys {
- resources, err := r.retrieveForState(key)
- if err != nil {
- readingError.Add(err)
- r.alerter.SendAlert("", NewStateReadingAlert(key, err))
- continue
- }
- isSuccess = true
- results = append(results, resources...)
- }
-
- if !isSuccess {
- // all key failed, throw an error
- return results, readingError
- }
-
- return results, nil
-}
-
-func read(path string, reader backend.Backend) (*states.State, error) {
- state, err := readState(path, reader)
- if err != nil {
- if _, ok := reader.(*backend.HTTPBackend); ok && strings.Contains(err.Error(), "The state file could not be parsed as JSON") {
- return nil, errors.Errorf("given url is not a valid state file")
- }
- return nil, err
- }
- return state, nil
-}
-
-func readState(path string, reader backend.Backend) (*states.State, error) {
- state, err := statefile.Read(reader)
- if err != nil {
- return nil, err
- }
-
- supported, err := IsVersionSupported(state.TerraformVersion.String())
- if err != nil {
- return nil, err
- }
-
- if !supported {
- return nil, &UnsupportedVersionError{
- StateFile: path,
- Version: state.TerraformVersion,
- }
- }
-
- return state.State, nil
-}
diff --git a/pkg/iac/terraform/state/terraform_state_reader_acc_test.go b/pkg/iac/terraform/state/terraform_state_reader_acc_test.go
deleted file mode 100644
index b58c8142e..000000000
--- a/pkg/iac/terraform/state/terraform_state_reader_acc_test.go
+++ /dev/null
@@ -1,124 +0,0 @@
-package state_test
-
-import (
- "fmt"
- "testing"
- "time"
-
- "github.com/aws/aws-sdk-go/service/s3"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_StateReader_WithMultipleStatesInDirectory(t *testing.T) {
- t.Skip("flake")
-
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.14.9",
- Paths: []string{
- "./testdata/acc/multiple_states_local/s3",
- "./testdata/acc/multiple_states_local/route53",
- },
- Args: []string{
- "scan",
- "--from", "tfstate://testdata/acc/multiple_states_local/states",
- "--filter", "(Type=='aws_s3_bucket' && Id != 'aws-cloudtrail-logs-994475276861-f6865496') || Type=='aws_route53_zone'",
- },
- Checks: []acceptance.AccCheck{
- {
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- result.Equal("aws_route53_zone", result.Managed()[0].ResourceType())
- result.Equal("aws_s3_bucket", result.Managed()[1].ResourceType())
- },
- },
- },
- })
-}
-
-func TestAcc_StateReader_WithMultiplesStatesInS3(t *testing.T) {
- // Disabled since this test is not working
- // terraform_state_reader_acc_test.go:49: OperationAborted: A conflicting conditional operation is currently in progress against this resource. Please try again.
- // status code: 409, request id: 1TJZX1RZYDZB38CG, host id: laXYB6Z6UXuLXDYYRCXpQOgfSl/PsDGpJFmXpIiDibK17Pd8y4H5aAhyuWd35aqHhnDzyyxj0HE=
- // see https://app.circleci.com/pipelines/github/snyk/driftctl/4279/workflows/360983a0-3253-45b0-8c78-daec16ba73ae/jobs/9402
- t.Skip()
- stateBucketName := "driftctl-acc-statereader-multiples-states"
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.14.9",
- OnStart: func() {
- err := createBucket(stateBucketName)
- if err != nil {
- t.Fatal(err)
- }
- time.Sleep(30 * time.Second)
- },
- Paths: []string{"./testdata/acc/multiple_states/s3", "./testdata/acc/multiple_states/route53"},
- Args: []string{
- "scan",
- "--from", fmt.Sprintf("tfstate+s3://%s/states", stateBucketName),
- "--filter", "(Type=='aws_s3_bucket' && Id != 'aws-cloudtrail-logs-994475276861-f6865496') || Type=='aws_route53_zone'",
- },
- Checks: []acceptance.AccCheck{
- {
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertUnmanagedCount(1)
- result.AssertDeletedCount(0)
- result.AssertResourceUnmanaged(stateBucketName, "aws_s3_bucket")
- result.AssertManagedCount(2)
- result.Equal("aws_route53_zone", result.Managed()[0].ResourceType())
- result.Equal("aws_s3_bucket", result.Managed()[1].ResourceType())
- },
- },
- },
- OnEnd: func() {
- err := removeStateBucket(stateBucketName)
- if err != nil {
- t.Fatal(err)
- }
- },
- })
-}
-
-func createBucket(bucket string) error {
- client := s3.New(awsutils.Session())
- _, err := client.CreateBucket(&s3.CreateBucketInput{
- Bucket: &bucket,
- })
- if err != nil {
- return err
- }
- return nil
-}
-
-func removeStateBucket(bucket string) error {
- client := s3.New(awsutils.Session())
- objects, err := client.ListObjectsV2(&s3.ListObjectsV2Input{Bucket: &bucket})
- if err != nil {
- return err
- }
- for _, object := range objects.Contents {
- _, err := client.DeleteObject(&s3.DeleteObjectInput{
- Bucket: &bucket,
- Key: object.Key,
- })
- if err != nil {
- return err
- }
- }
- _, err = client.DeleteBucket(&s3.DeleteBucketInput{
- Bucket: &bucket,
- })
- if err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/iac/terraform/state/terraform_state_reader_azure_acc_test.go b/pkg/iac/terraform/state/terraform_state_reader_azure_acc_test.go
deleted file mode 100644
index 947203b7a..000000000
--- a/pkg/iac/terraform/state/terraform_state_reader_azure_acc_test.go
+++ /dev/null
@@ -1,166 +0,0 @@
-package state_test
-
-import (
- "context"
- "fmt"
- "testing"
- "time"
-
- "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
- "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage"
- "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/helpers/azure"
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/stretchr/testify/assert"
-)
-
-func TestAcc_StateReader_AzureRMBackendWithoutCredentials(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- DoNotRunTerraform: true,
- Args: []string{
- "scan",
- "--from", "tfstate+azurerm://foobar/state.tfstate",
- "--to", "azure+tf",
- },
- Checks: []acceptance.AccCheck{
- {
- Check: func(result *test.ScanResult, stdout string, err error) {
- assert.NotNil(t, err)
- assert.Equal(t, "AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY should be defined to be able to read state from azure backend", err.Error())
- },
- },
- {
- Env: map[string]string{
- "AZURE_STORAGE_ACCOUNT": "foobar",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- assert.NotNil(t, err)
- assert.Equal(t, "AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY should be defined to be able to read state from azure backend", err.Error())
- },
- },
- },
- })
-}
-
-func TestAcc_StateReader_WithMultiplesStatesInAzure(t *testing.T) {
- // WARNING: If you change the resource group you also have to change it in terraform files
- resourceGroupName := "driftctl-qa-1"
- storageAccount := "driftctlacctest"
- containerName := "foobar"
- checkEnv := map[string]string{
- "AZURE_STORAGE_ACCOUNT": storageAccount,
- }
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- OnStart: func() {
- // Remove existing storage account if it already exists
- err := removeAzureStorageAccount(resourceGroupName, storageAccount)
- if err != nil {
- t.Fatal(err)
- }
- key, err := createAzureStorageContainer(resourceGroupName, storageAccount, containerName)
- if err != nil {
- t.Fatal(err)
- }
- checkEnv["AZURE_STORAGE_KEY"] = key
- },
- Paths: []string{"./testdata/acc/multiples_states_azure/container_registry", "./testdata/acc/multiples_states_azure/another_container_registry"},
- Args: []string{
- "scan",
- "--from", fmt.Sprintf("tfstate+azurerm://%s/states/valid/**", containerName),
- "--to", "azure+tf",
- "--filter", "Type=='azurerm_container_registry'",
- },
- Checks: []acceptance.AccCheck{
- {
- Env: checkEnv,
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(2, result.Summary().TotalManaged)
- result.Equal("azurerm_container_registry", result.Managed()[0].ResourceType())
- result.Equal("another_registry", result.Managed()[0].Source.InternalName())
- result.Equal("tfstate+azurerm://foobar/states/valid/another_container_registry/terraform.tfstate", result.Managed()[0].Source.Source())
- result.Equal("azurerm_container_registry", result.Managed()[1].ResourceType())
- result.Equal("registry", result.Managed()[1].Source.InternalName())
- result.Equal("tfstate+azurerm://foobar/states/valid/registry/terraform.tfstate", result.Managed()[1].Source.Source())
- },
- },
- },
- OnEnd: func() {
- err := removeAzureStorageAccount(resourceGroupName, storageAccount)
- if err != nil {
- t.Fatal(err)
- }
- },
- })
-}
-
-func createAzureStorageContainer(resourceGroupName, storageAccount, containerName string) (string, error) {
- // Let's begin by creating a new storage account
- client, err := azure.NewStorageAccountsClient()
- if err != nil {
- return "", err
- }
- ctx := context.Background()
- poller, err := client.BeginCreate(
- ctx,
- resourceGroupName,
- storageAccount,
- armstorage.StorageAccountCreateParameters{
- SKU: &armstorage.SKU{
- Name: func() *armstorage.SKUName { sku := armstorage.SKUNameStandardLRS; return &sku }(),
- },
- Kind: func() *armstorage.Kind { kind := armstorage.KindStorageV2; return &kind }(),
- Location: to.StringPtr("westeurope"),
- },
- nil,
- )
- if err != nil {
- return "", err
- }
-
- _, err = poller.PollUntilDone(ctx, 10*time.Second)
- if err != nil {
- return "", err
- }
-
- // Retrieve key from storage account
- keys, err := client.ListKeys(ctx, resourceGroupName, storageAccount, nil)
- if err != nil {
- return "", err
- }
- if len(keys.Keys) == 0 {
- return "", errors.Errorf("Unable to retrieve keys for storage account %s", storageAccount)
- }
- key := *keys.Keys[0].Value
-
- // Create a blob container
- cred, err := azblob.NewSharedKeyCredential(storageAccount, key)
- if err != nil {
- return "", err
- }
- blobClient, err := azblob.NewServiceClientWithSharedKey(fmt.Sprintf("https://%s.blob.core.windows.net/", storageAccount), cred, nil)
- if err != nil {
- return "", err
- }
- _, err = blobClient.CreateContainer(ctx, containerName, nil)
- if err != nil {
- return "", err
- }
-
- return key, nil
-}
-
-func removeAzureStorageAccount(resourceGroupName, storageAccount string) error {
- client, err := azure.NewStorageAccountsClient()
- if err != nil {
- return err
- }
- _, err = client.Delete(context.Background(), resourceGroupName, storageAccount, nil)
- return err
-}
diff --git a/pkg/iac/terraform/state/terraform_state_reader_test.go b/pkg/iac/terraform/state/terraform_state_reader_test.go
deleted file mode 100644
index 54f8ba0f8..000000000
--- a/pkg/iac/terraform/state/terraform_state_reader_test.go
+++ /dev/null
@@ -1,653 +0,0 @@
-package state
-
-import (
- "encoding/json"
- "os"
- "path"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/remote/aws"
- "github.com/snyk/driftctl/enumeration/remote/azurerm"
- "github.com/snyk/driftctl/enumeration/remote/github"
- "github.com/snyk/driftctl/enumeration/remote/google"
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/filter"
- "github.com/snyk/driftctl/pkg/output"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- resourceaws "github.com/snyk/driftctl/pkg/resource/aws"
- resourceazure "github.com/snyk/driftctl/pkg/resource/azurerm"
- resourcegithub "github.com/snyk/driftctl/pkg/resource/github"
- resourcegoogle "github.com/snyk/driftctl/pkg/resource/google"
- testresource "github.com/snyk/driftctl/test/resource"
-
- terraform2 "github.com/snyk/driftctl/test/terraform"
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/iac/config"
- "github.com/snyk/driftctl/test/goldenfile"
- "github.com/snyk/driftctl/test/mocks"
-
- "github.com/r3labs/diff/v2"
-)
-
-func TestReadStateValid(t *testing.T) {
- reader, _ := os.Open("testdata/v4/valid.tfstate")
- _, err := readState("terraform.tfstate", reader)
- if err != nil {
- t.Errorf("Unable to read state, %s", err)
- return
- }
-}
-
-func TestReadStateInvalid(t *testing.T) {
- reader, _ := os.Open("testdata/v4/invalid.tfstate")
- state, err := readState("terraform.tfstate", reader)
- if err == nil || state != nil {
- t.Errorf("ReadFile invalid state should return error")
- }
-}
-
-// Check that resource sources are properly set
-func TestTerraformStateReader_Source(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- version := "3.19.0"
-
- provider := mocks.NewMockedGoldenTFProvider("source", terraform.AWS, version, nil, false)
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.AWS, provider)
-
- repo := testresource.InitFakeSchemaRepository(terraform.AWS, version)
- resourceaws.InitResourcesMetadata(repo)
-
- factory := dctlresource.NewDriftctlResourceFactory(repo)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Key: "tfstate",
- Path: path.Join(goldenfile.GoldenFilePath, "source", "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- deserializer: resource.NewDeserializer(factory),
- }
-
- got, err := r.Resources()
- assert.Nil(t, err)
- assert.Len(t, got, 2)
- for _, res := range got {
- if res.ResourceType() == resourceaws.AwsS3BucketResourceType {
- assert.Equal(t, &resource.TerraformStateSource{
- State: "tfstate://test/source/terraform.tfstate",
- Module: "",
- Name: "bucket",
- }, res.Source)
- }
- if res.ResourceType() == resourceaws.AwsIamUserResourceType {
- assert.Equal(t, &resource.TerraformStateSource{
- State: "tfstate://test/source/terraform.tfstate",
- Module: "module.iam_iam-user",
- Name: "this_no_pgp",
- }, res.Source)
- }
- }
-}
-
-func TestTerraformStateReader_AWS_Resources(t *testing.T) {
- tests := []struct {
- name string
- dirName string
- wantErr bool
- providerVersion string
- }{
- {name: "IAM user module", dirName: "module.iam_iam-user", wantErr: false},
- {name: "Data source", dirName: "data_source", wantErr: false},
- {name: "Route 53 zone", dirName: "aws_route53_zone", wantErr: false},
- {name: "Route 53 record - single record", dirName: "aws_route53_record", wantErr: false},
- {name: "Route 53 record - multiples zones, multiples records", dirName: "aws_route53_record_multiples", wantErr: false},
- {name: "Route 53 record - empty records", dirName: "aws_route53_record_null_records", wantErr: false},
- {name: "s3 full", dirName: "aws_s3_full", wantErr: false},
- {name: "s3 bucket public access block", dirName: "aws_s3_bucket_public_access_block", wantErr: false},
- {name: "s3 account public access block", dirName: "aws_s3_account_public_access_block", wantErr: false},
- {name: "RDS DB instance", dirName: "aws_db_instance", wantErr: false},
- {name: "RDS DB Subnet group", dirName: "aws_db_subnet_group", wantErr: false},
- {name: "Lambda function", dirName: "aws_lambda_function", wantErr: false},
- {name: "unsupported attribute", dirName: "unsupported_attribute", wantErr: false},
- {name: "Unsupported provider", dirName: "unsupported_provider", wantErr: false},
- {name: "Unsupported resource", dirName: "unsupported_resource", wantErr: false},
- {name: "EC2 instance", dirName: "aws_ec2_instance", wantErr: false},
- {name: "EC2 key pair", dirName: "aws_ec2_key_pair", wantErr: false},
- {name: "EC2 ami", dirName: "aws_ec2_ami", wantErr: false},
- {name: "EC2 eip", dirName: "aws_ec2_eip", wantErr: false},
- {name: "EC2 eip with its association", dirName: "aws_ec2_eip_association", wantErr: false},
- {name: "EC2 ebs volume", dirName: "aws_ec2_ebs_volume", wantErr: false},
- {name: "EC2 ebs snapshot", dirName: "aws_ec2_ebs_snapshot", wantErr: false},
- {name: "VPC security group", dirName: "aws_vpc_security_group", wantErr: false},
- {name: "IAM Users", dirName: "aws_iam_user_multiple", wantErr: false},
- {name: "IAM User Policy", dirName: "aws_iam_user_policy_multiple", wantErr: false},
- {name: "IAM access keys", dirName: "aws_iam_access_key_multiple", wantErr: false},
- {name: "IAM role", dirName: "aws_iam_role_multiple", wantErr: false},
- {name: "IAM policy", dirName: "aws_iam_policy_multiple", wantErr: false},
- {name: "IAM role policy", dirName: "aws_iam_role_policy_multiple", wantErr: false},
- {name: "IAM role policy attachment", dirName: "aws_iam_role_policy_attachment", wantErr: false},
- {name: "IAM user policy attachment", dirName: "aws_iam_user_policy_attachment", wantErr: false},
- {name: "IAM group policy", dirName: "aws_iam_group_policy", wantErr: false},
- {name: "IAM group policy attachment", dirName: "aws_iam_group_policy_attachment", wantErr: false},
- {name: "VPC security group rule", dirName: "aws_vpc_security_group_rule", wantErr: false},
- {name: "default route table", dirName: "aws_default_route_table", wantErr: false, providerVersion: "3.62.0"},
- {name: "route table", dirName: "aws_route_table", wantErr: false, providerVersion: "3.62.0"},
- {name: "route table associations", dirName: "aws_route_assoc", wantErr: false},
- {name: "route", dirName: "aws_route", wantErr: false},
- {name: "NAT gateway", dirName: "aws_nat_gateway", wantErr: false},
- {name: "Internet Gateway", dirName: "aws_internet_gateway", wantErr: false},
- {name: "SQS queue", dirName: "aws_sqs_queue", wantErr: false},
- {name: "SQS queue policy", dirName: "aws_sqs_queue_policy", wantErr: false},
- {name: "SNS Topic", dirName: "aws_sns_topic", wantErr: false},
- {name: "SNS Topic Policy", dirName: "aws_sns_topic_policy", wantErr: false},
- {name: "SNS Topic Subscription", dirName: "aws_sns_topic_subscription", wantErr: false},
- {name: "DynamoDB table", dirName: "aws_dynamodb_table", wantErr: false},
- {name: "Route53 Health Check", dirName: "aws_route53_health_check", wantErr: false},
- {name: "Cloudfront distribution", dirName: "aws_cloudfront_distribution", wantErr: false},
- {name: "ECR Repository", dirName: "aws_ecr_repository", wantErr: false},
- {name: "KMS key", dirName: "aws_kms_key", wantErr: false},
- {name: "KMS alias", dirName: "aws_kms_alias", wantErr: false},
- {name: "lambda event source mapping", dirName: "aws_lambda_event_source_mapping", wantErr: false},
- {name: "VPC", dirName: "aws_vpc", wantErr: false},
- {name: "Subnet", dirName: "aws_subnet", wantErr: false},
- {name: "RDS cluster", dirName: "aws_rds_cluster", wantErr: false},
- {name: "Cloudformation stack", dirName: "aws_cloudformation_stack", wantErr: false},
- {name: "Api Gateway Rest Api", dirName: "aws_api_gateway_rest_api", wantErr: false},
- {name: "Api Gateway Account", dirName: "aws_api_gateway_account", wantErr: false},
- {name: "Api Gateway Api Key", dirName: "aws_api_gateway_api_key", wantErr: false},
- {name: "Api Gateway authorizer", dirName: "aws_api_gateway_authorizer", wantErr: false},
- {name: "Api Gateway stage", dirName: "aws_api_gateway_stage", wantErr: false},
- {name: "Api Gateway resource", dirName: "aws_api_gateway_resource", wantErr: false},
- {name: "Api Gateway domain name", dirName: "aws_api_gateway_domain_name", wantErr: false},
- {name: "Api Gateway vpc link", dirName: "aws_api_gateway_vpc_link", wantErr: false},
- {name: "Api Gateway V2 Api", dirName: "aws_apigatewayv2_api", wantErr: false},
- {name: "Api Gateway V2 Route", dirName: "aws_apigatewayv2_route", wantErr: false},
- {name: "Api Gateway V2 Deployment", dirName: "aws_apigatewayv2_deployment", wantErr: false},
- {name: "Api Gateway V2 stage", dirName: "aws_apigatewayv2_stage", wantErr: false},
- {name: "Api Gateway request validator", dirName: "aws_api_gateway_request_validator", wantErr: false},
- {name: "Api Gateway rest api policy", dirName: "aws_api_gateway_rest_api_policy", wantErr: false},
- {name: "Api Gateway base path mapping", dirName: "aws_api_gateway_base_path_mapping", wantErr: false},
- {name: "Api Gateway method", dirName: "aws_api_gateway_method", wantErr: false},
- {name: "Api Gateway model", dirName: "aws_api_gateway_model", wantErr: false},
- {name: "Api Gateway method response", dirName: "aws_api_gateway_method_response", wantErr: false},
- {name: "Api Gateway gateway response", dirName: "aws_api_gateway_gateway_response", wantErr: false},
- {name: "Api Gateway method settings", dirName: "aws_api_gateway_method_settings", wantErr: false},
- {name: "Api Gateway integration", dirName: "aws_api_gateway_integration", wantErr: false},
- {name: "Api Gateway integration response", dirName: "aws_api_gateway_integration_response", wantErr: false},
- {name: "Api Gateway V2 Api", dirName: "aws_apigatewayv2_api", wantErr: false},
- {name: "Api Gateway V2 Route", dirName: "aws_apigatewayv2_route", wantErr: false},
- {name: "Api Gateway V2 authorizer", dirName: "aws_apigatewayv2_authorizer", wantErr: false},
- {name: "Api Gateway V2 integration", dirName: "aws_apigatewayv2_integration", wantErr: false},
- {name: "Api Gateway V2 model", dirName: "aws_apigatewayv2_model", wantErr: false},
- {name: "Api Gateway V2 stage", dirName: "aws_apigatewayv2_stage", wantErr: false},
- {name: "App gateway v2 vpc link", dirName: "aws_apigatewayv2_vpc_link", wantErr: false},
- {name: "App gateway v2 route response", dirName: "aws_apigatewayv2_route_response", wantErr: false},
- {name: "Api Gateway V2 mapping", dirName: "aws_apigatewayv2_api_mapping", wantErr: false},
- {name: "App gateway v2 domain name", dirName: "aws_apigatewayv2_domain_name", wantErr: false},
- {name: "Api Gateway V2 integration response", dirName: "aws_apigatewayv2_integration_response", wantErr: false},
- {name: "AppAutoScaling Targets", dirName: "aws_appautoscaling_target", wantErr: false},
- {name: "network acl", dirName: "aws_network_acl", wantErr: false},
- {name: "network acl rule", dirName: "aws_network_acl_rule", wantErr: false},
- {name: "default network acl", dirName: "aws_default_network_acl", wantErr: false},
- {name: "App autoscaling policy", dirName: "aws_appautoscaling_policy", wantErr: false},
- {name: "App autoscaling scheduled action", dirName: "aws_appautoscaling_scheduled_action", wantErr: false},
- {name: "Launch template", dirName: "aws_launch_template", wantErr: false},
- {name: "Launch configuration", dirName: "aws_launch_configuration", wantErr: false},
- {name: "EBS encryption by default", dirName: "aws_ebs_encryption_by_default", wantErr: false},
- {name: "LoadBalancer", dirName: "aws_lb", wantErr: false},
- {name: "Load balancer listener", dirName: "aws_lb_listener", wantErr: false},
- {name: "Classic load balancer", dirName: "aws_elb", wantErr: false},
- {name: "ElastiCache Cluster", dirName: "aws_elasticache_cluster", wantErr: false},
- {name: "IAM Group", dirName: "aws_iam_group", wantErr: false},
- {name: "ECR Repository Policy", dirName: "aws_ecr_repository_policy", wantErr: false},
- {name: "cloudtrail", dirName: "aws_cloudtrail", wantErr: false},
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- shouldUpdate := tt.dirName == *goldenfile.Update
-
- var realProvider *aws.AWSTerraformProvider
- if tt.providerVersion == "" {
- tt.providerVersion = "3.19.0"
- }
-
- if shouldUpdate {
- var err error
- realProvider, err = aws.NewAWSTerraformProvider(tt.providerVersion, progress, os.TempDir())
- if err != nil {
- t.Fatal(err)
- }
- err = realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- }
-
- provider := mocks.NewMockedGoldenTFProvider(tt.dirName, terraform.AWS, tt.providerVersion, realProvider, shouldUpdate)
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.AWS, provider)
-
- repo := testresource.InitFakeSchemaRepository(terraform.AWS, tt.providerVersion)
- resourceaws.InitResourcesMetadata(repo)
-
- factory := dctlresource.NewDriftctlResourceFactory(repo)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Path: path.Join(goldenfile.GoldenFilePath, tt.dirName, "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- deserializer: resource.NewDeserializer(factory),
- }
-
- got, err := r.Resources()
- resGoldenName := goldenfile.ResultsFilename
- if shouldUpdate {
- unm, err := json.Marshal(got)
- if err != nil {
- panic(err)
- }
- goldenfile.WriteFile(tt.dirName, unm, resGoldenName)
- }
-
- file := goldenfile.ReadFile(tt.dirName, resGoldenName)
- var want []interface{}
- if err := json.Unmarshal(file, &want); err != nil {
- panic(err)
- }
-
- if (err != nil) != tt.wantErr {
- t.Errorf("Resources() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- gotc := convert(got)
- changelog, err := diff.Diff(gotc, want)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- }
- })
- }
-}
-
-func TestTerraformStateReader_Github_Resources(t *testing.T) {
- tests := []struct {
- name string
- dirName string
- wantErr bool
- }{
- {name: "github repository", dirName: "github_repository", wantErr: false},
- {name: "github team", dirName: "github_team", wantErr: false},
- {name: "github membership", dirName: "github_membership", wantErr: false},
- {name: "github team membership", dirName: "github_team_membership", wantErr: false},
- {name: "github branch protection", dirName: "github_branch_protection", wantErr: false},
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- shouldUpdate := tt.dirName == *goldenfile.Update
-
- var realProvider *github.GithubTerraformProvider
-
- if shouldUpdate {
- var err error
- realProvider, err = github.NewGithubTerraformProvider("", progress, os.TempDir())
- if err != nil {
- t.Fatal(err)
- }
- err = realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- }
-
- version := "4.4.0"
-
- provider := mocks.NewMockedGoldenTFProvider(tt.dirName, terraform.GITHUB, version, realProvider, shouldUpdate)
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.GITHUB, provider)
-
- repo := testresource.InitFakeSchemaRepository(terraform.GITHUB, version)
- resourcegithub.InitResourcesMetadata(repo)
- factory := dctlresource.NewDriftctlResourceFactory(repo)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Path: path.Join(goldenfile.GoldenFilePath, tt.dirName, "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- deserializer: resource.NewDeserializer(factory),
- }
-
- got, err := r.Resources()
- resGoldenName := goldenfile.ResultsFilename
- if shouldUpdate {
- unm, err := json.Marshal(got)
- if err != nil {
- panic(err)
- }
- goldenfile.WriteFile(tt.dirName, unm, resGoldenName)
- }
-
- file := goldenfile.ReadFile(tt.dirName, resGoldenName)
- var want []interface{}
- if err := json.Unmarshal(file, &want); err != nil {
- panic(err)
- }
-
- if (err != nil) != tt.wantErr {
- t.Errorf("Resources() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- changelog, err := diff.Diff(convert(got), want)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- }
- })
- }
-}
-
-func TestTerraformStateReader_Google_Resources(t *testing.T) {
- tests := []struct {
- name string
- dirName string
- wantErr bool
- }{
- {name: "compute firewall", dirName: "google_compute_firewall", wantErr: false},
- {name: "compute router", dirName: "google_compute_router", wantErr: false},
- {name: "compute instance", dirName: "google_compute_instance", wantErr: false},
- {name: "Bucket IAM Bindings", dirName: "google_bucket_iam_binding", wantErr: false},
- {name: "Bucket IAM members", dirName: "google_bucket_iam_member", wantErr: false},
- {name: "Bucket IAM Policy", dirName: "google_bucket_iam_policy", wantErr: false},
- {name: "DNS managed zone", dirName: "google_dns_managed_zone", wantErr: false},
- {name: "bigquery dataset", dirName: "google_bigquery_dataset", wantErr: false},
- {name: "bigquery table", dirName: "google_bigquery_table", wantErr: false},
- {name: "compute address", dirName: "google_compute_address", wantErr: false},
- {name: "compute global address", dirName: "google_compute_global_address", wantErr: false},
- {name: "cloudfunctions function", dirName: "google_cloudfunctions_function", wantErr: false},
- {name: "compute subnetwork", dirName: "google_compute_subnetwork", wantErr: false},
- {name: "compute disk", dirName: "google_compute_disk", wantErr: false},
- {name: "compute image", dirName: "google_compute_image", wantErr: false},
- {name: "bigtable instance", dirName: "google_bigtable_instance", wantErr: false},
- {name: "bigtable table", dirName: "google_bigtable_table", wantErr: false},
- {name: "sql database instance", dirName: "google_sql_database_instance", wantErr: false},
- {name: "health check", dirName: "google_compute_health_check", wantErr: false},
- {name: "cloudrun service", dirName: "google_cloudrun_service", wantErr: false},
- {name: "compute node group", dirName: "google_compute_node_group", wantErr: false},
- {name: "compute forwarding rule", dirName: "google_compute_forwarding_rule", wantErr: false},
- {name: "compute instance group manager", dirName: "google_compute_instance_group_manager", wantErr: false},
- {name: "compute global forwarding rule", dirName: "google_compute_global_forwarding_rule", wantErr: false},
- {name: "compute ssl certificate", dirName: "google_compute_ssl_certificate", wantErr: false},
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- shouldUpdate := tt.dirName == *goldenfile.Update
-
- var realProvider *google.GCPTerraformProvider
- providerVersion := "3.78.0"
- var err error
- realProvider, err = google.NewGCPTerraformProvider(providerVersion, progress, os.TempDir())
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
-
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.GOOGLE, provider)
-
- repo := testresource.InitFakeSchemaRepository(terraform.GOOGLE, providerVersion)
- resourcegoogle.InitResourcesMetadata(repo)
- factory := dctlresource.NewDriftctlResourceFactory(repo)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Path: path.Join(goldenfile.GoldenFilePath, tt.dirName, "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- deserializer: resource.NewDeserializer(factory),
- }
-
- got, err := r.Resources()
- resGoldenName := goldenfile.ResultsFilename
- if shouldUpdate {
- unm, err := json.Marshal(got)
- if err != nil {
- panic(err)
- }
- goldenfile.WriteFile(tt.dirName, unm, resGoldenName)
- }
-
- file := goldenfile.ReadFile(tt.dirName, resGoldenName)
- var want []interface{}
- if err := json.Unmarshal(file, &want); err != nil {
- panic(err)
- }
-
- if (err != nil) != tt.wantErr {
- t.Errorf("Resources() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- changelog, err := diff.Diff(convert(got), want)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- }
- })
- }
-}
-
-func TestTerraformStateReader_Azure_Resources(t *testing.T) {
- tests := []struct {
- name string
- dirName string
- wantErr bool
- }{
- {name: "network security group", dirName: "azurerm_network_security_group", wantErr: false},
- {name: "load balancers", dirName: "azurerm_lb", wantErr: false},
- {name: "private dns zone", dirName: "azurerm_private_dns_zone", wantErr: false},
- {name: "private dns a record", dirName: "azurerm_private_dns_a_record", wantErr: false},
- {name: "private dns aaaa record", dirName: "azurerm_private_dns_aaaa_record", wantErr: false},
- {name: "private dns cname record", dirName: "azurerm_private_dns_cname_record", wantErr: false},
- {name: "private dns ptr record", dirName: "azurerm_private_dns_ptr_record", wantErr: false},
- {name: "private dns mx record", dirName: "azurerm_private_dns_mx_record", wantErr: false},
- {name: "private dns srv record", dirName: "azurerm_private_dns_srv_record", wantErr: false},
- {name: "private dns txt record", dirName: "azurerm_private_dns_txt_record", wantErr: false},
- {name: "images", dirName: "azurerm_image", wantErr: false},
- {name: "ssh public key", dirName: "azurerm_ssh_public_key", wantErr: false},
- {name: "load balancer rule", dirName: "azurerm_lb_rule", wantErr: false},
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- shouldUpdate := tt.dirName == *goldenfile.Update
-
- var realProvider *azurerm.AzureTerraformProvider
- providerVersion := "2.71.0"
- var err error
- realProvider, err = azurerm.NewAzureTerraformProvider(providerVersion, progress, os.TempDir())
- if err != nil {
- t.Fatal(err)
- }
- provider := terraform2.NewFakeTerraformProvider(realProvider)
-
- if shouldUpdate {
- err = realProvider.Init()
- if err != nil {
- t.Fatal(err)
- }
- provider.ShouldUpdate()
- }
-
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.AZURE, provider)
-
- repo := testresource.InitFakeSchemaRepository(terraform.AZURE, providerVersion)
- resourceazure.InitResourcesMetadata(repo)
- factory := dctlresource.NewDriftctlResourceFactory(repo)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Path: path.Join(goldenfile.GoldenFilePath, tt.dirName, "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- deserializer: resource.NewDeserializer(factory),
- }
-
- got, err := r.Resources()
- resGoldenName := goldenfile.ResultsFilename
- if shouldUpdate {
- unm, err := json.Marshal(got)
- if err != nil {
- panic(err)
- }
- goldenfile.WriteFile(tt.dirName, unm, resGoldenName)
- }
-
- file := goldenfile.ReadFile(tt.dirName, resGoldenName)
- var want []interface{}
- if err := json.Unmarshal(file, &want); err != nil {
- panic(err)
- }
-
- if (err != nil) != tt.wantErr {
- t.Errorf("Resources() error = %v, wantErr %v", err, tt.wantErr)
- return
- }
- changelog, err := diff.Diff(convert(got), want)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), change.From, change.To)
- }
- }
- })
- }
-}
-
-func convert(got []*resource.Resource) []interface{} {
- unm, err := json.Marshal(got)
- if err != nil {
- panic(err)
- }
- var want []interface{}
- if err := json.Unmarshal(unm, &want); err != nil {
- panic(err)
- }
- return want
-}
-
-func TestTerraformStateReader_VersionSupported(t *testing.T) {
- tests := []struct {
- name string
- statePath string
- err error
- }{
- {
- name: "should detect unsupported version",
- statePath: "testdata/v4/unsupported_version.tfstate",
- err: errors.New("terraform.tfstate was generated using Terraform 0.10.26 which is currently not supported by driftctl. Please read documentation at https://docs.driftctl.com/limitations"),
- },
- {
- name: "should detect supported version",
- statePath: "testdata/v4/supported_version.tfstate",
- err: nil,
- },
- {
- name: "should return invalid version error",
- statePath: "testdata/v4/invalid_version.tfstate",
- err: errors.New("Invalid Terraform version string: State file claims to have been written by Terraform version \"invalid\", which is not a valid version string."),
- },
- }
-
- for _, test := range tests {
- t.Run(test.name, func(t *testing.T) {
- reader, err := os.Open(test.statePath)
- assert.NoError(t, err)
-
- _, err = readState("terraform.tfstate", reader)
- if test.err != nil {
- assert.EqualError(t, err, test.err.Error())
- } else {
- assert.Equal(t, test.err, err)
- }
- })
- }
-}
-
-func TestTerraformStateReader_WithIgnoredResource(t *testing.T) {
- progress := &output.MockProgress{}
- progress.On("Inc").Return().Times(1)
- progress.On("Stop").Return().Times(1)
-
- provider := mocks.NewMockedGoldenTFProvider("ignored_resources", terraform.AWS, "3.19.0", nil, false)
- library := terraform.NewProviderLibrary()
- library.AddProvider(terraform.AWS, provider)
-
- filter := &filter.MockFilter{}
- filter.On("IsTypeIgnored", resource.ResourceType("aws_s3_bucket")).Return(true)
-
- r := &TerraformStateReader{
- config: config.SupplierConfig{
- Path: path.Join(goldenfile.GoldenFilePath, "ignored_resources", "terraform.tfstate"),
- },
- library: library,
- progress: progress,
- filter: filter,
- }
-
- got, err := r.Resources()
- filter.AssertExpectations(t)
- assert.Nil(t, err)
- assert.Len(t, got, 0)
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_account/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_account/results.golden.json
deleted file mode 100755
index ae4ba32f5..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_account/results.golden.json
+++ /dev/null
@@ -1,16 +0,0 @@
-[
- {
- "Id": "api-gateway-account",
- "Type": "aws_api_gateway_account",
- "Attrs": {
- "cloudwatch_role_arn": "arn:aws:iam::047081014315:role/api_gateway_cloudwatch_global",
- "id": "api-gateway-account",
- "throttle_settings": [
- {
- "burst_limit": 5000,
- "rate_limit": 10000
- }
- ]
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_account/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_account/terraform.tfstate
deleted file mode 100644
index a8a9e2e43..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_account/terraform.tfstate
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 37,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_account",
- "name": "account",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "cloudwatch_role_arn": "arn:aws:iam::047081014315:role/api_gateway_cloudwatch_global",
- "id": "api-gateway-account",
- "throttle_settings": [
- {
- "burst_limit": 5000,
- "rate_limit": 10000
- }
- ]
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_iam_role.cloudwatch"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_api_key/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_api_key/results.golden.json
deleted file mode 100755
index fa42bcd15..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_api_key/results.golden.json
+++ /dev/null
@@ -1,30 +0,0 @@
-[
- {
- "Id": "9ge737dd45",
- "Type": "aws_api_gateway_api_key",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/apikeys/9ge737dd45",
- "created_date": "2021-09-27T09:10:54Z",
- "description": "Foo Api Key",
- "enabled": false,
- "id": "9ge737dd45",
- "last_updated_date": "2021-09-27T09:10:54Z",
- "name": "foo",
- "value": "nHt1Wqv9538R7HUN5LtH11DyaluIiGwM39svyqqi"
- }
- },
- {
- "Id": "fuwnl8lrva",
- "Type": "aws_api_gateway_api_key",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/apikeys/fuwnl8lrva",
- "created_date": "2021-09-27T09:10:54Z",
- "description": "Bar Api Key",
- "enabled": false,
- "id": "fuwnl8lrva",
- "last_updated_date": "2021-09-27T09:10:54Z",
- "name": "bar",
- "value": "pmqQupx2Eu2KG4bh8UPTP5gpPTYC5dlF6VcrygNy"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_api_key/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_api_key/terraform.tfstate
deleted file mode 100644
index eaf811be1..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_api_key/terraform.tfstate
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 41,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_api_key",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:apigateway:us-east-1::/apikeys/fuwnl8lrva",
- "created_date": "2021-09-27T09:10:54Z",
- "description": "Bar Api Key",
- "enabled": false,
- "id": "fuwnl8lrva",
- "last_updated_date": "2021-09-27T09:10:54Z",
- "name": "bar",
- "tags": {},
- "tags_all": {},
- "value": "pmqQupx2Eu2KG4bh8UPTP5gpPTYC5dlF6VcrygNy"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_api_key",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:apigateway:us-east-1::/apikeys/9ge737dd45",
- "created_date": "2021-09-27T09:10:54Z",
- "description": "Foo Api Key",
- "enabled": false,
- "id": "9ge737dd45",
- "last_updated_date": "2021-09-27T09:10:54Z",
- "name": "foo",
- "tags": {},
- "tags_all": {},
- "value": "nHt1Wqv9538R7HUN5LtH11DyaluIiGwM39svyqqi"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/results.golden.json
deleted file mode 100755
index ae098f88e..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/results.golden.json
+++ /dev/null
@@ -1,32 +0,0 @@
-[
- {
- "Id": "ypcpde",
- "Type": "aws_api_gateway_authorizer",
- "Attrs": {
- "authorizer_credentials": "arn:aws:iam::047081014315:role/api_gateway_auth_invocation",
- "authorizer_result_ttl_in_seconds": 300,
- "authorizer_uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:047081014315:function:api_gateway_authorizer/invocations",
- "id": "ypcpde",
- "identity_source": "method.request.header.Authorization",
- "identity_validation_expression": "",
- "name": "bar",
- "rest_api_id": "1jitcobwol",
- "type": "TOKEN"
- }
- },
- {
- "Id": "bwhebj",
- "Type": "aws_api_gateway_authorizer",
- "Attrs": {
- "authorizer_credentials": "arn:aws:iam::047081014315:role/api_gateway_auth_invocation",
- "authorizer_result_ttl_in_seconds": 300,
- "authorizer_uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:047081014315:function:api_gateway_authorizer/invocations",
- "id": "bwhebj",
- "identity_source": "method.request.header.Authorization",
- "identity_validation_expression": "",
- "name": "foo",
- "rest_api_id": "1jitcobwol",
- "type": "TOKEN"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/terraform.tfstate
deleted file mode 100644
index 4f16d2cda..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_authorizer/terraform.tfstate
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 48,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_authorizer",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "authorizer_credentials": "arn:aws:iam::047081014315:role/api_gateway_auth_invocation",
- "authorizer_result_ttl_in_seconds": 300,
- "authorizer_uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:047081014315:function:api_gateway_authorizer/invocations",
- "id": "ypcpde",
- "identity_source": "method.request.header.Authorization",
- "identity_validation_expression": "",
- "name": "bar",
- "provider_arns": null,
- "rest_api_id": "1jitcobwol",
- "type": "TOKEN"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo",
- "aws_iam_role.invocation_role",
- "aws_iam_role.lambda",
- "aws_lambda_function.authorizer"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_authorizer",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "authorizer_credentials": "arn:aws:iam::047081014315:role/api_gateway_auth_invocation",
- "authorizer_result_ttl_in_seconds": 300,
- "authorizer_uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:047081014315:function:api_gateway_authorizer/invocations",
- "id": "bwhebj",
- "identity_source": "method.request.header.Authorization",
- "identity_validation_expression": "",
- "name": "foo",
- "provider_arns": null,
- "rest_api_id": "1jitcobwol",
- "type": "TOKEN"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo",
- "aws_iam_role.invocation_role",
- "aws_iam_role.lambda",
- "aws_lambda_function.authorizer"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/results.golden.json
deleted file mode 100755
index b650a6664..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/results.golden.json
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- {
- "Id": "example-driftctl.com/foo",
- "Type": "aws_api_gateway_base_path_mapping",
- "Attrs": {
- "api_id": "zetudukz30",
- "base_path": "foo",
- "domain_name": "example-driftctl.com",
- "id": "example-driftctl.com/foo",
- "stage_name": "foo"
- }
- },
- {
- "Id": "example-driftctl.com/",
- "Type": "aws_api_gateway_base_path_mapping",
- "Attrs": {
- "api_id": "zetudukz30",
- "base_path": "",
- "domain_name": "example-driftctl.com",
- "id": "example-driftctl.com/",
- "stage_name": "foo"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/terraform.tfstate
deleted file mode 100644
index d728fa989..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_base_path_mapping/terraform.tfstate
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 245,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_base_path_mapping",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "zetudukz30",
- "base_path": "foo",
- "domain_name": "example-driftctl.com",
- "id": "example-driftctl.com/foo",
- "stage_name": "foo"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_stage.foo",
- "tls_private_key.example",
- "tls_self_signed_cert.example",
- "aws_acm_certificate.example",
- "aws_api_gateway_deployment.test",
- "aws_api_gateway_domain_name.example",
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_base_path_mapping",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "zetudukz30",
- "base_path": "",
- "domain_name": "example-driftctl.com",
- "id": "example-driftctl.com/",
- "stage_name": "foo"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_domain_name.example",
- "aws_api_gateway_rest_api.bar",
- "aws_api_gateway_stage.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/results.golden.json
deleted file mode 100755
index 6dcac7ffb..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/results.golden.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "Id": "example-driftctl.com",
- "Type": "aws_api_gateway_domain_name",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/domainnames/example-driftctl.com",
- "certificate_arn": "",
- "certificate_name": "",
- "certificate_upload_date": "2021-10-05T10:12:49Z",
- "cloudfront_domain_name": "",
- "cloudfront_zone_id": "Z2FDTNDATAQYW2",
- "domain_name": "example-driftctl.com",
- "endpoint_configuration": [
- {
- "types": [
- "REGIONAL"
- ]
- }
- ],
- "id": "example-driftctl.com",
- "regional_certificate_arn": "arn:aws:acm:us-east-1:047081014315:certificate/9759296d-8303-4f62-b6f0-f84ed1530047",
- "regional_certificate_name": "",
- "regional_domain_name": "d-r6fst05lt4.execute-api.us-east-1.amazonaws.com",
- "regional_zone_id": "Z1UJRXOUMOOFQ8",
- "security_policy": "TLS_1_0"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/terraform.tfstate
deleted file mode 100644
index b516011fb..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_domain_name/terraform.tfstate
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 119,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_domain_name",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:apigateway:us-east-1::/domainnames/example-driftctl.com",
- "certificate_arn": "",
- "certificate_body": null,
- "certificate_chain": null,
- "certificate_name": "",
- "certificate_private_key": null,
- "certificate_upload_date": "2021-10-05T10:12:49Z",
- "cloudfront_domain_name": "",
- "cloudfront_zone_id": "Z2FDTNDATAQYW2",
- "domain_name": "example-driftctl.com",
- "endpoint_configuration": [
- {
- "types": [
- "REGIONAL"
- ]
- }
- ],
- "id": "example-driftctl.com",
- "mutual_tls_authentication": [],
- "regional_certificate_arn": "arn:aws:acm:us-east-1:047081014315:certificate/9759296d-8303-4f62-b6f0-f84ed1530047",
- "regional_certificate_name": "",
- "regional_domain_name": "d-r6fst05lt4.execute-api.us-east-1.amazonaws.com",
- "regional_zone_id": "Z1UJRXOUMOOFQ8",
- "security_policy": "TLS_1_0",
- "tags": null,
- "tags_all": {}
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_acm_certificate.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/results.golden.json
deleted file mode 100755
index 859a3bb9e..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/results.golden.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
- {
- "Id": "aggr-vryjzimtj1-UNAUTHORIZED",
- "Type": "aws_api_gateway_gateway_response",
- "Attrs": {
- "id": "aggr-vryjzimtj1-UNAUTHORIZED",
- "response_parameters": {
- "gatewayresponse.header.Authorization": "'Basic'"
- },
- "response_templates": {
- "application/json": "{\"message\":$context.error.messageString}"
- },
- "response_type": "UNAUTHORIZED",
- "rest_api_id": "vryjzimtj1",
- "status_code": "401"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/terraform.tfstate
deleted file mode 100644
index 0ecd0c1c0..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_gateway_response/terraform.tfstate
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 279,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_gateway_response",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "aggr-vryjzimtj1-UNAUTHORIZED",
- "response_parameters": {
- "gatewayresponse.header.Authorization": "'Basic'"
- },
- "response_templates": {
- "application/json": "{\"message\":$context.error.messageString}"
- },
- "response_type": "UNAUTHORIZED",
- "rest_api_id": "vryjzimtj1",
- "status_code": "401"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_integration/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_integration/results.golden.json
deleted file mode 100755
index 010690425..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_integration/results.golden.json
+++ /dev/null
@@ -1,22 +0,0 @@
-[
- {
- "Id": "agi-u7jce3lokk-z9ag20-GET",
- "Type": "aws_api_gateway_integration",
- "Attrs": {
- "cache_namespace": "z9ag20",
- "connection_id": "",
- "connection_type": "INTERNET",
- "content_handling": "",
- "credentials": "",
- "http_method": "GET",
- "id": "agi-u7jce3lokk-z9ag20-GET",
- "integration_http_method": "",
- "passthrough_behavior": "WHEN_NO_MATCH",
- "resource_id": "z9ag20",
- "rest_api_id": "u7jce3lokk",
- "timeout_milliseconds": 29000,
- "type": "MOCK",
- "uri": ""
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_integration/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_integration/terraform.tfstate
deleted file mode 100644
index 5541154c0..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_integration/terraform.tfstate
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 369,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_integration",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "cache_key_parameters": [],
- "cache_namespace": "z9ag20",
- "connection_id": "",
- "connection_type": "INTERNET",
- "content_handling": "",
- "credentials": "",
- "http_method": "GET",
- "id": "agi-u7jce3lokk-z9ag20-GET",
- "integration_http_method": "",
- "passthrough_behavior": "WHEN_NO_MATCH",
- "request_parameters": {},
- "request_templates": {},
- "resource_id": "z9ag20",
- "rest_api_id": "u7jce3lokk",
- "timeout_milliseconds": 29000,
- "tls_config": [],
- "type": "MOCK",
- "uri": ""
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_method.foo",
- "aws_api_gateway_resource.foo",
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/results.golden.json
deleted file mode 100755
index acf8d902d..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/results.golden.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
- {
- "Id": "agir-u7jce3lokk-z9ag20-GET-200",
- "Type": "aws_api_gateway_integration_response",
- "Attrs": {
- "content_handling": "",
- "http_method": "GET",
- "id": "agir-u7jce3lokk-z9ag20-GET-200",
- "resource_id": "z9ag20",
- "response_templates": {
- "application/xml": "#set($inputRoot = $input.path('$'))\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cmessage\u003e\n $inputRoot.body\n\u003c/message\u003e\n"
- },
- "rest_api_id": "u7jce3lokk",
- "selection_pattern": "",
- "status_code": "200"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/terraform.tfstate
deleted file mode 100644
index 55577c5d4..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_integration_response/terraform.tfstate
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 379,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_integration_response",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "content_handling": "",
- "http_method": "GET",
- "id": "agir-u7jce3lokk-z9ag20-GET-200",
- "resource_id": "z9ag20",
- "response_parameters": {},
- "response_templates": {
- "application/xml": "#set($inputRoot = $input.path('$'))\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cmessage\u003e\n $inputRoot.body\n\u003c/message\u003e\n"
- },
- "rest_api_id": "u7jce3lokk",
- "selection_pattern": "",
- "status_code": "200"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_method.foo",
- "aws_api_gateway_method_response.response_200",
- "aws_api_gateway_resource.foo",
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_method/results.golden.json
deleted file mode 100755
index c9d8f0e48..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method/results.golden.json
+++ /dev/null
@@ -1,16 +0,0 @@
-[
- {
- "Id": "agm-vryjzimtj1-hl7ksq-GET",
- "Type": "aws_api_gateway_method",
- "Attrs": {
- "api_key_required": false,
- "authorization": "NONE",
- "authorizer_id": "",
- "http_method": "GET",
- "id": "agm-vryjzimtj1-hl7ksq-GET",
- "request_validator_id": "",
- "resource_id": "hl7ksq",
- "rest_api_id": "vryjzimtj1"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_method/terraform.tfstate
deleted file mode 100644
index fadf2adde..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method/terraform.tfstate
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 269,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_method",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_key_required": false,
- "authorization": "NONE",
- "authorization_scopes": [],
- "authorizer_id": "",
- "http_method": "GET",
- "id": "agm-vryjzimtj1-hl7ksq-GET",
- "operation_name": "",
- "request_models": {},
- "request_parameters": {},
- "request_validator_id": "",
- "resource_id": "hl7ksq",
- "rest_api_id": "vryjzimtj1"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_resource.foo",
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method_response/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_method_response/results.golden.json
deleted file mode 100755
index 3cfdfbe6f..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method_response/results.golden.json
+++ /dev/null
@@ -1,13 +0,0 @@
-[
- {
- "Id": "agmr-vryjzimtj1-oy4dqf-GET-200",
- "Type": "aws_api_gateway_method_response",
- "Attrs": {
- "http_method": "GET",
- "id": "agmr-vryjzimtj1-oy4dqf-GET-200",
- "resource_id": "oy4dqf",
- "rest_api_id": "vryjzimtj1",
- "status_code": "200"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method_response/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_method_response/terraform.tfstate
deleted file mode 100644
index 0c5698504..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method_response/terraform.tfstate
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 294,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_method_response",
- "name": "response_200",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "http_method": "GET",
- "id": "agmr-vryjzimtj1-oy4dqf-GET-200",
- "resource_id": "oy4dqf",
- "response_models": null,
- "response_parameters": null,
- "rest_api_id": "vryjzimtj1",
- "status_code": "200"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_method.foo",
- "aws_api_gateway_resource.foo",
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/results.golden.json
deleted file mode 100755
index 7657790b7..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/results.golden.json
+++ /dev/null
@@ -1,50 +0,0 @@
-[
- {
- "Id": "vryjzimtj1-foo-foo/GET",
- "Type": "aws_api_gateway_method_settings",
- "Attrs": {
- "id": "vryjzimtj1-foo-foo/GET",
- "method_path": "foo/GET",
- "rest_api_id": "vryjzimtj1",
- "settings": [
- {
- "cache_data_encrypted": false,
- "cache_ttl_in_seconds": 300,
- "caching_enabled": false,
- "data_trace_enabled": false,
- "logging_level": "INFO",
- "metrics_enabled": true,
- "require_authorization_for_cache_control": true,
- "throttling_burst_limit": -1,
- "throttling_rate_limit": -1,
- "unauthorized_cache_control_header_strategy": "SUCCEED_WITH_RESPONSE_HEADER"
- }
- ],
- "stage_name": "foo"
- }
- },
- {
- "Id": "vryjzimtj1-foo-*/*",
- "Type": "aws_api_gateway_method_settings",
- "Attrs": {
- "id": "vryjzimtj1-foo-*/*",
- "method_path": "*/*",
- "rest_api_id": "vryjzimtj1",
- "settings": [
- {
- "cache_data_encrypted": false,
- "cache_ttl_in_seconds": 300,
- "caching_enabled": false,
- "data_trace_enabled": false,
- "logging_level": "ERROR",
- "metrics_enabled": true,
- "require_authorization_for_cache_control": true,
- "throttling_burst_limit": -1,
- "throttling_rate_limit": -1,
- "unauthorized_cache_control_header_strategy": "SUCCEED_WITH_RESPONSE_HEADER"
- }
- ],
- "stage_name": "foo"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/terraform.tfstate
deleted file mode 100644
index 29b7bf78d..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_method_settings/terraform.tfstate
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 313,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_method_settings",
- "name": "all",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "vryjzimtj1-foo-*/*",
- "method_path": "*/*",
- "rest_api_id": "vryjzimtj1",
- "settings": [
- {
- "cache_data_encrypted": false,
- "cache_ttl_in_seconds": 300,
- "caching_enabled": false,
- "data_trace_enabled": false,
- "logging_level": "ERROR",
- "metrics_enabled": true,
- "require_authorization_for_cache_control": true,
- "throttling_burst_limit": -1,
- "throttling_rate_limit": -1,
- "unauthorized_cache_control_header_strategy": "SUCCEED_WITH_RESPONSE_HEADER"
- }
- ],
- "stage_name": "foo"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_deployment.foo",
- "aws_api_gateway_rest_api.foo",
- "aws_api_gateway_stage.foo"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_method_settings",
- "name": "path_specific",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "vryjzimtj1-foo-foo/GET",
- "method_path": "foo/GET",
- "rest_api_id": "vryjzimtj1",
- "settings": [
- {
- "cache_data_encrypted": false,
- "cache_ttl_in_seconds": 300,
- "caching_enabled": false,
- "data_trace_enabled": false,
- "logging_level": "INFO",
- "metrics_enabled": true,
- "require_authorization_for_cache_control": true,
- "throttling_burst_limit": -1,
- "throttling_rate_limit": -1,
- "unauthorized_cache_control_header_strategy": "SUCCEED_WITH_RESPONSE_HEADER"
- }
- ],
- "stage_name": "foo"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo",
- "aws_api_gateway_stage.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_model/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_model/results.golden.json
deleted file mode 100755
index 8a7f87fcc..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_model/results.golden.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "Id": "85v536",
- "Type": "aws_api_gateway_model",
- "Attrs": {
- "content_type": "application/json",
- "description": "a JSON schema",
- "id": "85v536",
- "name": "bar",
- "rest_api_id": "zetudukz30",
- "schema": "{\n \"type\": \"object\"\n}\n"
- }
- },
- {
- "Id": "g68a4s",
- "Type": "aws_api_gateway_model",
- "Attrs": {
- "content_type": "application/json",
- "description": "a JSON schema",
- "id": "g68a4s",
- "name": "foo",
- "rest_api_id": "vryjzimtj1",
- "schema": "{\n \"type\": \"object\"\n}\n"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_model/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_model/terraform.tfstate
deleted file mode 100644
index 35fd89771..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_model/terraform.tfstate
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.9",
- "serial": 272,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_model",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "content_type": "application/json",
- "description": "a JSON schema",
- "id": "85v536",
- "name": "bar",
- "rest_api_id": "zetudukz30",
- "schema": "{\n \"type\": \"object\"\n}\n"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_model",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "content_type": "application/json",
- "description": "a JSON schema",
- "id": "g68a4s",
- "name": "foo",
- "rest_api_id": "vryjzimtj1",
- "schema": "{\n \"type\": \"object\"\n}\n"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/results.golden.json
deleted file mode 100755
index 49305671c..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/results.golden.json
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- {
- "Id": "tak8bq",
- "Type": "aws_api_gateway_request_validator",
- "Attrs": {
- "id": "tak8bq",
- "name": "bar",
- "rest_api_id": "zetudukz30",
- "validate_request_body": true,
- "validate_request_parameters": true
- }
- },
- {
- "Id": "ywlcuf",
- "Type": "aws_api_gateway_request_validator",
- "Attrs": {
- "id": "ywlcuf",
- "name": "foo",
- "rest_api_id": "vryjzimtj1",
- "validate_request_body": true,
- "validate_request_parameters": true
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/terraform.tfstate
deleted file mode 100644
index b6bc44372..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_request_validator/terraform.tfstate
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.8",
- "serial": 257,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_request_validator",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "tak8bq",
- "name": "bar",
- "rest_api_id": "zetudukz30",
- "validate_request_body": true,
- "validate_request_parameters": true
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_request_validator",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "ywlcuf",
- "name": "foo",
- "rest_api_id": "vryjzimtj1",
- "validate_request_body": true,
- "validate_request_parameters": true
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_resource/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_resource/results.golden.json
deleted file mode 100755
index 011bb8082..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_resource/results.golden.json
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- {
- "Id": "21zk4y",
- "Type": "aws_api_gateway_resource",
- "Attrs": {
- "id": "21zk4y",
- "parent_id": "pe75h6tq6i",
- "path": "/bar",
- "path_part": "bar",
- "rest_api_id": "3of73v5ob4"
- }
- },
- {
- "Id": "wijcbm",
- "Type": "aws_api_gateway_resource",
- "Attrs": {
- "id": "wijcbm",
- "parent_id": "2ltv32p058",
- "path": "/foo",
- "path_part": "foo",
- "rest_api_id": "1jitcobwol"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_resource/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_resource/terraform.tfstate
deleted file mode 100644
index 016fb1c9d..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_resource/terraform.tfstate
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 27,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_resource",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "21zk4y",
- "parent_id": "pe75h6tq6i",
- "path": "/bar",
- "path_part": "bar",
- "rest_api_id": "3of73v5ob4"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_resource",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "wijcbm",
- "parent_id": "2ltv32p058",
- "path": "/foo",
- "path_part": "foo",
- "rest_api_id": "1jitcobwol"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.foo"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/results.golden.json
deleted file mode 100755
index acc6041f2..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/results.golden.json
+++ /dev/null
@@ -1,49 +0,0 @@
-[
- {
- "Id": "3of73v5ob4",
- "Type": "aws_api_gateway_rest_api",
- "Attrs": {
- "api_key_source": "HEADER",
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4",
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- "created_date": "2021-09-14T13:08:52Z",
- "description": "This is bar API",
- "endpoint_configuration": [
- {
- "types": [
- "EDGE"
- ]
- }
- ],
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4",
- "id": "3of73v5ob4",
- "minimum_compression_size": -1,
- "name": "bar",
- "policy": "",
- "root_resource_id": "pe75h6tq6i"
- }
- },
- {
- "Id": "1jitcobwol",
- "Type": "aws_api_gateway_rest_api",
- "Attrs": {
- "api_key_source": "HEADER",
- "arn": "arn:aws:apigateway:us-east-1::/restapis/1jitcobwol",
- "created_date": "2021-09-14T13:07:37Z",
- "description": "This is foo API",
- "endpoint_configuration": [
- {
- "types": [
- "EDGE"
- ]
- }
- ],
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:1jitcobwol",
- "id": "1jitcobwol",
- "minimum_compression_size": -1,
- "name": "foo",
- "policy": "",
- "root_resource_id": "2ltv32p058"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/terraform.tfstate
deleted file mode 100644
index 92bfe93d7..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api/terraform.tfstate
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.6",
- "serial": 8,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_rest_api",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_key_source": "HEADER",
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4",
- "binary_media_types": [],
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- "created_date": "2021-09-14T13:08:52Z",
- "description": "This is bar API",
- "disable_execute_api_endpoint": false,
- "endpoint_configuration": [
- {
- "types": [
- "EDGE"
- ],
- "vpc_endpoint_ids": []
- }
- ],
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4",
- "id": "3of73v5ob4",
- "minimum_compression_size": -1,
- "name": "bar",
- "parameters": null,
- "policy": "",
- "root_resource_id": "pe75h6tq6i",
- "tags": {},
- "tags_all": {}
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_rest_api",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_key_source": "HEADER",
- "arn": "arn:aws:apigateway:us-east-1::/restapis/1jitcobwol",
- "binary_media_types": [],
- "body": null,
- "created_date": "2021-09-14T13:07:37Z",
- "description": "This is foo API",
- "disable_execute_api_endpoint": false,
- "endpoint_configuration": [
- {
- "types": [
- "EDGE"
- ],
- "vpc_endpoint_ids": []
- }
- ],
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:1jitcobwol",
- "id": "1jitcobwol",
- "minimum_compression_size": -1,
- "name": "foo",
- "parameters": null,
- "policy": "",
- "root_resource_id": "2ltv32p058",
- "tags": {},
- "tags_all": {}
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/results.golden.json
deleted file mode 100755
index 53e10f181..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/results.golden.json
+++ /dev/null
@@ -1,20 +0,0 @@
-[
- {
- "Id": "c3n3aqga5d",
- "Type": "aws_api_gateway_rest_api_policy",
- "Attrs": {
- "id": "c3n3aqga5d",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:047081014315:c3n3aqga5d/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"123.123.123.123/32\"}}}]}",
- "rest_api_id": "c3n3aqga5d"
- }
- },
- {
- "Id": "uwk4xvbm04",
- "Type": "aws_api_gateway_rest_api_policy",
- "Attrs": {
- "id": "uwk4xvbm04",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:047081014315:uwk4xvbm04/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"12.12.12.12/32\"}}}]}",
- "rest_api_id": "uwk4xvbm04"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/terraform.tfstate
deleted file mode 100644
index efaae3827..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_rest_api_policy/terraform.tfstate
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 149,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_rest_api_policy",
- "name": "test",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "c3n3aqga5d",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:047081014315:c3n3aqga5d/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"123.123.123.123/32\"}}}]}",
- "rest_api_id": "c3n3aqga5d"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.test"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_rest_api_policy",
- "name": "test-5",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "id": "uwk4xvbm04",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:047081014315:uwk4xvbm04/*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"12.12.12.12/32\"}}}]}",
- "rest_api_id": "uwk4xvbm04"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_rest_api.test-5"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_stage/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_stage/results.golden.json
deleted file mode 100755
index ab3f4faa4..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_stage/results.golden.json
+++ /dev/null
@@ -1,40 +0,0 @@
-[
- {
- "Id": "ags-3of73v5ob4-baz",
- "Type": "aws_api_gateway_stage",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4/stages/baz",
- "cache_cluster_enabled": false,
- "cache_cluster_size": "",
- "client_certificate_id": "",
- "deployment_id": "i5bl4e",
- "description": "",
- "documentation_version": "",
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4/baz",
- "id": "ags-3of73v5ob4-baz",
- "invoke_url": "https://3of73v5ob4.execute-api.us-east-1.amazonaws.com/baz",
- "rest_api_id": "3of73v5ob4",
- "stage_name": "baz",
- "xray_tracing_enabled": false
- }
- },
- {
- "Id": "ags-3of73v5ob4-foo",
- "Type": "aws_api_gateway_stage",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4/stages/foo",
- "cache_cluster_enabled": false,
- "cache_cluster_size": "",
- "client_certificate_id": "",
- "deployment_id": "i5bl4e",
- "description": "",
- "documentation_version": "",
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4/foo",
- "id": "ags-3of73v5ob4-foo",
- "invoke_url": "https://3of73v5ob4.execute-api.us-east-1.amazonaws.com/foo",
- "rest_api_id": "3of73v5ob4",
- "stage_name": "foo",
- "xray_tracing_enabled": false
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_stage/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_stage/terraform.tfstate
deleted file mode 100644
index 72afe8308..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_stage/terraform.tfstate
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 107,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_stage",
- "name": "bar",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "access_log_settings": [],
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4/stages/baz",
- "cache_cluster_enabled": false,
- "cache_cluster_size": "",
- "client_certificate_id": "",
- "deployment_id": "i5bl4e",
- "description": "",
- "documentation_version": "",
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4/baz",
- "id": "ags-3of73v5ob4-baz",
- "invoke_url": "https://3of73v5ob4.execute-api.us-east-1.amazonaws.com/baz",
- "rest_api_id": "3of73v5ob4",
- "stage_name": "baz",
- "tags": null,
- "tags_all": {},
- "variables": null,
- "xray_tracing_enabled": false
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_deployment.test",
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- },
- {
- "mode": "managed",
- "type": "aws_api_gateway_stage",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "access_log_settings": [],
- "arn": "arn:aws:apigateway:us-east-1::/restapis/3of73v5ob4/stages/foo",
- "cache_cluster_enabled": false,
- "cache_cluster_size": "",
- "client_certificate_id": "",
- "deployment_id": "i5bl4e",
- "description": "",
- "documentation_version": "",
- "execution_arn": "arn:aws:execute-api:us-east-1:047081014315:3of73v5ob4/foo",
- "id": "ags-3of73v5ob4-foo",
- "invoke_url": "https://3of73v5ob4.execute-api.us-east-1.amazonaws.com/foo",
- "rest_api_id": "3of73v5ob4",
- "stage_name": "foo",
- "tags": null,
- "tags_all": {},
- "variables": null,
- "xray_tracing_enabled": false
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_api_gateway_deployment.test",
- "aws_api_gateway_rest_api.bar"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/results.golden.json b/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/results.golden.json
deleted file mode 100755
index ab5eec4b4..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/results.golden.json
+++ /dev/null
@@ -1,15 +0,0 @@
-[
- {
- "Id": "ipu24n",
- "Type": "aws_api_gateway_vpc_link",
- "Attrs": {
- "arn": "arn:aws:apigateway:us-east-1::/vpclinks/ipu24n",
- "description": "Description",
- "id": "ipu24n",
- "name": "foo",
- "target_arns": [
- "arn:aws:elasticloadbalancing:us-east-1:047081014315:loadbalancer/net/example/ffbc3a2463857d4e"
- ]
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/terraform.tfstate b/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/terraform.tfstate
deleted file mode 100644
index 399e85c6f..000000000
--- a/pkg/iac/terraform/state/test/aws_api_gateway_vpc_link/terraform.tfstate
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.7",
- "serial": 128,
- "lineage": "85f5bee6-139e-8db2-ae5d-82aa82f62611",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_api_gateway_vpc_link",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "arn": "arn:aws:apigateway:us-east-1::/vpclinks/ipu24n",
- "description": "Description",
- "id": "ipu24n",
- "name": "foo",
- "tags": null,
- "tags_all": {},
- "target_arns": [
- "arn:aws:elasticloadbalancing:us-east-1:047081014315:loadbalancer/net/example/ffbc3a2463857d4e"
- ]
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_lb.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_api/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_api/results.golden.json
deleted file mode 100755
index 4f8895e38..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_api/results.golden.json
+++ /dev/null
@@ -1,19 +0,0 @@
-[
- {
- "Id": "f5vdrg12tk",
- "Type": "aws_apigatewayv2_api",
- "Attrs": {
- "api_endpoint": "wss://f5vdrg12tk.execute-api.us-east-2.amazonaws.com",
- "api_key_selection_expression": "$request.header.x-api-key",
- "arn": "arn:aws:apigateway:us-east-2::/apis/f5vdrg12tk",
- "description": "",
- "disable_execute_api_endpoint": false,
- "execution_arn": "arn:aws:execute-api:us-east-2:070182406464:f5vdrg12tk",
- "id": "f5vdrg12tk",
- "name": "example-websocket-api",
- "protocol_type": "WEBSOCKET",
- "route_selection_expression": "$request.body.action",
- "version": ""
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_api/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_api/terraform.tfstate
deleted file mode 100644
index 86ef9e765..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_api/terraform.tfstate
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.11",
- "serial": 1,
- "lineage": "b6adb9f7-8e1a-eaea-5c52-c50d6851fa6e",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_api",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_endpoint": "wss://f5vdrg12tk.execute-api.us-east-2.amazonaws.com",
- "api_key_selection_expression": "$request.header.x-api-key",
- "arn": "arn:aws:apigateway:us-east-2::/apis/f5vdrg12tk",
- "body": null,
- "cors_configuration": [],
- "credentials_arn": null,
- "description": "",
- "disable_execute_api_endpoint": false,
- "execution_arn": "arn:aws:execute-api:us-east-2:070182406464:f5vdrg12tk",
- "fail_on_warnings": null,
- "id": "f5vdrg12tk",
- "name": "example-websocket-api",
- "protocol_type": "WEBSOCKET",
- "route_key": null,
- "route_selection_expression": "$request.body.action",
- "tags": null,
- "tags_all": {},
- "target": null,
- "version": ""
- },
- "sensitive_attributes": [],
- "private": "bnVsbA=="
- }
- ]
- }
- ]
- }
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/results.golden.json
deleted file mode 100755
index 839c9a0b5..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/results.golden.json
+++ /dev/null
@@ -1,13 +0,0 @@
-[
- {
- "Id": "f02opk",
- "Type": "aws_apigatewayv2_api_mapping",
- "Attrs": {
- "api_id": "wbachnbphj",
- "api_mapping_key": "",
- "domain_name": "driftctl.example.com",
- "id": "f02opk",
- "stage": "example-stage"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/terraform.tfstate
deleted file mode 100644
index 94dd6e02b..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_api_mapping/terraform.tfstate
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.1.0",
- "serial": 147,
- "lineage": "0738cef4-9d69-9ccc-aebd-1177cafa0aa9",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_api_mapping",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "wbachnbphj",
- "api_mapping_key": "",
- "domain_name": "driftctl.example.com",
- "id": "f02opk",
- "stage": "example-stage"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_acm_certificate.example",
- "aws_apigatewayv2_api.example",
- "aws_apigatewayv2_domain_name.example",
- "aws_apigatewayv2_stage.example",
- "tls_private_key.example",
- "tls_self_signed_cert.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/results.golden.json
deleted file mode 100755
index d68e566af..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/results.golden.json
+++ /dev/null
@@ -1,20 +0,0 @@
-[
- {
- "Id": "xaappu",
- "Type": "aws_apigatewayv2_authorizer",
- "Attrs": {
- "api_id": "bmyl5c6huh",
- "authorizer_credentials_arn": "",
- "authorizer_payload_format_version": "",
- "authorizer_result_ttl_in_seconds": 0,
- "authorizer_type": "REQUEST",
- "authorizer_uri": "arn:aws:apigateway:us-east-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-2:047081014315:function:api_gateway_authorizer/invocations",
- "enable_simple_responses": false,
- "id": "xaappu",
- "identity_sources": [
- "route.request.header.Auth"
- ],
- "name": "foo"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/terraform.tfstate
deleted file mode 100644
index 461e8ba08..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_authorizer/terraform.tfstate
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.11",
- "serial": 42,
- "lineage": "e6ff1294-2037-a68a-e0b9-73953d4da0e7",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_authorizer",
- "name": "foo",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "bmyl5c6huh",
- "authorizer_credentials_arn": "",
- "authorizer_payload_format_version": "",
- "authorizer_result_ttl_in_seconds": 0,
- "authorizer_type": "REQUEST",
- "authorizer_uri": "arn:aws:apigateway:us-east-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-2:047081014315:function:api_gateway_authorizer/invocations",
- "enable_simple_responses": false,
- "id": "xaappu",
- "identity_sources": [
- "route.request.header.Auth"
- ],
- "jwt_configuration": [],
- "name": "foo"
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_apigatewayv2_api.foo",
- "aws_iam_role.lambda",
- "aws_lambda_function.authorizer"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/results.golden.json
deleted file mode 100755
index fc0bc3517..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/results.golden.json
+++ /dev/null
@@ -1,12 +0,0 @@
-[
- {
- "Id": "dcab",
- "Type": "aws_apigatewayv2_deployment",
- "Attrs": {
- "api_id": "abcd",
- "auto_deployed": false,
- "description": "Example deployment",
- "id": "dcab"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/terraform.tfstate
deleted file mode 100644
index 6305f3271..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_deployment/terraform.tfstate
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.10",
- "serial": 20,
- "lineage": "f35e1a39-2c95-c9c1-0e76-d1493a71b33c",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_deployment",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "abcd",
- "auto_deployed": false,
- "description": "Example deployment",
- "id": "dcab",
- "triggers": null
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_apigatewayv2_api.example",
- "aws_apigatewayv2_integration.example",
- "aws_apigatewayv2_route.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/results.golden.json
deleted file mode 100755
index f87380c79..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/results.golden.json
+++ /dev/null
@@ -1,21 +0,0 @@
-[
- {
- "Id": "driftctl.example.com",
- "Type": "aws_apigatewayv2_domain_name",
- "Attrs": {
- "api_mapping_selection_expression": "$request.basepath",
- "arn": "arn:aws:apigateway:us-east-2::/domainnames/driftctl.example.com",
- "domain_name": "driftctl.example.com",
- "domain_name_configuration": [
- {
- "certificate_arn": "arn:aws:acm:us-east-2:047081014315:certificate/c49d9c11-1308-4594-bd78-7853466ae7bc",
- "endpoint_type": "REGIONAL",
- "hosted_zone_id": "ZOJJZC49E0EPZ",
- "security_policy": "TLS_1_2",
- "target_domain_name": "d-db4yiff8oa.execute-api.us-east-2.amazonaws.com"
- }
- ],
- "id": "driftctl.example.com"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/terraform.tfstate
deleted file mode 100644
index 5f2639fd8..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_domain_name/terraform.tfstate
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.1.2",
- "serial": 14,
- "lineage": "994eb10d-52ac-0b78-177a-e3de9a744df4",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_domain_name",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_mapping_selection_expression": "$request.basepath",
- "arn": "arn:aws:apigateway:us-east-2::/domainnames/driftctl.example.com",
- "domain_name": "driftctl.example.com",
- "domain_name_configuration": [
- {
- "certificate_arn": "arn:aws:acm:us-east-2:047081014315:certificate/c49d9c11-1308-4594-bd78-7853466ae7bc",
- "endpoint_type": "REGIONAL",
- "hosted_zone_id": "ZOJJZC49E0EPZ",
- "security_policy": "TLS_1_2",
- "target_domain_name": "d-db4yiff8oa.execute-api.us-east-2.amazonaws.com"
- }
- ],
- "id": "driftctl.example.com",
- "mutual_tls_authentication": [],
- "tags": null,
- "tags_all": {},
- "timeouts": null
- },
- "sensitive_attributes": [],
- "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsInVwZGF0ZSI6MzYwMDAwMDAwMDAwMH19",
- "dependencies": [
- "aws_acm_certificate.example",
- "tls_private_key.example",
- "tls_self_signed_cert.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/results.golden.json
deleted file mode 100755
index 6f1949fbe..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/results.golden.json
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- {
- "Id": "fmezvlh",
- "Type": "aws_apigatewayv2_integration",
- "Attrs": {
- "api_id": "yw28nwdf34",
- "connection_id": "",
- "connection_type": "INTERNET",
- "content_handling_strategy": "",
- "credentials_arn": "",
- "description": "",
- "id": "fmezvlh",
- "integration_method": "",
- "integration_response_selection_expression": "${integration.response.statuscode}",
- "integration_subtype": "",
- "integration_type": "MOCK",
- "integration_uri": "",
- "passthrough_behavior": "WHEN_NO_MATCH",
- "payload_format_version": "1.0",
- "template_selection_expression": "",
- "timeout_milliseconds": 29000
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/terraform.tfstate
deleted file mode 100644
index ef97aa053..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration/terraform.tfstate
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.11",
- "serial": 42,
- "lineage": "e6ff1294-2037-a68a-e0b9-73953d4da0e7",
- "outputs": {},
- "resources": [
-{
- "mode": "managed",
- "type": "aws_apigatewayv2_integration",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "yw28nwdf34",
- "connection_id": "",
- "connection_type": "INTERNET",
- "content_handling_strategy": "",
- "credentials_arn": "",
- "description": "",
- "id": "fmezvlh",
- "integration_method": "",
- "integration_response_selection_expression": "${integration.response.statuscode}",
- "integration_subtype": "",
- "integration_type": "MOCK",
- "integration_uri": "",
- "passthrough_behavior": "WHEN_NO_MATCH",
- "payload_format_version": "1.0",
- "request_parameters": {},
- "request_templates": {},
- "template_selection_expression": "",
- "timeout_milliseconds": 29000,
- "tls_config": []
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_apigatewayv2_api.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/results.golden.json
deleted file mode 100755
index 1ff3574f6..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/results.golden.json
+++ /dev/null
@@ -1,14 +0,0 @@
-[
- {
- "Id": "sf67ti7",
- "Type": "aws_apigatewayv2_integration_response",
- "Attrs": {
- "api_id": "yw28nwdf34",
- "content_handling_strategy": "",
- "id": "sf67ti7",
- "integration_id": "fmezvlh",
- "integration_response_key": "/200/",
- "template_selection_expression": ""
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/terraform.tfstate b/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/terraform.tfstate
deleted file mode 100644
index 44380632b..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_integration_response/terraform.tfstate
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "version": 4,
- "terraform_version": "1.0.11",
- "serial": 42,
- "lineage": "e6ff1294-2037-a68a-e0b9-73953d4da0e7",
- "outputs": {},
- "resources": [
- {
- "mode": "managed",
- "type": "aws_apigatewayv2_integration_response",
- "name": "example",
- "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
- "instances": [
- {
- "schema_version": 0,
- "attributes": {
- "api_id": "yw28nwdf34",
- "content_handling_strategy": "",
- "id": "sf67ti7",
- "integration_id": "fmezvlh",
- "integration_response_key": "/200/",
- "response_templates": null,
- "template_selection_expression": ""
- },
- "sensitive_attributes": [],
- "private": "bnVsbA==",
- "dependencies": [
- "aws_apigatewayv2_api.example",
- "aws_apigatewayv2_integration.example"
- ]
- }
- ]
- }
- ]
-}
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_model/results.golden.json b/pkg/iac/terraform/state/test/aws_apigatewayv2_model/results.golden.json
deleted file mode 100755
index e767143f7..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_model/results.golden.json
+++ /dev/null
@@ -1,14 +0,0 @@
-[
- {
- "Id": "vdw6up",
- "Type": "aws_apigatewayv2_model",
- "Attrs": {
- "api_id": "ci51xtkpsg",
- "content_type": "application/json",
- "description": "",
- "id": "vdw6up",
- "name": "example",
- "schema": "{\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"title\": \"ExampleModel\",\n \"type\": \"object\",\n \"properties\": {\n \"id\": { \"type\": \"string\" }\n }\n}\n"
- }
- }
-]
\ No newline at end of file
diff --git a/pkg/iac/terraform/state/test/aws_apigatewayv2_model/terraform.tf b/pkg/iac/terraform/state/test/aws_apigatewayv2_model/terraform.tf
deleted file mode 100644
index d938d3f06..000000000
--- a/pkg/iac/terraform/state/test/aws_apigatewayv2_model/terraform.tf
+++ /dev/null
@@ -1,31 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.47.0"
- }
-}
-
-resource "aws_apigatewayv2_api" "example" {
- name = "example-http-api"
- protocol_type = "WEBSOCKET"
-}
-
-resource "aws_apigatewayv2_model" "example" {
- api_id = aws_apigatewayv2_api.example.id
- content_type = "application/json"
- name = "example"
-
- schema = < 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_alb_transformer.go b/pkg/middlewares/aws_alb_transformer.go
deleted file mode 100644
index 6b961a1fa..000000000
--- a/pkg/middlewares/aws_alb_transformer.go
+++ /dev/null
@@ -1,39 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsALBTransformer is a simple middleware to turn all aws_alb resources into aws_lb ones
-// Both types provide the same functionality, but we can't know which one was used to provision cloud resources.
-// So we use aws_lb as the common type.
-type AwsALBTransformer struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsALBTransformer(resourceFactory resource.ResourceFactory) AwsALBTransformer {
- return AwsALBTransformer{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsALBTransformer) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newStateResources := make([]*resource.Resource, 0, len(*resourcesFromState))
-
- for _, res := range *resourcesFromState {
- if res.ResourceType() != aws.AwsApplicationLoadBalancerResourceType {
- newStateResources = append(newStateResources, res)
- continue
- }
-
- newStateResources = append(newStateResources, m.resourceFactory.CreateAbstractResource(
- aws.AwsLoadBalancerResourceType,
- res.ResourceId(),
- *res.Attributes(),
- ))
- }
-
- *resourcesFromState = newStateResources
- return nil
-}
diff --git a/pkg/middlewares/aws_alb_transformer_test.go b/pkg/middlewares/aws_alb_transformer_test.go
deleted file mode 100644
index 64fcda6b4..000000000
--- a/pkg/middlewares/aws_alb_transformer_test.go
+++ /dev/null
@@ -1,124 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsALBTransformer_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "should not transform anything",
- mocks: func(factory *dctlresource.MockResourceFactory) {},
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bar",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bar",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "should transform ALB into LB",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.
- On("CreateAbstractResource", aws.AwsLoadBalancerResourceType, "alb-test", map[string]interface{}{}).
- Return(&resource.Resource{
- Id: "alb-test",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- }).
- Once()
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"type\",\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"page\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pets\"}}},\"description\":\"200 response\",\"headers\":{\"Access-Control-Allow-Origin\":{\"schema\":{\"type\":\"string\"}}}}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\",\"responses\":{\"2\\\\d{2}\":{\"responseTemplates\":{\"application/json\":\"#set ($root=$input.path('$')) { \\\"stage\\\": \\\"$root.name\\\", \\\"user-id\\\": \\\"$root.key\\\" }\",\"application/xml\":\"#set ($root=$input.path('$')) \\u003cstage\\u003e$root.name\\u003c/stage\\u003e \"},\"statusCode\":\"200\"}}}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "alb-test",
- Type: aws.AwsApplicationLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"type\",\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"page\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pets\"}}},\"description\":\"200 response\",\"headers\":{\"Access-Control-Allow-Origin\":{\"schema\":{\"type\":\"string\"}}}}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\",\"responses\":{\"2\\\\d{2}\":{\"responseTemplates\":{\"application/json\":\"#set ($root=$input.path('$')) { \\\"stage\\\": \\\"$root.name\\\", \\\"user-id\\\": \\\"$root.key\\\" }\",\"application/xml\":\"#set ($root=$input.path('$')) \\u003cstage\\u003e$root.name\\u003c/stage\\u003e \"},\"statusCode\":\"200\"}}}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "alb-test",
- Type: aws.AwsLoadBalancerResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsALBTransformer(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_api_expander.go b/pkg/middlewares/aws_api_gateway_api_expander.go
deleted file mode 100644
index c93f2a0e8..000000000
--- a/pkg/middlewares/aws_api_gateway_api_expander.go
+++ /dev/null
@@ -1,410 +0,0 @@
-package middlewares
-
-import (
- "encoding/json"
- "fmt"
- "strconv"
- "strings"
-
- "github.com/getkin/kin-openapi/openapi2"
- "github.com/getkin/kin-openapi/openapi3"
- "github.com/ghodss/yaml"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes the body attribute of api gateway apis v1|v2 to dedicated resources as per Terraform documentations
-// (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_rest_api)
-// (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/apigatewayv2_api)
-type AwsApiGatewayApiExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-type OpenAPIAwsExtensions struct {
- GatewayResponses map[string]interface{} `json:"x-amazon-apigateway-gateway-responses"`
-}
-
-type OpenAPIAwsMethodExtensions struct {
- Integration map[string]interface{} `json:"x-amazon-apigateway-integration"`
-}
-
-func NewAwsApiGatewayApiExpander(resourceFactory resource.ResourceFactory) AwsApiGatewayApiExpander {
- return AwsApiGatewayApiExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsApiGatewayApiExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newStateResources := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than aws_api_gateway_rest_api && aws_apigatewayv2_api
- if res.ResourceType() != aws.AwsApiGatewayRestApiResourceType &&
- res.ResourceType() != aws.AwsApiGatewayV2ApiResourceType {
- newStateResources = append(newStateResources, res)
- continue
- }
-
- newStateResources = append(newStateResources, res)
-
- err := m.handleBody(res, &newStateResources, remoteResources)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newStateResources
- return nil
-}
-
-func (m *AwsApiGatewayApiExpander) handleBody(api *resource.Resource, results, remoteResources *[]*resource.Resource) error {
- body := api.Attrs.GetString("body")
- if body == nil || *body == "" {
- return nil
- }
-
- docV3 := &openapi3.T{}
- if err := json.Unmarshal([]byte(*body), &docV3); err != nil {
- if _, ok := err.(*json.SyntaxError); ok {
- err = yaml.Unmarshal([]byte(*body), &docV3)
- }
- if err != nil {
- return err
- }
- }
- // It's an OpenAPI v3 document
- if docV3.OpenAPI != "" {
- return m.handleBodyOpenAPIv3(api, docV3, results, remoteResources)
- }
-
- docV2 := &openapi2.T{}
- if err := json.Unmarshal([]byte(*body), &docV2); err != nil {
- if _, ok := err.(*json.SyntaxError); ok {
- err = yaml.Unmarshal([]byte(*body), &docV2)
- }
- if err != nil {
- return err
- }
- }
- // It's an OpenAPI v2 document
- if docV2.Swagger != "" {
- return m.handleBodyOpenAPIv2(api, docV2, results, remoteResources)
- }
-
- return nil
-}
-
-func (m *AwsApiGatewayApiExpander) handleBodyOpenAPIv3(api *resource.Resource, doc *openapi3.T, results, remoteResources *[]*resource.Resource) error {
- if api.ResourceType() == aws.AwsApiGatewayV2ApiResourceType {
- return m.handleBodyOpenAPIv3GatewayV2(api, doc, results, remoteResources)
- }
-
- apiId := api.ResourceId()
- for path, pathItem := range doc.Paths {
- if res := m.createApiGatewayResource(apiId, path, results, remoteResources); res != nil {
- ops := pathItem.Operations()
- for httpMethod, method := range ops {
- m.createApiGatewayMethod(apiId, res.ResourceId(), httpMethod, results)
- for statusCode := range method.Responses {
- m.createApiGatewayMethodResponse(apiId, res.ResourceId(), httpMethod, statusCode, results)
- }
- m.createApiGatewayIntegration(apiId, res.ResourceId(), httpMethod, results)
- if err := m.createMethodExtensionsResources(apiId, res.ResourceId(), httpMethod, method.Extensions, results); err != nil {
- return nil
- }
- }
- }
- }
- if err := m.createExtensionsResources(apiId, doc.Extensions, results); err != nil {
- return nil
- }
- return nil
-}
-
-func (m *AwsApiGatewayApiExpander) handleBodyOpenAPIv3GatewayV2(api *resource.Resource, doc *openapi3.T, results, remoteResources *[]*resource.Resource) error {
- for path, pathValue := range doc.Paths {
- for method := range doc.Paths[path].Operations() {
- openAPIDerivedRoute := findMatchingOpenAPIDerivedRoute(api.ResourceId(), path, method, remoteResources)
- if openAPIDerivedRoute != nil {
- dummy := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayV2RouteResourceType,
- openAPIDerivedRoute.ResourceId(),
- map[string]interface{}{},
- )
- *results = append(*results, dummy)
- }
-
- for _, operation := range pathValue.Operations() {
- integ, err := decodeMethodExtensions(operation.Extensions)
- if err != nil {
- continue
- }
-
- openAPIDerivedIntegration := findMatchingOpenAPIDerivedIntegration(api.ResourceId(),
- integ,
- remoteResources)
- if openAPIDerivedIntegration != nil {
- dummy := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayV2IntegrationResourceType,
- openAPIDerivedIntegration.ResourceId(),
- map[string]interface{}{},
- )
- *results = append(*results, dummy)
- }
- }
- }
- }
- return nil
-}
-
-// The types are similar structurally between the openapi2 and openapi3
-// libraries, but without generics we can't really de-dup this witout code
-// generation, which isn't worth it for this short function.
-func (m *AwsApiGatewayApiExpander) handleBodyOpenAPIv2GatewayV2(api *resource.Resource, doc *openapi2.T, results, remoteResources *[]*resource.Resource) error {
- for path, pathValue := range doc.Paths {
- for method := range doc.Paths[path].Operations() {
- openAPIDerivedRoute := findMatchingOpenAPIDerivedRoute(api.ResourceId(), path, method, remoteResources)
- if openAPIDerivedRoute != nil {
- dummy := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayV2RouteResourceType,
- openAPIDerivedRoute.ResourceId(),
- map[string]interface{}{},
- )
- *results = append(*results, dummy)
- }
-
- for _, operation := range pathValue.Operations() {
- integ, err := decodeMethodExtensions(operation.Extensions)
- if err != nil {
- continue
- }
-
- openAPIDerivedIntegration := findMatchingOpenAPIDerivedIntegration(api.ResourceId(),
- integ,
- remoteResources)
- if openAPIDerivedIntegration != nil {
- dummy := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayV2IntegrationResourceType,
- openAPIDerivedIntegration.ResourceId(),
- map[string]interface{}{},
- )
- *results = append(*results, dummy)
- }
- }
- }
- }
- return nil
-}
-
-func findMatchingOpenAPIDerivedRoute(desiredApiID, desiredPath, desiredMethod string, remoteResources *[]*resource.Resource) *resource.Resource {
- desiredRouteKey := fmt.Sprintf("%s %s", desiredMethod, desiredPath)
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() != aws.AwsApiGatewayV2RouteResourceType {
- continue
- }
- routeKey := *remoteResource.Attributes().GetString("route_key")
- apiID := *remoteResource.Attributes().GetString("api_id")
- if desiredApiID == apiID && routeKey == desiredRouteKey {
- return remoteResource
- }
- }
- return nil
-}
-
-func findMatchingOpenAPIDerivedIntegration(desiredApiID string, desiredIntegration *OpenAPIAwsMethodExtensions, remoteResources *[]*resource.Resource) *resource.Resource {
- desiredType := desiredIntegration.Integration["type"]
- desiredMethod := desiredIntegration.Integration["httpMethod"]
-
- if desiredType == nil || desiredMethod == nil {
- return nil
- }
-
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() != aws.AwsApiGatewayV2IntegrationResourceType {
- continue
- }
- apiID := *remoteResource.Attributes().GetString("api_id")
- integrationType := *remoteResource.Attributes().GetString("integration_type")
- if remoteResource.Attributes().GetString("integration_method") == nil {
- // This is nilable in MOCK type only, and they cannot be embedded
- continue
- }
- integrationMethod := *remoteResource.Attributes().GetString("integration_method")
- if desiredApiID == apiID && integrationType == desiredType && integrationMethod == desiredMethod {
- return remoteResource
- }
- }
- return nil
-}
-
-func (m *AwsApiGatewayApiExpander) handleBodyOpenAPIv2(api *resource.Resource, doc *openapi2.T, results, remoteResources *[]*resource.Resource) error {
- if api.ResourceType() == aws.AwsApiGatewayV2ApiResourceType {
- return m.handleBodyOpenAPIv2GatewayV2(api, doc, results, remoteResources)
- }
-
- apiId := api.ResourceId()
- for path, pathItem := range doc.Paths {
- if res := m.createApiGatewayResource(apiId, path, results, remoteResources); res != nil {
- ops := pathItem.Operations()
- for httpMethod, method := range ops {
- m.createApiGatewayMethod(apiId, res.ResourceId(), httpMethod, results)
- for statusCode := range method.Responses {
- m.createApiGatewayMethodResponse(apiId, res.ResourceId(), httpMethod, statusCode, results)
- }
- m.createApiGatewayIntegration(apiId, res.ResourceId(), httpMethod, results)
- if err := m.createMethodExtensionsResources(apiId, res.ResourceId(), httpMethod, method.Extensions, results); err != nil {
- return nil
- }
- }
- }
- }
- if err := m.createExtensionsResources(apiId, doc.Extensions, results); err != nil {
- return nil
- }
- return nil
-}
-
-// Create resources based on our OpenAPIAwsExtensions struct
-func (m *AwsApiGatewayApiExpander) createExtensionsResources(apiId string, extensions map[string]interface{}, results *[]*resource.Resource) error {
- ext, err := decodeExtensions(extensions)
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "id": apiId,
- "type": aws.AwsApiGatewayRestApiResourceType,
- }).Debug("Failed to decode extensions from the OpenAPI body attribute")
- return err
- }
- for gtwResponse := range ext.GatewayResponses {
- m.createApiGatewayGatewayResponse(apiId, gtwResponse, results)
- }
- return nil
-}
-
-// Create resources based on our OpenAPIAwsMethodExtensions struct
-func (m *AwsApiGatewayApiExpander) createMethodExtensionsResources(apiId, resourceId, httpMethod string, extensions map[string]interface{}, results *[]*resource.Resource) error {
- ext, err := decodeMethodExtensions(extensions)
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "id": apiId,
- "type": aws.AwsApiGatewayRestApiResourceType,
- }).Debug("Failed to decode method extensions from the OpenAPI body attribute")
- return err
- }
- if responses, exist := ext.Integration["responses"]; exist {
- for _, response := range responses.(map[string]interface{}) {
- if statusCode, ok := response.(map[string]interface{})["statusCode"]; ok {
- if s, isFloat64 := statusCode.(float64); isFloat64 {
- statusCode = strconv.FormatFloat(s, 'f', -1, 64)
- }
- m.createApiGatewayIntegrationResponse(apiId, resourceId, httpMethod, statusCode.(string), results)
- }
- }
- }
- return nil
-}
-
-// Create aws_api_gateway_resource resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayResource(apiId, path string, results, remoteResources *[]*resource.Resource) *resource.Resource {
- if res := foundMatchingResource(apiId, path, remoteResources); res != nil {
- newResource := m.resourceFactory.CreateAbstractResource(aws.AwsApiGatewayResourceResourceType, res.ResourceId(), map[string]interface{}{
- "rest_api_id": *res.Attributes().GetString("rest_api_id"),
- "path": path,
- })
- *results = append(*results, newResource)
- return newResource
- }
- return nil
-}
-
-// Create aws_api_gateway_gateway_response resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayGatewayResponse(apiId, gtwResponse string, results *[]*resource.Resource) {
- newResource := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayGatewayResponseResourceType,
- strings.Join([]string{"aggr", apiId, gtwResponse}, "-"),
- map[string]interface{}{},
- )
- *results = append(*results, newResource)
-}
-
-// Returns the aws_api_gateway_resource resource that matches the path attribute
-func foundMatchingResource(apiId, path string, remoteResources *[]*resource.Resource) *resource.Resource {
- for _, res := range *remoteResources {
- if res.ResourceType() == aws.AwsApiGatewayResourceResourceType {
- p := res.Attributes().GetString("path")
- i := res.Attributes().GetString("rest_api_id")
- if p != nil && i != nil && *p == path && *i == apiId {
- return res
- }
- }
- }
- return nil
-}
-
-// Create aws_api_gateway_method resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayMethod(apiId, resourceId, httpMethod string, results *[]*resource.Resource) {
- newResource := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayMethodResourceType,
- strings.Join([]string{"agm", apiId, resourceId, httpMethod}, "-"),
- map[string]interface{}{},
- )
- *results = append(*results, newResource)
-}
-
-// Create aws_api_gateway_method_response resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayMethodResponse(apiId, resourceId, httpMethod, statusCode string, results *[]*resource.Resource) {
- newResource := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayMethodResponseResourceType,
- strings.Join([]string{"agmr", apiId, resourceId, httpMethod, statusCode}, "-"),
- map[string]interface{}{},
- )
- *results = append(*results, newResource)
-}
-
-// Decode openapi.Extensions into our custom OpenAPIAwsExtensions struct that follows AWS
-// OpenAPI addons.
-func decodeExtensions(extensions map[string]interface{}) (*OpenAPIAwsExtensions, error) {
- rawExtensions, err := json.Marshal(extensions)
- if err != nil {
- return nil, err
- }
- decodedExtensions := &OpenAPIAwsExtensions{}
- err = json.Unmarshal(rawExtensions, decodedExtensions)
- if err != nil {
- return nil, err
- }
- return decodedExtensions, nil
-}
-
-// Create aws_api_gateway_integration resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayIntegration(apiId, resourceId, httpMethod string, results *[]*resource.Resource) {
- newResource := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayIntegrationResourceType,
- strings.Join([]string{"agi", apiId, resourceId, httpMethod}, "-"),
- map[string]interface{}{},
- )
- *results = append(*results, newResource)
-}
-
-// Create aws_api_gateway_integration resource
-func (m *AwsApiGatewayApiExpander) createApiGatewayIntegrationResponse(apiId, resourceId, httpMethod, statusCode string, results *[]*resource.Resource) {
- newResource := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayIntegrationResponseResourceType,
- strings.Join([]string{"agir", apiId, resourceId, httpMethod, statusCode}, "-"),
- map[string]interface{}{},
- )
- *results = append(*results, newResource)
-}
-
-// Decode openapi.Method.Extensions into our custom OpenAPIAwsMethodExtensions struct that follows AWS
-// OpenAPI addons.
-func decodeMethodExtensions(extensions map[string]interface{}) (*OpenAPIAwsMethodExtensions, error) {
- rawExtensions, err := json.Marshal(extensions)
- if err != nil {
- return nil, err
- }
- decodedExtensions := &OpenAPIAwsMethodExtensions{}
- err = json.Unmarshal(rawExtensions, decodedExtensions)
- if err != nil {
- return nil, err
- }
- return decodedExtensions, nil
-}
diff --git a/pkg/middlewares/aws_api_gateway_api_expander_test.go b/pkg/middlewares/aws_api_gateway_api_expander_test.go
deleted file mode 100644
index 9200c412c..000000000
--- a/pkg/middlewares/aws_api_gateway_api_expander_test.go
+++ /dev/null
@@ -1,1367 +0,0 @@
-package middlewares
-
-import (
- "path/filepath"
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayApiExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- remoteResources []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "create aws_api_gateway_resource from OpenAPI v3 JSON document",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "baz",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- ).Once().Return(&resource.Resource{
- Id: "baz",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-baz-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-baz-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResponseResourceType,
- "agmr-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-baz-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-baz-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResponseResourceType,
- "agir-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"type\",\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"page\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pets\"}}},\"description\":\"200 response\",\"headers\":{\"Access-Control-Allow-Origin\":{\"schema\":{\"type\":\"string\"}}}}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\",\"responses\":{\"2\\\\d{2}\":{\"responseTemplates\":{\"application/json\":\"#set ($root=$input.path('$')) { \\\"stage\\\": \\\"$root.name\\\", \\\"user-id\\\": \\\"$root.key\\\" }\",\"application/xml\":\"#set ($root=$input.path('$')) \\u003cstage\\u003e$root.name\\u003c/stage\\u003e \"},\"statusCode\":\"200\"}}}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- },
- {
- Id: "baz",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- },
- {
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-foo-baz-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-baz-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"parameters\":[{\"in\":\"query\",\"name\":\"type\",\"schema\":{\"type\":\"string\"}},{\"in\":\"query\",\"name\":\"page\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/Pets\"}}},\"description\":\"200 response\",\"headers\":{\"Access-Control-Allow-Origin\":{\"schema\":{\"type\":\"string\"}}}}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\",\"responses\":{\"2\\\\d{2}\":{\"responseTemplates\":{\"application/json\":\"#set ($root=$input.path('$')) { \\\"stage\\\": \\\"$root.name\\\", \\\"user-id\\\": \\\"$root.key\\\" }\",\"application/xml\":\"#set ($root=$input.path('$')) \\u003cstage\\u003e$root.name\\u003c/stage\\u003e \"},\"statusCode\":\"200\"}}}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- },
- {
- Id: "baz",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- },
- {
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-foo-baz-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-baz-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "create aws_api_gateway_resource from OpenAPI v2 JSON document",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/test",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/test",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResponseResourceType,
- "agmr-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResponseResourceType,
- "agir-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"test\",\"version\":\"2017-04-20T04:08:08Z\"},\"paths\":{\"/test\":{\"get\":{\"responses\":{\"200\":{\"description\":\"OK\"}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"responses\":{\"default\":{\"statusCode\":200}},\"type\":\"HTTP\",\"uri\":\"https://aws.amazon.com/\"}}}},\"schemes\":[\"https\"],\"swagger\":\"2.0\"}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/test",
- },
- },
- {
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"test\",\"version\":\"2017-04-20T04:08:08Z\"},\"paths\":{\"/test\":{\"get\":{\"responses\":{\"200\":{\"description\":\"OK\"}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"responses\":{\"default\":{\"statusCode\":200}},\"type\":\"HTTP\",\"uri\":\"https://aws.amazon.com/\"}}}},\"schemes\":[\"https\"],\"swagger\":\"2.0\"}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/test",
- },
- },
- {
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "empty or unknown body",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "baz",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{}",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "baz",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{}",
- },
- },
- },
- },
- {
- name: "unknown resource in body (e.g. missing resources)",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bar-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1",
- },
- },
- {
- Id: "bar-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1/path2",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- },
- },
- {
- name: "create resources with same path but not the same rest api id",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "foo-path1",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- ).Once().Return(&resource.Resource{
- Id: "foo-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "foo-path1-path2",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- ).Once().Return(&resource.Resource{
- Id: "foo-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar-path1",
- map[string]interface{}{
- "rest_api_id": "bar",
- "path": "/path1",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar-path1-path2",
- map[string]interface{}{
- "rest_api_id": "bar",
- "path": "/path1/path2",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1/path2",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-foo-path1-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-foo-path1-path2-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-bar-bar-path1-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-bar-bar-path1-path2-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-foo-path1-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-foo-path1-path2-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-bar-bar-path1-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-bar-bar-path1-path2-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "foo-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- },
- {
- Id: "foo-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- },
- {
- Id: "bar-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1",
- },
- },
- {
- Id: "bar-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1/path2",
- },
- },
- {
- Id: "agm-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "foo-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1",
- },
- },
- {
- Id: "foo-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/path1/path2",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}},\"/path1/path2\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}}}",
- },
- },
- {
- Id: "bar-path1",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1",
- },
- },
- {
- Id: "bar-path1-path2",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "bar",
- "path": "/path1/path2",
- },
- },
- {
- Id: "agm-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agm-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-foo-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-foo-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-bar-bar-path1-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-bar-bar-path1-path2-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "create gateway responses based on OpenAPI v2 and v3",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayGatewayResponseResourceType,
- "aggr-v3-MISSING_AUTHENTICATION_TOKEN",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "aggr-v3-MISSING_AUTHENTICATION_TOKEN",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayGatewayResponseResourceType,
- "aggr-v2-MISSING_AUTHENTICATION_TOKEN",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "aggr-v2-MISSING_AUTHENTICATION_TOKEN",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "v3",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}},\"x-amazon-apigateway-gateway-responses\":{\"MISSING_AUTHENTICATION_TOKEN\":{\"responseParameters\":{\"gatewayresponse.header.Access-Control-Allow-Origin\":\"'a.b.c'\"},\"responseTemplates\":{\"application/json\":\"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'403'\\\"\\n}\"},\"statusCode\":403}}}",
- },
- },
- {
- Id: "v2",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"test\",\"version\":\"2017-04-20T04:08:08Z\"},\"paths\":{\"/test\":{\"get\":{\"responses\":{\"200\":{\"description\":\"OK\"}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"responses\":{\"default\":{\"statusCode\":200}},\"type\":\"HTTP\",\"uri\":\"https://aws.amazon.com/\"}}}},\"schemes\":[\"https\"],\"swagger\":\"2.0\",\"x-amazon-apigateway-gateway-responses\":{\"MISSING_AUTHENTICATION_TOKEN\":{\"responseParameters\":{\"gatewayresponse.header.Access-Control-Allow-Origin\":\"'a.b.c'\"},\"responseTemplates\":{\"application/json\":\"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'403'\\\"\\n}\"},\"statusCode\":403}}}",
- },
- },
- },
- remoteResources: []*resource.Resource{},
- expected: []*resource.Resource{
- {
- Id: "v3",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"example\",\"version\":\"1.0\"},\"openapi\":\"3.0.1\",\"paths\":{\"/path1\":{\"get\":{\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"payloadFormatVersion\":\"1.0\",\"type\":\"HTTP_PROXY\",\"uri\":\"https://ip-ranges.amazonaws.com/ip-ranges.json\"}}}},\"x-amazon-apigateway-gateway-responses\":{\"MISSING_AUTHENTICATION_TOKEN\":{\"responseParameters\":{\"gatewayresponse.header.Access-Control-Allow-Origin\":\"'a.b.c'\"},\"responseTemplates\":{\"application/json\":\"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'403'\\\"\\n}\"},\"statusCode\":403}}}",
- },
- },
- {
- Id: "aggr-v3-MISSING_AUTHENTICATION_TOKEN",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "v2",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "{\"info\":{\"title\":\"test\",\"version\":\"2017-04-20T04:08:08Z\"},\"paths\":{\"/test\":{\"get\":{\"responses\":{\"200\":{\"description\":\"OK\"}},\"x-amazon-apigateway-integration\":{\"httpMethod\":\"GET\",\"responses\":{\"default\":{\"statusCode\":200}},\"type\":\"HTTP\",\"uri\":\"https://aws.amazon.com/\"}}}},\"schemes\":[\"https\"],\"swagger\":\"2.0\",\"x-amazon-apigateway-gateway-responses\":{\"MISSING_AUTHENTICATION_TOKEN\":{\"responseParameters\":{\"gatewayresponse.header.Access-Control-Allow-Origin\":\"'a.b.c'\"},\"responseTemplates\":{\"application/json\":\"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'403'\\\"\\n}\"},\"statusCode\":403}}}",
- },
- },
- {
- Id: "aggr-v2-MISSING_AUTHENTICATION_TOKEN",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "create api gateway resources from OpenAPI v3 YAML document",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/{path+}",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/{path+}",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResponseResourceType,
- "agmr-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-bar-GET",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResponseResourceType,
- "agir-foo-bar-GET-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "---\nopenapi: \"3.0.1\"\ninfo:\n title: baz\n description: ComputelessBlog\npaths:\n /{path+}:\n get:\n responses:\n 200:\n description: \"200 response\"\n content:\n text/html:\n schema:\n $ref: \"#/components/schemas/Empty\"\n x-amazon-apigateway-integration:\n type: \"mock\"\n responses:\n default:\n statusCode: \"200\"\n passthroughBehavior: \"never\"\n httpMethod: \"POST\"\ncomponents:\n schemas:\n Empty:\n type: object\n title: Empty Schema\n description: Empty Schema",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/{path+}",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "---\nopenapi: \"3.0.1\"\ninfo:\n title: baz\n description: ComputelessBlog\npaths:\n /{path+}:\n get:\n responses:\n 200:\n description: \"200 response\"\n content:\n text/html:\n schema:\n $ref: \"#/components/schemas/Empty\"\n x-amazon-apigateway-integration:\n type: \"mock\"\n responses:\n default:\n statusCode: \"200\"\n passthroughBehavior: \"never\"\n httpMethod: \"POST\"\ncomponents:\n schemas:\n Empty:\n type: object\n title: Empty Schema\n description: Empty Schema",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/{path+}",
- },
- },
- {
- Id: "agm-foo-bar-GET",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-GET-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-GET",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-GET-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "create api gateway resources from OpenAPI v2 YAML document",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/webhook",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/webhook",
- },
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResourceType,
- "agm-foo-bar-OPTIONS",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agm-foo-bar-OPTIONS",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayMethodResponseResourceType,
- "agmr-foo-bar-OPTIONS-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agmr-foo-bar-OPTIONS-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResourceType,
- "agi-foo-bar-OPTIONS",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agi-foo-bar-OPTIONS",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayIntegrationResponseResourceType,
- "agir-foo-bar-OPTIONS-200",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "agir-foo-bar-OPTIONS-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "---\nswagger: '2.0'\ninfo:\n version: '1.0'\n title: test\nschemes:\n - https\npaths:\n /webhook:\n options:\n consumes:\n - application/json\n produces:\n - application/json\n responses:\n '200':\n description: 200 response\n schema:\n $ref: \\\"#/definitions/Empty\\\"\n x-amazon-apigateway-integration:\n responses:\n default:\n statusCode: '200'\n requestTemplates:\n application/json: '{\\\"statusCode\\\": 200}'\n passthroughBehavior: when_no_match\n type: mock\n\n",
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/webhook",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "body": "---\nswagger: '2.0'\ninfo:\n version: '1.0'\n title: test\nschemes:\n - https\npaths:\n /webhook:\n options:\n consumes:\n - application/json\n produces:\n - application/json\n responses:\n '200':\n description: 200 response\n schema:\n $ref: \\\"#/definitions/Empty\\\"\n x-amazon-apigateway-integration:\n responses:\n default:\n statusCode: '200'\n requestTemplates:\n application/json: '{\\\"statusCode\\\": 200}'\n passthroughBehavior: when_no_match\n type: mock\n\n",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "foo",
- "path": "/webhook",
- },
- },
- {
- Id: "agm-foo-bar-OPTIONS",
- Type: aws.AwsApiGatewayMethodResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agmr-foo-bar-OPTIONS-200",
- Type: aws.AwsApiGatewayMethodResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agi-foo-bar-OPTIONS",
- Type: aws.AwsApiGatewayIntegrationResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "agir-foo-bar-OPTIONS-200",
- Type: aws.AwsApiGatewayIntegrationResponseResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "creates routes from OpenAPI v3 YAML document (apigatewayv2)",
- resourcesFromState: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_openapiv3.yml")),
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "openapi-derived-route-from-remote-1",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "GET /example",
- },
- },
- {
- Id: "openapi-derived-route-from-remote-2",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "POST /example",
- },
- },
- {
- Id: "openapi-derived-route-from-remote-3",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "GET /example2",
- },
- },
- {
- Id: "irrelevant-route",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "another-gateway",
- "route_key": "GET /example2",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_openapiv3.yml")),
- },
- },
- {
- Id: "openapi-derived-route-from-remote-1",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- {
- Id: "openapi-derived-route-from-remote-2",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- {
- Id: "openapi-derived-route-from-remote-3",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote-1", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote-1",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote-2", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote-2",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote-3", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote-3",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- },
- },
- {
- name: "creates routes from OpenAPI v2 JSON document (apigatewayv2)",
- resourcesFromState: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_openapiv2.json")),
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "GET /example",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_openapiv2.json")),
- },
- },
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- },
- },
- {
- name: "creates routes and integration from OpenAPI v2 JSON document (apigatewayv2)",
- resourcesFromState: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_integration_openapiv2.json")),
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "GET /example",
- },
- },
- {
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "integration_type": "HTTP_PROXY",
- "integration_method": "GET",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_integration_openapiv2.json")),
- },
- },
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- {
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2IntegrationResourceType, "openapi-derived-integration-from-remote", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- })
- },
- },
- {
- name: "creates routes and integrations from OpenAPI v3 YAML document (apigatewayv2)",
- resourcesFromState: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_integration_openapiv3.yml")),
- },
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "route_key": "GET /example",
- },
- },
- {
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- Attrs: &resource.Attributes{
- "api_id": "a-gateway",
- "integration_type": "HTTP_PROXY",
- "integration_method": "GET",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "a-gateway",
- Type: aws.AwsApiGatewayV2ApiResourceType,
- Attrs: &resource.Attributes{
- "body": readFile(t, filepath.Join("testdata", "aws_apigatewayv2_api_body_integration_openapiv3.yml")),
- },
- },
- {
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- },
- {
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2RouteResourceType, "openapi-derived-route-from-remote", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-route-from-remote",
- Type: aws.AwsApiGatewayV2RouteResourceType,
- })
- factory.On("CreateAbstractResource", aws.AwsApiGatewayV2IntegrationResourceType, "openapi-derived-integration-from-remote", map[string]interface{}{}).
- Once().Return(&resource.Resource{
- Id: "openapi-derived-integration-from-remote",
- Type: aws.AwsApiGatewayV2IntegrationResourceType,
- })
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsApiGatewayApiExpander(factory)
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler.go b/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler.go
deleted file mode 100644
index 4d049423f..000000000
--- a/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler.go
+++ /dev/null
@@ -1,79 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsApiGatewayBasePathMappingReconciler is used to reconcile API Gateway base path mapping (v1 and v2)
-// from both remote and state resources because v1|v2 AWS SDK list endpoints return all mappings
-// without distinction.
-type AwsApiGatewayBasePathMappingReconciler struct{}
-
-func NewAwsApiGatewayBasePathMappingReconciler() AwsApiGatewayBasePathMappingReconciler {
- return AwsApiGatewayBasePathMappingReconciler{}
-}
-
-func (m AwsApiGatewayBasePathMappingReconciler) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
- managedApiMapping := make([]*resource.Resource, 0)
- unmanagedApiMapping := make([]*resource.Resource, 0)
- for _, res := range *remoteResources {
- // Ignore all resources other than aws_api_gateway_base_path_mapping and aws_apigatewayv2_api_mapping
- if res.ResourceType() != aws.AwsApiGatewayBasePathMappingResourceType &&
- res.ResourceType() != aws.AwsApiGatewayV2MappingResourceType {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- // Find a matching state resources
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if res.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Keep track of the resource if it's managed in IaC
- if existInState {
- managedApiMapping = append(managedApiMapping, res)
- continue
- }
-
- // If we're here, it means that we are left with unmanaged path mappings
- // in both v1 and v2 format. Let's group real and duplicate path mappings
- // in a slice
- unmanagedApiMapping = append(unmanagedApiMapping, res)
- }
-
- // We only want to show to our end users unmanaged v1 path mappings
- // To do that, we're going to loop over unmanaged path mappings to delete duplicates
- // and leave after that only v1 path mappings (e.g. remove v2 ones)
- deduplicatedUnmanagedMappings := make([]*resource.Resource, 0, len(unmanagedApiMapping))
- for _, unmanaged := range unmanagedApiMapping {
- // Remove duplicates (e.g. same id, the opposite type)
- isDuplicate := false
- for _, managed := range managedApiMapping {
- if managed.ResourceId() == unmanaged.ResourceId() {
- isDuplicate = true
- break
- }
- }
- if isDuplicate {
- continue
- }
-
- // Now keep only v1 path mappings
- if unmanaged.ResourceType() == aws.AwsApiGatewayBasePathMappingResourceType {
- deduplicatedUnmanagedMappings = append(deduplicatedUnmanagedMappings, unmanaged)
- }
- }
-
- // Finally, add both managed and unmanaged resources to remote resources
- newRemoteResources = append(newRemoteResources, managedApiMapping...)
- newRemoteResources = append(newRemoteResources, deduplicatedUnmanagedMappings...)
-
- *remoteResources = newRemoteResources
- return nil
-}
diff --git a/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler_test.go b/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler_test.go
deleted file mode 100644
index 6c6d708eb..000000000
--- a/pkg/middlewares/aws_api_gateway_base_path_mapping_reconciler_test.go
+++ /dev/null
@@ -1,184 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayBasePathMappingReconciler_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- remoteResources []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "with managed resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- },
- {
- name: "with unmanaged resources",
- resourcesFromState: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- },
- },
- {
- name: "with deleted resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- remoteResources: []*resource.Resource{},
- expected: []*resource.Resource{},
- },
- {
- name: "with a mix of managed, unmanaged and deleted resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping4",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping3",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping3",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "mapping1",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- {
- Id: "mapping2",
- Type: aws.AwsApiGatewayV2MappingResourceType,
- },
- {
- Id: "mapping3",
- Type: aws.AwsApiGatewayBasePathMappingResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsApiGatewayBasePathMappingReconciler()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_deployment_expander.go b/pkg/middlewares/aws_api_gateway_deployment_expander.go
deleted file mode 100644
index 2fcf19be7..000000000
--- a/pkg/middlewares/aws_api_gateway_deployment_expander.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package middlewares
-
-import (
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Create a aws_api_gateway_stage resource from a aws_api_gateway_deployment resource and ignore the latter resource
-// since we don't support it
-type AwsApiGatewayDeploymentExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsApiGatewayDeploymentExpander(resourceFactory resource.ResourceFactory) AwsApiGatewayDeploymentExpander {
- return AwsApiGatewayDeploymentExpander{resourceFactory}
-}
-
-func (m AwsApiGatewayDeploymentExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- var newResources []*resource.Resource
- for _, res := range *resourcesFromState {
- if res.ResourceType() != aws.AwsApiGatewayDeploymentResourceType {
- newResources = append(newResources, res)
- continue
- }
-
- stageName := res.Attributes().GetString("stage_name")
- if stageName == nil || *stageName == "" {
- continue
- }
-
- newStage := m.resourceFactory.CreateAbstractResource(
- aws.AwsApiGatewayStageResourceType,
- strings.Join([]string{"ags", *(res.Attributes().GetString("rest_api_id")), *stageName}, "-"),
- map[string]interface{}{},
- )
-
- newResources = append(newResources, newStage)
- }
- *resourcesFromState = newResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_api_gateway_deployment_expander_test.go b/pkg/middlewares/aws_api_gateway_deployment_expander_test.go
deleted file mode 100644
index 9d223b41d..000000000
--- a/pkg/middlewares/aws_api_gateway_deployment_expander_test.go
+++ /dev/null
@@ -1,125 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayDeploymentExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "no stages created from deployment state resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayDeploymentResourceType,
- Attrs: &resource.Attributes{
- "rest_api_id": "api",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayDeploymentResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "",
- "rest_api_id": "api",
- },
- },
- {
- Id: "ags-api-baz",
- Type: aws.AwsApiGatewayStageResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "baz",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "ags-api-baz",
- Type: aws.AwsApiGatewayStageResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "baz",
- },
- },
- },
- },
- {
- name: "stages created from deployment state resources",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayStageResourceType,
- "ags-api-foo",
- map[string]interface{}{},
- ).Once().Return(&resource.Resource{
- Id: "ags-api-foo",
- Type: aws.AwsApiGatewayStageResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayDeploymentResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "foo",
- "rest_api_id": "api",
- },
- },
- {
- Id: "ags-api-baz",
- Type: aws.AwsApiGatewayStageResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "baz",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "ags-api-baz",
- Type: aws.AwsApiGatewayStageResourceType,
- Attrs: &resource.Attributes{
- "stage_name": "baz",
- },
- },
- {
- Id: "ags-api-foo",
- Type: aws.AwsApiGatewayStageResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsApiGatewayDeploymentExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_domain_names_reconciler.go b/pkg/middlewares/aws_api_gateway_domain_names_reconciler.go
deleted file mode 100644
index 2b9e16e62..000000000
--- a/pkg/middlewares/aws_api_gateway_domain_names_reconciler.go
+++ /dev/null
@@ -1,79 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Used to reconcile API Gateway domain names (v1 and v2) from both remote
-// and state resources because v1|v2 AWS SDK list endpoints return all domain
-// names without distinction
-type AwsApiGatewayDomainNamesReconciler struct{}
-
-func NewAwsApiGatewayDomainNamesReconciler() AwsApiGatewayDomainNamesReconciler {
- return AwsApiGatewayDomainNamesReconciler{}
-}
-
-func (m AwsApiGatewayDomainNamesReconciler) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
- managedDomainNames := make([]*resource.Resource, 0)
- unmanagedDomainNames := make([]*resource.Resource, 0)
- for _, res := range *remoteResources {
- // Ignore all resources other than aws_api_gateway_domain_name and aws_apigatewayv2_domain_name
- if res.ResourceType() != aws.AwsApiGatewayDomainNameResourceType &&
- res.ResourceType() != aws.AwsApiGatewayV2DomainNameResourceType {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- // Find a matching state resources
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if res.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Keep track of the resource if it's managed in IaC
- if existInState {
- managedDomainNames = append(managedDomainNames, res)
- continue
- }
-
- // If we're here, it means that we are left with unmanaged domain names
- // in both v1 and v2 format. Let's group real and duplicate domain names
- // in a slice
- unmanagedDomainNames = append(unmanagedDomainNames, res)
- }
-
- // We only want to show to our end users unmanaged v1 domain names
- // To do that, we're going to loop over unmanaged domain names to delete duplicates
- // and leave after that only v1 domain names (e.g. remove v2 ones)
- deduplicatedUnmanagedDomains := make([]*resource.Resource, 0, len(unmanagedDomainNames))
- for _, unmanaged := range unmanagedDomainNames {
- // Remove duplicates (e.g. same id, the opposite type)
- isDuplicate := false
- for _, managed := range managedDomainNames {
- if managed.ResourceId() == unmanaged.ResourceId() {
- isDuplicate = true
- break
- }
- }
- if isDuplicate {
- continue
- }
-
- // Now keep only v1 domain names
- if unmanaged.ResourceType() == aws.AwsApiGatewayDomainNameResourceType {
- deduplicatedUnmanagedDomains = append(deduplicatedUnmanagedDomains, unmanaged)
- }
- }
-
- // Finally, add both managed and unmanaged resources to remote resources
- newRemoteResources = append(newRemoteResources, managedDomainNames...)
- newRemoteResources = append(newRemoteResources, deduplicatedUnmanagedDomains...)
-
- *remoteResources = newRemoteResources
- return nil
-}
diff --git a/pkg/middlewares/aws_api_gateway_domain_names_reconciler_test.go b/pkg/middlewares/aws_api_gateway_domain_names_reconciler_test.go
deleted file mode 100644
index b667522d1..000000000
--- a/pkg/middlewares/aws_api_gateway_domain_names_reconciler_test.go
+++ /dev/null
@@ -1,184 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayDomainNamesReconciler_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- remoteResources []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "with managed resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- },
- {
- name: "with unmanaged resources",
- resourcesFromState: []*resource.Resource{},
- remoteResources: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- },
- },
- {
- name: "with deleted resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- remoteResources: []*resource.Resource{},
- expected: []*resource.Resource{},
- },
- {
- name: "with a mix of managed, unmanaged and deleted resources",
- resourcesFromState: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain4",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- },
- remoteResources: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain3",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain3",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "domain1",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- {
- Id: "domain2",
- Type: aws.AwsApiGatewayV2DomainNameResourceType,
- },
- {
- Id: "domain3",
- Type: aws.AwsApiGatewayDomainNameResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsApiGatewayDomainNamesReconciler()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_resource_expander.go b/pkg/middlewares/aws_api_gateway_resource_expander.go
deleted file mode 100644
index 1752654b2..000000000
--- a/pkg/middlewares/aws_api_gateway_resource_expander.go
+++ /dev/null
@@ -1,58 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes api gateway default resource found in aws_api_gateway_rest_api.root_resource_id from state resources to dedicated resources
-type AwsApiGatewayResourceExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsApiGatewayResourceExpander(resourceFactory resource.ResourceFactory) AwsApiGatewayResourceExpander {
- return AwsApiGatewayResourceExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsApiGatewayResourceExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newStateResources := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than aws_api_gateway_rest_api
- if res.ResourceType() != aws.AwsApiGatewayRestApiResourceType {
- newStateResources = append(newStateResources, res)
- continue
- }
-
- newStateResources = append(newStateResources, res)
-
- err := m.handleResource(res, &newStateResources)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newStateResources
- return nil
-}
-
-func (m *AwsApiGatewayResourceExpander) handleResource(api *resource.Resource, results *[]*resource.Resource) error {
- resourceId := api.Attrs.GetString("root_resource_id")
- if resourceId == nil || *resourceId == "" {
- return nil
- }
-
- newResource := m.resourceFactory.CreateAbstractResource(aws.AwsApiGatewayResourceResourceType, *resourceId, map[string]interface{}{
- "rest_api_id": api.ResourceId(),
- "path": "/",
- })
-
- *results = append(*results, newResource)
- logrus.WithFields(logrus.Fields{
- "id": newResource.ResourceId(),
- }).Debug("Created new resource from api gateway rest api")
-
- return nil
-}
diff --git a/pkg/middlewares/aws_api_gateway_resource_expander_test.go b/pkg/middlewares/aws_api_gateway_resource_expander_test.go
deleted file mode 100644
index 494fb9c55..000000000
--- a/pkg/middlewares/aws_api_gateway_resource_expander_test.go
+++ /dev/null
@@ -1,115 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayResourceExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "create api gateway root resource from rest api",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayResourceResourceType,
- "bar",
- map[string]interface{}{
- "rest_api_id": "foo",
- "path": "/",
- },
- ).Once().Return(&resource.Resource{
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "root_resource_id": "bar",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "root_resource_id": "bar",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayResourceResourceType,
- },
- },
- },
- {
- name: "empty or unknown root_resource_id",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "root_resource_id": "",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "root_resource_id": "",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsApiGatewayResourceExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_api_gateway_rest_api_policy_expander.go b/pkg/middlewares/aws_api_gateway_rest_api_policy_expander.go
deleted file mode 100644
index 408fa099a..000000000
--- a/pkg/middlewares/aws_api_gateway_rest_api_policy_expander.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes policy found in aws_api_gateway_rest_api.policy from state resources to dedicated resources
-type AwsApiGatewayRestApiPolicyExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsApiGatewayRestApiPolicyExpander(resourceFactory resource.ResourceFactory) AwsApiGatewayRestApiPolicyExpander {
- return AwsApiGatewayRestApiPolicyExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsApiGatewayRestApiPolicyExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than api_gateway_rest_api
- if res.ResourceType() != aws.AwsApiGatewayRestApiResourceType {
- newList = append(newList, res)
- continue
- }
-
- newList = append(newList, res)
-
- if hasRestApiPolicyAttached(res.ResourceId(), resourcesFromState) {
- res.Attrs.SafeDelete([]string{"policy"})
- continue
- }
-
- err := m.handlePolicy(res, &newList)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newList
- return nil
-}
-
-func (m *AwsApiGatewayRestApiPolicyExpander) handlePolicy(api *resource.Resource, results *[]*resource.Resource) error {
- policy, exist := api.Attrs.Get("policy")
- if !exist || policy == nil || policy == "" {
- return nil
- }
-
- data := map[string]interface{}{
- "id": api.ResourceId(),
- "rest_api_id": api.ResourceId(),
- "policy": policy,
- }
-
- newPolicy := m.resourceFactory.CreateAbstractResource(aws.AwsApiGatewayRestApiPolicyResourceType, api.ResourceId(), data)
-
- *results = append(*results, newPolicy)
- logrus.WithFields(logrus.Fields{
- "id": newPolicy.ResourceId(),
- }).Debug("Created new policy from api gateway rest api")
-
- api.Attrs.SafeDelete([]string{"policy"})
- return nil
-}
-
-// Return true if the rest api has a aws_api_gateway_rest_api_policy resource attached to itself.
-// It is mandatory since it's possible to have a aws_api_gateway_rest_api with an inline policy
-// AND a aws_api_gateway_rest_api_policy resource at the same time. At the end, on the AWS console,
-// the aws_api_gateway_rest_api_policy will be used.
-func hasRestApiPolicyAttached(api string, resourcesFromState *[]*resource.Resource) bool {
- for _, res := range *resourcesFromState {
- if res.ResourceType() == aws.AwsApiGatewayRestApiPolicyResourceType &&
- res.ResourceId() == api {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_api_gateway_rest_api_policy_expander_test.go b/pkg/middlewares/aws_api_gateway_rest_api_policy_expander_test.go
deleted file mode 100644
index 28f07e5d5..000000000
--- a/pkg/middlewares/aws_api_gateway_rest_api_policy_expander_test.go
+++ /dev/null
@@ -1,157 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsApiGatewayRestApiPolicyPolicyExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "Inline policy, no aws_api_gateway_rest_api_policy attached",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsApiGatewayRestApiPolicyResourceType,
- "foo",
- map[string]interface{}{
- "id": "foo",
- "rest_api_id": "foo",
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:011111111111:rrwhncu4h2/*\"}]}",
- },
- ).Once().Return(&resource.Resource{
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:011111111111:rrwhncu4h2/*\"}]}",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- },
- },
- },
- {
- name: "No inline policy, aws_api_gateway_rest_api_policy attached",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- },
- },
- },
- {
- name: "Inline policy and aws_api_gateway_rest_api_policy",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"execute-api:Invoke\",\"Resource\":\"arn:aws:execute-api:us-east-1:011111111111:rrwhncu4h2/*\"}]}",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiPolicyResourceType,
- },
- },
- },
- {
- name: "empty policy",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "policy": "",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsApiGatewayRestApiResourceType,
- Attrs: &resource.Attributes{
- "policy": "",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsApiGatewayRestApiPolicyExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_bucket_policy_expander.go b/pkg/middlewares/aws_bucket_policy_expander.go
deleted file mode 100644
index e0c5ff1b9..000000000
--- a/pkg/middlewares/aws_bucket_policy_expander.go
+++ /dev/null
@@ -1,81 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes policy found in aws_s3_bucket.policy from state resources to dedicated resources
-type AwsBucketPolicyExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsBucketPolicyExpander(resourceFactory resource.ResourceFactory) AwsBucketPolicyExpander {
- return AwsBucketPolicyExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsBucketPolicyExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than s3_bucket
- if res.ResourceType() != aws.AwsS3BucketResourceType {
- newList = append(newList, res)
- continue
- }
-
- newList = append(newList, res)
-
- if hasPolicyAttached(res.ResourceId(), resourcesFromState) {
- res.Attrs.SafeDelete([]string{"policy"})
- continue
- }
-
- err := m.handlePolicy(res, &newList)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newList
- return nil
-}
-
-func (m *AwsBucketPolicyExpander) handlePolicy(bucket *resource.Resource, results *[]*resource.Resource) error {
- policyAttr, exist := bucket.Attrs.Get("policy")
- if !exist || policyAttr == nil || policyAttr == "" {
- return nil
- }
-
- data := map[string]interface{}{
- "id": bucket.ResourceId(),
- "bucket": (*bucket.Attrs)["bucket"],
- "policy": (*bucket.Attrs)["policy"],
- }
-
- newPolicy := m.resourceFactory.CreateAbstractResource(aws.AwsS3BucketPolicyResourceType, bucket.ResourceId(), data)
-
- *results = append(*results, newPolicy)
- logrus.WithFields(logrus.Fields{
- "id": newPolicy.ResourceId(),
- }).Debug("Created new policy from bucket")
-
- bucket.Attrs.SafeDelete([]string{"policy"})
- return nil
-}
-
-// Return true if the bucket has a aws_bucket_policy resource attached to itself.
-// It is mandatory since it's possible to have a aws_bucket with an inline policy
-// AND a aws_bucket_policy resource at the same time. At the end, on the AWS console,
-// the aws_bucket_policy will be used.
-func hasPolicyAttached(bucket string, resourcesFromState *[]*resource.Resource) bool {
- for _, res := range *resourcesFromState {
- if res.ResourceType() == aws.AwsS3BucketPolicyResourceType &&
- res.ResourceId() == bucket {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_bucket_policy_expander_test.go b/pkg/middlewares/aws_bucket_policy_expander_test.go
deleted file mode 100644
index 52cf460ad..000000000
--- a/pkg/middlewares/aws_bucket_policy_expander_test.go
+++ /dev/null
@@ -1,193 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsBucketPolicyExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- mocks func(*dctlresource.MockResourceFactory)
- expected []*resource.Resource
- }{
- {
- name: "Inline policy, no aws_s3_bucket_policy attached",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsS3BucketPolicyResourceType,
- "foo",
- map[string]interface{}{
- "id": "foo",
- "bucket": "foo",
- "policy": "{\"Id\":\"MYINLINEBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}",
- },
- ).Once().Return(&resource.Resource{
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "{\"Id\":\"MYINLINEBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- },
- },
- },
- {
- name: "No inline policy, aws_s3_bucket_policy attached",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsS3BucketPolicyResourceType,
- "foo",
- map[string]interface{}{
- "id": "foo",
- "bucket": "foo",
- "policy": "{\"Id\":\"MYBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}",
- },
- ).Once().Return(&resource.Resource{
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- },
- },
- },
- {
- name: "Inline policy and aws_s3_bucket_policy",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": awssdk.String("{\"Id\":\"MYINLINEBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}"),
- },
- },
- {
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "{\"Id\":\"MYBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsS3BucketPolicyResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "{\"Id\":\"MYBUCKETPOLICY\",\"Statement\":[{\"Action\":\"s3:*\",\"Condition\":{\"IpAddress\":{\"aws:SourceIp\":\"8.8.8.8/32\"}},\"Effect\":\"Deny\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::bucket-test-policy-like-sqs/*\",\"Sid\":\"IPAllow\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- },
- {
- name: "empty policy ",
- resourcesFromState: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "",
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "bucket": "foo",
- "policy": "",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsBucketPolicyExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_console_api_gateway_gateway_response.go b/pkg/middlewares/aws_console_api_gateway_gateway_response.go
deleted file mode 100644
index a102798ad..000000000
--- a/pkg/middlewares/aws_console_api_gateway_gateway_response.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Each API Gateway rest API has by design all the gateway responses available to edit in the console
-// which result in useless noises (e.g. lots of unmanaged resources) by driftctl.
-// This middleware ignores all console responses if not managed by IAC.
-type AwsConsoleApiGatewayGatewayResponse struct{}
-
-func NewAwsConsoleApiGatewayGatewayResponse() AwsConsoleApiGatewayGatewayResponse {
- return AwsConsoleApiGatewayGatewayResponse{}
-}
-
-func (m AwsConsoleApiGatewayGatewayResponse) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than gateway responses
- if remoteResource.ResourceType() != aws.AwsApiGatewayGatewayResponseResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if gateway response is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed by IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default api gateway response as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_console_api_gateway_gateway_response_test.go b/pkg/middlewares/aws_console_api_gateway_gateway_response_test.go
deleted file mode 100644
index 5ae5e85bd..000000000
--- a/pkg/middlewares/aws_console_api_gateway_gateway_response_test.go
+++ /dev/null
@@ -1,97 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsConsoleApiGatewayGatewayResponse_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "console rest api gateway response is not ignored when managed by IaC",
- remoteResources: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- {
- Id: "gtw-response",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- {
- Id: "gtw-response",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- {
- Id: "gtw-response",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- },
- },
- },
- {
- name: "console rest api gateway response is ignored when not managed by IaC",
- remoteResources: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- {
- Id: "gtw-response",
- Type: aws.AwsApiGatewayGatewayResponseResourceType,
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- },
- expected: []*resource.Resource{
- {
- Id: "rest-api",
- Type: aws.AwsApiGatewayRestApiResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsConsoleApiGatewayGatewayResponse()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_api_gateway_account.go b/pkg/middlewares/aws_default_api_gateway_account.go
deleted file mode 100644
index 278715b6d..000000000
--- a/pkg/middlewares/aws_default_api_gateway_account.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsDefaultApiGatewayAccount is a middleware that ignores the default API Gateway account resource in the current region.
-type AwsDefaultApiGatewayAccount struct{}
-
-func NewAwsDefaultApiGatewayAccount() AwsDefaultApiGatewayAccount {
- return AwsDefaultApiGatewayAccount{}
-}
-
-func (m AwsDefaultApiGatewayAccount) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than API gateway account
- if remoteResource.ResourceType() != aws.AwsApiGatewayAccountResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if account is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice, so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default API gateway account as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_default_api_gateway_account_test.go b/pkg/middlewares/aws_default_api_gateway_account_test.go
deleted file mode 100644
index b93602ab0..000000000
--- a/pkg/middlewares/aws_default_api_gateway_account_test.go
+++ /dev/null
@@ -1,99 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultApiGatewayAccount_Execute(t *testing.T) {
-
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "test that default account is not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-account",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- []*resource.Resource{
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- "test that default account is ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-account",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsApiGatewayAccountResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultApiGatewayAccount()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_igw_route.go b/pkg/middlewares/aws_default_igw_route.go
deleted file mode 100644
index bb227c151..000000000
--- a/pkg/middlewares/aws_default_igw_route.go
+++ /dev/null
@@ -1,72 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Each region has a default vpc which has an internet gateway attached and thus the route table of this
-// same vpc has a default route (0.0.0.0/0) that should not be seen as unmanaged if not managed by IaC
-// This middleware ignores the above route from unmanaged resources if not managed by IaC
-type AwsDefaultInternetGatewayRoute struct{}
-
-func NewAwsDefaultInternetGatewayRoute() AwsDefaultInternetGatewayRoute {
- return AwsDefaultInternetGatewayRoute{}
-}
-
-func (m AwsDefaultInternetGatewayRoute) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than routes
- if remoteResource.ResourceType() != aws.AwsRouteResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all routes except the one that came from the default internet gateway
- if !isDefaultInternetGatewayRoute(remoteResource, remoteResources) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if route is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default internet gateway route as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-// Return true if the route's target is the default internet gateway (e.g. attached to the default vpc)
-func isDefaultInternetGatewayRoute(route *resource.Resource, remoteResources *[]*resource.Resource) bool {
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() == aws.AwsInternetGatewayResourceType &&
- isDefaultInternetGateway(remoteResource, remoteResources) {
- gtwId, gtwIdExist := route.Attrs.Get("gateway_id")
- destCIDRBlock, destCIDRBlockExist := route.Attrs.Get("destination_cidr_block")
- return gtwIdExist && destCIDRBlockExist && gtwId == remoteResource.ResourceId() && destCIDRBlock == "0.0.0.0/0"
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_default_igw_route_test.go b/pkg/middlewares/aws_default_igw_route_test.go
deleted file mode 100644
index f6e8ec5eb..000000000
--- a/pkg/middlewares/aws_default_igw_route_test.go
+++ /dev/null
@@ -1,229 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultInternetGatewayRoute_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "default internet gateway route is not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-igw-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "default-igw-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-igw-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- },
- {
- "default internet gateway route is ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-igw-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- "destination_cidr_block": "0.0.0.0/0",
- },
- },
- {
- Id: "default-igw-non-default-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- "destination_cidr_block": "10.0.1.0/24",
- },
- },
- {
- Id: "default-igw-default-ipv6-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- "destination_ipv6_cidr_block": "::/0",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "default-igw-non-default-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- "destination_cidr_block": "10.0.1.0/24",
- },
- },
- {
- Id: "default-igw-default-ipv6-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "default-igw",
- "destination_ipv6_cidr_block": "::/0",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultInternetGatewayRoute()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_internet_gateway.go b/pkg/middlewares/aws_default_internet_gateway.go
deleted file mode 100644
index 79e0d16de..000000000
--- a/pkg/middlewares/aws_default_internet_gateway.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Each default vpc has an internet gateway attached that should not be seen as unmanaged if not managed by IaC
-// This middleware ignores default internet gateway from unmanaged resources if not managed by IaC
-type AwsDefaultInternetGateway struct{}
-
-func NewAwsDefaultInternetGateway() AwsDefaultInternetGateway {
- return AwsDefaultInternetGateway{}
-}
-
-func (m AwsDefaultInternetGateway) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than internet gateways
- if remoteResource.ResourceType() != aws.AwsInternetGatewayResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all non-default internet gateways
- if !isDefaultInternetGateway(remoteResource, remoteResources) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if internet gateway is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default internet gateway as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-// Return true if the internet gateway is the default one (e.g. attached to the default vpc)
-func isDefaultInternetGateway(internetGateway *resource.Resource, remoteResources *[]*resource.Resource) bool {
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() == aws.AwsDefaultVpcResourceType {
- vpcId, exist := internetGateway.Attrs.Get("vpc_id")
- return exist && vpcId == remoteResource.ResourceId()
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_default_internet_gateway_test.go b/pkg/middlewares/aws_default_internet_gateway_test.go
deleted file mode 100644
index 70df7f56a..000000000
--- a/pkg/middlewares/aws_default_internet_gateway_test.go
+++ /dev/null
@@ -1,156 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultInternetGateway_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "default internet gateway is not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "dummy-vpc",
- Type: aws.AwsVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "dummy-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "dummy-vpc",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "dummy-vpc",
- Type: aws.AwsVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "dummy-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "dummy-vpc",
- },
- },
- },
- },
- {
- "default internet gateway is ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "dummy-vpc",
- Type: aws.AwsVpcResourceType,
- },
- {
- Id: "default-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "default-vpc",
- },
- },
- {
- Id: "dummy-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "dummy-vpc",
- },
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-vpc",
- Type: aws.AwsDefaultVpcResourceType,
- },
- {
- Id: "dummy-vpc",
- Type: aws.AwsVpcResourceType,
- },
- {
- Id: "dummy-igw",
- Type: aws.AwsInternetGatewayResourceType,
- Attrs: &resource.Attributes{
- "vpc_id": "dummy-vpc",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultInternetGateway()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_network_acl.go b/pkg/middlewares/aws_default_network_acl.go
deleted file mode 100644
index a1b27b66d..000000000
--- a/pkg/middlewares/aws_default_network_acl.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default network ACL should not be shown as unmanaged as they are present by default
-// This middleware ignores default network ACL from unmanaged resources if they are not managed by IaC
-type AwsDefaultNetworkACL struct{}
-
-func NewAwsDefaultNetworkACL() AwsDefaultNetworkACL {
- return AwsDefaultNetworkACL{}
-}
-
-func (m AwsDefaultNetworkACL) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than network ACLs
- if remoteResource.ResourceType() != aws.AwsDefaultNetworkACLResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if resource is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default network ACL as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_default_network_acl_rule.go b/pkg/middlewares/aws_default_network_acl_rule.go
deleted file mode 100644
index 6d00b4834..000000000
--- a/pkg/middlewares/aws_default_network_acl_rule.go
+++ /dev/null
@@ -1,94 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default network acl rules should not be shown as unmanaged as they are present by default
-// This middleware ignores default network acl rules from unmanaged resources if they are not managed by IaC
-type AwsDefaultNetworkACLRule struct{}
-
-func NewAwsDefaultNetworkACLRule() AwsDefaultNetworkACLRule {
- return AwsDefaultNetworkACLRule{}
-}
-
-func (m AwsDefaultNetworkACLRule) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than ACL rules
- if remoteResource.ResourceType() != aws.AwsNetworkACLRuleResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore non default ACL rules
- if !m.isDefaultACLRule(remoteResource) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if resource is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- "network_acl_id": *remoteResource.Attrs.GetString("network_acl_id"),
- }).Debug("Ignoring default ACL rule as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func (m *AwsDefaultNetworkACLRule) isDefaultACLRule(res *resource.Resource) bool {
-
- isIPv4 := res.Attrs.GetString("cidr_block") != nil
- ruleNumber, ruleNumberOk := (*res.Attrs)["rule_number"].(int64)
-
- if isIPv4 {
- if ruleNumberOk && ruleNumber != 32767 {
- return false
- }
- if cidr := res.Attrs.GetString("cidr_block"); cidr != nil && *cidr != "0.0.0.0/0" {
- return false
- }
- }
-
- if !isIPv4 {
- if ruleNumberOk && ruleNumber != 32768 {
- return false
- }
- if cidr := res.Attrs.GetString("ipv6_cidr_block"); cidr != nil && *cidr != "::/0" {
- return false
- }
- }
-
- if action := res.Attrs.GetString("rule_action"); action != nil && *action != "deny" {
- return false
- }
-
- if proto := res.Attrs.GetString("protocol"); proto != nil && *proto != "-1" {
- return false
- }
-
- return true
-}
diff --git a/pkg/middlewares/aws_default_network_acl_rule_test.go b/pkg/middlewares/aws_default_network_acl_rule_test.go
deleted file mode 100644
index 18e46f465..000000000
--- a/pkg/middlewares/aws_default_network_acl_rule_test.go
+++ /dev/null
@@ -1,202 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultNetworkACLRule_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "default network ACL rule is not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl-rule",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "-1",
- },
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(100),
- },
- },
- {
- Id: "non-default-acl-2",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "allow",
- },
- },
- {
- Id: "non-default-acl-3",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "1.2.3.0/0",
- },
- },
- {
- Id: "non-default-acl-4",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "6",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "default-acl-rule",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl-rule",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "-1",
- },
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(100),
- },
- },
- {
- Id: "non-default-acl-2",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "allow",
- },
- },
- {
- Id: "non-default-acl-3",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "1.2.3.0/0",
- },
- },
- {
- Id: "non-default-acl-4",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "6",
- },
- },
- },
- },
- {
- "default network acl rule is ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl-rule",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "network_acl_id": "my-network",
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "-1",
- },
- },
- {
- Id: "default-ipv6-acl-rule",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "network_acl_id": "my-network",
- "rule_number": int64(32768),
- "rule_action": "deny",
- "ipv6_cidr_block": "::/0",
- "protocol": "-1",
- },
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "6",
- },
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLRuleResourceType,
- Attrs: &resource.Attributes{
- "rule_number": int64(32767),
- "rule_action": "deny",
- "cidr_block": "0.0.0.0/0",
- "protocol": "6",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultNetworkACLRule()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_network_acl_test.go b/pkg/middlewares/aws_default_network_acl_test.go
deleted file mode 100644
index 1fac36574..000000000
--- a/pkg/middlewares/aws_default_network_acl_test.go
+++ /dev/null
@@ -1,100 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultNetworkACL_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "default network ACL is not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLResourceType,
- },
- },
- },
- {
- "default network acl is ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLResourceType,
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "non-default-acl",
- Type: aws.AwsNetworkACLResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultNetworkACL()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_route.go b/pkg/middlewares/aws_default_route.go
deleted file mode 100644
index adfee4998..000000000
--- a/pkg/middlewares/aws_default_route.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default routes should not be shown as unmanaged as they are present by default
-// This middleware ignores default routes from unmanaged resources if they are not managed by IaC
-type AwsDefaultRoute struct{}
-
-func NewAwsDefaultRoute() AwsDefaultRoute {
- return AwsDefaultRoute{}
-}
-
-func (m AwsDefaultRoute) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than routes
- if remoteResource.ResourceType() != aws.AwsRouteResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all non-default routes, check if route is coming from table creation
- if origin, exist := remoteResource.Attrs.Get("origin"); exist && origin != "CreateRouteTable" {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if route is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- // "route": route.String(), TODO
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default route as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_default_route_table.go b/pkg/middlewares/aws_default_route_table.go
deleted file mode 100644
index 62d40c5f1..000000000
--- a/pkg/middlewares/aws_default_route_table.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default route table should not be shown as unmanaged as they are present by default
-// This middleware ignores default route table from unmanaged resources if they are not managed by IaC
-type AwsDefaultRouteTable struct{}
-
-func NewAwsDefaultRouteTable() AwsDefaultRouteTable {
- return AwsDefaultRouteTable{}
-}
-
-func (m AwsDefaultRouteTable) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than default RouteTable
- if remoteResource.ResourceType() != aws.AwsDefaultRouteTableResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default route table as it is not managed by IaC")
- }
-
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_default_route_table_test.go b/pkg/middlewares/aws_default_route_table_test.go
deleted file mode 100644
index c33a12e2f..000000000
--- a/pkg/middlewares/aws_default_route_table_test.go
+++ /dev/null
@@ -1,99 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultRouteTable_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "test that default route tables are not excluded when managed by IaC",
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- },
- },
- },
- {
- "test that default route tables are excluded when not managed by IaC",
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- {
- Id: "default-route-table",
- Type: aws.AwsDefaultRouteTableResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-route-table",
- Type: aws.AwsRouteTableResourceType,
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultRouteTable()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.remoteResources, tt.expected)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_route_test.go b/pkg/middlewares/aws_default_route_test.go
deleted file mode 100644
index e71be5dfa..000000000
--- a/pkg/middlewares/aws_default_route_test.go
+++ /dev/null
@@ -1,133 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultRoute_Execute(t *testing.T) {
-
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "test that default routes are not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRoute",
- },
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRouteTable",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRouteTable",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRoute",
- },
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRouteTable",
- },
- },
- },
- },
- {
- "test that default routes are ignored when not managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRoute",
- },
- },
- {
- Id: "default-managed-by-IaC",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRouteTable",
- },
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "a-dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "fake-table-id",
- "origin": "CreateRoute",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultRoute()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_security_group_rule.go b/pkg/middlewares/aws_default_security_group_rule.go
deleted file mode 100644
index 8126235c5..000000000
--- a/pkg/middlewares/aws_default_security_group_rule.go
+++ /dev/null
@@ -1,132 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Remove default security group rules of the default security group from remote resources
-type AwsDefaultSecurityGroupRule struct{}
-
-func NewAwsDefaultSecurityGroupRule() AwsDefaultSecurityGroupRule {
- return AwsDefaultSecurityGroupRule{}
-}
-
-func (m AwsDefaultSecurityGroupRule) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than security group rules
- if remoteResource.ResourceType() != aws.AwsSecurityGroupRuleResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore if it's not the default ingress or egress rule
- if !isDefaultIngress(remoteResource, remoteResources) && !isDefaultEgress(remoteResource, remoteResources) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default unmanaged security group rule")
- }
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func isDefaultIngress(rule *resource.Resource, remoteResources *[]*resource.Resource) bool {
- if ty := rule.Attrs.GetString("type"); ty == nil || *ty != "ingress" {
- return false
- }
- if from := rule.Attrs.GetInt("from_port"); from == nil || *from != 0 {
- return false
- }
- if to := rule.Attrs.GetInt("to_port"); to == nil || *to != 0 {
- return false
- }
- if protocol := rule.Attrs.GetString("protocol"); protocol == nil || *protocol != "-1" {
- return false
- }
- if _, exist := rule.Attrs.Get("cidr_blocks"); exist {
- return false
- }
- if _, exist := rule.Attrs.Get("ipv6_cidr_blocks"); exist {
- return false
- }
- if _, exist := rule.Attrs.Get("prefix_list_ids"); exist {
- return false
- }
- if self := rule.Attrs.GetBool("self"); self == nil || !*self {
- return false
- }
- sgId := rule.Attrs.GetString("security_group_id")
- if sgId == nil {
- return false
- }
- return isFromDefaultSecurityGroup(sgId, remoteResources)
-}
-
-func isDefaultEgress(rule *resource.Resource, remoteResources *[]*resource.Resource) bool {
- if ty := rule.Attrs.GetString("type"); ty == nil || *ty != "egress" {
- return false
- }
- if from := rule.Attrs.GetInt("from_port"); from == nil || *from != 0 {
- return false
- }
- if to := rule.Attrs.GetInt("to_port"); to == nil || *to != 0 {
- return false
- }
- if protocol := rule.Attrs.GetString("protocol"); protocol == nil || *protocol != "-1" {
- return false
- }
- if ipv4 := rule.Attrs.GetSlice("cidr_blocks"); ipv4 == nil || len(ipv4) != 1 || ipv4[0] != "0.0.0.0/0" {
- return false
- }
- if _, exist := rule.Attrs.Get("ipv6_cidr_blocks"); exist {
- return false
- }
- if _, exist := rule.Attrs.Get("prefix_list_ids"); exist {
- return false
- }
- if self := rule.Attrs.GetBool("self"); self == nil || *self {
- return false
- }
- sgId := rule.Attrs.GetString("security_group_id")
- if sgId == nil {
- return false
- }
- return isFromDefaultSecurityGroup(sgId, remoteResources)
-}
-
-func isFromDefaultSecurityGroup(sgId *string, remoteResources *[]*resource.Resource) bool {
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() != aws.AwsDefaultSecurityGroupResourceType {
- continue
- }
- if *sgId == remoteResource.ResourceId() {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_default_security_group_rule_test.go b/pkg/middlewares/aws_default_security_group_rule_test.go
deleted file mode 100644
index 35b442290..000000000
--- a/pkg/middlewares/aws_default_security_group_rule_test.go
+++ /dev/null
@@ -1,315 +0,0 @@
-package middlewares
-
-import (
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultSecurityGroupRule_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- expected *[]*resource.Resource
- wantErr bool
- }{
- {
- name: "Should ignore default rules if not managed",
- remoteResources: &[]*resource.Resource{
- {
- Id: "default-sg",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "default-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "source_security_group_id": "default-sg",
- "self": true,
- },
- },
- &resource.Resource{
- Id: "default-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- &resource.Resource{
- Id: "dummy-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(22),
- "to_port": float64(22),
- "protocol": "tcp",
- "security_group_id": "default-sg",
- "cidr_blocks": []interface{}{"1.2.3.4/32"},
- },
- },
- &resource.Resource{
- Id: "dummy-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{},
- expected: &[]*resource.Resource{
- &resource.Resource{
- Id: "default-sg",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "dummy-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(22),
- "to_port": float64(22),
- "protocol": "tcp",
- "security_group_id": "default-sg",
- "cidr_blocks": []interface{}{"1.2.3.4/32"},
- },
- },
- &resource.Resource{
- Id: "dummy-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- },
- wantErr: false,
- },
- {
- name: "Should not ignore default rules if managed",
- remoteResources: &[]*resource.Resource{
- &resource.Resource{
- Id: "default-sg",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "dummy-sg",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "default-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "source_security_group_id": "default-sg",
- "self": true,
- },
- },
- &resource.Resource{
- Id: "default-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- &resource.Resource{
- Id: "dummy-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(22),
- "to_port": float64(22),
- "protocol": "tcp",
- "security_group_id": "dummy-sg",
- "cidr_blocks": []interface{}{"1.2.3.4/32"},
- },
- },
- &resource.Resource{
- Id: "dummy-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "dummy-sg",
- "self": false,
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- &resource.Resource{
- Id: "default-egress-2",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "dummy-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- &resource.Resource{
- Id: "default-sg",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "default-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "source_security_group_id": "default-sg",
- "self": true,
- },
- },
- &resource.Resource{
- Id: "default-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- },
- expected: &[]*resource.Resource{
- &resource.Resource{
- Id: "default-sg",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "dummy-sg",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "default-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "source_security_group_id": "default-sg",
- "self": true,
- },
- },
- &resource.Resource{
- Id: "default-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "default-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- &resource.Resource{
- Id: "dummy-ingress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "ingress",
- "from_port": float64(22),
- "to_port": float64(22),
- "protocol": "tcp",
- "security_group_id": "dummy-sg",
- "cidr_blocks": []interface{}{"1.2.3.4/32"},
- },
- },
- &resource.Resource{
- Id: "dummy-egress",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "dummy-sg",
- "self": false,
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- &resource.Resource{
- Id: "default-egress-2",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "type": "egress",
- "from_port": float64(0),
- "to_port": float64(0),
- "protocol": "-1",
- "security_group_id": "dummy-sg",
- "self": false,
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- },
- },
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := AwsDefaultSecurityGroupRule{}
- if err := m.Execute(tt.remoteResources, tt.resourcesFromState); (err != nil) != tt.wantErr {
- t.Errorf("Execute() error = %v, wantErr %v", err, tt.wantErr)
- }
- if !reflect.DeepEqual(tt.remoteResources, tt.expected) {
- t.Fatalf("Expected results mismatch")
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_sqs_queue_policy.go b/pkg/middlewares/aws_default_sqs_queue_policy.go
deleted file mode 100644
index cc5bfa120..000000000
--- a/pkg/middlewares/aws_default_sqs_queue_policy.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// SQS queues from AWS have a weird behaviour when we fetch them.
-// By default they have a Policy attached with only an ID
-// "arn:aws:sqs:eu-west-3:XXXXXXXXXXXX:foobar/SQSDefaultPolicy" but on fetch
-// the SDK return an empty policy (e.g. policy = "").
-// We need to ignore those policy from unmanaged resources if they are not managed
-// by IaC.
-type AwsDefaultSQSQueuePolicy struct{}
-
-func NewAwsDefaultSQSQueuePolicy() AwsDefaultSQSQueuePolicy {
- return AwsDefaultSQSQueuePolicy{}
-}
-
-func (m AwsDefaultSQSQueuePolicy) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
- for _, res := range *remoteResources {
- // Ignore all resources other than sqs_queue_policy
- if res.ResourceType() != aws.AwsSqsQueuePolicyResourceType {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- // Ignore all non-default queue policy
- pol, exists := res.Attrs.Get("policy")
- policy := pol.(string)
- if exists && policy != "" {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- // Check if queue policy is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if res.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": res.ResourceId(),
- "type": res.ResourceType(),
- }).Debug("Ignoring default queue policy as it is not managed by IaC")
- }
- *remoteResources = newRemoteResources
- return nil
-}
diff --git a/pkg/middlewares/aws_default_sqs_queue_policy_test.go b/pkg/middlewares/aws_default_sqs_queue_policy_test.go
deleted file mode 100644
index 7929fcfb3..000000000
--- a/pkg/middlewares/aws_default_sqs_queue_policy_test.go
+++ /dev/null
@@ -1,150 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaultSQSQueuePolicy_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "test default sqs queue policy managed by IaC",
- []*resource.Resource{
- {
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- {
- Id: "default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "default-sqs-queue-policy",
- "id": "default-sqs-queue-policy",
- "policy": "",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- {
- Id: "default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "default-sqs-queue-policy",
- "id": "default-sqs-queue-policy",
- "policy": "",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- {
- Id: "default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "default-sqs-queue-policy",
- "id": "default-sqs-queue-policy",
- "policy": "",
- },
- },
- },
- },
- {
- "test default sqs queue policy not managed by IaC",
- []*resource.Resource{
- &resource.Resource{
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- &resource.Resource{
- Id: "default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "default-sqs-queue-policy",
- "id": "default-sqs-queue-policy",
- "policy": "",
- },
- },
- },
- []*resource.Resource{
- &resource.Resource{
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- },
- []*resource.Resource{
- &resource.Resource{
- Id: "non-default-sqs-queue-policy",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "non-default-sqs-queue-policy",
- "id": "non-default-sqs-queue-policy",
- "policy": "foo",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewAwsDefaultSQSQueuePolicy()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.remoteResources, tt.expected)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- })
- }
-}
diff --git a/pkg/middlewares/aws_default_subnet.go b/pkg/middlewares/aws_default_subnet.go
deleted file mode 100644
index d1176c0f6..000000000
--- a/pkg/middlewares/aws_default_subnet.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default subnet should not be shown as unmanaged as they are present by default
-// This middleware ignores default subnet from unmanaged resources if they are not managed by IaC
-type AwsDefaultSubnet struct{}
-
-func NewAwsDefaultSubnet() AwsDefaultSubnet {
- return AwsDefaultSubnet{}
-}
-
-func (m AwsDefaultSubnet) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than default Subnet
- if remoteResource.ResourceType() != aws.AwsDefaultSubnetResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default Subnet as it is not managed by IaC")
- }
-
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_default_vpc.go b/pkg/middlewares/aws_default_vpc.go
deleted file mode 100644
index 4bff529de..000000000
--- a/pkg/middlewares/aws_default_vpc.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Default VPC should not be shown as unmanaged as they are present by default
-// This middleware ignores default VPC from unmanaged resources if they are not managed by IaC
-type AwsDefaultVPC struct{}
-
-func NewAwsDefaultVPC() AwsDefaultVPC {
- return AwsDefaultVPC{}
-}
-
-func (m AwsDefaultVPC) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than default VPC
- if remoteResource.ResourceType() != aws.AwsDefaultVpcResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default VPC as it is not managed by IaC")
- }
-
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/aws_defaults.go b/pkg/middlewares/aws_defaults.go
deleted file mode 100644
index 178ad5c65..000000000
--- a/pkg/middlewares/aws_defaults.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package middlewares
-
-import (
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-const defaultIamRolePathPrefix = "/aws-service-role/"
-
-// AwsDefaults represents service-linked AWS resources
-// When scanning a AWS account, some users may see irrelevant results about default AWS roles or role policies.
-// We ignore these resources by default when strict mode is disabled.
-type AwsDefaults struct{}
-
-func NewAwsDefaults() AwsDefaults {
- return AwsDefaults{}
-}
-
-func (m AwsDefaults) awsIamRoleDefaults(remoteResources []*resource.Resource) []*resource.Resource {
- resourcesToIgnore := make([]*resource.Resource, 0)
-
- for _, remoteResource := range remoteResources {
- // Ignore all resources other than iam role
- if remoteResource.ResourceType() != aws.AwsIamRoleResourceType {
- continue
- }
-
- path := remoteResource.Attributes().GetString("path")
- if path == nil {
- continue
- }
-
- if match := strings.HasPrefix(*path, defaultIamRolePathPrefix); match {
- resourcesToIgnore = append(resourcesToIgnore, remoteResource)
- }
- }
-
- return resourcesToIgnore
-}
-
-func (m AwsDefaults) awsIamRolePolicyDefaults(remoteResources []*resource.Resource) []*resource.Resource {
- resourcesToIgnore := make([]*resource.Resource, 0)
-
- for _, remoteResource := range remoteResources {
- // Ignore all resources other than role policy
- if remoteResource.ResourceType() != aws.AwsIamRolePolicyResourceType {
- continue
- }
-
- var role *resource.Resource
- for _, res := range remoteResources {
- if res.ResourceType() == aws.AwsIamRoleResourceType &&
- res.ResourceId() == (*remoteResource.Attrs)["role"] {
- role = res
- break
- }
- }
-
- if role == nil {
- logrus.Warnf("Role for %s role policy not found. Is that supposed to happen ?", remoteResource.ResourceId())
- continue
- }
-
- if match := strings.HasPrefix((*role.Attrs)["path"].(string), defaultIamRolePathPrefix); match {
- resourcesToIgnore = append(resourcesToIgnore, remoteResource)
- }
- }
-
- return resourcesToIgnore
-}
-
-func (m AwsDefaults) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
- newResourcesFromState := make([]*resource.Resource, 0)
- resourcesToIgnore := make([]*resource.Resource, 0)
-
- resourcesToIgnore = append(resourcesToIgnore, m.awsIamRoleDefaults(*remoteResources)...)
- resourcesToIgnore = append(resourcesToIgnore, m.awsIamRolePolicyDefaults(*remoteResources)...)
-
- for _, res := range *remoteResources {
- ignored := false
-
- for _, resourceToIgnore := range resourcesToIgnore {
- if res.Equal(resourceToIgnore) {
- ignored = true
- break
- }
- }
-
- if !ignored {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- logrus.WithFields(logrus.Fields{
- "id": res.ResourceId(),
- "type": res.ResourceType(),
- }).Debug("Ignoring default AWS resource")
- }
-
- for _, res := range *resourcesFromState {
- ignored := false
-
- for _, resourceToIgnore := range resourcesToIgnore {
- if res.Equal(resourceToIgnore) {
- ignored = true
- break
- }
- }
-
- if !ignored {
- newResourcesFromState = append(newResourcesFromState, res)
- continue
- }
-
- logrus.WithFields(logrus.Fields{
- "id": res.ResourceId(),
- "type": res.ResourceType(),
- }).Debug("Ignoring default AWS resource")
- }
-
- *remoteResources = newRemoteResources
- *resourcesFromState = newResourcesFromState
-
- return nil
-}
diff --git a/pkg/middlewares/aws_defaults_test.go b/pkg/middlewares/aws_defaults_test.go
deleted file mode 100644
index c08f3f9a8..000000000
--- a/pkg/middlewares/aws_defaults_test.go
+++ /dev/null
@@ -1,269 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsDefaults_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- assert func(t *testing.T, remoteResources, resourcesFromState []*resource.Resource)
- }{
- {
- "ignore default iam roles when they're not managed by IaC",
- []*resource.Resource{
- {
- Id: "AWSServiceRoleForSSO",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/sso.amazonaws.com",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/sso.amazonaws.com/",
- },
- },
- {
- Id: "terraform-20210408093258091700000001",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- {
- Id: "terraform-20210408093258091700000001",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/",
- },
- },
- },
- func(t *testing.T, remoteResources, resourcesFromState []*resource.Resource) {
- assert.Len(t, remoteResources, 3)
- for _, remoteResource := range remoteResources {
- if remoteResource.ResourceId() == "AWSServiceRoleForSSO" {
- t.Fatal("AWSServiceRoleForSSO should have been ignored")
- }
- }
- },
- },
- {
- "ignore default iam roles when they're managed by IaC",
- []*resource.Resource{
- {
- Id: "AWSServiceRoleForSSO",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/sso.amazonaws.com/",
- "description": "test",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/sso.amazonaws.com/",
- },
- },
- {
- Id: "driftctl_assume_role:driftctl_policy.10",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/",
- "tags": map[string]string{
- "test": "value",
- },
- },
- },
- },
- []*resource.Resource{
- {
- Id: "AWSServiceRoleForSSO",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/sso.amazonaws.com/",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/sso.amazonaws.com/",
- },
- },
- {
- Id: "driftctl_assume_role:driftctl_policy.10",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/",
- "tags": map[string]string{},
- },
- },
- },
- func(t *testing.T, remoteResources, resourcesFromState []*resource.Resource) {
- assert.Len(t, remoteResources, 2)
- assert.Len(t, resourcesFromState, 2)
- },
- },
- {
- "ignore default iam role policies when they're not managed by IaC",
- []*resource.Resource{
- {
- Id: "AWSServiceRoleForSSO",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/sso.amazonaws.com",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/sso.amazonaws.com",
- },
- },
- {
- Id: "AWSServiceRoleForSSO",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "AWSServiceRoleForSSO",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "OrganizationAccountAccessRole",
- },
- },
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "dummy-route",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default-route-table",
- "gateway_id": "local",
- },
- },
- },
- func(t *testing.T, remoteResources, resourcesFromState []*resource.Resource) {
- assert.Len(t, remoteResources, 3)
- for _, remoteResource := range remoteResources {
- if remoteResource.ResourceId() == "AWSServiceRoleForSSO" &&
- remoteResource.ResourceType() == aws.AwsIamRoleResourceType {
- t.Fatal("AWSServiceRoleForSSO role should have been ignored")
- }
- if remoteResource.ResourceId() == "AWSServiceRoleForSSO" &&
- remoteResource.ResourceType() == aws.AwsIamRolePolicyResourceType {
- t.Fatal("AWSServiceRoleForSSO policy should have been ignored")
- }
- }
- },
- },
- {
- "ignore default iam role policies even when they're managed by IaC",
- []*resource.Resource{
- {
- Id: "custom-role",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/not-aws-service-role/sso.amazonaws.com",
- },
- },
- {
- Id: "OrganizationAccountAccessRole",
- Type: aws.AwsIamRoleResourceType,
- Attrs: &resource.Attributes{
- "path": "/aws-service-role/sso.amazonaws.com",
- },
- },
- {
- Id: "driftctl_assume_role:driftctl_policy.10",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "custom-role",
- },
- },
- {
- Id: "OrganizationAccountAccessRole:AdministratorAccess",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "OrganizationAccountAccessRole",
- "name_prefix": nil,
- },
- },
- },
- []*resource.Resource{
- {
- Id: "OrganizationAccountAccessRole:AdministratorAccess",
- Type: aws.AwsIamRolePolicyResourceType,
- Attrs: &resource.Attributes{
- "role": "OrganizationAccountAccessRole",
- "name_prefix": "tf-",
- },
- },
- },
- func(t *testing.T, remoteResources, resourcesFromState []*resource.Resource) {
- assert.Len(t, remoteResources, 2)
- for _, remoteResource := range remoteResources {
- if remoteResource.ResourceId() == "OrganizationAccountAccessRole" &&
- remoteResource.ResourceType() == aws.AwsIamRoleResourceType {
- t.Fatal("OrganizationAccountAccessRole role should have been ignored")
- }
- if remoteResource.ResourceId() == "OrganizationAccountAccessRole:AdministratorAccess" &&
- remoteResource.ResourceType() == aws.AwsIamRolePolicyResourceType {
- t.Fatal("OrganizationAccountAccessRole:AdministratorAccess policy should have been ignored")
- }
- }
- },
- },
- }
-
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := &AwsDefaults{}
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- tt.assert(t, tt.remoteResources, tt.resourcesFromState)
- })
- }
-}
diff --git a/pkg/middlewares/aws_ebs_encryption_by_default_reconciler.go b/pkg/middlewares/aws_ebs_encryption_by_default_reconciler.go
deleted file mode 100644
index 68cbd69f0..000000000
--- a/pkg/middlewares/aws_ebs_encryption_by_default_reconciler.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsEbsEncryptionByDefaultReconciler is a middleware that either creates an 'aws_ebs_encryption_by_default' resource
-// based on its equivalent state one just for the purpose of getting the Terraform custom Id, or removes the resource
-// from our list of remote resources if it is not managed and is disabled.
-type AwsEbsEncryptionByDefaultReconciler struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsEbsEncryptionByDefaultReconciler(resourceFactory resource.ResourceFactory) AwsEbsEncryptionByDefaultReconciler {
- return AwsEbsEncryptionByDefaultReconciler{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsEbsEncryptionByDefaultReconciler) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newStateResources := make([]*resource.Resource, 0)
- newRemoteResources := make([]*resource.Resource, 0)
-
- var found bool
- var defaultEbsEncryption *resource.Resource
-
- for _, res := range *remoteResources {
- // Ignore all resources other than aws_ebs_encryption_by_default
- if res.ResourceType() != aws.AwsEbsEncryptionByDefaultResourceType {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
- defaultEbsEncryption = res
- }
-
- // We can encounter this case when we don't have permission to get this setting from AWS.
- if defaultEbsEncryption == nil {
- return nil
- }
-
- for _, res := range *resourcesFromState {
- newStateResources = append(newStateResources, res)
-
- // Ignore all resources other than aws_ebs_encryption_by_default
- if res.ResourceType() != aws.AwsEbsEncryptionByDefaultResourceType {
- continue
- }
-
- // Create a new remote resource that will be similar to the state resource but with the 'enabled' attribute of the remote one.
- // The reason why is that the id is a random string created by Terraform that we need to compare two resources.
- newRemoteResources = append(newRemoteResources, m.resourceFactory.CreateAbstractResource(
- res.ResourceType(),
- res.ResourceId(),
- map[string]interface{}{
- "id": res.ResourceId(),
- "enabled": *defaultEbsEncryption.Attributes().GetBool("enabled"),
- },
- ))
- found = true
- }
-
- if defaultEbsEncryption != nil && !found && *defaultEbsEncryption.Attributes().GetBool("enabled") {
- newRemoteResources = append(newRemoteResources, defaultEbsEncryption)
- }
-
- *resourcesFromState = newStateResources
- *remoteResources = newRemoteResources
- return nil
-}
diff --git a/pkg/middlewares/aws_ebs_encryption_by_default_reconciler_test.go b/pkg/middlewares/aws_ebs_encryption_by_default_reconciler_test.go
deleted file mode 100644
index 524f9284c..000000000
--- a/pkg/middlewares/aws_ebs_encryption_by_default_reconciler_test.go
+++ /dev/null
@@ -1,277 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsEbsEncryptionByDefaultReconciler_Execute(t *testing.T) {
- tests := []struct {
- name string
- mocks func(*dctlresource.MockResourceFactory)
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expectedRemoteResources []*resource.Resource
- expectedStateResources []*resource.Resource
- }{
- {
- name: "test encryption by default is managed",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource",
- aws.AwsEbsEncryptionByDefaultResourceType,
- "terraform-20220328091515068500000001",
- map[string]interface{}{
- "id": "terraform-20220328091515068500000001",
- "enabled": true,
- }).Return(&resource.Resource{
- Id: "terraform-20220328091515068500000001",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "id": "terraform-20220328091515068500000001",
- "enabled": true,
- },
- }).Once()
- },
- remoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": true,
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "terraform-20220328091515068500000001",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "id": "terraform-20220328091515068500000001",
- "enabled": true,
- },
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "terraform-20220328091515068500000001",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "id": "terraform-20220328091515068500000001",
- "enabled": true,
- },
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "terraform-20220328091515068500000001",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "id": "terraform-20220328091515068500000001",
- "enabled": true,
- },
- },
- },
- },
- {
- name: "test encryption by default is enabled and unmanaged",
- mocks: func(factory *dctlresource.MockResourceFactory) {},
- remoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": true,
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": true,
- },
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test encryption by default is disabled and unmanaged",
- mocks: func(factory *dctlresource.MockResourceFactory) {},
- remoteResources: []*resource.Resource{
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": false,
- },
- },
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test encryption by default doesn't exist",
- mocks: func(factory *dctlresource.MockResourceFactory) {},
- remoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket-2",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": true,
- },
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "bucket-1",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket-2",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "test-encryption",
- Type: aws.AwsEbsEncryptionByDefaultResourceType,
- Attrs: &resource.Attributes{
- "enabled": true,
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewAwsEbsEncryptionByDefaultReconciler(factory)
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.remoteResources, tt.expectedRemoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- changelog, err = diff.Diff(tt.resourcesFromState, tt.expectedStateResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_eip_association_expander.go b/pkg/middlewares/aws_eip_association_expander.go
deleted file mode 100644
index 00e882d9f..000000000
--- a/pkg/middlewares/aws_eip_association_expander.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-/**
- Fetching eip association from remote return every association but some of them are embedded in eip.
- This middleware will check for every eip_association that here is no corresponding association_id inside eip.
-*/
-
-type EipAssociationExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewEipAssociationExpander(resourceFactory resource.ResourceFactory) EipAssociationExpander {
- return EipAssociationExpander{resourceFactory}
-}
-
-func (m EipAssociationExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- var newResources []*resource.Resource
- for _, res := range *resourcesFromState {
- newResources = append(newResources, res)
-
- if res.ResourceType() != aws.AwsEipResourceType {
- continue
- }
- if m.haveMatchingEipAssociation(res, resourcesFromState) {
- continue
- }
- // This EIP have no association, check if we need to create one
- assocID := res.Attributes().GetString("association_id")
- if assocID == nil || *assocID == "" {
- continue
- }
-
- attributes := *res.Attributes()
- newAssoc := m.resourceFactory.CreateAbstractResource(
- aws.AwsEipAssociationResourceType,
- *assocID,
- map[string]interface{}{
- "allocation_id": res.ResourceId(),
- "id": *assocID,
- "instance_id": attributes["instance"],
- "network_interface_id": attributes["network_interface"],
- "private_ip_address": attributes["private_ip"],
- "public_ip": attributes["public_ip"],
- },
- )
-
- newResources = append(newResources, newAssoc)
- }
- *resourcesFromState = newResources
-
- return nil
-}
-
-func (m EipAssociationExpander) haveMatchingEipAssociation(cur *resource.Resource, stateRes *[]*resource.Resource) bool {
- for _, res := range *stateRes {
- if res.ResourceType() != aws.AwsEipAssociationResourceType {
- continue
- }
- assocId := cur.Attributes().GetString("association_id")
- if assocId != nil && res.ResourceId() == *assocId {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_iam_policy_attachement_transformer.go b/pkg/middlewares/aws_iam_policy_attachement_transformer.go
deleted file mode 100644
index 77cbb8b66..000000000
--- a/pkg/middlewares/aws_iam_policy_attachement_transformer.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-/**
- When listing policy attachment from aws we retrieve only user_policy_attachment or role_policy_attachment thus making it
- impossible to compare with policy_attachment that could exist in terraform.
- We decided to transform all attachments to policy_attachment so we can find which attachments are managed.
-*/
-
-type IamPolicyAttachmentTransformer struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewIamPolicyAttachmentTransformer(resourceFactory resource.ResourceFactory) IamPolicyAttachmentTransformer {
- return IamPolicyAttachmentTransformer{
- resourceFactory,
- }
-}
-
-func (m IamPolicyAttachmentTransformer) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- *remoteResources = m.transform(remoteResources)
- *resourcesFromState = m.transform(resourcesFromState)
- return nil
-}
-
-func (m IamPolicyAttachmentTransformer) transform(resources *[]*resource.Resource) []*resource.Resource {
- var newResources []*resource.Resource
- for _, res := range *resources {
- if res.ResourceType() != aws.AwsIamUserPolicyAttachmentResourceType &&
- res.ResourceType() != aws.AwsIamRolePolicyAttachmentResourceType &&
- res.ResourceType() != aws.AwsIamGroupPolicyAttachmentResourceType {
- newResources = append(newResources, res)
- continue
- }
-
- if res.ResourceType() == aws.AwsIamUserPolicyAttachmentResourceType {
- attrs := *res.Attributes()
- policyAttachmentData := resource.Attributes{
- "id": res.ResourceId(),
- "policy_arn": attrs["policy_arn"],
- "users": []interface{}{attrs["user"]},
- "groups": []interface{}{},
- "roles": []interface{}{},
- }
-
- policyAttachment := m.resourceFactory.CreateAbstractResource(aws.AwsIamPolicyAttachmentResourceType, res.ResourceId(), policyAttachmentData)
-
- newResources = append(newResources, policyAttachment)
- continue
- }
-
- if res.ResourceType() == aws.AwsIamRolePolicyAttachmentResourceType {
- attrs := *res.Attributes()
- policyAttachmentData := resource.Attributes{
- "id": res.ResourceId(),
- "policy_arn": attrs["policy_arn"],
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{attrs["role"]},
- }
-
- policyAttachment := m.resourceFactory.CreateAbstractResource(aws.AwsIamPolicyAttachmentResourceType, res.ResourceId(), policyAttachmentData)
-
- newResources = append(newResources, policyAttachment)
- continue
- }
-
- if res.ResourceType() == aws.AwsIamGroupPolicyAttachmentResourceType {
- attrs := *res.Attributes()
- policyAttachmentData := resource.Attributes{
- "id": res.ResourceId(),
- "policy_arn": attrs["policy_arn"],
- "users": []interface{}{},
- "groups": []interface{}{attrs["group"]},
- "roles": []interface{}{},
- }
-
- policyAttachment := m.resourceFactory.CreateAbstractResource(aws.AwsIamPolicyAttachmentResourceType, res.ResourceId(), policyAttachmentData)
-
- newResources = append(newResources, policyAttachment)
- continue
- }
- }
- return newResources
-}
diff --git a/pkg/middlewares/aws_iam_policy_attachement_transformer_test.go b/pkg/middlewares/aws_iam_policy_attachement_transformer_test.go
deleted file mode 100644
index db32462e3..000000000
--- a/pkg/middlewares/aws_iam_policy_attachement_transformer_test.go
+++ /dev/null
@@ -1,381 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- testresource "github.com/snyk/driftctl/test/resource"
-)
-
-func TestIamPolicyAttachmentTransformer_Execute(t *testing.T) {
- type argRes struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }
- tests := []struct {
- name string
- args argRes
- expected argRes
- mocks func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "transform user_policy_attachment",
- args: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamUserPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "user": "user1",
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamUserPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn2",
- "user": "user2",
- },
- },
- },
- },
- expected: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{"user1"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{"user2"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- },
- },
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id1", map[string]interface{}{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{"user1"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- }).Once().Return(&resource.Resource{
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{"user1"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- },
- }, nil)
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id2", map[string]interface{}{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{"user2"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- }).Once().Return(&resource.Resource{
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{"user2"},
- "groups": []interface{}{},
- "roles": []interface{}{},
- },
- }, nil)
- },
- },
- {
- name: "transform role_policy_attachment",
- args: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamRolePolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "role": "role1",
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamRolePolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn2",
- "role": "role2",
- },
- },
- },
- },
- expected: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role1"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role2"},
- },
- },
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id1", map[string]interface{}{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role1"},
- }).Once().Return(&resource.Resource{
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role1"},
- },
- }, nil)
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id2", map[string]interface{}{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role2"},
- }).Once().Return(&resource.Resource{
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role2"},
- },
- }, nil)
- },
- },
- {
- name: "transform group_policy_attachment",
- args: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamGroupPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn1",
- "group": "group1",
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamGroupPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "policy_arn2",
- "group": "group2",
- },
- },
- },
- },
- expected: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{"group1"},
- "roles": []interface{}{},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{"group2"},
- "roles": []interface{}{},
- },
- },
- },
- },
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id1", map[string]interface{}{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{"group1"},
- "roles": []interface{}{},
- }).Once().Return(&resource.Resource{
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{"group1"},
- "roles": []interface{}{},
- },
- }, nil)
- factory.On("CreateAbstractResource", aws.AwsIamPolicyAttachmentResourceType, "id2", map[string]interface{}{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{"group2"},
- "roles": []interface{}{},
- }).Once().Return(&resource.Resource{
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{"group2"},
- "roles": []interface{}{},
- },
- }, nil)
- },
- },
- {
- name: "transform nothing",
- args: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role1"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role2"},
- },
- },
- },
- },
- expected: argRes{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "id1",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id1",
- "policy_arn": "policy_arn1",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role1"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- &resource.Resource{
- Id: "id2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "id": "id2",
- "policy_arn": "policy_arn2",
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{"role2"},
- },
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- repo := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- aws.InitResourcesMetadata(repo)
- m := IamPolicyAttachmentTransformer{
- resourceFactory: factory,
- }
- if err := m.Execute(tt.args.RemoteResources, tt.args.ResourcesFromState); err != nil {
- t.Error(err.Error())
- }
-
- changelog, err := diff.Diff(tt.expected, tt.args)
- if err != nil {
- t.Error(err.Error())
- }
-
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_instance_block_device.go b/pkg/middlewares/aws_instance_block_device.go
deleted file mode 100644
index e18e16a9b..000000000
--- a/pkg/middlewares/aws_instance_block_device.go
+++ /dev/null
@@ -1,126 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Remove root_block_device from aws_instance resources and create dedicated aws_ebs_volume resources
-type AwsInstanceBlockDeviceResourceMapper struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsInstanceBlockDeviceResourceMapper(resourceFactory resource.ResourceFactory) AwsInstanceBlockDeviceResourceMapper {
- return AwsInstanceBlockDeviceResourceMapper{
- resourceFactory: resourceFactory,
- }
-}
-
-func (a AwsInstanceBlockDeviceResourceMapper) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newStateResources := make([]*resource.Resource, 0)
- for _, stateRes := range *resourcesFromState {
-
- // Ignore all resources other than aws_instance
- if stateRes.ResourceType() != aws.AwsInstanceResourceType {
- newStateResources = append(newStateResources, stateRes)
- continue
- }
-
- if rootBlockDevice, exist := stateRes.Attrs.Get("root_block_device"); exist {
- for _, rootBlock := range rootBlockDevice.([]interface{}) {
- rootBlock := rootBlock.(map[string]interface{})
- logrus.WithFields(logrus.Fields{
- "volume": rootBlock["volume_id"],
- "instance": stateRes.ResourceId(),
- }).Debug("Creating aws_ebs_volume from aws_instance.root_block_device")
- data := map[string]interface{}{
- "availability_zone": (*stateRes.Attrs)["availability_zone"],
- "encrypted": rootBlock["encrypted"],
- "id": rootBlock["volume_id"],
- "iops": rootBlock["iops"],
- "kms_key_id": rootBlock["kms_key_id"],
- "size": rootBlock["volume_size"],
- "type": rootBlock["volume_type"],
- "multi_attach_enabled": false,
- "tags": a.volumeTags(stateRes, rootBlock),
- }
- if throughput, exist := rootBlock["throughput"]; exist {
- data["throughput"] = throughput
- }
- newRes := a.resourceFactory.CreateAbstractResource("aws_ebs_volume", rootBlock["volume_id"].(string), data)
- newStateResources = append(newStateResources, newRes)
- }
- stateRes.Attrs.SafeDelete([]string{"root_block_device"})
- stateRes.Attrs.SafeDelete([]string{"volume_tags"})
- }
-
- if ebsBlockDevice, exist := stateRes.Attrs.Get("ebs_block_device"); exist {
- for _, blockDevice := range ebsBlockDevice.([]interface{}) {
- blockDevice := blockDevice.(map[string]interface{})
- if a.hasBlockDevice(blockDevice, resourcesFromState) {
- continue
- }
- logrus.WithFields(logrus.Fields{
- "volume": blockDevice["volume_id"],
- "instance": stateRes.ResourceId(),
- }).Debug("Creating aws_ebs_volume from aws_instance.ebs_block_device")
- data := map[string]interface{}{
- "availability_zone": (*stateRes.Attrs)["availability_zone"],
- "encrypted": blockDevice["encrypted"],
- "id": blockDevice["volume_id"],
- "iops": blockDevice["iops"],
- "kms_key_id": blockDevice["kms_key_id"],
- "size": blockDevice["volume_size"],
- "type": blockDevice["volume_type"],
- "multi_attach_enabled": false,
- "tags": a.volumeTags(stateRes, blockDevice),
- }
- if throughput, exist := blockDevice["throughput"]; exist {
- data["throughput"] = throughput
- }
- newRes := a.resourceFactory.CreateAbstractResource("aws_ebs_volume", blockDevice["volume_id"].(string), data)
- newStateResources = append(newStateResources, newRes)
- }
- stateRes.Attrs.SafeDelete([]string{"ebs_block_device"})
- stateRes.Attrs.SafeDelete([]string{"volume_tags"})
- }
- newStateResources = append(newStateResources, stateRes)
- }
-
- newRemoteResources := make([]*resource.Resource, 0)
- for _, remoteRes := range *remoteResources {
- if remoteRes.ResourceType() != aws.AwsInstanceResourceType {
- newRemoteResources = append(newRemoteResources, remoteRes)
- continue
- }
- remoteRes.Attrs.SafeDelete([]string{"root_block_device"})
- remoteRes.Attrs.SafeDelete([]string{"ebs_block_device"})
- remoteRes.Attrs.SafeDelete([]string{"volume_tags"})
- newRemoteResources = append(newRemoteResources, remoteRes)
- }
-
- *resourcesFromState = newStateResources
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func (a AwsInstanceBlockDeviceResourceMapper) volumeTags(instance *resource.Resource, blockDevice map[string]interface{}) interface{} {
- if tags, exist := instance.Attrs.Get("volume_tags"); exist {
- return tags
- }
- return blockDevice["tags"]
-}
-
-func (a AwsInstanceBlockDeviceResourceMapper) hasBlockDevice(blockDevice map[string]interface{}, resourcesFromState *[]*resource.Resource) bool {
- for _, stateRes := range *resourcesFromState {
- if stateRes.ResourceType() == aws.AwsEbsVolumeResourceType &&
- stateRes.ResourceId() == blockDevice["volume_id"] {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_instance_block_device_test.go b/pkg/middlewares/aws_instance_block_device_test.go
deleted file mode 100644
index 4187c1e55..000000000
--- a/pkg/middlewares/aws_instance_block_device_test.go
+++ /dev/null
@@ -1,369 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAwsInstanceBlockDeviceResourceMapper_Execute(t *testing.T) {
- type args struct {
- expectedResource *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }
- tests := []struct {
- name string
- args args
- mocks func(factory *dctlresource.MockResourceFactory)
- wantErr bool
- }{
- {
- "Test with root block device and ebs block device",
- struct {
- expectedResource *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }{
- expectedResource: &[]*resource.Resource{
- {
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- },
- },
- {
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "iops": 1234,
- "kms_key_id": "kms",
- "size": 8,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- },
- {
- Id: "vol-018c5ae89895aca4c",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-018c5ae89895aca4c",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "size": 23,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- },
- {
- Id: "vol-foobar",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{},
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "vol-foobar",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{},
- },
- {
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- "volume_tags": map[string]string{
- "Name": "rootVol",
- },
- "root_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-02862d9b39045a3a4",
- "volume_type": "gp2",
- "device_name": "/dev/sda1",
- "encrypted": true,
- "kms_key_id": "kms",
- "volume_size": 8,
- "throughput": 125,
- "iops": 1234,
- },
- },
- "ebs_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-018c5ae89895aca4c",
- "volume_type": "gp2",
- "device_name": "/dev/sdb",
- "encrypted": true,
- "delete_on_termination": true,
- "volume_size": 23,
- "throughput": 125,
- },
- },
- },
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- foo := resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "iops": 1234,
- "kms_key_id": "kms",
- "size": 8,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- }
- factory.On("CreateAbstractResource", "aws_ebs_volume", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "vol-02862d9b39045a3a4"
- })).Times(1).Return(&foo, nil)
-
- bar := resource.Resource{
- Id: "vol-018c5ae89895aca4c",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-018c5ae89895aca4c",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "size": 23,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- }
- factory.On("CreateAbstractResource", "aws_ebs_volume", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "vol-018c5ae89895aca4c"
- })).Times(1).Return(&bar, nil)
- },
- false,
- },
- {
- "Test with tags inside root/ebs block device",
- struct {
- expectedResource *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }{
- expectedResource: &[]*resource.Resource{
- &resource.Resource{
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- },
- },
- &resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "iops": 1234,
- "kms_key_id": "kms",
- "size": 8,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- },
- &resource.Resource{
- Id: "vol-018c5ae89895aca4c",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-018c5ae89895aca4c",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "size": 23,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "ebsVol",
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- &resource.Resource{
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- "root_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-02862d9b39045a3a4",
- "volume_type": "gp2",
- "device_name": "/dev/sda1",
- "encrypted": true,
- "kms_key_id": "kms",
- "volume_size": 8,
- "throughput": 125,
- "iops": 1234,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- },
- "ebs_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-018c5ae89895aca4c",
- "volume_type": "gp2",
- "device_name": "/dev/sdb",
- "encrypted": true,
- "delete_on_termination": true,
- "volume_size": 23,
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "ebsVol",
- },
- },
- },
- },
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- foo := resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "iops": 1234,
- "kms_key_id": "kms",
- "size": 8,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "rootVol",
- },
- },
- }
- factory.On("CreateAbstractResource", "aws_ebs_volume", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "vol-02862d9b39045a3a4" && len(input["tags"].(map[string]interface{})) == 1
- })).Times(1).Return(&foo, nil)
-
- bar := resource.Resource{
- Id: "vol-018c5ae89895aca4c",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-018c5ae89895aca4c",
- "encrypted": true,
- "multi_attach_enabled": false,
- "availability_zone": "eu-west-3",
- "size": 23,
- "type": "gp2",
- "throughput": 125,
- "tags": map[string]interface{}{
- "Name": "ebsVol",
- },
- },
- }
- factory.On("CreateAbstractResource", "aws_ebs_volume", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "vol-018c5ae89895aca4c" && len(input["tags"].(map[string]interface{})) == 1
- })).Times(1).Return(&bar, nil)
- },
- false,
- },
- {
- "Should not create ebs volume if there is already one (e.g. inline ebs_block_device)",
- struct {
- expectedResource *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }{
- expectedResource: &[]*resource.Resource{
- &resource.Resource{
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- },
- },
- &resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- &resource.Resource{
- Id: "vol-02862d9b39045a3a4",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "id": "vol-02862d9b39045a3a4",
- },
- },
- &resource.Resource{
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "availability_zone": "eu-west-3",
- "ebs_block_device": []interface{}{
- map[string]interface{}{
- "volume_id": "vol-02862d9b39045a3a4",
- },
- },
- },
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {},
- false,
- },
- }
- for _, c := range tests {
- t.Run(c.name, func(tt *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if c.mocks != nil {
- c.mocks(factory)
- }
-
- a := NewAwsInstanceBlockDeviceResourceMapper(factory)
- if err := a.Execute(&[]*resource.Resource{}, c.args.resourcesFromState); (err != nil) != c.wantErr {
- t.Errorf("Execute() error = %v, wantErr %v", err, c.wantErr)
- }
- changelog, err := diff.Diff(c.args.resourcesFromState, c.args.expectedResource)
- if err != nil {
- tt.Error(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_instance_eip.go b/pkg/middlewares/aws_instance_eip.go
deleted file mode 100644
index 5bfb9780c..000000000
--- a/pkg/middlewares/aws_instance_eip.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-type AwsInstanceEIP struct{}
-
-func (a AwsInstanceEIP) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than aws_instance
- if remoteResource.ResourceType() != aws.AwsInstanceResourceType {
- continue
- }
-
- if a.hasEIP(remoteResource, resourcesFromState) {
- logrus.WithFields(logrus.Fields{
- "instance": remoteResource.ResourceId(),
- }).Debug("Ignore instance public ip and dns as it has an eip attached")
- a.ignorePublicIpAndDns(remoteResource, remoteResources, resourcesFromState)
- }
- }
-
- return nil
-}
-
-func (a AwsInstanceEIP) hasEIP(instance *resource.Resource, resources *[]*resource.Resource) bool {
- for _, res := range *resources {
- if res.ResourceType() == aws.AwsEipResourceType {
- if (*res.Attrs)["instance"] == instance.ResourceId() {
- return true
- }
- }
- if res.ResourceType() == aws.AwsEipAssociationResourceType {
- if (*res.Attrs)["instance_id"] == instance.ResourceId() {
- return true
- }
- }
- }
-
- return false
-}
-
-func (a AwsInstanceEIP) ignorePublicIpAndDns(instance *resource.Resource, resourcesSet ...*[]*resource.Resource) {
- for _, resources := range resourcesSet {
- for _, res := range *resources {
- if res.ResourceType() == instance.ResourceType() &&
- res.ResourceId() == instance.ResourceId() {
- res.Attrs.SafeDelete([]string{"public_dns"})
- res.Attrs.SafeDelete([]string{"public_ip"})
- }
- }
- }
-}
diff --git a/pkg/middlewares/aws_instance_eip_test.go b/pkg/middlewares/aws_instance_eip_test.go
deleted file mode 100644
index 1dd8c086e..000000000
--- a/pkg/middlewares/aws_instance_eip_test.go
+++ /dev/null
@@ -1,171 +0,0 @@
-package middlewares
-
-import (
- "reflect"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsInstanceEIP_Execute(t *testing.T) {
- type args struct {
- remoteResources *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }
- tests := []struct {
- name string
- args args
- expected args
- }{
- {
- name: "test that public ip and dns are nilled with eip",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- {
- Id: "instance2",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "5.6.7.8",
- "public_dns": "example.com",
- },
- },
- {
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "instance": "instance1",
- },
- },
- },
- },
- expected: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{},
- },
- {
- Id: "instance2",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{},
- },
- {
- Type: aws.AwsEipResourceType,
- Attrs: &resource.Attributes{
- "instance": "instance1",
- },
- },
- },
- },
- },
- {
- name: "test that public ip and dns are nilled when eip association",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- {
- Id: "instance2",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "5.6.7.8",
- "public_dns": "example.com",
- },
- },
- {
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "instance_id": "instance1",
- },
- },
- },
- },
- expected: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{},
- },
- {
- Id: "instance2",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "public_ip": "1.2.3.4",
- "public_dns": "dns-of-eip.com",
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "instance1",
- Type: "aws_instance",
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "instance_id": "instance1",
- },
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- a := AwsInstanceEIP{}
- if err := a.Execute(tt.args.remoteResources, tt.args.resourcesFromState); err != nil {
- t.Fatal(err)
- }
- if !reflect.DeepEqual(tt.args, tt.expected) {
- t.Fatalf("Expected results mismatch")
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_nat_gateway_eip_assoc.go b/pkg/middlewares/aws_nat_gateway_eip_assoc.go
deleted file mode 100644
index 8c5b5907d..000000000
--- a/pkg/middlewares/aws_nat_gateway_eip_assoc.go
+++ /dev/null
@@ -1,79 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-type AwsNatGatewayEipAssoc struct{}
-
-func NewAwsNatGatewayEipAssoc() AwsNatGatewayEipAssoc {
- return AwsNatGatewayEipAssoc{}
-}
-
-// When creating a nat gateway, we associate an EIP to the gateway
-// It implies that driftctl read a aws_eip_association resource from remote
-// As we cannot use aws_eip_association in terraform to assign an eip to an aws_nat_gateway
-// we should remove this association to ensure we do not output noise in unmanaged resources
-func (a AwsNatGatewayEipAssoc) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0, len(*remoteResources))
- var newResources []*resource.Resource
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than aws_eip_association
- if remoteResource.ResourceType() != aws.AwsEipAssociationResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- if a.isAssociatedToNatGateway(remoteResource, remoteResources) {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring aws_eip_association from remote resource list as it is associated to a nat gateway")
- continue
- }
-
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- for _, stateResource := range *resourcesFromState {
- // Ignore all resources other than aws_eip_association
- if stateResource.ResourceType() != aws.AwsEipAssociationResourceType {
- newResources = append(newResources, stateResource)
- continue
- }
-
- if a.isAssociatedToNatGateway(stateResource, remoteResources) {
- logrus.WithFields(logrus.Fields{
- "id": stateResource.ResourceId(),
- "type": stateResource.ResourceType(),
- }).Debug("Ignoring aws_eip_association from state resource list as it is associated to a nat gateway")
- continue
- }
-
- newResources = append(newResources, stateResource)
- }
-
- *remoteResources = newRemoteResources
- *resourcesFromState = newResources
-
- return nil
-}
-
-func (a AwsNatGatewayEipAssoc) isAssociatedToNatGateway(cur *resource.Resource, resourceSet *[]*resource.Resource) bool {
- // Search for a nat gateway associated with our EIP
- for _, res := range *resourceSet {
- if res.ResourceType() == aws.AwsNatGatewayResourceType {
- allocationId, allocationIdExist := res.Attrs.Get("allocation_id")
- eipAssocAllocId, eipAssocAllocIdExist := cur.Attrs.Get("allocation_id")
- if allocationIdExist && eipAssocAllocIdExist &&
- allocationId == eipAssocAllocId {
- return true
- }
- }
- }
-
- return false
-}
diff --git a/pkg/middlewares/aws_nat_gateway_eip_assoc_test.go b/pkg/middlewares/aws_nat_gateway_eip_assoc_test.go
deleted file mode 100644
index 62e9682ab..000000000
--- a/pkg/middlewares/aws_nat_gateway_eip_assoc_test.go
+++ /dev/null
@@ -1,102 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestAwsNatGatewayEipAssoc_Execute(t *testing.T) {
- tests := []struct {
- name string
- input []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "test nil values do not crash middleware",
- input: []*resource.Resource{
- {
- Id: "nat-0a5408508b19ef490",
- Type: aws.AwsNatGatewayResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Type: aws.AwsEipAssociationResourceType,
- Id: "eipassoc-0d32af6acf31df913",
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "nat-0a5408508b19ef490",
- Type: aws.AwsNatGatewayResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Type: aws.AwsEipAssociationResourceType,
- Id: "eipassoc-0d32af6acf31df913",
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test eip assoc ignored when associated to a nat gateway",
- input: []*resource.Resource{
- {
- Type: aws.AwsNatGatewayResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "eipalloc-0f3e9fff457bb770b",
- },
- },
- {
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "eipalloc-0f3e9fff457bb770b",
- },
- },
- {
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "eipalloc-1234567890",
- },
- },
- },
- expected: []*resource.Resource{
- &resource.Resource{
- Type: aws.AwsNatGatewayResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "eipalloc-0f3e9fff457bb770b",
- },
- },
- &resource.Resource{
- Type: aws.AwsEipAssociationResourceType,
- Attrs: &resource.Attributes{
- "allocation_id": "eipalloc-1234567890",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- middleware := NewAwsNatGatewayEipAssoc()
- err := middleware.Execute(&tt.input, &[]*resource.Resource{})
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.input)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_network_acl_expander.go b/pkg/middlewares/aws_network_acl_expander.go
deleted file mode 100644
index 5a683903e..000000000
--- a/pkg/middlewares/aws_network_acl_expander.go
+++ /dev/null
@@ -1,110 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// This middelware goal is to explode aws_network_acl ingress and egress block into a set of aws_network_acl_rule
-type AwsNetworkACLExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsNetworkACLExpander(resourceFactory resource.ResourceFactory) AwsNetworkACLExpander {
- return AwsNetworkACLExpander{resourceFactory}
-}
-
-func (m AwsNetworkACLExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newResourcesFromState := make([]*resource.Resource, 0, len(*resourcesFromState))
-
- for _, stateResource := range *resourcesFromState {
- // Ignore all resources other than network acl
- if stateResource.ResourceType() != aws.AwsNetworkACLResourceType &&
- stateResource.ResourceType() != aws.AwsDefaultNetworkACLResourceType {
- newResourcesFromState = append(newResourcesFromState, stateResource)
- continue
- }
-
- newResourcesFromState = append(newResourcesFromState, m.expandBlock(
- resourcesFromState,
- stateResource.ResourceId(),
- false,
- stateResource.Attrs.GetSlice("ingress"),
- )...)
- stateResource.Attrs.SafeDelete([]string{"ingress"})
-
- newResourcesFromState = append(newResourcesFromState, m.expandBlock(
- resourcesFromState,
- stateResource.ResourceId(),
- true,
- stateResource.Attrs.GetSlice("egress"),
- )...)
- stateResource.Attrs.SafeDelete([]string{"egress"})
-
- newResourcesFromState = append(newResourcesFromState, stateResource)
- }
-
- // Then we need to remove ingress and egress block from remote resource too
- newRemoteResources := make([]*resource.Resource, 0, len(*remoteResources))
- for _, remoteResource := range *remoteResources {
- if remoteResource.ResourceType() != aws.AwsNetworkACLResourceType &&
- remoteResource.ResourceType() != aws.AwsDefaultNetworkACLResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- remoteResource.Attrs.SafeDelete([]string{"ingress"})
- remoteResource.Attrs.SafeDelete([]string{"egress"})
-
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- *resourcesFromState = newResourcesFromState
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func (e *AwsNetworkACLExpander) expandBlock(resourcesFromState *[]*resource.Resource, networkAclId string, egress bool, ruleBlock []interface{}) []*resource.Resource {
- results := make([]*resource.Resource, 0, len(ruleBlock))
-
- for _, rule := range ruleBlock {
- attrs := rule.(map[string]interface{})
-
- attrs["rule_number"] = int64(attrs["rule_no"].(float64))
- delete(attrs, "rule_no")
-
- attrs["egress"] = egress
-
- attrs["network_acl_id"] = networkAclId
-
- attrs["rule_action"] = attrs["action"]
- delete(attrs, "action")
-
- res := e.resourceFactory.CreateAbstractResource(
- aws.AwsNetworkACLRuleResourceType,
- aws.CreateNetworkACLRuleID(
- networkAclId,
- attrs["rule_number"].(int64),
- egress,
- attrs["protocol"].(string),
- ),
- attrs,
- )
-
- existInState := false
- for _, stateRes := range *resourcesFromState {
- if stateRes.Equal(res) {
- existInState = true
- break
- }
- }
-
- if !existInState {
- results = append(results, res)
- }
- }
-
- return results
-}
diff --git a/pkg/middlewares/aws_network_acl_expander_test.go b/pkg/middlewares/aws_network_acl_expander_test.go
deleted file mode 100644
index 83ff247dc..000000000
--- a/pkg/middlewares/aws_network_acl_expander_test.go
+++ /dev/null
@@ -1,322 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/aws"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestAwsNetworkACLExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- mock func(factory *dctlresource.MockResourceFactory)
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expectedFromState, expectedFromRemote []*resource.Resource
- }{
- {
- name: "test nothing is expanded",
- remoteResources: []*resource.Resource{
- {
- Id: "fake",
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "non-ingress-and-egress",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedFromState: []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "non-ingress-and-egress",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedFromRemote: []*resource.Resource{
- {
- Id: "fake",
- },
- },
- },
- {
- name: "network ACL rule are expanded",
- remoteResources: []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "ingress-and-egress-should-be-removed-from-remote-res",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{
- "ingress": "something",
- "egress": "something",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsNetworkACLRuleResourceType,
- aws.CreateNetworkACLRuleID(
- "acl",
- 100,
- false,
- "17",
- ),
- map[string]interface{}{
- "network_acl_id": "acl",
- "egress": false,
- "rule_action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "17",
- "rule_number": int64(100),
- "to_port": 80,
- },
- ).Once().Return(&resource.Resource{
- Id: "acl-rule1",
- Type: aws.AwsNetworkACLRuleResourceType,
- })
-
- factory.On(
- "CreateAbstractResource",
- aws.AwsNetworkACLRuleResourceType,
- aws.CreateNetworkACLRuleID(
- "acl",
- 101,
- true,
- "6",
- ),
- map[string]interface{}{
- "network_acl_id": "acl",
- "egress": true,
- "rule_action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "6",
- "rule_number": int64(101),
- "to_port": 80,
- },
- ).Once().Return(&resource.Resource{
- Id: "acl-rule2",
- Type: aws.AwsNetworkACLRuleResourceType,
- })
-
- factory.On(
- "CreateAbstractResource",
- aws.AwsNetworkACLRuleResourceType,
- aws.CreateNetworkACLRuleID(
- "acl",
- 103,
- true,
- "6",
- ),
- map[string]interface{}{
- "network_acl_id": "acl",
- "egress": true,
- "rule_action": "deny",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "6",
- "rule_number": int64(103),
- "to_port": 80,
- },
- ).Once().Return(&resource.Resource{
- Id: "acl-rule3",
- Type: aws.AwsNetworkACLRuleResourceType,
- })
-
- factory.On(
- "CreateAbstractResource",
- aws.AwsNetworkACLRuleResourceType,
- aws.CreateNetworkACLRuleID(
- "default-acl",
- 100,
- false,
- "17",
- ),
- map[string]interface{}{
- "network_acl_id": "default-acl",
- "egress": false,
- "rule_action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "17",
- "rule_number": int64(100),
- "to_port": 80,
- },
- ).Once().Return(&resource.Resource{
- Id: "default-acl-rule1",
- Type: aws.AwsNetworkACLRuleResourceType,
- })
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "acl",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{
- "ingress": []interface{}{
- map[string]interface{}{
- "action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "17",
- "rule_no": 100.0,
- "to_port": 80,
- },
- },
- "egress": []interface{}{
- map[string]interface{}{
- "action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "6",
- "rule_no": 101.0,
- "to_port": 80,
- },
- // This one exist in state, test that we do not duplicate it
- // We map this expand to rule3 ID
- map[string]interface{}{
- "action": "deny",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "6",
- "rule_no": 103.0,
- "to_port": 80,
- },
- },
- },
- },
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- Attrs: &resource.Attributes{
- "ingress": []interface{}{
- map[string]interface{}{
- "action": "allow",
- "cidr_block": "172.31.0.0/16",
- "from_port": 80,
- "icmp_code": 0,
- "icmp_type": 0,
- "ipv6_cidr_block": "",
- "protocol": "17",
- "rule_no": 100.0,
- "to_port": 80,
- },
- },
- },
- },
- {
- Id: "acl-rule3",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- },
- expectedFromRemote: []*resource.Resource{
- {
- Id: "fake",
- },
- {
- Id: "ingress-and-egress-should-be-removed-from-remote-res",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedFromState: []*resource.Resource{
- {
- Id: "acl",
- Type: aws.AwsNetworkACLResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "acl-rule1",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- {
- Id: "acl-rule2",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- {
- Id: "acl-rule3",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- {
- Id: "default-acl-rule1",
- Type: aws.AwsNetworkACLRuleResourceType,
- },
- {
- Id: "default-acl",
- Type: aws.AwsDefaultNetworkACLResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
- m := NewAwsNetworkACLExpander(factory)
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.expectedFromRemote, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("expectedFromRemote %s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- changelog, err = diff.Diff(tt.expectedFromState, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("expectedFromState %s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_rds_cluster_instance_expander.go b/pkg/middlewares/aws_rds_cluster_instance_expander.go
deleted file mode 100644
index fc3b45133..000000000
--- a/pkg/middlewares/aws_rds_cluster_instance_expander.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsRDSClusterInstanceExpander search for cluster instances from state to import corresponding remote db instances.
-// RDS cluster instance does not represent an actual AWS resource, so shouldn't be used for comparison.
-type AwsRDSClusterInstanceExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewRDSClusterInstanceExpander(resourceFactory resource.ResourceFactory) AwsRDSClusterInstanceExpander {
- return AwsRDSClusterInstanceExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AwsRDSClusterInstanceExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newResourcesFromState := make([]*resource.Resource, 0)
-
- dbInstances := make([]*resource.Resource, 0)
- for _, remoteRes := range *remoteResources {
- if remoteRes.ResourceType() != aws.AwsDbInstanceResourceType {
- continue
- }
- dbInstances = append(dbInstances, remoteRes)
- }
-
- for _, stateRes := range *resourcesFromState {
- // Ignore all resources other than rds_cluster_instance
- if stateRes.ResourceType() != aws.AwsRDSClusterInstanceResourceType {
- newResourcesFromState = append(newResourcesFromState, stateRes)
- continue
- }
-
- var found bool
- for _, remoteRes := range dbInstances {
- // If the db instance's id matches the rds cluster instance's id, import it in the state
- if remoteRes.ResourceId() == stateRes.ResourceId() {
- found = true
- newDbInstance := m.resourceFactory.CreateAbstractResource(aws.AwsDbInstanceResourceType, remoteRes.ResourceId(), *remoteRes.Attributes())
- newResourcesFromState = append(newResourcesFromState, newDbInstance)
- logrus.WithFields(logrus.Fields{
- "id": newDbInstance.ResourceId(),
- }).Debug("Created new db instance from RDS cluster instance")
- break
- }
- }
-
- // If we don't manage to find a db instance corresponding to this RDS cluster instance, simply add it back to the state.
- if !found {
- newResourcesFromState = append(newResourcesFromState, stateRes)
- }
- }
- *resourcesFromState = newResourcesFromState
- return nil
-}
diff --git a/pkg/middlewares/aws_rds_cluster_instance_expander_test.go b/pkg/middlewares/aws_rds_cluster_instance_expander_test.go
deleted file mode 100644
index 8b215675f..000000000
--- a/pkg/middlewares/aws_rds_cluster_instance_expander_test.go
+++ /dev/null
@@ -1,248 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/stretchr/testify/assert"
-)
-
-func TestAwsRDSClusterInstanceExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- stateResources []*resource.Resource
- expectedRemoteResources []*resource.Resource
- expectedStateResources []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "should not map any rds cluster instance into db instances",
- remoteResources: []*resource.Resource{
- {
- Id: "db-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "db-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- stateResources: []*resource.Resource{},
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "db-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "db-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedStateResources: []*resource.Resource{},
- },
- {
- name: "should import db instances in state",
- remoteResources: []*resource.Resource{
- {
- Id: "bucket89713",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- },
- stateResources: []*resource.Resource{
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsRDSClusterInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsRDSClusterInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket89713",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{
- "field": "test",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsDbInstanceResourceType, "aurora-cluster-demo-0", map[string]interface{}{"field": "test"}).
- Return(&resource.Resource{
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{"field": "test"},
- }).
- Once()
-
- factory.On("CreateAbstractResource", aws.AwsDbInstanceResourceType, "aurora-cluster-demo-1", map[string]interface{}{"field": "test"}).
- Return(&resource.Resource{
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{"field": "test"},
- }).
- Once()
- },
- },
- {
- name: "should find only one db instances in remote",
- remoteResources: []*resource.Resource{
- {
- Id: "bucket89713",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- stateResources: []*resource.Resource{
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsRDSClusterInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsRDSClusterInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedRemoteResources: []*resource.Resource{
- {
- Id: "bucket89713",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expectedStateResources: []*resource.Resource{
- {
- Id: "bucket01",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "aurora-cluster-demo-1",
- Type: aws.AwsRDSClusterInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", aws.AwsDbInstanceResourceType, "aurora-cluster-demo-0", map[string]interface{}{}).
- Return(&resource.Resource{
- Id: "aurora-cluster-demo-0",
- Type: aws.AwsDbInstanceResourceType,
- Attrs: &resource.Attributes{},
- }).
- Once()
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewRDSClusterInstanceExpander(factory)
- err := m.Execute(&tt.remoteResources, &tt.stateResources)
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, tt.expectedRemoteResources, tt.remoteResources, "Unexpected remote resources")
- assert.Equal(t, tt.expectedStateResources, tt.stateResources, "Unexpected state resources")
- })
- }
-}
diff --git a/pkg/middlewares/aws_role_managed_policy_expander.go b/pkg/middlewares/aws_role_managed_policy_expander.go
deleted file mode 100644
index 195b893ff..000000000
--- a/pkg/middlewares/aws_role_managed_policy_expander.go
+++ /dev/null
@@ -1,100 +0,0 @@
-package middlewares
-
-import (
- "fmt"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// The role of this middleware is to expand policy contained in `managed_policy_arns` to dedicated `aws_iam_policy_attachment`
-// resources. Note that we do not use `aws_iam_role_policy_attachment` or `aws_iam_user_policy_attachment`
-// Once theses resources created, we remove the old `managed_policy_arns` field to avoid false positive drifts
-
-type AwsRoleManagedPolicyExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsRoleManagedPolicyExpander(resourceFactory resource.ResourceFactory) *AwsRoleManagedPolicyExpander {
- return &AwsRoleManagedPolicyExpander{resourceFactory: resourceFactory}
-}
-
-func (a AwsRoleManagedPolicyExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newList := make([]*resource.Resource, 0)
- for _, res := range *remoteResources {
- // Ignore all resources other than iam_role
- if res.ResourceType() != aws.AwsIamRoleResourceType {
- newList = append(newList, res)
- continue
- }
-
- res.Attributes().SafeDelete([]string{"managed_policy_arns"})
- newList = append(newList, res)
- }
- *remoteResources = newList
-
- newList = make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than iam_role
- if res.ResourceType() != aws.AwsIamRoleResourceType {
- newList = append(newList, res)
- continue
- }
- managedPolicyArns := res.Attributes().GetSlice("managed_policy_arns")
-
- // if managed_policy_arns does not exist or is empty ignore resource
- if managedPolicyArns == nil {
- newList = append(newList, res)
- continue
- }
-
- // Remove empty slices to match remote read results
- if len(managedPolicyArns) == 0 {
- res.Attributes().SafeDelete([]string{"managed_policy_arns"})
- newList = append(newList, res)
- continue
- }
-
- roleName := res.Attributes().GetString("name")
-
- for _, arn := range managedPolicyArns {
- arn := arn.(string)
- id := fmt.Sprintf("%s-%s", *roleName, arn)
-
- policyAttachmentData := resource.Attributes{
- "policy_arn": arn,
- "users": []interface{}{},
- "groups": []interface{}{},
- "roles": []interface{}{*roleName},
- }
-
- logrus.WithFields(logrus.Fields{
- "role": *roleName,
- "policy_arn": arn,
- }).Debug("Expanded managed_policy_arns from role")
-
- newRes := a.resourceFactory.CreateAbstractResource(aws.AwsIamPolicyAttachmentResourceType, id, policyAttachmentData)
-
- alreadyExist := false
- for _, resInState := range *resourcesFromState {
- if resInState.Equal(newRes) {
- alreadyExist = true
- break
- }
- }
-
- if !alreadyExist {
- newList = append(newList, newRes)
- }
- }
-
- res.Attributes().SafeDelete([]string{"managed_policy_arns"})
-
- newList = append(newList, res)
-
- }
- *resourcesFromState = newList
- return nil
-}
diff --git a/pkg/middlewares/aws_route_table_expander.go b/pkg/middlewares/aws_route_table_expander.go
deleted file mode 100644
index 45ad1a0a2..000000000
--- a/pkg/middlewares/aws_route_table_expander.go
+++ /dev/null
@@ -1,180 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/alerter"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes routes found in aws_default_route_table.route and aws_route_table.route to dedicated resources
-type AwsRouteTableExpander struct {
- alerter alerter.AlerterInterface
- resourceFactory resource.ResourceFactory
-}
-
-func NewAwsRouteTableExpander(alerter alerter.AlerterInterface, resourceFactory resource.ResourceFactory) AwsRouteTableExpander {
- return AwsRouteTableExpander{
- alerter,
- resourceFactory,
- }
-}
-
-func (m AwsRouteTableExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newList := make([]*resource.Resource, 0, len(*resourcesFromState))
- for _, res := range *resourcesFromState {
-
- // Ignore all resources other than (default) routes tables
- if res.ResourceType() != aws.AwsRouteTableResourceType &&
- res.ResourceType() != aws.AwsDefaultRouteTableResourceType {
- newList = append(newList, res)
- continue
- }
-
- newList = append(newList, res)
-
- var err error
- if res.ResourceType() == aws.AwsDefaultRouteTableResourceType {
- err = m.handleDefaultTable(res, &newList, *resourcesFromState)
- } else {
- err = m.handleTable(res, &newList, *resourcesFromState)
- }
-
- if err != nil {
- return err
- }
- }
-
- newRemoteResources := make([]*resource.Resource, 0)
- for _, remoteRes := range *remoteResources {
- if remoteRes.ResourceType() != aws.AwsRouteTableResourceType &&
- remoteRes.ResourceType() != aws.AwsDefaultRouteTableResourceType {
- newRemoteResources = append(newRemoteResources, remoteRes)
- continue
- }
- remoteRes.Attrs.SafeDelete([]string{"route"})
- newRemoteResources = append(newRemoteResources, remoteRes)
- }
-
- *resourcesFromState = newList
- *remoteResources = newRemoteResources
- return nil
-}
-
-func (m *AwsRouteTableExpander) handleTable(table *resource.Resource, results *[]*resource.Resource, resourcesFromState []*resource.Resource) error {
- routes, exist := table.Attrs.Get("route")
- if !exist || routes == nil {
- return nil
- }
- for _, route := range routes.([]interface{}) {
- route := route.(map[string]interface{})
- cidrBlock := ""
- if route["cidr_block"] != nil {
- cidrBlock = route["cidr_block"].(string)
- }
- ipv6CidrBlock := ""
- if route["ipv6_cidr_block"] != nil {
- ipv6CidrBlock = route["ipv6_cidr_block"].(string)
- }
- prefixListId := ""
- if route["destination_prefix_list_id"] != nil {
- prefixListId = route["destination_prefix_list_id"].(string)
- }
- routeId := aws.CalculateRouteID(&table.Id, &cidrBlock, &ipv6CidrBlock, &prefixListId)
-
- data := map[string]interface{}{
- "destination_cidr_block": route["cidr_block"],
- "destination_ipv6_cidr_block": route["ipv6_cidr_block"],
- "destination_prefix_list_id": route["destination_prefix_list_id"],
- "egress_only_gateway_id": route["egress_only_gateway_id"],
- "gateway_id": route["gateway_id"],
- "id": routeId,
- "instance_id": route["instance_id"],
- "instance_owner_id": "",
- "local_gateway_id": route["local_gateway_id"],
- "nat_gateway_id": route["nat_gateway_id"],
- "network_interface_id": route["network_interface_id"],
- "origin": "CreateRoute",
- "route_table_id": table.Id,
- "state": "active",
- "transit_gateway_id": route["transit_gateway_id"],
- "vpc_endpoint_id": route["vpc_endpoint_id"],
- "vpc_peering_connection_id": route["vpc_peering_connection_id"],
- }
- // Don't expand if the route already exists as a dedicated resource
- if m.routeExists(routeId, resourcesFromState) {
- continue
- }
- newRes := m.resourceFactory.CreateAbstractResource(aws.AwsRouteResourceType, routeId, data)
- *results = append(*results, newRes)
- logrus.WithFields(logrus.Fields{
- "route": routeId,
- }).Debug("Created new route from route table")
- }
- table.Attrs.SafeDelete([]string{"route"})
- return nil
-}
-
-func (m *AwsRouteTableExpander) handleDefaultTable(table *resource.Resource, results *[]*resource.Resource, resourcesFromState []*resource.Resource) error {
- routes, exist := table.Attrs.Get("route")
- if !exist || routes == nil {
- return nil
- }
- for _, route := range routes.([]interface{}) {
- route := route.(map[string]interface{})
- cidrBlock := ""
- if route["cidr_block"] != nil {
- cidrBlock = route["cidr_block"].(string)
- }
- ipv6CidrBlock := ""
- if route["ipv6_cidr_block"] != nil {
- ipv6CidrBlock = route["ipv6_cidr_block"].(string)
- }
- prefixListId := ""
- if route["destination_prefix_list_id"] != nil {
- prefixListId = route["destination_prefix_list_id"].(string)
- }
- routeId := aws.CalculateRouteID(&table.Id, &cidrBlock, &ipv6CidrBlock, &prefixListId)
-
- data := map[string]interface{}{
- "destination_cidr_block": route["cidr_block"],
- "destination_ipv6_cidr_block": route["ipv6_cidr_block"],
- "destination_prefix_list_id": route["destination_prefix_list_id"],
- "egress_only_gateway_id": route["egress_only_gateway_id"],
- "gateway_id": route["gateway_id"],
- "id": routeId,
- "instance_id": route["instance_id"],
- "nat_gateway_id": route["nat_gateway_id"],
- "network_interface_id": route["network_interface_id"],
- "origin": "CreateRoute",
- "route_table_id": table.Id,
- "state": "active",
- "transit_gateway_id": route["transit_gateway_id"],
- "vpc_endpoint_id": route["vpc_endpoint_id"],
- "vpc_peering_connection_id": route["vpc_peering_connection_id"],
- }
- // Don't expand if the route already exists as a dedicated resource
- if m.routeExists(routeId, resourcesFromState) {
- continue
- }
- newRes := m.resourceFactory.CreateAbstractResource(aws.AwsRouteResourceType, routeId, data)
- *results = append(*results, newRes)
- logrus.WithFields(logrus.Fields{
- "route": routeId,
- }).Debug("Created new route from default route table")
- }
- table.Attrs.SafeDelete([]string{"route"})
- return nil
-}
-
-func (m *AwsRouteTableExpander) routeExists(routeId string, resourcesFromState []*resource.Resource) bool {
- for _, res := range resourcesFromState {
- if res.ResourceType() == aws.AwsRouteResourceType && res.ResourceId() == routeId {
- return true
- }
- }
-
- return false
-}
diff --git a/pkg/middlewares/aws_route_table_expander_test.go b/pkg/middlewares/aws_route_table_expander_test.go
deleted file mode 100644
index a4be48ad7..000000000
--- a/pkg/middlewares/aws_route_table_expander_test.go
+++ /dev/null
@@ -1,497 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/mocks"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAwsRouteTableExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- input []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "test with nil route attributes",
- input: []*resource.Resource{
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": nil,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": nil,
- },
- },
- },
- },
- {
- name: "test with empty route attributes",
- input: []*resource.Resource{
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{},
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test route are expanded",
- input: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "0.0.0.0/0",
- "ipv6_cidr_block": "",
- "vpc_endpoint_id": "",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "",
- "ipv6_cidr_block": "::/0",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "destination_prefix_list_id": "pl-63a5400a",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "r-table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "r-table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "r-table_from_state3813769586",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "pl-63a5400a",
- "instance_owner_id": "",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-table_from_state1080289494"
- })).Times(1).Return(&resource.Resource{
- Id: "r-table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-table_from_state2750132062"
- })).Times(1).Return(&resource.Resource{
- Id: "r-table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-table_from_state3813769586"
- })).Times(1).Return(&resource.Resource{
- Id: "r-table_from_state3813769586",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "pl-63a5400a",
- "instance_owner_id": "",
- },
- }, nil)
- },
- },
- {
- name: "test route are expanded on default route tables",
- input: []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "default_route_table_from_state",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "0.0.0.0/0",
- "ipv6_cidr_block": "",
- "vpc_endpoint_id": "",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "",
- "ipv6_cidr_block": "::/0",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "default_route_table_from_state",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "r-default_route_table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "r-default_route_table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-default_route_table_from_state1080289494"
- })).Times(1).Return(&resource.Resource{
- Id: "r-default_route_table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-default_route_table_from_state2750132062"
- })).Times(1).Return(&resource.Resource{
- Id: "r-default_route_table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- },
- },
- {
- "test routes are expanded from default route tables except when they already exist",
- []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "r-default_route_table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "default_route_table_from_state",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "0.0.0.0/0",
- "ipv6_cidr_block": "",
- "vpc_endpoint_id": "",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "",
- "ipv6_cidr_block": "::/0",
- },
- },
- },
- },
- },
- []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "default_route_table_from_state",
- Type: aws.AwsDefaultRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "r-default_route_table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "r-default_route_table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-default_route_table_from_state1080289494"
- })).Times(1).Return(&resource.Resource{
- Id: "r-default_route_table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "default_route_table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- },
- },
- {
- "test routes are expanded except when they already exist",
- []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "r-table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "0.0.0.0/0",
- "ipv6_cidr_block": "",
- "vpc_endpoint_id": "",
- },
- map[string]interface{}{
- "gateway_id": "igw-07b7844a8fd17a638",
- "cidr_block": "",
- "ipv6_cidr_block": "::/0",
- },
- },
- },
- },
- },
- []*resource.Resource{
- &resource.Resource{
- Id: "fake_resource",
- },
- &resource.Resource{
- Id: "table_from_state",
- Type: aws.AwsRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- &resource.Resource{
- Id: "r-table_from_state1080289494",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_cidr_block": "0.0.0.0/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- &resource.Resource{
- Id: "r-table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_route", mock.Anything, mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "r-table_from_state2750132062"
- })).Times(1).Return(&resource.Resource{
- Id: "r-table_from_state2750132062",
- Type: aws.AwsRouteResourceType,
- Attrs: &resource.Attributes{
- "route_table_id": "table_from_state",
- "origin": "CreateRoute",
- "destination_ipv6_cidr_block": "::/0",
- "gateway_id": "igw-07b7844a8fd17a638",
- "state": "active",
- "destination_prefix_list_id": "",
- "instance_owner_id": "",
- },
- }, nil)
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- mockedAlerter := &mocks.AlerterInterface{}
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewAwsRouteTableExpander(mockedAlerter, factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.input)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.expected, tt.input)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- })
- }
-}
diff --git a/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier.go b/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier.go
deleted file mode 100644
index f4d9c4036..000000000
--- a/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package middlewares
-
-import (
- awssdk "github.com/aws/aws-sdk-go/aws"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// AwsS3BucketPublicAccessBlockReconciler middleware ignores every s3 bucket public block that is set to the default values (every option set to false)
-// This is used to avoid displaying false positive unmanaged resources.
-// The problem here is that the aws SDK can either return an error `NoSuchPublicAccessBlockConfiguration` while
-// retrieving bucket public block, or a response with all fields set to false (the default)
-//
-// To reproduce this edgy case you can do that:
-// - Disable this middleware
-// - Go to the folder of the test `TestAcc_Aws_S3Bucket_PublicAccessBlock` : `testdata/acc/aws_s3_bucket_public_access_block`
-// - Apply tf code
-// - Run a scan with the driftignore from the test folder (ignore everything but bucket and public access block)
-// - Infra should be in sync (be sure that you have no dangling bucket in your aws test env)
-//
-// - Create a new unmanaged bucket from the console, with every option from the policy block set to false
-// - Run the scan again
-// - One resource should be unmanaged: the bucket (expected behavior)
-//
-// - Go to the console and update public access block for that bucket
-// - Run the scan again
-// - We should now have a new public access block resource unmanaged (expected)
-//
-// - Now uncheck back all things in the public block you just updated
-// - Run the scan again
-// - We still have the public block as unmanaged, this is NOT expected since all values are back to default
-//
-// This simple middleware is handling that edge case by removing resource that have every attribute set to false from remote.
-// We do not remove it when a resource is found in IaC
-type AwsS3BucketPublicAccessBlockReconciler struct{}
-
-func NewAwsS3BucketPublicAccessBlockReconciler() *AwsS3BucketPublicAccessBlockReconciler {
- return &AwsS3BucketPublicAccessBlockReconciler{}
-}
-
-func (r AwsS3BucketPublicAccessBlockReconciler) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
- for _, res := range *remoteResources {
-
- // Skip every resource that is not a bucket public access block
- if res.ResourceType() != aws.AwsS3BucketPublicAccessBlockResourceType {
- newRemoteResources = append(newRemoteResources, res)
- continue
- }
-
- isDefinedInIac := false
- for _, iacRes := range *resourcesFromState {
- if res.Equal(iacRes) {
- isDefinedInIac = true
- break
- }
- }
-
- // Ignore unmanaged default public access blocks
- if r.isDefaultPublicAccessBlock(res) && !isDefinedInIac {
- logrus.WithField("id", res.ResourceId()).Debug("Ignored default aws_s3_bucket_public_access_block from remote")
- continue
- }
-
- newRemoteResources = append(newRemoteResources, res)
- }
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func (r AwsS3BucketPublicAccessBlockReconciler) isDefaultPublicAccessBlock(res *resource.Resource) bool {
- if !awssdk.BoolValue(res.Attributes().GetBool("block_public_acls")) &&
- !awssdk.BoolValue(res.Attributes().GetBool("block_public_policy")) &&
- !awssdk.BoolValue(res.Attributes().GetBool("ignore_public_acls")) &&
- !awssdk.BoolValue(res.Attributes().GetBool("restrict_public_buckets")) {
- return true
- }
-
- return false
-}
diff --git a/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier_test.go b/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier_test.go
deleted file mode 100644
index a349da024..000000000
--- a/pkg/middlewares/aws_s3_bucket_public_access_block_reconcilier_test.go
+++ /dev/null
@@ -1,158 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/stretchr/testify/assert"
-)
-
-func TestAwsS3BucketPublicAccessBlockReconciler(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- wantErr assert.ErrorAssertionFunc
- }{
- {
- name: "ensure we ignore resources that are not of the good type",
- remoteResources: []*resource.Resource{
- {
- Id: "should_not_be_skipped_because_wrong_type",
- Type: "wrong_type",
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "should_not_be_skipped_because_wrong_type",
- Type: "wrong_type",
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "should_not_be_skipped_because_wrong_type",
- Type: "wrong_type",
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- wantErr: nil,
- },
- {
- name: "ensure we do not skip non default ones",
- remoteResources: []*resource.Resource{
- {
- Id: "should_be_present_because_non_default",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": true,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "should_be_present_because_non_default",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": true,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "should_be_present_because_non_default",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": true,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- },
- wantErr: nil,
- },
- {
- name: "ensure default public access block are removed",
- remoteResources: []*resource.Resource{
- {
- Id: "should_be_skipped_because_default",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- "block_public_policy": false,
- "ignore_public_acls": false,
- "restrict_public_buckets": false,
- },
- },
- {
- Id: "should_be_skipped_because_nil_values",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- },
- },
- {
- Id: "should_not_be_skipped_because_exist_in_iac",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "should_not_be_skipped_because_exist_in_iac",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "should_not_be_skipped_because_exist_in_iac",
- Type: aws.AwsS3BucketPublicAccessBlockResourceType,
- Attrs: &resource.Attributes{
- "block_public_acls": false,
- },
- },
- },
- wantErr: nil,
- },
- }
-
- r := NewAwsS3BucketPublicAccessBlockReconciler()
-
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- _ = r.Execute(&tt.remoteResources, &tt.resourcesFromState)
- assert.Equal(t, tt.remoteResources, tt.expected)
- assert.Equal(t, tt.resourcesFromState, tt.expected)
- })
- }
-}
diff --git a/pkg/middlewares/aws_sns_topic_policy_expander.go b/pkg/middlewares/aws_sns_topic_policy_expander.go
deleted file mode 100644
index 7b4707c67..000000000
--- a/pkg/middlewares/aws_sns_topic_policy_expander.go
+++ /dev/null
@@ -1,93 +0,0 @@
-package middlewares
-
-import (
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes policy found in aws_sns_topic from state resources to aws_sns_topic_policy resources
-type AwsSNSTopicPolicyExpander struct {
- resourceFactory resource.ResourceFactory
- resourceSchemaRepository dctlresource.SchemaRepositoryInterface
-}
-
-func NewAwsSNSTopicPolicyExpander(resourceFactory resource.ResourceFactory, resourceSchemaRepository dctlresource.SchemaRepositoryInterface) AwsSNSTopicPolicyExpander {
- return AwsSNSTopicPolicyExpander{
- resourceFactory,
- resourceSchemaRepository,
- }
-}
-
-func (m AwsSNSTopicPolicyExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- for _, res := range *remoteResources {
- if res.ResourceType() != aws.AwsSnsTopicResourceType {
- continue
- }
- res.Attrs.SafeDelete([]string{"policy"})
- }
-
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than sns_topic
- if res.ResourceType() != aws.AwsSnsTopicResourceType {
- newList = append(newList, res)
- continue
- }
-
- newList = append(newList, res)
-
- if m.hasPolicyAttached(res, resourcesFromState) {
- res.Attrs.SafeDelete([]string{"policy"})
- continue
- }
-
- err := m.splitPolicy(res, &newList)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newList
- return nil
-}
-
-func (m *AwsSNSTopicPolicyExpander) splitPolicy(topic *resource.Resource, results *[]*resource.Resource) error {
- policy, exist := topic.Attrs.Get("policy")
- if !exist || policy == "" {
- return nil
- }
-
- arn, exist := topic.Attrs.Get("arn")
- if !exist || arn == "" {
- return errors.Errorf("No arn found for resource %s (%s)", topic.Id, topic.Type)
- }
-
- data := map[string]interface{}{
- "arn": arn,
- "id": topic.Id,
- "policy": policy,
- }
-
- newPolicy := m.resourceFactory.CreateAbstractResource("aws_sns_topic_policy", topic.Id, data)
-
- *results = append(*results, newPolicy)
- logrus.WithFields(logrus.Fields{
- "id": newPolicy.ResourceId(),
- }).Debug("Created new policy from sns_topic")
-
- topic.Attrs.SafeDelete([]string{"policy"})
- return nil
-}
-
-func (m *AwsSNSTopicPolicyExpander) hasPolicyAttached(topic *resource.Resource, resourcesFromState *[]*resource.Resource) bool {
- for _, res := range *resourcesFromState {
- if res.ResourceType() == aws.AwsSnsTopicPolicyResourceType &&
- res.ResourceId() == topic.Id {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_sns_topic_policy_expander_test.go b/pkg/middlewares/aws_sns_topic_policy_expander_test.go
deleted file mode 100644
index 31223be69..000000000
--- a/pkg/middlewares/aws_sns_topic_policy_expander_test.go
+++ /dev/null
@@ -1,251 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- awsresource "github.com/snyk/driftctl/pkg/resource/aws"
- testresource "github.com/snyk/driftctl/test/resource"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAwsSNSTopicPolicyExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState *[]*resource.Resource
- expected *[]*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- wantErr bool
- }{
- {
- name: "Inline policy no attached policy",
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- expected: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", awsresource.AwsSnsTopicPolicyResourceType, "ID", map[string]interface{}{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- }).Once().Return(&resource.Resource{
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- }, nil)
- },
- wantErr: false,
- },
- {
- name: "No inline policy, attached policy",
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- expected: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- wantErr: false,
- },
- {
- name: "inline policy and dup attached policy",
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- expected: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- },
- wantErr: false,
- },
- {
- name: "inline policy and attached policy",
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- {
- Id: "ID2",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn2",
- "id": "ID2",
- "policy": "{\"policy\":\"coucou2\"}",
- },
- },
- },
- expected: &[]*resource.Resource{
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- },
- },
- {
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- },
- {
- Id: "ID2",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn2",
- "id": "ID2",
- "policy": "{\"policy\":\"coucou2\"}",
- },
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", awsresource.AwsSnsTopicPolicyResourceType, "ID", mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "ID"
- })).Once().Return(&resource.Resource{
- Id: "ID",
- Type: awsresource.AwsSnsTopicPolicyResourceType,
- Attrs: &resource.Attributes{
- "arn": "arn",
- "id": "ID",
- "policy": "{\"policy\":\"coucou\"}",
- },
- }, nil)
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- repo := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- awsresource.InitResourcesMetadata(repo)
-
- m := NewAwsSNSTopicPolicyExpander(factory, repo)
- if err := m.Execute(&[]*resource.Resource{}, tt.resourcesFromState); (err != nil) != tt.wantErr {
- t.Errorf("Execute() error = %v, wantErr %v", err, tt.wantErr)
- }
-
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/aws_sqs_queue_policy_expander.go b/pkg/middlewares/aws_sqs_queue_policy_expander.go
deleted file mode 100644
index 9bd2100cc..000000000
--- a/pkg/middlewares/aws_sqs_queue_policy_expander.go
+++ /dev/null
@@ -1,95 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Explodes policy found in aws_sqs_queue.policy from state resources to dedicated resources
-type AwsSQSQueuePolicyExpander struct {
- resourceFactory resource.ResourceFactory
- resourceSchemaRepository dctlresource.SchemaRepositoryInterface
-}
-
-func NewAwsSQSQueuePolicyExpander(resourceFactory resource.ResourceFactory, resourceSchemaRepository dctlresource.SchemaRepositoryInterface) AwsSQSQueuePolicyExpander {
- return AwsSQSQueuePolicyExpander{
- resourceFactory,
- resourceSchemaRepository,
- }
-}
-
-func (m AwsSQSQueuePolicyExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- for _, res := range *remoteResources {
- if res.ResourceType() != aws.AwsSqsQueueResourceType {
- continue
- }
- res.Attrs.SafeDelete([]string{"policy"})
- }
-
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- // Ignore all resources other than sqs_queue
- if res.ResourceType() != aws.AwsSqsQueueResourceType {
- newList = append(newList, res)
- continue
- }
-
- newList = append(newList, res)
-
- policy, exist := res.Attrs.Get("policy")
- if !exist || policy == nil {
- continue
- }
-
- if m.hasPolicyAttached(res, resourcesFromState) {
- res.Attrs.SafeDelete([]string{"policy"})
- continue
- }
-
- err := m.handlePolicy(res, &newList)
- if err != nil {
- return err
- }
- }
- *resourcesFromState = newList
- return nil
-}
-
-func (m *AwsSQSQueuePolicyExpander) handlePolicy(queue *resource.Resource, results *[]*resource.Resource) error {
- policy, exists := queue.Attrs.Get("policy")
- if !exists || policy.(string) == "" {
- queue.Attrs.SafeDelete([]string{"policy"})
- return nil
- }
-
- data := map[string]interface{}{
- "queue_url": queue.Id,
- "id": queue.Id,
- "policy": policy,
- }
-
- newPolicy := m.resourceFactory.CreateAbstractResource("aws_sqs_queue_policy", queue.Id, data)
- *results = append(*results, newPolicy)
- logrus.WithFields(logrus.Fields{
- "id": newPolicy.ResourceId(),
- }).Debug("Created new policy from sqs queue")
-
- queue.Attrs.SafeDelete([]string{"policy"})
- return nil
-}
-
-// Return true if the sqs queue has a aws_sqs_queue_policy resource attached to itself.
-// It is mandatory since it's possible to have a aws_sqs_queue with an inline policy
-// AND a aws_sqs_queue_policy resource at the same time. At the end, on the AWS console,
-// the aws_sqs_queue_policy will be used.
-func (m *AwsSQSQueuePolicyExpander) hasPolicyAttached(queue *resource.Resource, resourcesFromState *[]*resource.Resource) bool {
- for _, res := range *resourcesFromState {
- if res.ResourceType() == aws.AwsSqsQueuePolicyResourceType &&
- res.ResourceId() == queue.Id {
- return true
- }
- }
- return false
-}
diff --git a/pkg/middlewares/aws_sqs_queue_policy_expander_test.go b/pkg/middlewares/aws_sqs_queue_policy_expander_test.go
deleted file mode 100644
index a51b3b7e2..000000000
--- a/pkg/middlewares/aws_sqs_queue_policy_expander_test.go
+++ /dev/null
@@ -1,241 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- testresource "github.com/snyk/driftctl/test/resource"
- "github.com/stretchr/testify/mock"
-)
-
-func TestAwsSQSQueuePolicyExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- mocks func(factory *dctlresource.MockResourceFactory)
- }{
- {
- "Inline policy, no aws_sqs_queue_policy attached",
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "foo",
- "id": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_sqs_queue_policy", "foo", map[string]interface{}{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- }).Once().Return(&resource.Resource{
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "queue_url": "foo",
- "id": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- }, nil)
-
- },
- },
- {
- "No inline policy, aws_sqs_queue_policy attached",
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {},
- },
- {
- "Inline policy duplicate aws_sqs_queue_policy",
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {},
- },
- {
- "Inline policy and aws_sqs_queue_policy",
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "bar",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "foo",
- Type: aws.AwsSqsQueueResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- },
- },
- {
- Id: "bar",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "bar",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYSQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- {
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", "aws_sqs_queue_policy", "foo", mock.MatchedBy(func(input map[string]interface{}) bool {
- return input["id"] == "foo"
- })).Once().Return(&resource.Resource{
- Id: "foo",
- Type: aws.AwsSqsQueuePolicyResourceType,
- Attrs: &resource.Attributes{
- "id": "foo",
- "queue_url": "foo",
- "policy": "{\"Id\":\"MYINLINESQSPOLICY\",\"Statement\":[{\"Action\":\"sqs:SendMessage\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:sqs:eu-west-3:047081014315:foo\",\"Sid\":\"Stmt1611769527792\"}],\"Version\":\"2012-10-17\"}",
- },
- }, nil)
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- repo := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- aws.InitResourcesMetadata(repo)
-
- m := NewAwsSQSQueuePolicyExpander(factory, repo)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/azurerm_route_expander.go b/pkg/middlewares/azurerm_route_expander.go
deleted file mode 100644
index c402e4978..000000000
--- a/pkg/middlewares/azurerm_route_expander.go
+++ /dev/null
@@ -1,66 +0,0 @@
-package middlewares
-
-import (
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-// Explodes routes found in azurerm_route_table.route from state resources to dedicated resources
-type AzurermRouteExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAzurermRouteExpander(resourceFactory resource.ResourceFactory) AzurermRouteExpander {
- return AzurermRouteExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AzurermRouteExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
-
- newList = append(newList, res)
-
- // Ignore all resources other than route tables
- if res.ResourceType() != azurerm.AzureRouteTableResourceType {
- continue
- }
-
- routes, exist := res.Attributes().Get("route")
- if !exist || routes == nil {
- continue
- }
-
- for _, route := range routes.([]interface{}) {
- route := route.(map[string]interface{})
- id := strings.Join([]string{res.ResourceId(), "routes", route["name"].(string)}, "/")
- exist := false
- for _, resFromState := range *resourcesFromState {
- if resFromState.ResourceType() == azurerm.AzureRouteResourceType &&
- resFromState.ResourceId() == id {
- exist = true
- break
- }
- }
- if exist {
- continue
- }
- expandedRoute := m.resourceFactory.CreateAbstractResource(
- azurerm.AzureRouteResourceType,
- id,
- map[string]interface{}{
- "name": route["name"].(string),
- "route_table_name": *res.Attributes().GetString("name"),
- },
- )
- newList = append(newList, expandedRoute)
- }
-
- res.Attributes().SafeDelete([]string{"route"})
- }
- *resourcesFromState = newList
- return nil
-}
diff --git a/pkg/middlewares/azurerm_route_expander_test.go b/pkg/middlewares/azurerm_route_expander_test.go
deleted file mode 100644
index d55065070..000000000
--- a/pkg/middlewares/azurerm_route_expander_test.go
+++ /dev/null
@@ -1,193 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestAzurermRouteExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- input []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "test with nil route attribute",
- input: []*resource.Resource{
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": nil,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": nil,
- },
- },
- },
- },
- {
- name: "test with empty route attributes",
- input: []*resource.Resource{
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{},
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test that resource will not be expanded if it already exist",
- input: []*resource.Resource{
- {
- Id: "table1/routes/exist",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "route": []interface{}{
- map[string]interface{}{
- "name": "exist",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "table1/routes/exist",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test routes are expanded",
- input: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "name": "table1",
- "route": []interface{}{
- map[string]interface{}{
- "name": "route1",
- },
- map[string]interface{}{
- "name": "route2",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "table1",
- Type: azurerm.AzureRouteTableResourceType,
- Attrs: &resource.Attributes{
- "name": "table1",
- },
- },
- {
- Id: "table1/routes/route1",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "table1/routes/route2",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- azurerm.AzureRouteResourceType,
- "table1/routes/route1",
- map[string]interface{}{
- "name": "route1",
- "route_table_name": "table1",
- },
- ).Times(1).Return(&resource.Resource{
- Id: "table1/routes/route1",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
- factory.On(
- "CreateAbstractResource",
- azurerm.AzureRouteResourceType,
- "table1/routes/route2",
- map[string]interface{}{
- "name": "route2",
- "route_table_name": "table1",
- },
- ).Times(1).Return(&resource.Resource{
- Id: "table1/routes/route2",
- Type: azurerm.AzureRouteResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewAzurermRouteExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.input)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.expected, tt.input)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- })
- }
-}
diff --git a/pkg/middlewares/azurerm_subnet_expander.go b/pkg/middlewares/azurerm_subnet_expander.go
deleted file mode 100644
index 4a0a82b46..000000000
--- a/pkg/middlewares/azurerm_subnet_expander.go
+++ /dev/null
@@ -1,62 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
-)
-
-// Explodes subnet found in azurerm_virtual_network.subnet from state resources to dedicated resources
-type AzurermSubnetExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewAzurermSubnetExpander(resourceFactory resource.ResourceFactory) AzurermSubnetExpander {
- return AzurermSubnetExpander{
- resourceFactory: resourceFactory,
- }
-}
-
-func (m AzurermSubnetExpander) Execute(_, resourcesFromState *[]*resource.Resource) error {
- newList := make([]*resource.Resource, 0)
- for _, res := range *resourcesFromState {
- newList = append(newList, res)
-
- // Ignore all resources other than azurerm_virtual_network
- if res.ResourceType() != azurerm.AzureVirtualNetworkResourceType {
- continue
- }
-
- subnets, exist := res.Attributes().Get("subnet")
- if !exist || subnets == nil {
- continue
- }
-
- for _, subnet := range subnets.([]interface{}) {
- subnet := subnet.(map[string]interface{})
- id := subnet["id"].(string)
- exist := false
- for _, resFromState := range *resourcesFromState {
- if resFromState.ResourceType() == azurerm.AzureSubnetResourceType &&
- resFromState.ResourceId() == id {
- exist = true
- break
- }
- }
- if exist {
- continue
- }
- res := m.resourceFactory.CreateAbstractResource(
- azurerm.AzureSubnetResourceType,
- id,
- map[string]interface{}{},
- )
-
- newList = append(newList, res)
-
- }
-
- res.Attrs.SafeDelete([]string{"subnet"})
- }
- *resourcesFromState = newList
- return nil
-}
diff --git a/pkg/middlewares/azurerm_subnet_expander_test.go b/pkg/middlewares/azurerm_subnet_expander_test.go
deleted file mode 100644
index fda7f11fb..000000000
--- a/pkg/middlewares/azurerm_subnet_expander_test.go
+++ /dev/null
@@ -1,174 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/azurerm"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestAzurermSubnetExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- input []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "test with nil subnet attribute",
- input: []*resource.Resource{
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{
- "subnet": nil,
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{
- "subnet": nil,
- },
- },
- },
- },
- {
- name: "test with empty subnet attributes",
- input: []*resource.Resource{
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{
- "subnet": []interface{}{},
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test that resource will not be expanded if it already exist",
- input: []*resource.Resource{
- {
- Id: "exist",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{
- "subnet": []interface{}{
- map[string]interface{}{
- "id": "exist",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "exist",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- {
- name: "test subnet are expanded",
- input: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{
- "subnet": []interface{}{
- map[string]interface{}{
- "id": "subnet1",
- },
- map[string]interface{}{
- "id": "subnet2",
- },
- },
- },
- },
- },
- expected: []*resource.Resource{
- {
- Id: "fake_resource",
- },
- {
- Id: "network1",
- Type: azurerm.AzureVirtualNetworkResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "subnet1",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "subnet2",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- mock: func(factory *dctlresource.MockResourceFactory) {
- factory.On("CreateAbstractResource", azurerm.AzureSubnetResourceType, "subnet1", map[string]interface{}{}).Times(1).Return(&resource.Resource{
- Id: "subnet1",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
- factory.On("CreateAbstractResource", azurerm.AzureSubnetResourceType, "subnet2", map[string]interface{}{}).Times(1).Return(&resource.Resource{
- Id: "subnet2",
- Type: azurerm.AzureSubnetResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewAzurermSubnetExpander(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.input)
- if err != nil {
- t.Fatal(err)
- }
-
- changelog, err := diff.Diff(tt.expected, tt.input)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-
- })
- }
-}
diff --git a/pkg/middlewares/chain_middleware.go b/pkg/middlewares/chain_middleware.go
deleted file mode 100644
index 62fa5c6dd..000000000
--- a/pkg/middlewares/chain_middleware.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package middlewares
-
-import (
- "fmt"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type Chain []Middleware
-
-func NewChain(middlewares ...Middleware) Chain {
- return middlewares
-}
-
-func (c Chain) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- for _, middleware := range c {
- logrus.WithFields(logrus.Fields{
- "middleware": fmt.Sprintf("%T", middleware),
- }).Debug("Starting middleware")
- err := middleware.Execute(remoteResources, resourcesFromState)
- if err != nil {
- return err
- }
- }
- return nil
-}
diff --git a/pkg/middlewares/chain_middleware_test.go b/pkg/middlewares/chain_middleware_test.go
deleted file mode 100644
index abe234049..000000000
--- a/pkg/middlewares/chain_middleware_test.go
+++ /dev/null
@@ -1,85 +0,0 @@
-package middlewares
-
-import (
- "errors"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-var callCounters map[string]int
-
-type FakeMiddleware struct {
- Name string
- Err error
-}
-
-func (m FakeMiddleware) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- callCounters[m.Name]++
- return m.Err
-}
-
-func TestChainMiddleware(t *testing.T) {
-
- callCounters = make(map[string]int)
-
- fakeMiddleware1 := FakeMiddleware{
- Name: "1",
- }
- fakeMiddleware2 := FakeMiddleware{
- Name: "2",
- }
-
- middleware := NewChain(fakeMiddleware1, fakeMiddleware2)
- remoteResources := []*resource.Resource{}
- stateResources := []*resource.Resource{}
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err != nil {
- t.Error("A middleware returned an error")
- }
-
- if callCounters["1"] != 1 {
- t.Error("Middleware 1 was not called correctly")
- }
-
- if callCounters["2"] != 1 {
- t.Error("Middleware 2 was not called correctly")
- }
-
-}
-
-func TestChainMiddlewareErrorShouldStopExecution(t *testing.T) {
-
- callCounters = make(map[string]int)
-
- fakeMiddleware1 := FakeMiddleware{
- Name: "1",
- Err: errors.New("Test error"),
- }
- fakeMiddleware2 := FakeMiddleware{
- Name: "2",
- }
-
- middleware := NewChain(fakeMiddleware1, fakeMiddleware2)
- remoteResources := []*resource.Resource{}
- stateResources := []*resource.Resource{}
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err == nil {
- t.Error("No error were reported")
- }
-
- if err.Error() != "Test error" {
- t.Error("Unknown error reported")
- }
-
- if callCounters["1"] != 1 {
- t.Error("Middleware 1 was not called correctly")
- }
-
- if callCounters["2"] != 0 {
- t.Error("Middleware 2 was called after error happen in middleware 1")
- }
-
-}
diff --git a/pkg/middlewares/default_vpc_test.go b/pkg/middlewares/default_vpc_test.go
deleted file mode 100644
index 8f544fba6..000000000
--- a/pkg/middlewares/default_vpc_test.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/pkg/resource/aws"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestAwsDefaultVPCShouldBeIgnored(t *testing.T) {
- middleware := NewAwsDefaultVPC()
- remoteResources := []*resource.Resource{
- {
- Id: "foobar",
- Type: aws.AwsDefaultVpcResourceType,
- Attrs: &resource.Attributes{
- "id": "foobar",
- },
- },
- }
- stateResources := []*resource.Resource{}
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err != nil {
- t.Error(err)
- }
-
- if len(remoteResources) != 0 {
- t.Error("Default VPC was not ignored")
- }
-}
-
-func TestAwsDefaultVPCShouldNotBeIgnoredWhenManaged(t *testing.T) {
- middleware := NewAwsDefaultVPC()
- remoteResources := []*resource.Resource{
- {
- Id: "foobar",
- Type: aws.AwsDefaultVpcResourceType,
- Attrs: &resource.Attributes{
- "id": "foobar",
- },
- },
- }
- stateResources := []*resource.Resource{
- {
- Id: "foobar",
- Type: aws.AwsDefaultVpcResourceType,
- Attrs: &resource.Attributes{
- "id": "foobar",
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err != nil {
- t.Error(err)
- }
-
- if len(remoteResources) != 1 {
- t.Error("Default VPC was ignored")
- }
-}
diff --git a/pkg/middlewares/google_compute_instance_group_manager_reconciler.go b/pkg/middlewares/google_compute_instance_group_manager_reconciler.go
deleted file mode 100644
index 471845de3..000000000
--- a/pkg/middlewares/google_compute_instance_group_manager_reconciler.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-type GoogleComputeInstanceGroupManagerReconciler struct{}
-
-// NewGoogleComputeInstanceGroupManagerReconciler imports remote instance groups when they're managed by a managed instance group manager.
-// Creating a "google_compute_instance_group_manager" resource via Terraform leads to having several unmanaged instance groups.
-// This middleware adds remote instance groups to the state by matching them with managed instance group managers.
-func NewGoogleComputeInstanceGroupManagerReconciler() *GoogleComputeInstanceGroupManagerReconciler {
- return &GoogleComputeInstanceGroupManagerReconciler{}
-}
-
-func (a GoogleComputeInstanceGroupManagerReconciler) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- var newStateResources []*resource.Resource
-
- instanceGroups := make([]*resource.Resource, 0)
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than google_compute_instance_group
- if remoteResource.ResourceType() != google.GoogleComputeInstanceGroupResourceType {
- continue
- }
- instanceGroups = append(instanceGroups, remoteResource)
- }
-
- for _, stateResource := range *resourcesFromState {
- newStateResources = append(newStateResources, stateResource)
-
- // Ignore all resources other than google_compute_instance_group_manager
- if stateResource.ResourceType() != google.GoogleComputeInstanceGroupManagerResourceType {
- continue
- }
-
- name := stateResource.Attributes().GetString("name")
-
- for _, group := range instanceGroups {
- // Import instance group in the state
- if n := group.Attributes().GetString("name"); n != nil && *n == *name {
- newStateResources = append(newStateResources, group)
- }
- }
- }
-
- *resourcesFromState = newStateResources
-
- return nil
-}
diff --git a/pkg/middlewares/google_compute_instance_group_manager_reconciler_test.go b/pkg/middlewares/google_compute_instance_group_manager_reconciler_test.go
deleted file mode 100644
index 16d8aa1cb..000000000
--- a/pkg/middlewares/google_compute_instance_group_manager_reconciler_test.go
+++ /dev/null
@@ -1,93 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-func TestGoogleComputeInstanceGroupManagerExpander_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "test that we import compute instance group in the state",
- remoteResources: []*resource.Resource{
- {
- Id: "appserver-igm",
- Type: google.GoogleComputeInstanceGroupManagerResourceType,
- Attrs: &resource.Attributes{
- "name": "appserver-igm",
- },
- },
- {
- Id: "appserver-igm",
- Type: google.GoogleComputeInstanceGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "appserver-igm",
- },
- },
- },
- resourcesFromState: []*resource.Resource{
- {
- Id: "appserver-igm",
- Type: google.GoogleComputeInstanceGroupManagerResourceType,
- Attrs: &resource.Attributes{
- "name": "appserver-igm",
- },
- },
- {
- Id: "fake",
- Type: google.GoogleComputeInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- expected: []*resource.Resource{
- {
- Id: "appserver-igm",
- Type: google.GoogleComputeInstanceGroupManagerResourceType,
- Attrs: &resource.Attributes{
- "name": "appserver-igm",
- },
- },
- {
- Id: "appserver-igm",
- Type: google.GoogleComputeInstanceGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "appserver-igm",
- },
- },
- {
- Id: "fake",
- Type: google.GoogleComputeInstanceResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewGoogleComputeInstanceGroupManagerReconciler()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/google_default_iam_member.go b/pkg/middlewares/google_default_iam_member.go
deleted file mode 100644
index a50c4c05f..000000000
--- a/pkg/middlewares/google_default_iam_member.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package middlewares
-
-import (
- "fmt"
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-// Some service accounts are created by default when activating APIs, this middleware will filter them unless they are managed.
-type GoogleDefaultIAMMember struct{}
-
-func NewGoogleDefaultIAMMember() *GoogleDefaultIAMMember {
- return &GoogleDefaultIAMMember{}
-}
-
-func (m *GoogleDefaultIAMMember) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than BucketIamBinding
- if remoteResource.ResourceType() != google.GoogleProjectIamMemberResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all non service account member
- if memberName := remoteResource.Attrs.GetString("member"); memberName != nil && !strings.HasPrefix(*memberName, "serviceAccount:") {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all service accounts that have project host
- memberName := *remoteResource.Attrs.GetString("member")
- projectName := *remoteResource.Attrs.GetString("project")
-
- if strings.HasSuffix(memberName, fmt.Sprintf("%s.iam.gserviceaccount.com", projectName)) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if member is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed by IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice, so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default service account membership as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/google_default_iam_member_test.go b/pkg/middlewares/google_default_iam_member_test.go
deleted file mode 100644
index 130477db3..000000000
--- a/pkg/middlewares/google_default_iam_member_test.go
+++ /dev/null
@@ -1,102 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-func TestGoogleDefaultIAMMember_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "test that we ignore only default service account",
- remoteResources: []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "user",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "role",
- "member": "user:test@user.com",
- "project": "project",
- },
- },
- {
- Id: "serviceaccount",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "role",
- "member": "serviceAccount:test@project.iam.gserviceaccount.com",
- "project": "project",
- },
- },
- {
- Id: "default",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "role",
- "member": "serviceAccount:cloudskiff-dev-martin@appspot.gserviceaccount.com ",
- "project": "project",
- },
- },
- },
- resourcesFromState: []*resource.Resource{},
- expected: []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "user",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "role",
- "member": "user:test@user.com",
- "project": "project",
- },
- },
- {
- Id: "serviceaccount",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "role",
- "member": "serviceAccount:test@project.iam.gserviceaccount.com",
- "project": "project",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewGoogleDefaultIAMMember()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/google_iam_binding_tranformer_test.go b/pkg/middlewares/google_iam_binding_tranformer_test.go
deleted file mode 100644
index 16d74751d..000000000
--- a/pkg/middlewares/google_iam_binding_tranformer_test.go
+++ /dev/null
@@ -1,535 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestGoogleProjectIAMBindingTransformer_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- name: "Test that bindings with nil members does not cause any crash",
- resourcesFromState: []*resource.Resource{
- {
- Type: google.GoogleStorageBucketIamBindingResourceType,
- Attrs: &resource.Attributes{
- "bucket": "hey",
- "role": "storage.admin",
- "members": nil,
- },
- },
- {
- Type: google.GoogleProjectIamBindingResourceType,
- Attrs: &resource.Attributes{
- "project": "coucou",
- "role": "storage.admin",
- "members": nil,
- },
- },
- },
- expected: []*resource.Resource{},
- mock: nil,
- },
- {
- "Test that project bindings are transformed into member",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin project",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "project": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "proj/admin",
- Type: google.GoogleProjectIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "project": "proj",
- "members": []interface{}{
- "user:elie@cloudskiff.com",
- "user:william@cloudskiff.com",
- },
- },
- },
-
- {
- Id: "proj/viewer",
- Type: google.GoogleProjectIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj",
- "members": []interface{}{
- "user:william@cloudskiff.com",
- },
- },
- },
- {
- Id: "proj2/viewer",
- Type: google.GoogleProjectIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj2",
- "members": []interface{}{
- "user:william@cloudskiff.com",
- },
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin project",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "project": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "proj/storage.admin/user:elie@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "project": "proj",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "proj/storage.admin/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "project": "proj",
- "member": "user:william@cloudskiff.com",
- },
- },
- {
- Id: "proj/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj",
- "member": "user:william@cloudskiff.com",
- },
- },
- {
- Id: "proj2/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj2",
- "member": "user:william@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "proj/storage.admin/user:elie@cloudskiff.com",
- map[string]interface{}{
- "id": "proj/storage.admin/user:elie@cloudskiff.com",
- "project": "proj",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "proj/storage.admin/user:elie@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "project": "proj",
- "member": "user:elie@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "proj/storage.admin/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "proj/storage.admin/user:william@cloudskiff.com",
- "project": "proj",
- "role": "storage.admin",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "proj/storage.admin/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "project": "proj",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "proj/storage.viewer/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "proj/storage.viewer/user:william@cloudskiff.com",
- "project": "proj",
- "role": "storage.viewer",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "proj/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "proj2/storage.viewer/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "proj2/storage.viewer/user:william@cloudskiff.com",
- "project": "proj2",
- "role": "storage.viewer",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "proj2/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "project": "proj2",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
- },
- },
- {
- "test that everything is fine when there is no bindings",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin project",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "project": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin project",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "project": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
-
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewGoogleIAMBindingTransformer(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
-
-func TestGoogleBucketIAMBindingTransformer_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- "Test that bucket bindings are transformed into member",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "bucket": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "b/bucket/admin",
- Type: google.GoogleStorageBucketIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "bucket": "b/bucket",
- "members": []interface{}{
- "user:elie@cloudskiff.com",
- "user:william@cloudskiff.com",
- },
- },
- },
-
- {
- Id: "b/bucket/viewer",
- Type: google.GoogleStorageBucketIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket",
- "members": []interface{}{
- "user:william@cloudskiff.com",
- },
- },
- },
- {
- Id: "b/bucket2/viewer",
- Type: google.GoogleStorageBucketIamBindingResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket2",
- "members": []interface{}{
- "user:william@cloudskiff.com",
- },
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "bucket": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "b/bucket/storage.admin/user:elie@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "bucket": "b/bucket",
- "member": "user:elie@cloudskiff.com",
- },
- },
- {
- Id: "b/bucket/storage.admin/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "bucket": "b/bucket",
- "member": "user:william@cloudskiff.com",
- },
- },
- {
- Id: "b/bucket/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket",
- "member": "user:william@cloudskiff.com",
- },
- },
- {
- Id: "b/bucket2/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket2",
- "member": "user:william@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/bucket/storage.admin/user:elie@cloudskiff.com",
- map[string]interface{}{
- "id": "b/bucket/storage.admin/user:elie@cloudskiff.com",
- "bucket": "b/bucket",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/bucket/storage.admin/user:elie@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "bucket": "b/bucket",
- "member": "user:elie@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/bucket/storage.admin/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "b/bucket/storage.admin/user:william@cloudskiff.com",
- "bucket": "b/bucket",
- "role": "storage.admin",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/bucket/storage.admin/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- "bucket": "b/bucket",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/bucket/storage.viewer/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "b/bucket/storage.viewer/user:william@cloudskiff.com",
- "bucket": "b/bucket",
- "role": "storage.viewer",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/bucket/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/bucket2/storage.viewer/user:william@cloudskiff.com",
- map[string]interface{}{
- "id": "b/bucket2/storage.viewer/user:william@cloudskiff.com",
- "bucket": "b/bucket2",
- "role": "storage.viewer",
- "member": "user:william@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/bucket2/storage.viewer/user:william@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.viewer",
- "bucket": "b/bucket2",
- "member": "user:william@cloudskiff.com",
- },
- }).Once()
- },
- },
- {
- "test that everything is fine when there is no bindings",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "bucket": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "bucket": "coucou",
- "role": "storage.admin",
- "member": "user:elie@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
-
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewGoogleIAMBindingTransformer(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/google_iam_binding_transformer.go b/pkg/middlewares/google_iam_binding_transformer.go
deleted file mode 100644
index 789654f7b..000000000
--- a/pkg/middlewares/google_iam_binding_transformer.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package middlewares
-
-import (
- "fmt"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-// GoogleIAMBindingTransformer Transforms Bucket IAM binding in bucket iam member to ease comparison.
-type GoogleIAMBindingTransformer struct {
- resourceFactory resource.ResourceFactory
- resFieldByType map[string]string // map of the field to add to resource attribute for all supported type
-}
-
-func NewGoogleIAMBindingTransformer(resourceFactory resource.ResourceFactory) *GoogleIAMBindingTransformer {
- return &GoogleIAMBindingTransformer{
- resourceFactory,
- map[string]string{
- google.GoogleStorageBucketIamBindingResourceType: "bucket",
- google.GoogleProjectIamBindingResourceType: "project",
- },
- }
-}
-
-func (m *GoogleIAMBindingTransformer) Execute(_, resourcesFromState *[]*resource.Resource) error {
-
- resources := make([]*resource.Resource, 0)
-
- for _, stateRes := range *resourcesFromState {
- // Ignore all resources other than IamBinding
- resType := stateRes.ResourceType()
- resField, supported := m.resFieldByType[resType]
- if !supported {
- resources = append(resources, stateRes)
- continue
- }
-
- resName := *stateRes.Attrs.GetString(resField)
- roleName := *stateRes.Attrs.GetString("role")
- members, exist := stateRes.Attrs.Get("members")
-
- if !exist || members == nil {
- continue
- }
-
- for _, member := range members.([]interface{}) {
- id := fmt.Sprintf("%s/%s/%s", resName, roleName, member)
- resources = append(
- resources,
- m.resourceFactory.CreateAbstractResource(
- fmt.Sprintf("%s_member", strings.TrimSuffix(resType, "_binding")),
- id,
- map[string]interface{}{
- "id": id,
- resField: resName,
- "role": roleName,
- "member": member.(string),
- },
- ),
- )
- }
- }
-
- *resourcesFromState = resources
-
- return nil
-}
diff --git a/pkg/middlewares/google_iam_policy_tranformer_test.go b/pkg/middlewares/google_iam_policy_tranformer_test.go
deleted file mode 100644
index 7b33a7d92..000000000
--- a/pkg/middlewares/google_iam_policy_tranformer_test.go
+++ /dev/null
@@ -1,404 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-func TestGoogleProjectIAMPolicyTransformer_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- "Test that project policy are transformed into bindings",
- []*resource.Resource{
- {
- Id: "b/bucket-1",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/bucket-2",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "project-1",
- Type: google.GoogleProjectIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "project": "project-1",
- "id": "project-1",
- "policy_data": "{\"bindings\":[{\"members\":[\"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com\"],\"role\":\"roles/storage.admin\"},{\"members\":[\"user:william.beuil@cloudskiff.com\"],\"role\":\"roles/storage.objectViewer\"}]}",
- },
- },
- {
- Id: "dctlgstorageprojectiambinding-2",
- Type: google.GoogleProjectIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "project": "project-2",
- "etag": "CAU=",
- "id": "project-2",
- "policy_data": "{\"bindings\":[{\"members\":[\"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com\"],\"role\":\"roles/storage.admin\"},{\"members\":[\"user:william.beuil@cloudskiff.com\"],\"role\":\"roles/storage.objectViewer\"}]}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "b/bucket-1",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/bucket-2",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "project": "project-1",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- },
- {
- Id: "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "project": "project-1",
- "member": "user:william.beuil@cloudskiff.com",
- },
- },
- {
- Id: "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "project": "project-2",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- },
- {
- Id: "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "project": "project-2",
- "member": "user:william.beuil@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- map[string]interface{}{
- "id": "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "project": "project-1",
- "role": "roles/storage.admin",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- }).Return(&resource.Resource{
- Id: "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "project": "project-1",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- map[string]interface{}{
- "id": "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "project": "project-1",
- "role": "roles/storage.objectViewer",
- "member": "user:william.beuil@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "project": "project-1",
- "member": "user:william.beuil@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- map[string]interface{}{
- "id": "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "project": "project-2",
- "role": "roles/storage.admin",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- }).Return(&resource.Resource{
- Id: "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "project": "project-2",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleProjectIamMemberResourceType,
- "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- map[string]interface{}{
- "id": "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "project": "project-2",
- "role": "roles/storage.objectViewer",
- "member": "user:william.beuil@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleProjectIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "project-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "project": "project-2",
- "member": "user:william.beuil@cloudskiff.com",
- },
- }).Once()
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewGoogleIAMPolicyTransformer(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
-
-func TestGoogleBucketIAMPolicyTransformer_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- mock func(factory *dctlresource.MockResourceFactory)
- }{
- {
- "Test that bucket policy are transformed into bindings",
- []*resource.Resource{
- {
- Id: "b/dctlgstoragebucketiambinding-1",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/dctlgstoragebucketiambinding-2",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/dctlgstoragebucketiambinding-1",
- Type: google.GoogleStorageBucketIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "id": "b/dctlgstoragebucketiambinding-1",
- "policy_data": "{\"bindings\":[{\"members\":[\"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com\"],\"role\":\"roles/storage.admin\"},{\"members\":[\"user:william.beuil@cloudskiff.com\"],\"role\":\"roles/storage.objectViewer\"}]}",
- },
- },
- {
- Id: "dctlgstoragebucketiambinding-2",
- Type: google.GoogleStorageBucketIamPolicyResourceType,
- Attrs: &resource.Attributes{
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "etag": "CAU=",
- "id": "b/dctlgstoragebucketiambinding-2",
- "policy_data": "{\"bindings\":[{\"members\":[\"serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com\"],\"role\":\"roles/storage.admin\"},{\"members\":[\"user:william.beuil@cloudskiff.com\"],\"role\":\"roles/storage.objectViewer\"}]}",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "b/dctlgstoragebucketiambinding-1",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/dctlgstoragebucketiambinding-2",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- },
- {
- Id: "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "member": "user:william.beuil@cloudskiff.com",
- },
- },
- {
- Id: "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- },
- {
- Id: "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "member": "user:william.beuil@cloudskiff.com",
- },
- },
- },
- func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- map[string]interface{}{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "role": "roles/storage.admin",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- }).Return(&resource.Resource{
- Id: "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- map[string]interface{}{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "role": "roles/storage.objectViewer",
- "member": "user:william.beuil@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-1/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "bucket": "b/dctlgstoragebucketiambinding-1",
- "member": "user:william.beuil@cloudskiff.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- map[string]interface{}{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "role": "roles/storage.admin",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- }).Return(&resource.Resource{
- Id: "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.admin/serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- "role": "roles/storage.admin",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "member": "serviceAccount:driftctl@cloudskiff-dev-martin.iam.gserviceaccount.com",
- },
- }).Once()
-
- factory.On(
- "CreateAbstractResource", google.GoogleStorageBucketIamMemberResourceType,
- "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- map[string]interface{}{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "role": "roles/storage.objectViewer",
- "member": "user:william.beuil@cloudskiff.com",
- }).Return(&resource.Resource{
- Id: "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "id": "b/dctlgstoragebucketiambinding-2/roles/storage.objectViewer/user:william.beuil@cloudskiff.com",
- "role": "roles/storage.objectViewer",
- "bucket": "b/dctlgstoragebucketiambinding-2",
- "member": "user:william.beuil@cloudskiff.com",
- },
- }).Once()
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- factory := &dctlresource.MockResourceFactory{}
- if tt.mock != nil {
- tt.mock(factory)
- }
-
- m := NewGoogleIAMPolicyTransformer(factory)
- err := m.Execute(&[]*resource.Resource{}, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/google_iam_policy_transformer.go b/pkg/middlewares/google_iam_policy_transformer.go
deleted file mode 100644
index 70f3aa065..000000000
--- a/pkg/middlewares/google_iam_policy_transformer.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package middlewares
-
-import (
- "encoding/json"
- "fmt"
- "strings"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-// GoogleStorageBucketIAMPolicyTransformer Transforms Bucket IAM policy in bucket iam binding to ease comparison.
-type GoogleStorageBucketIAMPolicyTransformer struct {
- resourceFactory resource.ResourceFactory
- resFieldByType map[string]string // map of the field to add to resource attribute for all supported type
-}
-
-func NewGoogleIAMPolicyTransformer(resourceFactory resource.ResourceFactory) *GoogleStorageBucketIAMPolicyTransformer {
- return &GoogleStorageBucketIAMPolicyTransformer{
- resourceFactory,
- map[string]string{
- google.GoogleStorageBucketIamPolicyResourceType: "bucket",
- google.GoogleProjectIamPolicyResourceType: "project",
- }}
-}
-
-func (m *GoogleStorageBucketIAMPolicyTransformer) Execute(_, resourcesFromState *[]*resource.Resource) error {
-
- resources := make([]*resource.Resource, 0)
-
- for _, stateRes := range *resourcesFromState {
- // Ignore all resources with type not in resFieldByType map
- resType := stateRes.ResourceType()
- resField, supported := m.resFieldByType[resType]
- if !supported {
- resources = append(resources, stateRes)
- continue
- }
-
- resName := *stateRes.Attrs.GetString(resField)
- policyJSON := *stateRes.Attrs.GetString("policy_data")
-
- policies := policyDataType{}
- err := json.Unmarshal([]byte(policyJSON), &policies)
- if err != nil {
- return err
- }
-
- for _, policy := range policies.Bindings {
- roleName := policy["role"].(string)
- members := policy["members"].([]interface{})
- for _, member := range members {
- id := fmt.Sprintf("%s/%s/%s", resName, roleName, member)
- resources = append(
- resources,
- m.resourceFactory.CreateAbstractResource(
- fmt.Sprintf("%s_member", strings.TrimSuffix(resType, "_policy")),
- id,
- map[string]interface{}{
- "id": id,
- resField: resName,
- "role": roleName,
- "member": member.(string),
- },
- ),
- )
- }
- }
- }
-
- *resourcesFromState = resources
-
- return nil
-}
-
-type policyDataType struct {
- Bindings []map[string]interface{}
-}
diff --git a/pkg/middlewares/google_legacy_bucket_iam_member.go b/pkg/middlewares/google_legacy_bucket_iam_member.go
deleted file mode 100644
index 184162ab0..000000000
--- a/pkg/middlewares/google_legacy_bucket_iam_member.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package middlewares
-
-import (
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-// Creating buckets add legacy role bindings, this middleware will filter them unless they are managed.
-type GoogleLegacyBucketIAMMember struct{}
-
-func NewGoogleLegacyBucketIAMMember() *GoogleLegacyBucketIAMMember {
- return &GoogleLegacyBucketIAMMember{}
-}
-
-func (m *GoogleLegacyBucketIAMMember) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than BucketIamBinding
- if remoteResource.ResourceType() != google.GoogleStorageBucketIamMemberResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Ignore all non-legacy member
- if roleName := remoteResource.Attrs.GetString("role"); roleName != nil && !strings.Contains(*roleName, "legacy") {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Check if member is managed by IaC
- existInState := false
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- // Include resource if it's managed in IaC
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- // Else, resource is not added to newRemoteResources slice, so it will be ignored
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring legacy bucket member as it is not managed by IaC")
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/google_legacy_bucket_iam_member_test.go b/pkg/middlewares/google_legacy_bucket_iam_member_test.go
deleted file mode 100644
index 4e1ee7f72..000000000
--- a/pkg/middlewares/google_legacy_bucket_iam_member_test.go
+++ /dev/null
@@ -1,139 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/enumeration/resource/google"
-)
-
-func TestGoogleLegacyBucketIAMMember_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources []*resource.Resource
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- "test that non legacy bindings are not ignored when managed by IaC",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- },
- },
- {
- Id: "legacy",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.legacyBucketOwner",
- },
- },
- },
- []*resource.Resource{},
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- },
- },
- },
- },
- {
- "test that legacy are not ignored when managed",
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- },
- },
- {
- Id: "legacy",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.legacyBucketOwner",
- },
- },
- {
- Id: "legacy-managed",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.legacyBucketOwner",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "legacy-managed",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.legacyBucketOwner",
- },
- },
- },
- []*resource.Resource{
- {
- Id: "fake",
- Type: google.GoogleStorageBucketResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Id: "admin bucket",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.admin",
- },
- },
- {
- Id: "legacy-managed",
- Type: google.GoogleStorageBucketIamMemberResourceType,
- Attrs: &resource.Attributes{
- "role": "storage.legacyBucketOwner",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewGoogleLegacyBucketIAMMember()
- err := m.Execute(&tt.remoteResources, &tt.resourcesFromState)
- if err != nil {
- t.Fatal(err)
- }
- changelog, err := diff.Diff(tt.expected, tt.remoteResources)
- if err != nil {
- t.Fatal(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/helpers_test.go b/pkg/middlewares/helpers_test.go
deleted file mode 100644
index 013b35c25..000000000
--- a/pkg/middlewares/helpers_test.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package middlewares
-
-import (
- "os"
- "testing"
-
- "github.com/stretchr/testify/require"
-)
-
-func readFile(t *testing.T, name string) string {
- content, err := os.ReadFile(name)
- require.Nil(t, err)
- return string(content)
-}
diff --git a/pkg/middlewares/iam_policy_attachment_expander.go b/pkg/middlewares/iam_policy_attachment_expander.go
deleted file mode 100644
index 263174ac6..000000000
--- a/pkg/middlewares/iam_policy_attachment_expander.go
+++ /dev/null
@@ -1,99 +0,0 @@
-package middlewares
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Split Policy attachment when there is multiple user and groups and generate a repeatable id
-type IamPolicyAttachmentExpander struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewIamPolicyAttachmentExpander(resourceFactory resource.ResourceFactory) IamPolicyAttachmentExpander {
- return IamPolicyAttachmentExpander{
- resourceFactory,
- }
-}
-
-func (m IamPolicyAttachmentExpander) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- var newStateResources = make([]*resource.Resource, 0)
-
- for _, stateResource := range *resourcesFromState {
- // Ignore all resources other than policy attachment
- if stateResource.ResourceType() != resourceaws.AwsIamPolicyAttachmentResourceType {
- newStateResources = append(newStateResources, stateResource)
- continue
- }
-
- newStateResources = append(newStateResources, m.expand(stateResource)...)
- }
-
- var newRemoteResources = make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- // Ignore all resources other than policy attachment
- if remoteResource.ResourceType() != resourceaws.AwsIamPolicyAttachmentResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- newRemoteResources = append(newRemoteResources, m.expand(remoteResource)...)
- }
-
- *resourcesFromState = newStateResources
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-func (m IamPolicyAttachmentExpander) expand(policyAttachment *resource.Resource) []*resource.Resource {
- var newResources []*resource.Resource
- users := policyAttachment.Attrs.GetSlice("users")
- // we create one attachment per user
- for _, user := range users {
- user := user.(string)
- newAttachment := m.resourceFactory.CreateAbstractResource(
- resourceaws.AwsIamPolicyAttachmentResourceType,
- fmt.Sprintf("%s-%s", user, (*policyAttachment.Attrs)["policy_arn"]),
- map[string]interface{}{
- "policy_arn": *policyAttachment.Attrs.GetString("policy_arn"),
- "users": []interface{}{user},
- },
- )
- newResources = append(newResources, newAttachment)
- }
-
- roles := policyAttachment.Attrs.GetSlice("roles")
- // we create one attachment per role
- for _, role := range roles {
- role := role.(string)
- newAttachment := m.resourceFactory.CreateAbstractResource(
- resourceaws.AwsIamPolicyAttachmentResourceType,
- fmt.Sprintf("%s-%s", role, (*policyAttachment.Attrs)["policy_arn"]),
- map[string]interface{}{
- "policy_arn": *policyAttachment.Attrs.GetString("policy_arn"),
- "roles": []interface{}{role},
- },
- )
- newResources = append(newResources, newAttachment)
- }
-
- groups := policyAttachment.Attrs.GetSlice("groups")
- // we create one attachment per group
- for _, group := range groups {
- group := group.(string)
- newAttachment := m.resourceFactory.CreateAbstractResource(
- resourceaws.AwsIamPolicyAttachmentResourceType,
- fmt.Sprintf("%s-%s", group, (*policyAttachment.Attrs)["policy_arn"]),
- map[string]interface{}{
- "policy_arn": *policyAttachment.Attrs.GetString("policy_arn"),
- "groups": []interface{}{group},
- },
- )
- newResources = append(newResources, newAttachment)
- }
- return newResources
-}
diff --git a/pkg/middlewares/iam_policy_attachment_expander_test.go b/pkg/middlewares/iam_policy_attachment_expander_test.go
deleted file mode 100644
index 382ac9673..000000000
--- a/pkg/middlewares/iam_policy_attachment_expander_test.go
+++ /dev/null
@@ -1,530 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestIamPolicyAttachmentExpander_Execute(t *testing.T) {
- type resources struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }
- tests := []struct {
- name string
- args resources
- mocks func(*dctlresource.MockResourceFactory)
- expected resources
- wantErr bool
- }{
- {
- name: "Split users and ReId",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "jean-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "users": []interface{}{"jean"},
- },
- ).Once().Return(&resource.Resource{
- Id: "jean-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "paul-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "users": []interface{}{"paul"},
- },
- ).Once().Return(&resource.Resource{
- Id: "paul-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "pierre-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "users": []interface{}{"pierre"},
- },
- ).Once().Return(&resource.Resource{
- Id: "pierre-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "jean-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "users": []interface{}{"jean"},
- },
- ).Once().Return(&resource.Resource{
- Id: "jean-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "paul-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "users": []interface{}{"paul"},
- },
- ).Once().Return(&resource.Resource{
- Id: "paul-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "jacques-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "users": []interface{}{"jacques"},
- },
- ).Once().Return(&resource.Resource{
- Id: "jacques-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "jean-fromstatearn",
- map[string]interface{}{
- "policy_arn": "fromstatearn",
- "users": []interface{}{"jean"},
- },
- ).Once().Return(&resource.Resource{
- Id: "jean-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- },
- args: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn",
- "users": []interface{}{"jean", "paul", "pierre"},
- },
- },
- {
- Id: "wrongId2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "thisisarn",
- "users": []interface{}{"jean", "paul", "jacques"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "fromstatearn",
- "users": []interface{}{"jean"},
- },
- },
- },
- },
- expected: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "jean-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "paul-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "pierre-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "jean-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "paul-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "jacques-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "jean-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- },
- wantErr: false,
- },
- {
- name: "Split Roles and ReId",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role1-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "roles": []interface{}{"role1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role1-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role2-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "roles": []interface{}{"role2"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role2-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "pierre-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "roles": []interface{}{"pierre"},
- },
- ).Once().Return(&resource.Resource{
- Id: "pierre-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role1-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "roles": []interface{}{"role1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role1-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role2-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "roles": []interface{}{"role2"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role2-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role3-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "roles": []interface{}{"role3"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role3-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "role1-fromstatearn",
- map[string]interface{}{
- "policy_arn": "fromstatearn",
- "roles": []interface{}{"role1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "role1-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- },
- args: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn",
- "roles": []interface{}{"role1", "role2", "pierre"},
- },
- },
- {
- Id: "wrongId2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "thisisarn",
- "roles": []interface{}{"role1", "role2", "role3"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "fromstatearn",
- "roles": []interface{}{"role1"},
- },
- },
- },
- },
- expected: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "role1-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "role2-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "pierre-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "role1-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "role2-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "role3-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "role1-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- },
- wantErr: false,
- },
- {
- name: "Split Groups and ReId",
- mocks: func(factory *dctlresource.MockResourceFactory) {
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group1-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "groups": []interface{}{"group1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group1-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group2-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "groups": []interface{}{"group2"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group2-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "foobar-arn",
- map[string]interface{}{
- "policy_arn": "arn",
- "groups": []interface{}{"foobar"},
- },
- ).Once().Return(&resource.Resource{
- Id: "foobar-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group1-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "groups": []interface{}{"group1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group1-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group2-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "groups": []interface{}{"group2"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group2-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group3-thisisarn",
- map[string]interface{}{
- "policy_arn": "thisisarn",
- "groups": []interface{}{"group3"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group3-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- factory.On(
- "CreateAbstractResource",
- aws.AwsIamPolicyAttachmentResourceType,
- "group1-fromstatearn",
- map[string]interface{}{
- "policy_arn": "fromstatearn",
- "groups": []interface{}{"group1"},
- },
- ).Once().Return(&resource.Resource{
- Id: "group1-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- })
- },
- args: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "arn",
- "groups": []interface{}{"group1", "group2", "foobar"},
- },
- },
- {
- Id: "wrongId2",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "thisisarn",
- "groups": []interface{}{"group1", "group2", "group3"},
- },
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "wrongId",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- Attrs: &resource.Attributes{
- "policy_arn": "fromstatearn",
- "groups": []interface{}{"group1"},
- },
- },
- },
- },
- expected: struct {
- RemoteResources *[]*resource.Resource
- ResourcesFromState *[]*resource.Resource
- }{
- RemoteResources: &[]*resource.Resource{
- {
- Id: "group1-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "group2-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "foobar-arn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "group1-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "group2-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- {
- Id: "group3-thisisarn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- ResourcesFromState: &[]*resource.Resource{
- {
- Id: "group1-fromstatearn",
- Type: aws.AwsIamPolicyAttachmentResourceType,
- },
- },
- },
- wantErr: false,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- if tt.mocks != nil {
- tt.mocks(factory)
- }
-
- m := NewIamPolicyAttachmentExpander(factory)
- if err := m.Execute(tt.args.RemoteResources, tt.args.ResourcesFromState); (err != nil) != tt.wantErr {
- t.Errorf("Execute() error = %v, wantErr %v", err, tt.wantErr)
- }
- changelog, err := diff.Diff(tt.args, tt.expected)
- if err != nil {
- t.Error(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/middlewares.go b/pkg/middlewares/middlewares.go
deleted file mode 100644
index 6789f3266..000000000
--- a/pkg/middlewares/middlewares.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package middlewares
-
-import "github.com/snyk/driftctl/enumeration/resource"
-
-type Middleware interface {
- Execute(remoteResources, resourcesFromState *[]*resource.Resource) error
-}
diff --git a/pkg/middlewares/route53_records.go b/pkg/middlewares/route53_records.go
deleted file mode 100644
index 28d3bc54f..000000000
--- a/pkg/middlewares/route53_records.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Remote NS and SAO records from remote state if not managed by IAC
-type Route53DefaultZoneRecordSanitizer struct{}
-
-func NewRoute53DefaultZoneRecordSanitizer() Route53DefaultZoneRecordSanitizer {
- return Route53DefaultZoneRecordSanitizer{}
-}
-
-func (m Route53DefaultZoneRecordSanitizer) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- newRemoteResources := make([]*resource.Resource, 0)
-
- // We iterate on remote resource and adding them to a new slice except for default records
- // added by aws in the zone at creation
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than route53 records
- if remoteResource.ResourceType() != aws.AwsRoute53RecordResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- if !isDefaultRecord(remoteResource) {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default unmanaged record")
- }
-
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
-
-// Return true if the record is considered as default one added by aws
-func isDefaultRecord(record *resource.Resource) bool {
- ty, _ := record.Attrs.Get("type")
- return ty == "NS" || ty == "SOA"
-}
diff --git a/pkg/middlewares/route53_records_id_reconcilier.go b/pkg/middlewares/route53_records_id_reconcilier.go
deleted file mode 100644
index 06873fd4b..000000000
--- a/pkg/middlewares/route53_records_id_reconcilier.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package middlewares
-
-import (
- "strings"
-
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Since AWS returns the FQDN as the name of the remote record, we must change the Id of the
-// state record to be equivalent (ZoneId_FQDN_Type_SetIdentifier)
-// For a TXT record toto for zone example.com with Id 1234
-// From AWS provider, we retrieve: 1234_toto.example.com_TXT
-// From Terraform state, we retrieve: 1234_toto_TXT
-type Route53RecordIDReconcilier struct{}
-
-func NewRoute53RecordIDReconcilier() Route53RecordIDReconcilier {
- return Route53RecordIDReconcilier{}
-}
-
-func (m Route53RecordIDReconcilier) Execute(_, resourcesFromState *[]*resource.Resource) error {
-
- for _, stateResource := range *resourcesFromState {
-
- if stateResource.ResourceType() != aws.AwsRoute53RecordResourceType {
- continue
- }
-
- vars := []string{
- (*stateResource.Attrs)["zone_id"].(string),
- (*stateResource.Attrs)["fqdn"].(string),
- (*stateResource.Attrs)["type"].(string),
- }
- newId := strings.Join(vars, "_")
- if newId != stateResource.Id {
- stateResource.Id = newId
- _ = stateResource.Attrs.SafeSet([]string{"id"}, newId)
- logrus.WithFields(logrus.Fields{
- "old_id": stateResource.ResourceId(),
- "new_id": newId,
- }).Debug("Normalized route53 record ID")
- }
- }
-
- return nil
-}
diff --git a/pkg/middlewares/route53_records_id_reconcilier_test.go b/pkg/middlewares/route53_records_id_reconcilier_test.go
deleted file mode 100644
index 8a1c97bc3..000000000
--- a/pkg/middlewares/route53_records_id_reconcilier_test.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/stretchr/testify/assert"
-)
-
-func TestRoute53RecordIDReconcilier_Execute(t *testing.T) {
- tests := []struct {
- name string
- resourcesFromState []*resource.Resource
- expected []*resource.Resource
- }{
- {
- name: "test that id are normalized",
- resourcesFromState: []*resource.Resource{
- {},
- {
- Id: "1234_toto_TXT",
- Type: aws.AwsRoute53RecordResourceType,
- Attrs: &resource.Attributes{
- "id": "1234_toto_TXT",
- "zone_id": "1234",
- "fqdn": "toto.example.com",
- "type": "TXT",
- },
- },
- },
- expected: []*resource.Resource{
- {},
- {
- Id: "1234_toto.example.com_TXT",
- Type: aws.AwsRoute53RecordResourceType,
- Attrs: &resource.Attributes{
- "id": "1234_toto.example.com_TXT",
- "zone_id": "1234",
- "fqdn": "toto.example.com",
- "type": "TXT",
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- m := NewRoute53RecordIDReconcilier()
- err := m.Execute(nil, &tt.resourcesFromState)
-
- if err != nil {
- t.Fatal(err)
- }
-
- assert.Equal(t, tt.expected, tt.resourcesFromState)
-
- })
- }
-}
diff --git a/pkg/middlewares/route53_records_test.go b/pkg/middlewares/route53_records_test.go
deleted file mode 100644
index 8c2076721..000000000
--- a/pkg/middlewares/route53_records_test.go
+++ /dev/null
@@ -1,123 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/pkg/resource/aws"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestDefaultRoute53RecordShouldBeIgnored(t *testing.T) {
- middleware := NewRoute53DefaultZoneRecordSanitizer()
- remoteResources := []*resource.Resource{
- {
- Type: aws.AwsRoute53ZoneResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_NS",
- Attrs: &resource.Attributes{
- "type": "NS",
- },
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_SOA",
- Attrs: &resource.Attributes{
- "type": "SOA",
- },
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_A",
- Attrs: &resource.Attributes{
- "type": "A",
- },
- },
- }
- stateResources := []*resource.Resource{
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "456_barfoo_NS",
- Attrs: &resource.Attributes{
- "type": "NS",
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err != nil {
- t.Error(err)
- }
-
- if len(remoteResources) != 2 {
- t.Error("Default records were not ignored")
- }
- remainingResource := remoteResources[1]
- ty, _ := remainingResource.Attrs.Get("type")
- if ty != "A" {
- t.Error("Default record is invalid")
- }
-}
-
-func TestDefaultRoute53RecordShouldNotBeIgnoredWhenManaged(t *testing.T) {
- middleware := NewRoute53DefaultZoneRecordSanitizer()
- remoteResources := []*resource.Resource{
- {
- Type: aws.AwsRoute53ZoneResourceType,
- Attrs: &resource.Attributes{},
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_NS",
- Attrs: &resource.Attributes{
- "type": "NS",
- },
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_SOA",
- Attrs: &resource.Attributes{
- "type": "SOA",
- },
- },
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_A",
- Attrs: &resource.Attributes{
- "type": "A",
- },
- },
- }
- stateResources := []*resource.Resource{
- {
- Type: aws.AwsRoute53RecordResourceType,
- Id: "123_foobar_NS",
- Attrs: &resource.Attributes{
- "type": "NS",
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
-
- if err != nil {
- t.Error(err)
- }
-
- if len(remoteResources) != 3 {
- t.Error("Default records were not ignored")
- }
- managedDefaultRecord := remoteResources[1]
- ty, _ := managedDefaultRecord.Attrs.Get("type")
- if ty != "NS" {
- t.Error("Default record is ignored but should not be")
- }
-
- ignoredRecord := remoteResources[2]
- ty, _ = ignoredRecord.Attrs.Get("type")
- if ty != "A" {
- t.Error("Non default record was ignored")
- }
-}
diff --git a/pkg/middlewares/s3_bucket_acl.go b/pkg/middlewares/s3_bucket_acl.go
deleted file mode 100644
index 35db9b87a..000000000
--- a/pkg/middlewares/s3_bucket_acl.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Remove grant field on remote resources when acl field != private in state
-type S3BucketAcl struct{}
-
-func NewS3BucketAcl() S3BucketAcl {
- return S3BucketAcl{}
-}
-
-func (m S3BucketAcl) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
-
- for _, iacResource := range *resourcesFromState {
- // Ignore all resources other than s3 buckets
- if iacResource.ResourceType() != aws.AwsS3BucketResourceType {
- continue
- }
-
- for _, remoteResource := range *remoteResources {
- if remoteResource.Equal(iacResource) {
- aclAttr, exist := iacResource.Attrs.Get("acl")
- if !exist || aclAttr == nil || aclAttr == "" {
- break
- }
- if aclAttr != "private" {
- logrus.WithFields(logrus.Fields{
- "type": remoteResource.ResourceType(),
- "id": remoteResource.ResourceId(),
- }).Debug("Found a resource to update")
- remoteResource.Attrs.SafeDelete([]string{"grant"})
- }
- break
- }
- }
-
- iacResource.Attrs.SafeDelete([]string{"acl"})
- }
-
- return nil
-}
diff --git a/pkg/middlewares/s3_bucket_acl_test.go b/pkg/middlewares/s3_bucket_acl_test.go
deleted file mode 100644
index 9ee582b42..000000000
--- a/pkg/middlewares/s3_bucket_acl_test.go
+++ /dev/null
@@ -1,216 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-
- "github.com/snyk/driftctl/pkg/resource/aws"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestS3BucketAcl_Execute(t *testing.T) {
- type args struct {
- remoteResources *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- }
- tests := []struct {
- name string
- args args
- assert func(assert *assert.Assertions, remoteResources, resourcesFromState *[]*resource.Resource)
- }{
- {
- name: "grant field on remote resource must be reset if acl != private in state resource",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "grant": []map[string]interface{}{
- {
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- },
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Type: aws.AwsAmiResourceType,
- },
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "acl": "public-read",
- },
- },
- },
- },
- assert: func(assert *assert.Assertions, remoteResources, resourcesFromState *[]*resource.Resource) {
- remoteRes := (*remoteResources)[0]
- stateRes := (*resourcesFromState)[1]
- _, exist := remoteRes.Attrs.Get("grant")
- _, stateAclExist := stateRes.Attrs.Get("acl")
- _, remoteAclExist := remoteRes.Attrs.Get("acl")
- assert.False(exist)
- assert.False(stateAclExist)
- assert.False(remoteAclExist)
- },
- },
- {
- name: "does not modify grant field on remote resource if acl field is private",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "grant": []map[string]interface{}{
- {
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- },
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Type: aws.AwsAmiResourceType,
- },
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "acl": "private",
- },
- },
- },
- },
- assert: func(assert *assert.Assertions, remoteResources, resourcesFromState *[]*resource.Resource) {
- s3Bucket := (*remoteResources)[0]
- grantAttr, exist := s3Bucket.Attrs.Get("grant")
- grant := grantAttr.([]map[string]interface{})
- assert.True(exist)
- assert.Len(grant, 1)
- expected := map[string]interface{}{
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- }
- assert.Equal(expected, grant[0])
- },
- },
- {
- name: "does not modify grant field on remote resource if acl field is undefined",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "grant": []map[string]interface{}{
- {
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- },
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Type: aws.AwsAmiResourceType,
- },
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{},
- },
- },
- },
- assert: func(assert *assert.Assertions, remoteResources, resourcesFromState *[]*resource.Resource) {
- s3Bucket := (*remoteResources)[0]
- grantAttr, exist := s3Bucket.Attrs.Get("grant")
- grant := grantAttr.([]map[string]interface{})
- assert.True(exist)
- assert.Len(grant, 1)
- expected := map[string]interface{}{
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- }
- assert.Equal(expected, grant[0])
- },
- },
- {
- name: "does not modify grant field on remote resource if acl field is empty",
- args: args{
- remoteResources: &[]*resource.Resource{
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "grant": []map[string]interface{}{
- {
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- },
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Type: aws.AwsAmiResourceType,
- },
- {
- Id: "testgrant",
- Type: aws.AwsS3BucketResourceType,
- Attrs: &resource.Attributes{
- "acl": "",
- },
- },
- },
- },
- assert: func(assert *assert.Assertions, remoteResources, resourcesFromState *[]*resource.Resource) {
- s3Bucket := (*remoteResources)[0]
- grantAttr, exist := s3Bucket.Attrs.Get("grant")
- grant := grantAttr.([]map[string]interface{})
- assert.True(exist)
- assert.Len(grant, 1)
- expected := map[string]interface{}{
- "id": "356616ba70ebbea29732c95eef24f9ea326b9018c167651705348b5af406a6db",
- "permissions": []string{"FULL_CONTROL"},
- "type": "CanonicalUser",
- "uri": "",
- }
- assert.Equal(expected, grant[0])
- },
- },
- }
- for _, c := range tests {
- t.Run(c.name, func(tt *testing.T) {
- assert := assert.New(tt)
- m := S3BucketAcl{}
- if err := m.Execute(c.args.remoteResources, c.args.resourcesFromState); err != nil {
- tt.Error(err)
- }
- c.assert(assert, c.args.remoteResources, c.args.resourcesFromState)
- })
- }
-}
diff --git a/pkg/middlewares/tags_all_manager.go b/pkg/middlewares/tags_all_manager.go
deleted file mode 100644
index a84b76cec..000000000
--- a/pkg/middlewares/tags_all_manager.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package middlewares
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-// Manage tags_all attribute on each compatible resources
-type TagsAllManager struct{}
-
-func NewTagsAllManager() TagsAllManager {
- return TagsAllManager{}
-}
-
-func (a TagsAllManager) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- for _, remoteRes := range *remoteResources {
- if remoteRes.Attrs != nil {
- if _, exist := remoteRes.Attrs.Get("tags_all"); exist {
- remoteRes.Attrs.SafeDelete([]string{"tags_all"})
- }
- }
- }
- for _, stateRes := range *resourcesFromState {
- if stateRes.Attrs != nil {
- if allTags, exist := stateRes.Attrs.Get("tags_all"); exist {
- _ = stateRes.Attrs.SafeSet([]string{"tags"}, allTags)
- stateRes.Attrs.SafeDelete([]string{"tags_all"})
- }
- }
- }
- return nil
-}
diff --git a/pkg/middlewares/tags_all_manager_test.go b/pkg/middlewares/tags_all_manager_test.go
deleted file mode 100644
index a89a9a489..000000000
--- a/pkg/middlewares/tags_all_manager_test.go
+++ /dev/null
@@ -1,98 +0,0 @@
-package middlewares
-
-import (
- "strings"
- "testing"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-func TestTagsAllManager_Execute(t *testing.T) {
- tests := []struct {
- name string
- remoteResources *[]*resource.Resource
- resourcesFromState *[]*resource.Resource
- wantErr bool
- }{
- {
- name: "With multiple resources that are tags_all compatible",
- remoteResources: &[]*resource.Resource{
- {
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "Name": "toto",
- "Terraform": "true",
- },
- "tags_all": map[string]interface{}{
- "Name": "toto",
- "Terraform": "true",
- },
- },
- },
- {
- Id: "dummy-ebs-volume",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "Name": "tata",
- "Terraform": "true",
- },
- "tags_all": map[string]interface{}{
- "Name": "tata",
- "Terraform": "true",
- },
- },
- },
- },
- resourcesFromState: &[]*resource.Resource{
- {
- Id: "dummy-instance",
- Type: "aws_instance",
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "Name": "toto",
- },
- "tags_all": map[string]interface{}{
- "Name": "toto",
- "Terraform": "true",
- },
- },
- },
- {
- Id: "dummy-ebs-volume",
- Type: "aws_ebs_volume",
- Attrs: &resource.Attributes{
- "tags": map[string]interface{}{
- "Name": "tata",
- },
- "tags_all": map[string]interface{}{
- "Name": "tata",
- "Terraform": "true",
- },
- },
- },
- },
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- a := NewTagsAllManager()
- if err := a.Execute(tt.remoteResources, tt.resourcesFromState); (err != nil) != tt.wantErr {
- t.Errorf("Execute() error = %v, wantErr %v", err, tt.wantErr)
- }
- changelog, err := diff.Diff(tt.resourcesFromState, tt.remoteResources)
- if err != nil {
- t.Error(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
- })
- }
-}
diff --git a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv2.json b/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv2.json
deleted file mode 100644
index 32959e162..000000000
--- a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv2.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "example-api",
- "version": "2021-12-07 14:33:56UTC"
- },
- "host": "abcd.execute-api.eu-west-1.amazonaws.com",
- "basePath": "/%7BbasePath%7D",
- "schemes": [
- "https"
- ],
- "paths": {
- "/example": {
- "get": {
- "x-amazon-apigateway-integration": {
- "payloadFormatVersion": "1.0",
- "type": "HTTP_PROXY",
- "httpMethod": "GET",
- "uri": "https://example.com",
- "connectionType": "INTERNET"
- },
- "parameters": [],
- "responses": {
- "default": {
- "description": "Default response for GET /example"
- }
- }
- }
- }
- }
-}
-
diff --git a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv3.yml b/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv3.yml
deleted file mode 100644
index c65df7455..000000000
--- a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_integration_openapiv3.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-openapi: "3.0.1"
-info:
- title: "example-api"
- version: "2021-12-07 13:55:09UTC"
-servers:
-- url: "https://abcd.execute-api.eu-west-1.amazonaws.com/{basePath}"
- variables:
- basePath:
- default: ""
-paths:
- /example:
- get:
- x-amazon-apigateway-integration:
- payloadFormatVersion: "1.0"
- type: "HTTP_PROXY"
- httpMethod: "GET"
- uri: "https://example.com"
- connectionType: "INTERNET"
- responses:
- default:
- description: "Default response for GET /example"
diff --git a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv2.json b/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv2.json
deleted file mode 100644
index 5d4d6fc1e..000000000
--- a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv2.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "example-api",
- "version": "2021-12-07 14:33:56UTC"
- },
- "host": "abcd.execute-api.eu-west-1.amazonaws.com",
- "basePath": "/%7BbasePath%7D",
- "schemes": [
- "https"
- ],
- "paths": {
- "/example": {
- "get": {
- "parameters": [],
- "responses": {
- "default": {
- "description": "Default response for GET /example"
- }
- }
- }
- }
- }
-}
-
diff --git a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv3.yml b/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv3.yml
deleted file mode 100644
index 1d40e3114..000000000
--- a/pkg/middlewares/testdata/aws_apigatewayv2_api_body_openapiv3.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-openapi: "3.0.1"
-info:
- title: "example-api"
- version: "2021-12-07 13:55:09UTC"
-servers:
-- url: "https://abcd.execute-api.eu-west-1.amazonaws.com/{basePath}"
- variables:
- basePath:
- default: ""
-paths:
- /example:
- get:
- responses:
- default:
- description: "Default response for GET /example"
- post:
- responses:
- default:
- description: "Default response for POST /example"
- /example2:
- get:
- responses:
- default:
- description: "Default response for GET /example2"
diff --git a/pkg/middlewares/vpc_security_group_default.go b/pkg/middlewares/vpc_security_group_default.go
deleted file mode 100644
index 9e1a8dc4e..000000000
--- a/pkg/middlewares/vpc_security_group_default.go
+++ /dev/null
@@ -1,50 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Remove default security group from remote resources
-type VPCDefaultSecurityGroupSanitizer struct{}
-
-func NewVPCDefaultSecurityGroupSanitizer() VPCDefaultSecurityGroupSanitizer {
- return VPCDefaultSecurityGroupSanitizer{}
-}
-
-func (m VPCDefaultSecurityGroupSanitizer) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newRemoteResources := make([]*resource.Resource, 0)
-
- for _, remoteResource := range *remoteResources {
- existInState := false
-
- // Ignore all resources other than default security group
- if remoteResource.ResourceType() != aws.AwsDefaultSecurityGroupResourceType {
- newRemoteResources = append(newRemoteResources, remoteResource)
- continue
- }
-
- for _, stateResource := range *resourcesFromState {
- if remoteResource.Equal(stateResource) {
- existInState = true
- break
- }
- }
-
- if existInState {
- newRemoteResources = append(newRemoteResources, remoteResource)
- }
-
- if !existInState {
- logrus.WithFields(logrus.Fields{
- "id": remoteResource.ResourceId(),
- "type": remoteResource.ResourceType(),
- }).Debug("Ignoring default unmanaged security group")
- }
- }
-
- *remoteResources = newRemoteResources
-
- return nil
-}
diff --git a/pkg/middlewares/vpc_security_group_default_test.go b/pkg/middlewares/vpc_security_group_default_test.go
deleted file mode 100644
index cdd43b65f..000000000
--- a/pkg/middlewares/vpc_security_group_default_test.go
+++ /dev/null
@@ -1,98 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-func TestDefaultVPCSecurityGroupShouldBeIgnored(t *testing.T) {
- middleware := NewVPCDefaultSecurityGroupSanitizer()
- remoteResources := []*resource.Resource{
- {
- Id: "sg-test",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "test",
- },
- },
- {
- Id: "sg-foo",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "foo",
- },
- },
- {
- Id: "sg-default",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "default",
- },
- },
- }
- stateResources := []*resource.Resource{
- {
- Id: "sg-bar",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "bar",
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
- if err != nil {
- t.Error(err)
- }
- if len(remoteResources) != 2 {
- t.Error("Default security group was not ignored")
- }
-}
-
-func TestDefaultVPCSecurityGroupShouldNotBeIgnoredWhenManaged(t *testing.T) {
- middleware := NewVPCDefaultSecurityGroupSanitizer()
- remoteResources := []*resource.Resource{
- {
- Id: "sg-test",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "test",
- },
- },
- {
- Id: "sg-foo",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "foo",
- },
- },
- {
- Id: "sg-default",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "default",
- },
- },
- }
- stateResources := []*resource.Resource{
- {
- Id: "sg-default",
- Type: aws.AwsDefaultSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "name": "default",
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
- if err != nil {
- t.Error(err)
- }
- if len(remoteResources) != 3 {
- t.Error("Default security group was ignored")
- }
- managedDefaultSecurityGroup := remoteResources[2]
- if *managedDefaultSecurityGroup.Attrs.GetString("name") != "default" {
- t.Error("Default security group is ignored when it should not be")
- }
-}
diff --git a/pkg/middlewares/vpc_security_group_rules.go b/pkg/middlewares/vpc_security_group_rules.go
deleted file mode 100644
index 5193c9591..000000000
--- a/pkg/middlewares/vpc_security_group_rules.go
+++ /dev/null
@@ -1,156 +0,0 @@
-package middlewares
-
-import (
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/enumeration/resource"
- resourceaws "github.com/snyk/driftctl/pkg/resource/aws"
-)
-
-// Split security group rule if it needs to given its attributes
-type VPCSecurityGroupRuleSanitizer struct {
- resourceFactory resource.ResourceFactory
-}
-
-func NewVPCSecurityGroupRuleSanitizer(resourceFactory resource.ResourceFactory) VPCSecurityGroupRuleSanitizer {
- return VPCSecurityGroupRuleSanitizer{
- resourceFactory,
- }
-}
-
-func (m VPCSecurityGroupRuleSanitizer) Execute(remoteResources, resourcesFromState *[]*resource.Resource) error {
- newStateResources := make([]*resource.Resource, 0)
-
- for _, stateResource := range *resourcesFromState {
- // Ignore all resources other than security group rule
- if stateResource.ResourceType() != resourceaws.AwsSecurityGroupRuleResourceType {
- newStateResources = append(newStateResources, stateResource)
- continue
- }
-
- if stateResource.Attrs.GetBool("self") != nil && *stateResource.Attrs.GetBool("self") {
- _ = stateResource.Attrs.SafeSet([]string{"source_security_group_id"}, *stateResource.Attrs.GetString("security_group_id"))
- }
-
- if !shouldBeSplit(stateResource) {
- stateResource.Attrs.SafeDelete([]string{"self"})
- newStateResources = append(newStateResources, stateResource)
- continue
- }
-
- if stateResource.Attrs.GetSlice("cidr_blocks") != nil && len(stateResource.Attrs.GetSlice("cidr_blocks")) > 0 {
- for _, ipRange := range stateResource.Attrs.GetSlice("cidr_blocks") {
- attrs := stateResource.Attrs.Copy()
- _ = attrs.SafeSet([]string{"cidr_blocks"}, []interface{}{ipRange})
- _ = attrs.SafeSet([]string{"ipv6_cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"prefix_list_ids"}, []interface{}{})
- res := m.createRule(attrs)
- logrus.WithFields(logrus.Fields{
- "formerRuleId": stateResource.ResourceId(),
- "newRuleId": res.ResourceId(),
- }).Debug("Splitting aws_security_group_rule")
- res.Attrs.SafeDelete([]string{"self"})
- newStateResources = append(newStateResources, res)
- }
- }
-
- if stateResource.Attrs.GetSlice("ipv6_cidr_blocks") != nil && len(stateResource.Attrs.GetSlice("ipv6_cidr_blocks")) > 0 {
- for _, ipRange := range stateResource.Attrs.GetSlice("ipv6_cidr_blocks") {
- attrs := stateResource.Attrs.Copy()
- _ = attrs.SafeSet([]string{"cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"ipv6_cidr_blocks"}, []interface{}{ipRange})
- _ = attrs.SafeSet([]string{"prefix_list_ids"}, []interface{}{})
- res := m.createRule(attrs)
- logrus.WithFields(logrus.Fields{
- "formerRuleId": stateResource.ResourceId(),
- "newRuleId": res.ResourceId(),
- }).Debug("Splitting aws_security_group_rule")
- res.Attrs.SafeDelete([]string{"self"})
- newStateResources = append(newStateResources, res)
- }
- }
-
- if stateResource.Attrs.GetSlice("prefix_list_ids") != nil && len(stateResource.Attrs.GetSlice("prefix_list_ids")) > 0 {
- for _, listId := range stateResource.Attrs.GetSlice("prefix_list_ids") {
- attrs := stateResource.Attrs.Copy()
- _ = attrs.SafeSet([]string{"cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"ipv6_cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"prefix_list_ids"}, []interface{}{listId})
- res := m.createRule(attrs)
- logrus.WithFields(logrus.Fields{
- "formerRuleId": stateResource.ResourceId(),
- "newRuleId": res.ResourceId(),
- }).Debug("Splitting aws_security_group_rule")
- res.Attrs.SafeDelete([]string{"self"})
- newStateResources = append(newStateResources, res)
- }
- }
-
- if (stateResource.Attrs.GetBool("self") != nil && *stateResource.Attrs.GetBool("self")) ||
- (stateResource.Attrs.GetString("source_security_group_id") != nil && *stateResource.Attrs.GetString("source_security_group_id") != "") {
- attrs := stateResource.Attrs.Copy()
- _ = attrs.SafeSet([]string{"cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"ipv6_cidr_blocks"}, []interface{}{})
- _ = attrs.SafeSet([]string{"prefix_list_ids"}, []interface{}{})
- res := m.createRule(attrs)
- logrus.WithFields(logrus.Fields{
- "formerRuleId": stateResource.ResourceId(),
- "newRuleId": res.ResourceId(),
- }).Debug("Splitting aws_security_group_rule")
- res.Attrs.SafeDelete([]string{"self"})
- newStateResources = append(newStateResources, res)
- }
- }
-
- *resourcesFromState = newStateResources
-
- for _, res := range *remoteResources {
- if res.ResourceType() != resourceaws.AwsSecurityGroupRuleResourceType {
- continue
- }
- res.Attrs.SafeDelete([]string{"self"})
- }
-
- return nil
-}
-
-func (m *VPCSecurityGroupRuleSanitizer) createRule(res *resource.Attributes) *resource.Resource {
- id := resourceaws.CreateSecurityGroupRuleIdHash(res)
- data := map[string]interface{}{
- "id": id,
- "cidr_blocks": (*res)["cidr_blocks"],
- "description": (*res)["description"],
- "from_port": (*res)["from_port"],
- "ipv6_cidr_blocks": (*res)["ipv6_cidr_blocks"],
- "prefix_list_ids": (*res)["prefix_list_ids"],
- "protocol": (*res)["protocol"],
- "security_group_id": (*res)["security_group_id"],
- "self": (*res)["self"],
- "source_security_group_id": (*res)["source_security_group_id"],
- "to_port": (*res)["to_port"],
- "type": (*res)["type"],
- }
- rule := m.resourceFactory.CreateAbstractResource("aws_security_group_rule", id, data)
- return rule
-}
-
-func shouldBeSplit(r *resource.Resource) bool {
- var i int
- if r.Attrs.GetSlice("cidr_blocks") != nil && len(r.Attrs.GetSlice("cidr_blocks")) > 0 {
- i += len(r.Attrs.GetSlice("cidr_blocks"))
- }
-
- if r.Attrs.GetSlice("ipv6_cidr_blocks") != nil && len(r.Attrs.GetSlice("ipv6_cidr_blocks")) > 0 {
- i += len(r.Attrs.GetSlice("ipv6_cidr_blocks"))
- }
-
- if r.Attrs.GetSlice("prefix_list_ids") != nil && len(r.Attrs.GetSlice("prefix_list_ids")) > 0 {
- i += len(r.Attrs.GetSlice("prefix_list_ids"))
- }
-
- if r.Attrs.GetBool("self") != nil && *r.Attrs.GetBool("self") ||
- (r.Attrs.GetString("source_security_group_id") != nil && *r.Attrs.GetString("source_security_group_id") != "") {
- i += 1
- }
- return i > 1
-}
diff --git a/pkg/middlewares/vpc_security_group_rules_test.go b/pkg/middlewares/vpc_security_group_rules_test.go
deleted file mode 100644
index b13a5a95c..000000000
--- a/pkg/middlewares/vpc_security_group_rules_test.go
+++ /dev/null
@@ -1,129 +0,0 @@
-package middlewares
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- "github.com/stretchr/testify/mock"
-)
-
-func TestVPCSecurityGroupRuleSanitizer(t *testing.T) {
-
- factory := &dctlresource.MockResourceFactory{}
- factory.On("CreateAbstractResource", aws.AwsSecurityGroupRuleResourceType, "sgrule-1175318309", mock.Anything).Times(1).Return(
- &resource.Resource{
- Id: "sgrule-1175318309",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
-
- factory.On("CreateAbstractResource", aws.AwsSecurityGroupRuleResourceType, "sgrule-2582518759", mock.Anything).Times(1).Return(
- &resource.Resource{
- Id: "sgrule-2582518759",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
-
- factory.On("CreateAbstractResource", aws.AwsSecurityGroupRuleResourceType, "sgrule-2165103420", mock.Anything).Times(1).Return(
- &resource.Resource{
- Id: "sgrule-2165103420",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
-
- factory.On("CreateAbstractResource", aws.AwsSecurityGroupRuleResourceType, "sgrule-350400929", mock.Anything).Times(1).Return(
- &resource.Resource{
- Id: "sgrule-350400929",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{},
- }, nil)
-
- middleware := NewVPCSecurityGroupRuleSanitizer(factory)
- var remoteResources []*resource.Resource
- stateResources := []*resource.Resource{
- {
- Id: "sg-test",
- Type: aws.AwsSecurityGroupResourceType,
- Attrs: &resource.Attributes{
- "id": "sg-test",
- "name": "test",
- },
- },
- {
- Id: "sgrule-3970541193",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "sgrule-3970541193",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "self": true,
- "source_security_group_id": "sg-0254c038e32f25530",
- },
- },
- {
- Id: "sgrule-845917806",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "sgrule-845917806",
- "type": "egress",
- "security_group_id": "sg-0cc8b3c3c2851705a",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"0.0.0.0/0"},
- "ipv6_cidr_blocks": []interface{}{"::/0"},
- },
- },
- {
- Id: "sgrule-294318973",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "sgrule-294318973",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "-1",
- "from_port": float64(0),
- "to_port": float64(0),
- "cidr_blocks": []interface{}{"1.2.0.0/16", "5.6.7.0/24"},
- },
- },
- {
- Id: "sgrule-2471889226",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "sgrule-2471889226",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(0),
- "prefix_list_id": []interface{}{"pl-abb451c2"},
- },
- },
- {
- Id: "sgrule-3587309474",
- Type: aws.AwsSecurityGroupRuleResourceType,
- Attrs: &resource.Attributes{
- "id": "sgrule-3587309474",
- "type": "ingress",
- "security_group_id": "sg-0254c038e32f25530",
- "protocol": "tcp",
- "from_port": float64(0),
- "to_port": float64(65535),
- "prefix_list_id": []interface{}{"sg-9e0204ff"},
- },
- },
- }
- err := middleware.Execute(&remoteResources, &stateResources)
- if err != nil {
- t.Error(err)
- }
- if len(stateResources) != 8 {
- t.Error("Some security group rules were not split")
- }
-}
diff --git a/pkg/output/mock_Progress.go b/pkg/output/mock_Progress.go
deleted file mode 100644
index f4cf14cfb..000000000
--- a/pkg/output/mock_Progress.go
+++ /dev/null
@@ -1,54 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package output
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockProgress is an autogenerated mock type for the Progress type
-type MockProgress struct {
- mock.Mock
-}
-
-// Inc provides a mock function with given fields:
-func (_m *MockProgress) Inc() {
- _m.Called()
-}
-
-// Start provides a mock function with given fields:
-func (_m *MockProgress) Start() {
- _m.Called()
-}
-
-// Stop provides a mock function with given fields:
-func (_m *MockProgress) Stop() {
- _m.Called()
-}
-
-// Val provides a mock function with given fields:
-func (_m *MockProgress) Val() uint64 {
- ret := _m.Called()
-
- var r0 uint64
- if rf, ok := ret.Get(0).(func() uint64); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(uint64)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockProgress interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockProgress creates a new instance of MockProgress. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockProgress(t mockConstructorTestingTNewMockProgress) *MockProgress {
- mock := &MockProgress{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/pkg/output/printer.go b/pkg/output/printer.go
deleted file mode 100644
index b0b57293e..000000000
--- a/pkg/output/printer.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package output
-
-import (
- "fmt"
- "os"
-)
-
-var globalPrinter Printer = &VoidPrinter{}
-
-func ChangePrinter(printer Printer) {
- globalPrinter = printer
-}
-
-func Printf(format string, args ...interface{}) {
- globalPrinter.Printf(format, args...)
-}
-
-type Printer interface {
- Printf(format string, args ...interface{})
-}
-
-type ConsolePrinter struct{}
-
-func NewConsolePrinter() *ConsolePrinter {
- return &ConsolePrinter{}
-}
-
-func (c *ConsolePrinter) Printf(format string, args ...interface{}) {
- _, _ = fmt.Fprintf(os.Stderr, format, args...)
-}
-
-type VoidPrinter struct{}
-
-func (v *VoidPrinter) Printf(format string, args ...interface{}) {}
diff --git a/pkg/output/progress.go b/pkg/output/progress.go
deleted file mode 100644
index 401df1bab..000000000
--- a/pkg/output/progress.go
+++ /dev/null
@@ -1,143 +0,0 @@
-package output
-
-import (
- "fmt"
- "time"
-
- "go.uber.org/atomic"
-
- "github.com/sirupsen/logrus"
-)
-
-var spinner = []string{"⣷", "⣯", "⣟", "⡿", "⢿", "⣻", "⣽", "⣾"}
-
-const (
- progressTimeout = 10 * time.Second
- progressRefreshRate = 200 * time.Millisecond
-)
-
-type Progress interface {
- Start()
- Stop()
- Inc()
- Val() uint64
-}
-
-type ProgressOptions struct {
- LoadingText string
- FinishedText string
- ShowCount bool
-}
-
-type progress struct {
- endChan chan struct{}
- started *atomic.Bool
- count *atomic.Uint64
- loadingText string
- finishedText string
- showCount bool
- highestLineLength int
-}
-
-func NewProgress(loadingText, finishedText string, showCount bool) *progress {
- return &progress{
- nil,
- atomic.NewBool(false),
- atomic.NewUint64(0),
- loadingText,
- finishedText,
- showCount,
- 0,
- }
-}
-
-func (p *progress) Start() {
- if !p.started.Swap(true) {
- p.count.Store(0)
- p.endChan = make(chan struct{})
- go p.watch()
- go p.render()
- }
-}
-
-func (p *progress) Stop() {
- if p.started.Swap(false) {
- if p.showCount {
- p.printf("%s (%d)\n", p.finishedText, p.count.Load())
- } else {
- p.printf("%s\r", p.finishedText)
- }
- close(p.endChan)
- }
-}
-
-func (p *progress) Inc() {
- if lastVal := p.count.Load(); !p.started.Load() {
- logrus.Debug("Progress received a tic after stopping. Restarting...")
- p.Start()
- p.count.Store(lastVal)
- }
- p.count.Inc()
-}
-
-func (p *progress) Val() uint64 {
- return p.count.Load()
-}
-
-func (p *progress) render() {
- i := -1
- p.printf("%s\r", p.loadingText)
- for {
- select {
- case <-p.endChan:
- return
- case <-time.After(progressRefreshRate):
- i++
- if i >= len(spinner) {
- i = 0
- }
- if p.showCount {
- p.printf("%s %s (%d)\r", p.loadingText, spinner[i], p.count.Load())
- } else {
- p.printf("%s %s\r", p.loadingText, spinner[i])
- }
- }
- }
-}
-
-func (p *progress) watch() {
-Loop:
- for {
- lastVal := p.count.Load()
- select {
- case <-time.After(progressTimeout):
- if p.count.Load() != lastVal {
- continue
- }
- if p.started.Swap(false) {
- close(p.endChan)
- break Loop
- }
- case <-p.endChan:
- return
- }
- }
- logrus.Debug("Progress did not receive any tic. Stopping...")
-}
-
-func (p *progress) flush() {
- for i := 0; i < p.highestLineLength; i++ {
- Printf(" ")
- }
- Printf("\r")
-}
-
-func (p *progress) printf(format string, args ...interface{}) {
- txt := fmt.Sprintf(format, args...)
- length := len(txt)
- if length > p.highestLineLength {
- p.highestLineLength = length
- }
- p.flush()
- Printf(txt)
-}
diff --git a/pkg/output/progress_test.go b/pkg/output/progress_test.go
deleted file mode 100644
index 18d41e828..000000000
--- a/pkg/output/progress_test.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package output
-
-import (
- "testing"
- "time"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestProgressTimeoutDoesNotInc(t *testing.T) {
- progress := NewProgress("loading", "loaded", false)
- progress.Start()
- progress.Inc()
- progress.Stop() // should not hang
- progress.Inc() // should restart progress and inc
- assert.Equal(t, uint64(2), progress.Val())
- assert.Equal(t, true, progress.started.Load())
-
- progress.Stop()
- assert.Equal(t, false, progress.started.Load())
-}
-
-func TestProgressTimeoutDoesNotHang(t *testing.T) {
- progress := NewProgress("loading", "loaded", false)
- progress.Start()
- time.Sleep(progressTimeout)
- for progress.started.Load() == true {
- }
- progress.Inc() // should not hang but inc
- progress.Stop() // should not hang
- assert.Equal(t, uint64(1), progress.Val())
-}
-
-func TestProgress(t *testing.T) {
- progress := NewProgress("loading", "loaded", false)
- progress.Start()
- progress.Inc()
- progress.Inc()
- progress.Inc()
- progress.Stop()
- assert.Equal(t, uint64(3), progress.Val())
-}
diff --git a/pkg/resource/aws/aws_alb.go b/pkg/resource/aws/aws_alb.go
deleted file mode 100644
index 15655ebb9..000000000
--- a/pkg/resource/aws/aws_alb.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApplicationLoadBalancerResourceType = "aws_alb"
diff --git a/pkg/resource/aws/aws_alb_listener.go b/pkg/resource/aws/aws_alb_listener.go
deleted file mode 100644
index 47aa4c484..000000000
--- a/pkg/resource/aws/aws_alb_listener.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApplicationLoadBalancerListenerResourceType = "aws_alb_listener"
diff --git a/pkg/resource/aws/aws_alb_listener_test.go b/pkg/resource/aws/aws_alb_listener_test.go
deleted file mode 100644
index dd88e3fd3..000000000
--- a/pkg/resource/aws/aws_alb_listener_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApplicationLoadBalancerListener(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_alb_listener"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_alb_test.go b/pkg/resource/aws/aws_alb_test.go
deleted file mode 100644
index 3faba19c1..000000000
--- a/pkg/resource/aws/aws_alb_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApplicationLoadBalancer(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_alb"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ami.go b/pkg/resource/aws/aws_ami.go
deleted file mode 100644
index 7b2e330d2..000000000
--- a/pkg/resource/aws/aws_ami.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsAmiResourceType = "aws_ami"
-
-func initAwsAmiMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsAmiResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_ami_test.go b/pkg/resource/aws/aws_ami_test.go
deleted file mode 100644
index 2dd97d7dc..000000000
--- a/pkg/resource/aws/aws_ami_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_Ami(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ami"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_account.go b/pkg/resource/aws/aws_api_gateway_account.go
deleted file mode 100644
index 6370f2881..000000000
--- a/pkg/resource/aws/aws_api_gateway_account.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayAccountResourceType = "aws_api_gateway_account"
diff --git a/pkg/resource/aws/aws_api_gateway_account_test.go b/pkg/resource/aws/aws_api_gateway_account_test.go
deleted file mode 100644
index 6e8926fa1..000000000
--- a/pkg/resource/aws/aws_api_gateway_account_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayAccount(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_account"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_api_key.go b/pkg/resource/aws/aws_api_gateway_api_key.go
deleted file mode 100644
index ee34b6eca..000000000
--- a/pkg/resource/aws/aws_api_gateway_api_key.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayApiKeyResourceType = "aws_api_gateway_api_key"
diff --git a/pkg/resource/aws/aws_api_gateway_api_key_test.go b/pkg/resource/aws/aws_api_gateway_api_key_test.go
deleted file mode 100644
index def5a6029..000000000
--- a/pkg/resource/aws/aws_api_gateway_api_key_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayApiKey(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_api_key"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_authorizer.go b/pkg/resource/aws/aws_api_gateway_authorizer.go
deleted file mode 100644
index 25dc217ac..000000000
--- a/pkg/resource/aws/aws_api_gateway_authorizer.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayAuthorizerResourceType = "aws_api_gateway_authorizer"
diff --git a/pkg/resource/aws/aws_api_gateway_authorizer_test.go b/pkg/resource/aws/aws_api_gateway_authorizer_test.go
deleted file mode 100644
index aa966bf75..000000000
--- a/pkg/resource/aws/aws_api_gateway_authorizer_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayAuthorizer(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "1.4.6",
- Paths: []string{"./testdata/acc/aws_api_gateway_authorizer"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_base_path_mapping.go b/pkg/resource/aws/aws_api_gateway_base_path_mapping.go
deleted file mode 100644
index 23feab7d6..000000000
--- a/pkg/resource/aws/aws_api_gateway_base_path_mapping.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayBasePathMappingResourceType = "aws_api_gateway_base_path_mapping"
diff --git a/pkg/resource/aws/aws_api_gateway_base_path_mapping_test.go b/pkg/resource/aws/aws_api_gateway_base_path_mapping_test.go
deleted file mode 100644
index 1728473fc..000000000
--- a/pkg/resource/aws/aws_api_gateway_base_path_mapping_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayBasePathMapping(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_base_path_mapping"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_deployment.go b/pkg/resource/aws/aws_api_gateway_deployment.go
deleted file mode 100644
index 4e4a2f23f..000000000
--- a/pkg/resource/aws/aws_api_gateway_deployment.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayDeploymentResourceType = "aws_api_gateway_deployment"
diff --git a/pkg/resource/aws/aws_api_gateway_domain_name.go b/pkg/resource/aws/aws_api_gateway_domain_name.go
deleted file mode 100644
index 9f05e1a8d..000000000
--- a/pkg/resource/aws/aws_api_gateway_domain_name.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayDomainNameResourceType = "aws_api_gateway_domain_name"
diff --git a/pkg/resource/aws/aws_api_gateway_domain_name_test.go b/pkg/resource/aws/aws_api_gateway_domain_name_test.go
deleted file mode 100644
index 39604768b..000000000
--- a/pkg/resource/aws/aws_api_gateway_domain_name_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayDomainName(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_domain_name"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_gateway_response.go b/pkg/resource/aws/aws_api_gateway_gateway_response.go
deleted file mode 100644
index 4f02a9057..000000000
--- a/pkg/resource/aws/aws_api_gateway_gateway_response.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayGatewayResponseResourceType = "aws_api_gateway_gateway_response"
diff --git a/pkg/resource/aws/aws_api_gateway_gateway_response_test.go b/pkg/resource/aws/aws_api_gateway_gateway_response_test.go
deleted file mode 100644
index 8c415ca58..000000000
--- a/pkg/resource/aws/aws_api_gateway_gateway_response_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayGatewayResponse(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_gateway_response"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_integration.go b/pkg/resource/aws/aws_api_gateway_integration.go
deleted file mode 100644
index 743f5e3c1..000000000
--- a/pkg/resource/aws/aws_api_gateway_integration.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayIntegrationResourceType = "aws_api_gateway_integration"
diff --git a/pkg/resource/aws/aws_api_gateway_integration_response.go b/pkg/resource/aws/aws_api_gateway_integration_response.go
deleted file mode 100644
index 7170ec58c..000000000
--- a/pkg/resource/aws/aws_api_gateway_integration_response.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayIntegrationResponseResourceType = "aws_api_gateway_integration_response"
diff --git a/pkg/resource/aws/aws_api_gateway_integration_response_test.go b/pkg/resource/aws/aws_api_gateway_integration_response_test.go
deleted file mode 100644
index e32d0d4c8..000000000
--- a/pkg/resource/aws/aws_api_gateway_integration_response_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayIntegrationResponse(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_integration_response"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_integration_test.go b/pkg/resource/aws/aws_api_gateway_integration_test.go
deleted file mode 100644
index a082f8d18..000000000
--- a/pkg/resource/aws/aws_api_gateway_integration_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayIntegration(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_integration"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_method.go b/pkg/resource/aws/aws_api_gateway_method.go
deleted file mode 100644
index 77484f750..000000000
--- a/pkg/resource/aws/aws_api_gateway_method.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayMethodResourceType = "aws_api_gateway_method"
diff --git a/pkg/resource/aws/aws_api_gateway_method_response.go b/pkg/resource/aws/aws_api_gateway_method_response.go
deleted file mode 100644
index c499500a1..000000000
--- a/pkg/resource/aws/aws_api_gateway_method_response.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayMethodResponseResourceType = "aws_api_gateway_method_response"
diff --git a/pkg/resource/aws/aws_api_gateway_method_response_test.go b/pkg/resource/aws/aws_api_gateway_method_response_test.go
deleted file mode 100644
index ce47747fd..000000000
--- a/pkg/resource/aws/aws_api_gateway_method_response_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayMethodResponse(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_method_response"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_method_settings.go b/pkg/resource/aws/aws_api_gateway_method_settings.go
deleted file mode 100644
index f3af58606..000000000
--- a/pkg/resource/aws/aws_api_gateway_method_settings.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayMethodSettingsResourceType = "aws_api_gateway_method_settings"
diff --git a/pkg/resource/aws/aws_api_gateway_method_settings_test.go b/pkg/resource/aws/aws_api_gateway_method_settings_test.go
deleted file mode 100644
index 11970098c..000000000
--- a/pkg/resource/aws/aws_api_gateway_method_settings_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayMethodSettings(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_method_settings"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_method_test.go b/pkg/resource/aws/aws_api_gateway_method_test.go
deleted file mode 100644
index adcc90b00..000000000
--- a/pkg/resource/aws/aws_api_gateway_method_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayMethod(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_method"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(4)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_model.go b/pkg/resource/aws/aws_api_gateway_model.go
deleted file mode 100644
index 7f068d856..000000000
--- a/pkg/resource/aws/aws_api_gateway_model.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayModelResourceType = "aws_api_gateway_model"
diff --git a/pkg/resource/aws/aws_api_gateway_model_test.go b/pkg/resource/aws/aws_api_gateway_model_test.go
deleted file mode 100644
index 1c90bb5c4..000000000
--- a/pkg/resource/aws/aws_api_gateway_model_test.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayModel(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_model"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertManagedCount(2)
-
- // Models creating from an empty aws_api_gateway_rest_api
- // (e.g. empty body) result in 2 aws_api_gateway_model
- // created by default, hence unmanaged resources.
- result.AssertUnmanagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_request_validator.go b/pkg/resource/aws/aws_api_gateway_request_validator.go
deleted file mode 100644
index e11936055..000000000
--- a/pkg/resource/aws/aws_api_gateway_request_validator.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayRequestValidatorResourceType = "aws_api_gateway_request_validator"
diff --git a/pkg/resource/aws/aws_api_gateway_request_validator_test.go b/pkg/resource/aws/aws_api_gateway_request_validator_test.go
deleted file mode 100644
index 2c60f871c..000000000
--- a/pkg/resource/aws/aws_api_gateway_request_validator_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayRequestValidator(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_request_validator"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_resource.go b/pkg/resource/aws/aws_api_gateway_resource.go
deleted file mode 100644
index 73bce671d..000000000
--- a/pkg/resource/aws/aws_api_gateway_resource.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayResourceResourceType = "aws_api_gateway_resource"
diff --git a/pkg/resource/aws/aws_api_gateway_resource_test.go b/pkg/resource/aws/aws_api_gateway_resource_test.go
deleted file mode 100644
index 29a97f844..000000000
--- a/pkg/resource/aws/aws_api_gateway_resource_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayResource(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_resource"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(8)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_rest_api.go b/pkg/resource/aws/aws_api_gateway_rest_api.go
deleted file mode 100644
index 9880f5716..000000000
--- a/pkg/resource/aws/aws_api_gateway_rest_api.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayRestApiResourceType = "aws_api_gateway_rest_api"
diff --git a/pkg/resource/aws/aws_api_gateway_rest_api_policy.go b/pkg/resource/aws/aws_api_gateway_rest_api_policy.go
deleted file mode 100644
index 95c1a6770..000000000
--- a/pkg/resource/aws/aws_api_gateway_rest_api_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayRestApiPolicyResourceType = "aws_api_gateway_rest_api_policy"
diff --git a/pkg/resource/aws/aws_api_gateway_rest_api_policy_test.go b/pkg/resource/aws/aws_api_gateway_rest_api_policy_test.go
deleted file mode 100644
index 14e9c067e..000000000
--- a/pkg/resource/aws/aws_api_gateway_rest_api_policy_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayRestApiPolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_rest_api_policy"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_rest_api_test.go b/pkg/resource/aws/aws_api_gateway_rest_api_test.go
deleted file mode 100644
index fe71382c1..000000000
--- a/pkg/resource/aws/aws_api_gateway_rest_api_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayRestApi(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_rest_api"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_stage.go b/pkg/resource/aws/aws_api_gateway_stage.go
deleted file mode 100644
index 32a10613c..000000000
--- a/pkg/resource/aws/aws_api_gateway_stage.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayStageResourceType = "aws_api_gateway_stage"
diff --git a/pkg/resource/aws/aws_api_gateway_stage_test.go b/pkg/resource/aws/aws_api_gateway_stage_test.go
deleted file mode 100644
index 2d51c37b4..000000000
--- a/pkg/resource/aws/aws_api_gateway_stage_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayStage(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_stage"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_api_gateway_vpc_link.go b/pkg/resource/aws/aws_api_gateway_vpc_link.go
deleted file mode 100644
index 97a15555a..000000000
--- a/pkg/resource/aws/aws_api_gateway_vpc_link.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayVpcLinkResourceType = "aws_api_gateway_vpc_link"
diff --git a/pkg/resource/aws/aws_api_gateway_vpc_link_test.go b/pkg/resource/aws/aws_api_gateway_vpc_link_test.go
deleted file mode 100644
index 474639064..000000000
--- a/pkg/resource/aws/aws_api_gateway_vpc_link_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayVpcLink(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_api_gateway_vpc_link"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_api.go b/pkg/resource/aws/aws_apigatewayv2_api.go
deleted file mode 100644
index ef468884b..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_api.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2ApiResourceType = "aws_apigatewayv2_api"
diff --git a/pkg/resource/aws/aws_apigatewayv2_api_test.go b/pkg/resource/aws/aws_apigatewayv2_api_test.go
deleted file mode 100644
index 222808fdc..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_api_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Api(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_api"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_authorizer.go b/pkg/resource/aws/aws_apigatewayv2_authorizer.go
deleted file mode 100644
index fb157219c..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_authorizer.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2AuthorizerResourceType = "aws_apigatewayv2_authorizer"
diff --git a/pkg/resource/aws/aws_apigatewayv2_authorizer_test.go b/pkg/resource/aws/aws_apigatewayv2_authorizer_test.go
deleted file mode 100644
index de9365e6c..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_authorizer_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Authorizer(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_authorizer"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_deployment.go b/pkg/resource/aws/aws_apigatewayv2_deployment.go
deleted file mode 100644
index 159245add..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_deployment.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2DeploymentResourceType = "aws_apigatewayv2_deployment"
diff --git a/pkg/resource/aws/aws_apigatewayv2_deployment_test.go b/pkg/resource/aws/aws_apigatewayv2_deployment_test.go
deleted file mode 100644
index f182d71a4..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_deployment_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Deployment(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_deployment"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_domain_name.go b/pkg/resource/aws/aws_apigatewayv2_domain_name.go
deleted file mode 100644
index 9a4687bdb..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_domain_name.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2DomainNameResourceType = "aws_apigatewayv2_domain_name"
diff --git a/pkg/resource/aws/aws_apigatewayv2_domain_name_test.go b/pkg/resource/aws/aws_apigatewayv2_domain_name_test.go
deleted file mode 100644
index ed17185e3..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_domain_name_test.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2DomainName(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_domain_name"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
-
-func TestAcc_Aws_ApiGatewayV1AndV2DomainNames(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigateway_v1v2_domain_names"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_integration.go b/pkg/resource/aws/aws_apigatewayv2_integration.go
deleted file mode 100644
index e2db2378b..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_integration.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2IntegrationResourceType = "aws_apigatewayv2_integration"
diff --git a/pkg/resource/aws/aws_apigatewayv2_integration_response.go b/pkg/resource/aws/aws_apigatewayv2_integration_response.go
deleted file mode 100644
index 43516aef1..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_integration_response.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2IntegrationResponseResourceType = "aws_apigatewayv2_integration_response"
diff --git a/pkg/resource/aws/aws_apigatewayv2_integration_response_test.go b/pkg/resource/aws/aws_apigatewayv2_integration_response_test.go
deleted file mode 100644
index 8c762a236..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_integration_response_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2IntegrationResponse(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_integration_response"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_integration_test.go b/pkg/resource/aws/aws_apigatewayv2_integration_test.go
deleted file mode 100644
index 6000fae31..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_integration_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Integration(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_integration"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_mapping.go b/pkg/resource/aws/aws_apigatewayv2_mapping.go
deleted file mode 100644
index 55269a556..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_mapping.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsApiGatewayV2MappingResourceType = "aws_apigatewayv2_api_mapping"
-
-func initAwsApiGatewayV2MappingMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(
- AwsApiGatewayV2MappingResourceType,
- func(res *resource.Resource) map[string]string {
- attrs := make(map[string]string)
-
- if v := res.Attributes().GetString("api_id"); v != nil {
- attrs["Api"] = *v
- }
- if v := res.Attributes().GetString("stage"); v != nil {
- attrs["Stage"] = *v
- }
-
- return attrs
- },
- )
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_mapping_test.go b/pkg/resource/aws/aws_apigatewayv2_mapping_test.go
deleted file mode 100644
index e6d188b6e..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_mapping_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Mapping(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_mapping"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_model.go b/pkg/resource/aws/aws_apigatewayv2_model.go
deleted file mode 100644
index 879861eec..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_model.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsApiGatewayV2ModelResourceType = "aws_apigatewayv2_model"
-
-func initAwsApiGatewayV2ModelMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(
- AwsApiGatewayV2ModelResourceType,
- func(res *resource.Resource) map[string]string {
- return map[string]string{
- "name": *res.Attributes().GetString("name"),
- }
- },
- )
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_model_test.go b/pkg/resource/aws/aws_apigatewayv2_model_test.go
deleted file mode 100644
index 0a40b8c28..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_model_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Model(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_model"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_route.go b/pkg/resource/aws/aws_apigatewayv2_route.go
deleted file mode 100644
index 6073bbe30..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_route.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2RouteResourceType = "aws_apigatewayv2_route"
diff --git a/pkg/resource/aws/aws_apigatewayv2_route_response.go b/pkg/resource/aws/aws_apigatewayv2_route_response.go
deleted file mode 100644
index 9b27ea1d9..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_route_response.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2RouteResponseResourceType = "aws_apigatewayv2_route_response"
diff --git a/pkg/resource/aws/aws_apigatewayv2_route_response_test.go b/pkg/resource/aws/aws_apigatewayv2_route_response_test.go
deleted file mode 100644
index 993fbfcd5..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_route_response_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2RouteResponse(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_route_response"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_route_test.go b/pkg/resource/aws/aws_apigatewayv2_route_test.go
deleted file mode 100644
index 14c328869..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_route_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Route(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_route"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_stage.go b/pkg/resource/aws/aws_apigatewayv2_stage.go
deleted file mode 100644
index be63bd5de..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_stage.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2StageResourceType = "aws_apigatewayv2_stage"
diff --git a/pkg/resource/aws/aws_apigatewayv2_stage_test.go b/pkg/resource/aws/aws_apigatewayv2_stage_test.go
deleted file mode 100644
index a172a2413..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_stage_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2Stage(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_stage"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_apigatewayv2_vpc_link.go b/pkg/resource/aws/aws_apigatewayv2_vpc_link.go
deleted file mode 100644
index 619986967..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_vpc_link.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsApiGatewayV2VpcLinkResourceType = "aws_apigatewayv2_vpc_link"
diff --git a/pkg/resource/aws/aws_apigatewayv2_vpc_link_test.go b/pkg/resource/aws/aws_apigatewayv2_vpc_link_test.go
deleted file mode 100644
index 71de16fca..000000000
--- a/pkg/resource/aws/aws_apigatewayv2_vpc_link_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ApiGatewayV2VpcLink(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_apigatewayv2_vpc_link"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_appautoscaling_policy.go b/pkg/resource/aws/aws_appautoscaling_policy.go
deleted file mode 100644
index 3d4409ea2..000000000
--- a/pkg/resource/aws/aws_appautoscaling_policy.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsAppAutoscalingPolicyResourceType = "aws_appautoscaling_policy"
-
-func initAwsAppAutoscalingPolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsAppAutoscalingPolicyResourceType, func(res *resource.Resource) map[string]string {
- attrs := make(map[string]string)
- if v := res.Attributes().GetString("scalable_dimension"); v != nil && *v != "" {
- attrs["Scalable dimension"] = *v
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_appautoscaling_policy_test.go b/pkg/resource/aws/aws_appautoscaling_policy_test.go
deleted file mode 100644
index c43fe4e6f..000000000
--- a/pkg/resource/aws/aws_appautoscaling_policy_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_AppAutoscalingPolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_appautoscaling_policy"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_appautoscaling_scheduled_action.go b/pkg/resource/aws/aws_appautoscaling_scheduled_action.go
deleted file mode 100644
index 18d9caeea..000000000
--- a/pkg/resource/aws/aws_appautoscaling_scheduled_action.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsAppAutoscalingScheduledActionResourceType = "aws_appautoscaling_scheduled_action"
diff --git a/pkg/resource/aws/aws_appautoscaling_scheduled_action_test.go b/pkg/resource/aws/aws_appautoscaling_scheduled_action_test.go
deleted file mode 100644
index 729a63b8c..000000000
--- a/pkg/resource/aws/aws_appautoscaling_scheduled_action_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_AppAutoscalingScheduledAction(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_appautoscaling_scheduled_action"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_appautoscaling_target.go b/pkg/resource/aws/aws_appautoscaling_target.go
deleted file mode 100644
index 91ac1e125..000000000
--- a/pkg/resource/aws/aws_appautoscaling_target.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsAppAutoscalingTargetResourceType = "aws_appautoscaling_target"
-
-func initAwsAppAutoscalingTargetMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsAppAutoscalingTargetResourceType, func(res *resource.Resource) map[string]string {
- attrs := make(map[string]string)
- if v := res.Attributes().GetString("scalable_dimension"); v != nil && *v != "" {
- attrs["Scalable dimension"] = *v
- }
- return attrs
- })
- resourceSchemaRepository.SetDiscriminantFunc(AwsAppAutoscalingTargetResourceType, func(self, target *resource.Resource) bool {
- return *self.Attributes().GetString("scalable_dimension") == *target.Attributes().GetString("scalable_dimension")
- })
-}
diff --git a/pkg/resource/aws/aws_appautoscaling_target_test.go b/pkg/resource/aws/aws_appautoscaling_target_test.go
deleted file mode 100644
index 8a4f3547c..000000000
--- a/pkg/resource/aws/aws_appautoscaling_target_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_AppAutoScalingTarget(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_appautoscaling_target"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_cloudformation_stack.go b/pkg/resource/aws/aws_cloudformation_stack.go
deleted file mode 100644
index d4b13f042..000000000
--- a/pkg/resource/aws/aws_cloudformation_stack.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsCloudformationStackResourceType = "aws_cloudformation_stack"
-
-func initAwsCloudformationStackMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsCloudformationStackResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_cloudformation_stack_test.go b/pkg/resource/aws/aws_cloudformation_stack_test.go
deleted file mode 100644
index 2760ac6d6..000000000
--- a/pkg/resource/aws/aws_cloudformation_stack_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_CloudformationStack(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_cloudformation_stack"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_cloudfront_distribution.go b/pkg/resource/aws/aws_cloudfront_distribution.go
deleted file mode 100644
index bd83d45cb..000000000
--- a/pkg/resource/aws/aws_cloudfront_distribution.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsCloudfrontDistributionResourceType = "aws_cloudfront_distribution"
-
-func initAwsCloudfrontDistributionMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsCloudfrontDistributionResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"etag"})
- val.SafeDelete([]string{"last_modified_time"})
- val.SafeDelete([]string{"retain_on_delete"})
- val.SafeDelete([]string{"status"})
- val.SafeDelete([]string{"wait_for_deployment"})
- })
-}
diff --git a/pkg/resource/aws/aws_cloudfront_distribution_test.go b/pkg/resource/aws/aws_cloudfront_distribution_test.go
deleted file mode 100644
index 02ce80acc..000000000
--- a/pkg/resource/aws/aws_cloudfront_distribution_test.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/aws/aws-sdk-go/service/cloudfront"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/aws/aws-sdk-go/aws"
-
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_CloudfrontDistribution(t *testing.T) {
- t.Skip("flake")
-
- var mutatedDistribution string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_cloudfront_distribution"},
- Args: []string{"scan"},
- ShouldRefreshBeforeDestroy: true,
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- mutatedDistribution = result.Managed()[0].ResourceId()
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := cloudfront.New(awsutils.Session())
- res, err := client.GetDistributionConfig(&cloudfront.GetDistributionConfigInput{
- Id: aws.String(mutatedDistribution),
- })
- if err != nil {
- t.Fatal(err)
- }
- res.DistributionConfig.SetIsIPV6Enabled(true)
- _, err = client.UpdateDistribution(&cloudfront.UpdateDistributionInput{
- Id: aws.String(mutatedDistribution),
- DistributionConfig: res.DistributionConfig,
- IfMatch: res.ETag,
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_cloudtrail.go b/pkg/resource/aws/aws_cloudtrail.go
deleted file mode 100644
index e9d2d3970..000000000
--- a/pkg/resource/aws/aws_cloudtrail.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsCloudtrailResourceType = "aws_cloudtrail"
diff --git a/pkg/resource/aws/aws_db_instance.go b/pkg/resource/aws/aws_db_instance.go
deleted file mode 100644
index 256a35656..000000000
--- a/pkg/resource/aws/aws_db_instance.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDbInstanceResourceType = "aws_db_instance"
-
-func initAwsDbInstanceMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDbInstanceResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"delete_automated_backups"})
- val.SafeDelete([]string{"final_snapshot_identifier"})
- val.SafeDelete([]string{"latest_restorable_time"})
- val.SafeDelete([]string{"password"})
- val.SafeDelete([]string{"skip_final_snapshot"})
- val.SafeDelete([]string{"timeouts"})
- val.SafeDelete([]string{"snapshot_identifier"})
- val.SafeDelete([]string{"allow_major_version_upgrade"})
- val.SafeDelete([]string{"apply_immediately"})
- val.DeleteIfDefault("CharacterSetName")
- })
-}
diff --git a/pkg/resource/aws/aws_db_instance_test.go b/pkg/resource/aws/aws_db_instance_test.go
deleted file mode 100644
index af4ab74d7..000000000
--- a/pkg/resource/aws/aws_db_instance_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_DbInstance(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_db_instance"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_db_subnet_group.go b/pkg/resource/aws/aws_db_subnet_group.go
deleted file mode 100644
index 475a49daa..000000000
--- a/pkg/resource/aws/aws_db_subnet_group.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDbSubnetGroupResourceType = "aws_db_subnet_group"
-
-func initAwsDbSubnetGroupMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDbSubnetGroupResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"name_prefix"})
- })
-}
diff --git a/pkg/resource/aws/aws_db_subnet_group_test.go b/pkg/resource/aws/aws_db_subnet_group_test.go
deleted file mode 100644
index d80ffb0b1..000000000
--- a/pkg/resource/aws/aws_db_subnet_group_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_DbSubnetGroup(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_db_subnet_group"},
- Args: []string{"scan", "--filter", "Id!='default'"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_default_network_acl.go b/pkg/resource/aws/aws_default_network_acl.go
deleted file mode 100644
index f566fa6e0..000000000
--- a/pkg/resource/aws/aws_default_network_acl.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDefaultNetworkACLResourceType = "aws_default_network_acl"
-
-func initAwsDefaultNetworkACLMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDefaultNetworkACLResourceType, func(res *resource.Resource) {
- res.Attrs.SafeDelete([]string{"default_network_acl_id"})
-
- // https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_network_acl#managing-subnets-in-a-default-network-acl
- res.Attrs.SafeDelete([]string{"subnet_ids"})
-
- })
-
-}
diff --git a/pkg/resource/aws/aws_default_network_acl_test.go b/pkg/resource/aws/aws_default_network_acl_test.go
deleted file mode 100644
index 2885c7b3c..000000000
--- a/pkg/resource/aws/aws_default_network_acl_test.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package aws_test
-
-// This test is commented because it will not destroy all created resources, check terraform documentation for more details
-// https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_network_acl#removing-aws_default_network_acl-from-your-configuration
-// You can run it on your side but it is not enabled in CI since it will make other tests to fail, more specifically the aws_network_acl_test one
-// A fix can be to manually remove dangling rules through AWS SDK in PostExec hook
-
-// func TestAcc_Aws_DefaultNetworkAcl(t *testing.T) {
-// acceptance.Run(t, acceptance.AccTestCase{
-// TerraformVersion: "0.15.5",
-// Paths: []string{"./testdata/acc/aws_default_network_acl"},
-// Args: []string{"scan"},
-// Checks: []acceptance.AccCheck{
-// {
-// Env: map[string]string{
-// "AWS_REGION": "us-east-1",
-// },
-// Check: func(result *test.ScanResult, stdout string, err error) {
-// if err != nil {
-// t.Fatal(err)
-// }
-// result.AssertInfrastructureIsInSync()
-// result.AssertManagedCount(1)
-// },
-// },
-// },
-// })
-// }
diff --git a/pkg/resource/aws/aws_default_route_table.go b/pkg/resource/aws/aws_default_route_table.go
deleted file mode 100644
index 7229225d6..000000000
--- a/pkg/resource/aws/aws_default_route_table.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDefaultRouteTableResourceType = "aws_default_route_table"
-
-func initAwsDefaultRouteTableMetadata(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDefaultRouteTableResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_default_security_group.go b/pkg/resource/aws/aws_default_security_group.go
deleted file mode 100644
index 43b554f05..000000000
--- a/pkg/resource/aws/aws_default_security_group.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDefaultSecurityGroupResourceType = "aws_default_security_group"
-
-func initAwsDefaultSecurityGroupMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDefaultSecurityGroupResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"revoke_rules_on_delete"})
- val.SafeDelete([]string{"ingress"})
- val.SafeDelete([]string{"egress"})
- })
-}
diff --git a/pkg/resource/aws/aws_default_subnet.go b/pkg/resource/aws/aws_default_subnet.go
deleted file mode 100644
index 07318b1c7..000000000
--- a/pkg/resource/aws/aws_default_subnet.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDefaultSubnetResourceType = "aws_default_subnet"
-
-func initAwsDefaultSubnetMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDefaultSubnetResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_default_vpc.go b/pkg/resource/aws/aws_default_vpc.go
deleted file mode 100644
index 46d13514e..000000000
--- a/pkg/resource/aws/aws_default_vpc.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsDefaultVpcResourceType = "aws_default_vpc"
diff --git a/pkg/resource/aws/aws_dynamodb_table.go b/pkg/resource/aws/aws_dynamodb_table.go
deleted file mode 100644
index 2ab06e0d2..000000000
--- a/pkg/resource/aws/aws_dynamodb_table.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsDynamodbTableResourceType = "aws_dynamodb_table"
-
-func initAwsDynamodbTableMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsDynamodbTableResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_dynamodb_table_test.go b/pkg/resource/aws/aws_dynamodb_table_test.go
deleted file mode 100644
index a90763ef2..000000000
--- a/pkg/resource/aws/aws_dynamodb_table_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_DynamoDBTable(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_dynamodb_table"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ebs_encryption_by_default.go b/pkg/resource/aws/aws_ebs_encryption_by_default.go
deleted file mode 100644
index a8d923393..000000000
--- a/pkg/resource/aws/aws_ebs_encryption_by_default.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsEbsEncryptionByDefaultResourceType = "aws_ebs_encryption_by_default"
diff --git a/pkg/resource/aws/aws_ebs_encryption_by_default_test.go b/pkg/resource/aws/aws_ebs_encryption_by_default_test.go
deleted file mode 100644
index affb06c4b..000000000
--- a/pkg/resource/aws/aws_ebs_encryption_by_default_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_EbsEncryptionByDefault(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ebs_encryption_by_default"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ebs_snapshot.go b/pkg/resource/aws/aws_ebs_snapshot.go
deleted file mode 100644
index f43ec63a6..000000000
--- a/pkg/resource/aws/aws_ebs_snapshot.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsEbsSnapshotResourceType = "aws_ebs_snapshot"
-
-func initAwsEbsSnapshotMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsEbsSnapshotResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_ebs_snapshot_test.go b/pkg/resource/aws/aws_ebs_snapshot_test.go
deleted file mode 100644
index 042d71105..000000000
--- a/pkg/resource/aws/aws_ebs_snapshot_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_EbsSnapshot(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ebs_snapshot"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ebs_volume.go b/pkg/resource/aws/aws_ebs_volume.go
deleted file mode 100644
index 76a9c8927..000000000
--- a/pkg/resource/aws/aws_ebs_volume.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsEbsVolumeResourceType = "aws_ebs_volume"
-
-func initAwsEbsVolumeMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsEbsVolumeResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"arn"})
- val.SafeDelete([]string{"outpost_arn"})
- val.SafeDelete([]string{"snapshot_id"})
- val.DeleteIfDefault("throughput")
- })
-}
diff --git a/pkg/resource/aws/aws_ebs_volume_test.go b/pkg/resource/aws/aws_ebs_volume_test.go
deleted file mode 100644
index 922246396..000000000
--- a/pkg/resource/aws/aws_ebs_volume_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_EbsVolume(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ebs_volume"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ecr_repository.go b/pkg/resource/aws/aws_ecr_repository.go
deleted file mode 100644
index 2c1caeb2f..000000000
--- a/pkg/resource/aws/aws_ecr_repository.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsEcrRepositoryResourceType = "aws_ecr_repository"
-
-func initAwsEcrRepositoryMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsEcrRepositoryResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_ecr_repository_policy.go b/pkg/resource/aws/aws_ecr_repository_policy.go
deleted file mode 100644
index 64433480f..000000000
--- a/pkg/resource/aws/aws_ecr_repository_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsEcrRepositoryPolicyResourceType = "aws_ecr_repository_policy"
diff --git a/pkg/resource/aws/aws_ecr_repository_policy_test.go b/pkg/resource/aws/aws_ecr_repository_policy_test.go
deleted file mode 100644
index ab9a3d6ef..000000000
--- a/pkg/resource/aws/aws_ecr_repository_policy_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_AWS_ECRRepositoryPolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ecr_repository_policy_test"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_ecr_repository_test.go b/pkg/resource/aws/aws_ecr_repository_test.go
deleted file mode 100644
index 92cdf9fa1..000000000
--- a/pkg/resource/aws/aws_ecr_repository_test.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/aws/aws-sdk-go/aws"
-
- "github.com/aws/aws-sdk-go/service/ecr"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_ECRRepository(t *testing.T) {
- var mutatedRepositoryID string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_ecr_repository"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
-
- mutatedRepositoryID = result.Managed()[0].ResourceId()
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := ecr.New(awsutils.Session())
- _, err := client.PutImageTagMutability(&ecr.PutImageTagMutabilityInput{
- RepositoryName: &mutatedRepositoryID,
- ImageTagMutability: aws.String("IMMUTABLE"),
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(1)
- result.AssertUnmanagedCount(0)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_eip.go b/pkg/resource/aws/aws_eip.go
deleted file mode 100644
index 37202ca7d..000000000
--- a/pkg/resource/aws/aws_eip.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsEipResourceType = "aws_eip"
-
-func initAwsEipMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsEipResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_eip_association.go b/pkg/resource/aws/aws_eip_association.go
deleted file mode 100644
index 44bff2904..000000000
--- a/pkg/resource/aws/aws_eip_association.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsEipAssociationResourceType = "aws_eip_association"
diff --git a/pkg/resource/aws/aws_eip_association_test.go b/pkg/resource/aws/aws_eip_association_test.go
deleted file mode 100644
index ccc695247..000000000
--- a/pkg/resource/aws/aws_eip_association_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_EipAssociation(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_eip_association"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_eip_test.go b/pkg/resource/aws/aws_eip_test.go
deleted file mode 100644
index 97b11a9ce..000000000
--- a/pkg/resource/aws/aws_eip_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_Eip(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_eip"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(20 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_elasticache_cluster.go b/pkg/resource/aws/aws_elasticache_cluster.go
deleted file mode 100644
index 46f1bbf35..000000000
--- a/pkg/resource/aws/aws_elasticache_cluster.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsElastiCacheClusterResourceType = "aws_elasticache_cluster"
diff --git a/pkg/resource/aws/aws_elasticache_cluster_test.go b/pkg/resource/aws/aws_elasticache_cluster_test.go
deleted file mode 100644
index 2e012a325..000000000
--- a/pkg/resource/aws/aws_elasticache_cluster_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ElastiCacheCluster(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_elasticache_cluster"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_elb.go b/pkg/resource/aws/aws_elb.go
deleted file mode 100644
index 6f9473648..000000000
--- a/pkg/resource/aws/aws_elb.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsClassicLoadBalancerResourceType = "aws_elb"
diff --git a/pkg/resource/aws/aws_elb_test.go b/pkg/resource/aws/aws_elb_test.go
deleted file mode 100644
index 0e719ae18..000000000
--- a/pkg/resource/aws/aws_elb_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_ClassicLoadBalancer(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_elb"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_access_key.go b/pkg/resource/aws/aws_iam_access_key.go
deleted file mode 100644
index 62781fafe..000000000
--- a/pkg/resource/aws/aws_iam_access_key.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamAccessKeyResourceType = "aws_iam_access_key"
-
-func initAwsIAMAccessKeyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsIamAccessKeyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- // As we can't read secrets from aws API once access_key created we need to set
- // fields retrieved from state to nil to avoid drift
- // We can't detect drift if we cannot retrieve latest value from aws API for fields like secrets, passwords etc ...
- val.SafeDelete([]string{"secret"})
- val.SafeDelete([]string{"ses_smtp_password_v4"})
- val.SafeDelete([]string{"ses_smtp_password"})
- val.SafeDelete([]string{"encrypted_secret"})
- val.SafeDelete([]string{"key_fingerprint"})
- val.SafeDelete([]string{"pgp_key"})
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsIamAccessKeyResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if user := val.GetString("user"); user != nil && *user != "" {
- attrs["User"] = *user
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_iam_access_key_test.go b/pkg/resource/aws/aws_iam_access_key_test.go
deleted file mode 100644
index 6c3cd2ba4..000000000
--- a/pkg/resource/aws/aws_iam_access_key_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamAccessKey(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_access_key"},
- Args: []string{"scan", "--filter", "Attr.user!='circleci_acc_tests_admin' && Attr.user!='driftctl_qa'"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_group.go b/pkg/resource/aws/aws_iam_group.go
deleted file mode 100644
index e0e653f2b..000000000
--- a/pkg/resource/aws/aws_iam_group.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsIamGroupResourceType = "aws_iam_group"
diff --git a/pkg/resource/aws/aws_iam_group_policy.go b/pkg/resource/aws/aws_iam_group_policy.go
deleted file mode 100644
index fe3a86f95..000000000
--- a/pkg/resource/aws/aws_iam_group_policy.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsIamGroupPolicyResourceType = "aws_iam_group_policy"
diff --git a/pkg/resource/aws/aws_iam_group_policy_attachment.go b/pkg/resource/aws/aws_iam_group_policy_attachment.go
deleted file mode 100644
index b6ac3cb91..000000000
--- a/pkg/resource/aws/aws_iam_group_policy_attachment.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsIamGroupPolicyAttachmentResourceType = "aws_iam_group_policy_attachment"
diff --git a/pkg/resource/aws/aws_iam_group_policy_attachment_test.go b/pkg/resource/aws/aws_iam_group_policy_attachment_test.go
deleted file mode 100644
index 2250e3513..000000000
--- a/pkg/resource/aws/aws_iam_group_policy_attachment_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamGroupPolicyAttachment(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_group_policy_attachment"},
- Args: []string{"scan", "--filter", "starts_with(Id, 'test-acc-group')"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- result.Equal("aws_iam_policy_attachment", result.Analysis.Managed()[0].Type)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_group_policy_test.go b/pkg/resource/aws/aws_iam_group_policy_test.go
deleted file mode 100644
index 996ec6c9b..000000000
--- a/pkg/resource/aws/aws_iam_group_policy_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamGoupPolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_group_policy"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_group_test.go b/pkg/resource/aws/aws_iam_group_test.go
deleted file mode 100644
index 7e5f9a1ee..000000000
--- a/pkg/resource/aws/aws_iam_group_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamGoup(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_group"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_policy.go b/pkg/resource/aws/aws_iam_policy.go
deleted file mode 100644
index fdb6ef155..000000000
--- a/pkg/resource/aws/aws_iam_policy.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamPolicyResourceType = "aws_iam_policy"
-
-func initAwsIAMPolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsIamPolicyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
- if err == nil {
- _ = val.SafeSet([]string{"policy"}, jsonString)
- }
-
- val.SafeDelete([]string{"name_prefix"})
- })
- resourceSchemaRepository.UpdateSchema(AwsIamPolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_policy_attachment.go b/pkg/resource/aws/aws_iam_policy_attachment.go
deleted file mode 100644
index bf6773e2e..000000000
--- a/pkg/resource/aws/aws_iam_policy_attachment.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamPolicyAttachmentResourceType = "aws_iam_policy_attachment"
-
-func initAwsIAMPolicyAttachmentMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsIamPolicyAttachmentResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"name"})
- })
-}
diff --git a/pkg/resource/aws/aws_iam_policy_attachment_test.go b/pkg/resource/aws/aws_iam_policy_attachment_test.go
deleted file mode 100644
index 412e8cd72..000000000
--- a/pkg/resource/aws/aws_iam_policy_attachment_test.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamPolicyAttachment_WithGroupsUsers(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_policy_attachment"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.Equal(1, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_role.go b/pkg/resource/aws/aws_iam_role.go
deleted file mode 100644
index 0554ab40e..000000000
--- a/pkg/resource/aws/aws_iam_role.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamRoleResourceType = "aws_iam_role"
-
-func initAwsIAMRoleMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsIamRoleResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"force_detach_policies"})
- })
- resourceSchemaRepository.UpdateSchema(AwsIamRoleResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "assume_role_policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_role_policy.go b/pkg/resource/aws/aws_iam_role_policy.go
deleted file mode 100644
index 55915750d..000000000
--- a/pkg/resource/aws/aws_iam_role_policy.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamRolePolicyResourceType = "aws_iam_role_policy"
-
-func initAwsIAMRolePolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.UpdateSchema(AwsIamRolePolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_role_policy_attachment.go b/pkg/resource/aws/aws_iam_role_policy_attachment.go
deleted file mode 100644
index e82fb536f..000000000
--- a/pkg/resource/aws/aws_iam_role_policy_attachment.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsIamRolePolicyAttachmentResourceType = "aws_iam_role_policy_attachment"
diff --git a/pkg/resource/aws/aws_iam_role_test.go b/pkg/resource/aws/aws_iam_role_test.go
deleted file mode 100644
index df856e319..000000000
--- a/pkg/resource/aws/aws_iam_role_test.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_IamRole(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_role"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
-
-func TestAcc_Aws_IamRole_WithManaged(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_iam_role_with_managed_policies"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_user.go b/pkg/resource/aws/aws_iam_user.go
deleted file mode 100644
index 6c43d324f..000000000
--- a/pkg/resource/aws/aws_iam_user.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamUserResourceType = "aws_iam_user"
-
-func initAwsIAMUserMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsIamUserResourceType, func(res *resource.Resource) {
- val := res.Attrs
- permissionsBoundary, exist := val.Get("permissions_boundary")
- if exist && permissionsBoundary == "" {
- val.SafeDelete([]string{"permissions_boundary"})
- }
- val.SafeDelete([]string{"force_destroy"})
- })
-}
diff --git a/pkg/resource/aws/aws_iam_user_policy.go b/pkg/resource/aws/aws_iam_user_policy.go
deleted file mode 100644
index faa2104c5..000000000
--- a/pkg/resource/aws/aws_iam_user_policy.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsIamUserPolicyResourceType = "aws_iam_user_policy"
-
-func initAwsIAMUserPolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.UpdateSchema(AwsIamUserPolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_iam_user_policy_attachment.go b/pkg/resource/aws/aws_iam_user_policy_attachment.go
deleted file mode 100644
index e0a32d7df..000000000
--- a/pkg/resource/aws/aws_iam_user_policy_attachment.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsIamUserPolicyAttachmentResourceType = "aws_iam_user_policy_attachment"
diff --git a/pkg/resource/aws/aws_instance.go b/pkg/resource/aws/aws_instance.go
deleted file mode 100644
index 37af58b78..000000000
--- a/pkg/resource/aws/aws_instance.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws
-
-import (
- "github.com/hashicorp/go-version"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsInstanceResourceType = "aws_instance"
-
-func initAwsInstanceMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsInstanceResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- val.SafeDelete([]string{"arn"})
-
- if v, _ := version.NewVersion("3.38.0"); res.Schema().ProviderVersion.LessThan(v) {
- val.SafeDelete([]string{"instance_initiated_shutdown_behavior"})
- }
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsInstanceResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if tags := val.GetMap("tags"); tags != nil {
- if name, ok := tags["Name"]; ok {
- attrs["Name"] = name.(string)
- }
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_instance_test.go b/pkg/resource/aws/aws_instance_test.go
deleted file mode 100644
index 25cb0df56..000000000
--- a/pkg/resource/aws/aws_instance_test.go
+++ /dev/null
@@ -1,104 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/ec2"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_Instance(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_instance_default"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
-
-func TestAcc_Aws_Instance_WithBlockDevices(t *testing.T) {
- var mutatedInstanceId string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_instance"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := ec2.New(awsutils.Session())
- response, err := client.DescribeInstances(&ec2.DescribeInstancesInput{
- Filters: []*ec2.Filter{
- {
- Name: aws.String("instance-state-name"),
- Values: []*string{
- aws.String("running"),
- },
- },
- {
- Name: aws.String("tag:Name"),
- Values: []*string{
- aws.String("test_instance_1"),
- },
- },
- },
- })
- if err != nil {
- t.Fatal(err)
- }
- if len(response.Reservations) != 1 || len(response.Reservations[0].Instances) != 1 {
- t.Fatal("Error, unexpected number of instances found, manual check required")
- }
- mutatedInstanceId = *response.Reservations[0].Instances[0].InstanceId
- _, err = client.CreateTags(&ec2.CreateTagsInput{
- Resources: []*string{&mutatedInstanceId},
- Tags: []*ec2.Tag{
- {
- Key: aws.String("Env"),
- Value: aws.String("Production"),
- },
- },
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.Equal(0, result.Summary().TotalDeleted)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_internet_gateway.go b/pkg/resource/aws/aws_internet_gateway.go
deleted file mode 100644
index 6d2d58eca..000000000
--- a/pkg/resource/aws/aws_internet_gateway.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsInternetGatewayResourceType = "aws_internet_gateway"
-
-func initAwsInternetGatewayMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsInternetGatewayResourceType, func(res *resource.Resource) {
- res.Attributes().SafeDelete([]string{"arn"})
- })
-}
diff --git a/pkg/resource/aws/aws_internet_gateway_test.go b/pkg/resource/aws/aws_internet_gateway_test.go
deleted file mode 100644
index f01eb6376..000000000
--- a/pkg/resource/aws/aws_internet_gateway_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_InternetGateway(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_internet_gateway"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_key_pair.go b/pkg/resource/aws/aws_key_pair.go
deleted file mode 100644
index 2982a9efb..000000000
--- a/pkg/resource/aws/aws_key_pair.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsKeyPairResourceType = "aws_key_pair"
-
-func initAwsKeyPairMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsKeyPairResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"key_name_prefix"})
- val.SafeDelete([]string{"public_key"})
- })
-}
diff --git a/pkg/resource/aws/aws_kms_alias.go b/pkg/resource/aws/aws_kms_alias.go
deleted file mode 100644
index 815f7a714..000000000
--- a/pkg/resource/aws/aws_kms_alias.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsKmsAliasResourceType = "aws_kms_alias"
-
-func initAwsKmsAliasMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsKmsAliasResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"name"})
- val.SafeDelete([]string{"name_prefix"})
- })
-}
diff --git a/pkg/resource/aws/aws_kms_alias_test.go b/pkg/resource/aws/aws_kms_alias_test.go
deleted file mode 100644
index cfccf3fad..000000000
--- a/pkg/resource/aws/aws_kms_alias_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_KMSAlias(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_kms_alias"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_kms_key.go b/pkg/resource/aws/aws_kms_key.go
deleted file mode 100644
index 78039cd79..000000000
--- a/pkg/resource/aws/aws_kms_key.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsKmsKeyResourceType = "aws_kms_key"
-
-func initAwsKmsKeyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsKmsKeyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"deletion_window_in_days"})
- jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
- if err != nil {
- return
- }
- _ = val.SafeSet([]string{"policy"}, jsonString)
- })
- resourceSchemaRepository.UpdateSchema(AwsKmsKeyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_kms_key_test.go b/pkg/resource/aws/aws_kms_key_test.go
deleted file mode 100644
index b7b915cbd..000000000
--- a/pkg/resource/aws/aws_kms_key_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_KMSKey(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_kms_key"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_lambda_event_source_mapping.go b/pkg/resource/aws/aws_lambda_event_source_mapping.go
deleted file mode 100644
index 590d1bb6b..000000000
--- a/pkg/resource/aws/aws_lambda_event_source_mapping.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsLambdaEventSourceMappingResourceType = "aws_lambda_event_source_mapping"
-
-func initAwsLambdaEventSourceMappingMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsLambdaEventSourceMappingResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"state_transition_reason"})
- val.SafeDelete([]string{"state"})
- val.SafeDelete([]string{"starting_position_timestamp"})
- val.SafeDelete([]string{"starting_position"})
- val.SafeDelete([]string{"last_processing_result"})
- val.SafeDelete([]string{"last_modified"})
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsLambdaEventSourceMappingResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- source := val.GetString("event_source_arn")
- dest := val.GetString("function_name")
- if source != nil && *source != "" && dest != nil && *dest != "" {
- attrs["Source"] = *source
- attrs["Dest"] = *dest
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_lambda_event_source_mapping_test.go b/pkg/resource/aws/aws_lambda_event_source_mapping_test.go
deleted file mode 100644
index 14aa7dd0c..000000000
--- a/pkg/resource/aws/aws_lambda_event_source_mapping_test.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-// aws lambda list-event-source-mappings to list all event source mappings
-// aws lambda delete-event-source-mapping --uuid xxx to delete a specific event source mapping
-
-func TestAcc_Aws_LambdaEventSourceMapping(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "1.4.6",
- Paths: []string{"./testdata/acc/aws_lambda_event_source_mapping"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_lambda_function.go b/pkg/resource/aws/aws_lambda_function.go
deleted file mode 100644
index 1d5d354c3..000000000
--- a/pkg/resource/aws/aws_lambda_function.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsLambdaFunctionResourceType = "aws_lambda_function"
-
-func initAwsLambdaFunctionMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsLambdaFunctionResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- val.SafeDelete([]string{"publish"})
- val.SafeDelete([]string{"last_modified"})
- val.SafeDelete([]string{"filename"})
- val.DeleteIfDefault("code_signing_config_arn")
- val.DeleteIfDefault("image_uri")
- val.DeleteIfDefault("package_type")
- val.DeleteIfDefault("signing_job_arn")
- val.DeleteIfDefault("signing_profile_version_arn")
- val.SafeDelete([]string{"source_code_size"})
- })
-}
diff --git a/pkg/resource/aws/aws_launch_configuration.go b/pkg/resource/aws/aws_launch_configuration.go
deleted file mode 100644
index ad75e8489..000000000
--- a/pkg/resource/aws/aws_launch_configuration.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsLaunchConfigurationResourceType = "aws_launch_configuration"
diff --git a/pkg/resource/aws/aws_launch_configuration_test.go b/pkg/resource/aws/aws_launch_configuration_test.go
deleted file mode 100644
index c258b8660..000000000
--- a/pkg/resource/aws/aws_launch_configuration_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_LaunchConfiguration(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_launch_configuration"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_launch_template.go b/pkg/resource/aws/aws_launch_template.go
deleted file mode 100644
index d0533a7b8..000000000
--- a/pkg/resource/aws/aws_launch_template.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsLaunchTemplateResourceType = "aws_launch_template"
-
-func initAwsLaunchTemplateMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsLaunchTemplateResourceType, func(res *resource.Resource) {
- res.Attributes().SafeDelete([]string{"arn"})
- })
-}
diff --git a/pkg/resource/aws/aws_launch_template_test.go b/pkg/resource/aws/aws_launch_template_test.go
deleted file mode 100644
index 1d528e768..000000000
--- a/pkg/resource/aws/aws_launch_template_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_LaunchTemplate(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_launch_template"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_lb.go b/pkg/resource/aws/aws_lb.go
deleted file mode 100644
index e1e9aa900..000000000
--- a/pkg/resource/aws/aws_lb.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsLoadBalancerResourceType = "aws_lb"
-
-func initAwsLoadBalancerMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsLoadBalancerResourceType, func(res *resource.Resource) map[string]string {
- return map[string]string{
- "Name": *res.Attributes().GetString("name"),
- }
- })
-}
diff --git a/pkg/resource/aws/aws_lb_listener.go b/pkg/resource/aws/aws_lb_listener.go
deleted file mode 100644
index cf919edc0..000000000
--- a/pkg/resource/aws/aws_lb_listener.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsLoadBalancerListenerResourceType = "aws_lb_listener"
diff --git a/pkg/resource/aws/aws_lb_listener_test.go b/pkg/resource/aws/aws_lb_listener_test.go
deleted file mode 100644
index 86120f94d..000000000
--- a/pkg/resource/aws/aws_lb_listener_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_LoadBalancerListener(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_lb_listener"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_lb_test.go b/pkg/resource/aws/aws_lb_test.go
deleted file mode 100644
index 5a6fa9965..000000000
--- a/pkg/resource/aws/aws_lb_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_LoadBalancer(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_lb"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_nat_gateway.go b/pkg/resource/aws/aws_nat_gateway.go
deleted file mode 100644
index 9dd9290b7..000000000
--- a/pkg/resource/aws/aws_nat_gateway.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsNatGatewayResourceType = "aws_nat_gateway"
diff --git a/pkg/resource/aws/aws_nat_gateway_test.go b/pkg/resource/aws/aws_nat_gateway_test.go
deleted file mode 100644
index ebca89f21..000000000
--- a/pkg/resource/aws/aws_nat_gateway_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_NATGateway(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_nat_gateway"},
- // We filter on aws_eip_association too to test the middleware behavior
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_network_acl.go b/pkg/resource/aws/aws_network_acl.go
deleted file mode 100644
index f0d19dc27..000000000
--- a/pkg/resource/aws/aws_network_acl.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsNetworkACLResourceType = "aws_network_acl"
diff --git a/pkg/resource/aws/aws_network_acl_rule.go b/pkg/resource/aws/aws_network_acl_rule.go
deleted file mode 100644
index 098fb9e20..000000000
--- a/pkg/resource/aws/aws_network_acl_rule.go
+++ /dev/null
@@ -1,253 +0,0 @@
-package aws
-
-import (
- "bytes"
- "fmt"
- "strconv"
-
- "github.com/hashicorp/terraform/helper/hashcode"
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsNetworkACLRuleResourceType = "aws_network_acl_rule"
-
-var protocolsNumbers = map[string]int{
- // defined at https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
- "all": -1,
- "hopopt": 0,
- "icmp": 1,
- "igmp": 2,
- "ggp": 3,
- "ipv4": 4,
- "st": 5,
- "tcp": 6,
- "cbt": 7,
- "egp": 8,
- "igp": 9,
- "bbn-rcc-mon": 10,
- "nvp-ii": 11,
- "pup": 12,
- "argus": 13,
- "emcon": 14,
- "xnet": 15,
- "chaos": 16,
- "udp": 17,
- "mux": 18,
- "dcn-meas": 19,
- "hmp": 20,
- "prm": 21,
- "xns-idp": 22,
- "trunk-1": 23,
- "trunk-2": 24,
- "leaf-1": 25,
- "leaf-2": 26,
- "rdp": 27,
- "irtp": 28,
- "iso-tp4": 29,
- "netblt": 30,
- "mfe-nsp": 31,
- "merit-inp": 32,
- "dccp": 33,
- "3pc": 34,
- "idpr": 35,
- "xtp": 36,
- "ddp": 37,
- "idpr-cmtp": 38,
- "tp++": 39,
- "il": 40,
- "ipv6": 41,
- "sdrp": 42,
- "ipv6-route": 43,
- "ipv6-frag": 44,
- "idrp": 45,
- "rsvp": 46,
- "gre": 47,
- "dsr": 48,
- "bna": 49,
- "esp": 50,
- "ah": 51,
- "i-nlsp": 52,
- "swipe": 53,
- "narp": 54,
- "mobile": 55,
- "tlsp": 56,
- "ipv6-icmp": 58,
- "ipv6-nonxt": 59,
- "ipv6-opts": 60,
- "61": 61,
- "cftp": 62,
- "63": 63,
- "sat-expak": 64,
- "kryptolan": 65,
- "rvd": 66,
- "ippc": 67,
- "68": 68,
- "sat-mon": 69,
- "visa": 70,
- "ipcv": 71,
- "cpnx": 72,
- "cphb": 73,
- "wsn": 74,
- "pvp": 75,
- "br-sat-mon": 76,
- "sun-nd": 77,
- "wb-mon": 78,
- "wb-expak": 79,
- "iso-ip": 80,
- "vmtp": 81,
- "secure-vmtp": 82,
- "vines": 83,
- "ttp": 84,
- "nsfnet-igp": 85,
- "dgp": 86,
- "tcf": 87,
- "eigrp": 88,
- "ospfigp": 89,
- "sprite-rpc": 90,
- "larp": 91,
- "mtp": 92,
- "ax.25": 93,
- "ipip": 94,
- "micp": 95,
- "scc-sp": 96,
- "etherip": 97,
- "encap": 98,
- "99": 99,
- "gmtp": 100,
- "ifmp": 101,
- "pnni": 102,
- "pim": 103,
- "aris": 104,
- "scps": 105,
- "qnx": 106,
- "a/n": 107,
- "ipcomp": 108,
- "snp": 109,
- "compaq-peer": 110,
- "ipx-in-ip": 111,
- "vrrp": 112,
- "pgm": 113,
- "114": 114,
- "l2tp": 115,
- "dd": 116,
- "iatp": 117,
- "stp": 118,
- "srp": 119,
- "uti": 120,
- "smp": 121,
- "sm": 122,
- "ptp": 123,
- "isis-over-ipv4": 124,
- "fire": 125,
- "crtp": 126,
- "crudp": 127,
- "sscopmce": 128,
- "iplt": 129,
- "sps": 130,
- "pipe": 131,
- "sctp": 132,
- "fc": 133,
- "rsvp-e2e-ignore": 134,
- "mobility-header": 135,
- "udplite": 136,
- "mpls-in-ip": 137,
- "manet": 138,
- "hip": 139,
- "shim6": 140,
- "wesp": 141,
- "rohc": 142,
- "253": 253,
- "254": 254,
-}
-
-func initAwsNetworkACLRuleMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsNetworkACLRuleResourceType, func(res *resource.Resource) {
- res.Attrs.DeleteIfDefault("icmp_code")
- res.Attrs.DeleteIfDefault("icmp_type")
-
- // Since it seems that AWS only works with protocol number, we should normalize when we got a protocol string
- // and transform it to its proper protocol number
- // We iterate on ingress and egresses to modify protocols that are full string like "tcp" to "6"
- //
- // References:
- // - https://github.com/hashicorp/terraform-provider-aws/blob/1194e7a11e6b74f1f4834c90940ffef0f6557982/aws/network_acl_entry.go#L69
- proto := res.Attrs.GetString("protocol")
- if number, isNotProtoAsNumber := protocolsNumbers[*proto]; isNotProtoAsNumber {
- _ = res.Attrs.SafeSet([]string{"protocol"}, strconv.Itoa(number))
- }
-
- // For some reason, when deserialising the state, this field is deserialized as a float
- // We need to make this homogeneous between remote and IaC so we cast this to an int64
- // The real type returned by AWS SDK is int64
- ruleNumber := (*res.Attrs)["rule_number"]
- if v, isFloat := ruleNumber.(float64); isFloat {
- _ = res.Attrs.SafeSet([]string{"rule_number"}, int64(v))
- }
-
- // ID can be different even if the resource is the same.
- // protocol is taken into account while creating the ID, if you set protocol="tcp" you'll end with
- // a resource with a different ID than if you set protocol="6" which is the same
- // To be able to match resources, we rewrite ID to always use protocol as a number (we just normalized this above)
- //
- // While reading remote we always got protocol as a number.
- // We cannot predict how the user decided to write the protocol on IaC side.
- // This workaround is mandatory to harmonize resources ID
- res.Id = CreateNetworkACLRuleID(
- *res.Attrs.GetString("network_acl_id"),
- (*res.Attrs)["rule_number"].(int64),
- *res.Attrs.GetBool("egress"),
- *res.Attrs.GetString("protocol"),
- )
- _ = res.Attrs.SafeSet([]string{"id"}, res.Id)
-
- res.Attrs.DeleteIfDefault("cidr_block")
- res.Attrs.DeleteIfDefault("ipv6_cidr_block")
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsNetworkACLRuleResourceType, func(res *resource.Resource) map[string]string {
-
- ruleNumber := strconv.FormatInt((*res.Attrs)["rule_number"].(int64), 10)
- if ruleNumber == "32767" {
- ruleNumber = "*"
- }
-
- attrs := map[string]string{
- "Network": *res.Attrs.GetString("network_acl_id"),
- "Egress": strconv.FormatBool(*res.Attrs.GetBool("egress")),
- "Rule number": ruleNumber,
- }
-
- if proto := res.Attrs.GetString("protocol"); proto != nil {
- if *proto == "-1" {
- *proto = "All"
- }
- attrs["Protocol"] = *proto
- }
-
- if res.Attrs.GetFloat64("from_port") != nil && res.Attrs.GetFloat64("to_port") != nil {
- attrs["Port range"] = fmt.Sprintf("%d - %d",
- int64(*res.Attrs.GetFloat64("from_port")),
- int64(*res.Attrs.GetFloat64("to_port")),
- )
- }
-
- if cidr := res.Attrs.GetString("cidr_block"); cidr != nil && *cidr != "" {
- attrs["CIDR"] = *cidr
- }
-
- if cidr := res.Attrs.GetString("ipv6_cidr_block"); cidr != nil && *cidr != "" {
- attrs["CIDR"] = *cidr
- }
-
- return attrs
- })
-}
-
-func CreateNetworkACLRuleID(networkAclId string, ruleNumber int64, egress bool, protocol string) string {
- var buf bytes.Buffer
- buf.WriteString(fmt.Sprintf("%s-", networkAclId))
- buf.WriteString(fmt.Sprintf("%d-", ruleNumber))
- buf.WriteString(fmt.Sprintf("%t-", egress))
- buf.WriteString(fmt.Sprintf("%s-", protocol))
- return fmt.Sprintf("nacl-%d", hashcode.String(buf.String()))
-}
diff --git a/pkg/resource/aws/aws_network_acl_test.go b/pkg/resource/aws/aws_network_acl_test.go
deleted file mode 100644
index cc756f80f..000000000
--- a/pkg/resource/aws/aws_network_acl_test.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-// This test cover both aws_network_acl and `aws_network_acl_rule`
-func TestAcc_Aws_NetworkAcl(t *testing.T) {
- t.Skip("flake")
-
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_network_acl"},
- Args: []string{"scan", "--filter", "Type=='aws_network_acl' || Type=='aws_network_acl_rule'"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(7)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_rds_cluster.go b/pkg/resource/aws/aws_rds_cluster.go
deleted file mode 100644
index 29725de68..000000000
--- a/pkg/resource/aws/aws_rds_cluster.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRDSClusterResourceType = "aws_rds_cluster"
-
-func initAwsRDSClusterMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsRDSClusterResourceType, func(res *resource.Resource) {
- val := res.Attributes()
- val.SafeDelete([]string{"timeouts"})
- val.SafeDelete([]string{"master_password"})
- val.SafeDelete([]string{"cluster_members"})
- val.SafeDelete([]string{"skip_final_snapshot"})
- val.SafeDelete([]string{"allow_major_version_upgrade"})
- val.SafeDelete([]string{"apply_immediately"})
- val.SafeDelete([]string{"final_snapshot_identifier"})
- val.SafeDelete([]string{"source_region"})
- })
-}
diff --git a/pkg/resource/aws/aws_rds_cluster_instance.go b/pkg/resource/aws/aws_rds_cluster_instance.go
deleted file mode 100644
index 593c1f1f2..000000000
--- a/pkg/resource/aws/aws_rds_cluster_instance.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsRDSClusterInstanceResourceType = "aws_rds_cluster_instance"
diff --git a/pkg/resource/aws/aws_rds_cluster_instance_test.go b/pkg/resource/aws/aws_rds_cluster_instance_test.go
deleted file mode 100644
index ba1365c81..000000000
--- a/pkg/resource/aws/aws_rds_cluster_instance_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_RDSClusterInstance(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_rds_cluster_instance"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_rds_cluster_test.go b/pkg/resource/aws/aws_rds_cluster_test.go
deleted file mode 100644
index 0f12a4bbc..000000000
--- a/pkg/resource/aws/aws_rds_cluster_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_RDSCluster(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_rds_cluster"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_route.go b/pkg/resource/aws/aws_route.go
deleted file mode 100644
index 62821e0b6..000000000
--- a/pkg/resource/aws/aws_route.go
+++ /dev/null
@@ -1,67 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/hashicorp/terraform/helper/hashcode"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-const AwsRouteResourceType = "aws_route"
-
-func initAwsRouteMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsRouteResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
-
- val.DeleteIfDefault("vpc_endpoint_id")
- val.DeleteIfDefault("local_gateway_id")
- val.DeleteIfDefault("destination_cidr_block")
- val.DeleteIfDefault("destination_ipv6_cidr_block")
- val.DeleteIfDefault("destination_prefix_list_id")
- val.DeleteIfDefault("egress_only_gateway_id")
- val.DeleteIfDefault("nat_gateway_id")
- val.DeleteIfDefault("instance_id")
- val.DeleteIfDefault("network_interface_id")
- val.DeleteIfDefault("transit_gateway_id")
- val.DeleteIfDefault("vpc_peering_connection_id")
- val.DeleteIfDefault("destination_prefix_list_id")
- val.DeleteIfDefault("instance_owner_id")
- val.DeleteIfDefault("carrier_gateway_id")
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsRouteResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if rtID := val.GetString("route_table_id"); rtID != nil && *rtID != "" {
- attrs["Table"] = *rtID
- }
- if ipv4 := val.GetString("destination_cidr_block"); ipv4 != nil && *ipv4 != "" {
- attrs["Destination"] = *ipv4
- }
- if ipv6 := val.GetString("destination_ipv6_cidr_block"); ipv6 != nil && *ipv6 != "" {
- attrs["Destination"] = *ipv6
- }
- if prefix := val.GetString("destination_prefix_list_id"); prefix != nil && *prefix != "" {
- attrs["Destination"] = *prefix
- }
- return attrs
- })
-}
-
-func CalculateRouteID(tableId, CidrBlock, Ipv6CidrBlock, PrefixListId *string) string {
- if CidrBlock != nil && *CidrBlock != "" {
- return fmt.Sprintf("r-%s%d", *tableId, hashcode.String(*CidrBlock))
- }
-
- if Ipv6CidrBlock != nil && *Ipv6CidrBlock != "" {
- return fmt.Sprintf("r-%s%d", *tableId, hashcode.String(*Ipv6CidrBlock))
- }
-
- if PrefixListId != nil && *PrefixListId != "" {
- return fmt.Sprintf("r-%s%d", *tableId, hashcode.String(*PrefixListId))
- }
-
- return ""
-}
diff --git a/pkg/resource/aws/aws_route53_health_check.go b/pkg/resource/aws/aws_route53_health_check.go
deleted file mode 100644
index 8366f35fd..000000000
--- a/pkg/resource/aws/aws_route53_health_check.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package aws
-
-import (
- "fmt"
-
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRoute53HealthCheckResourceType = "aws_route53_health_check"
-
-func initAwsRoute53HealthCheckMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsRoute53HealthCheckResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if tags := val.GetMap("tags"); tags != nil {
- if name, ok := tags["Name"]; ok {
- attrs["Name"] = name.(string)
- }
- }
- port := val.GetInt("port")
- path := val.GetString("resource_path")
- if fqdn := val.GetString("fqdn"); fqdn != nil && *fqdn != "" {
- attrs["Fqdn"] = *fqdn
- if port != nil {
- attrs["Port"] = fmt.Sprintf("%d", *port)
- }
- if path != nil && *path != "" {
- attrs["Path"] = *path
- }
- }
- if address := val.GetString("ip_address"); address != nil && *address != "" {
- attrs["IpAddress"] = *address
- if port != nil {
- attrs["Port"] = fmt.Sprintf("%d", *port)
- }
- if path != nil && *path != "" {
- attrs["Path"] = *path
- }
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_route53_health_check_test.go b/pkg/resource/aws/aws_route53_health_check_test.go
deleted file mode 100644
index 5d5f4fdb4..000000000
--- a/pkg/resource/aws/aws_route53_health_check_test.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/aws/aws-sdk-go/service/route53"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_Route53HealthCheck(t *testing.T) {
- var mutatedHealthCheckID string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route53_health_check"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
-
- mutatedHealthCheckID = result.Managed()[0].ResourceId()
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := route53.New(awsutils.Session())
- _, err := client.UpdateHealthCheck(&route53.UpdateHealthCheckInput{
- Disabled: aws.Bool(true),
- HealthCheckId: &mutatedHealthCheckID,
- ResourcePath: aws.String("/bad"),
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_route53_record.go b/pkg/resource/aws/aws_route53_record.go
deleted file mode 100644
index 6e556be4d..000000000
--- a/pkg/resource/aws/aws_route53_record.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRoute53RecordResourceType = "aws_route53_record"
-
-func initAwsRoute53RecordMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsRoute53RecordResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.DeleteIfDefault("health_check_id")
- val.DeleteIfDefault("set_identifier")
- val.DeleteIfDefault("ttl")
- val.SafeDelete([]string{"name"})
- val.SafeDelete([]string{"allow_overwrite"})
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsRoute53RecordResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if fqdn := val.GetString("fqdn"); fqdn != nil && *fqdn != "" {
- attrs["Fqdn"] = *fqdn
- }
- if ty := val.GetString("type"); ty != nil && *ty != "" {
- attrs["Type"] = *ty
- }
- if zoneID := val.GetString("zone_id"); zoneID != nil && *zoneID != "" {
- attrs["ZoneId"] = *zoneID
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_route53_record_test.go b/pkg/resource/aws/aws_route53_record_test.go
deleted file mode 100644
index 122b57e87..000000000
--- a/pkg/resource/aws/aws_route53_record_test.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_Route53Record_WithFQDNAsId(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route53_record"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.Equal(0, result.Summary().TotalDeleted)
- result.Equal(9, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
-
-func TestAcc_Aws_Route53Record_WithAlias(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route53_record_with_alias"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.Equal(2, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_route53_zone.go b/pkg/resource/aws/aws_route53_zone.go
deleted file mode 100644
index ac6459b80..000000000
--- a/pkg/resource/aws/aws_route53_zone.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRoute53ZoneResourceType = "aws_route53_zone"
-
-func initAwsRoute53ZoneMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsRoute53ZoneResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"force_destroy"})
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsRoute53ZoneResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if name := val.GetString("name"); name != nil && *name != "" {
- attrs["Name"] = *name
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_route_table.go b/pkg/resource/aws/aws_route_table.go
deleted file mode 100644
index ecb71f0bc..000000000
--- a/pkg/resource/aws/aws_route_table.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRouteTableResourceType = "aws_route_table"
-
-func initAwsRouteTableMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsRouteTableResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_route_table_association.go b/pkg/resource/aws/aws_route_table_association.go
deleted file mode 100644
index 705371243..000000000
--- a/pkg/resource/aws/aws_route_table_association.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsRouteTableAssociationResourceType = "aws_route_table_association"
-
-func initAwsRouteTableAssociationMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsRouteTableAssociationResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if rtID := val.GetString("route_table_id"); rtID != nil && *rtID != "" {
- attrs["Table"] = *rtID
- }
- if gtwID := val.GetString("gateway_id"); gtwID != nil && *gtwID != "" {
- attrs["Gateway"] = *gtwID
- }
- if subnetID := val.GetString("subnet_id"); subnetID != nil && *subnetID != "" {
- attrs["Subnet"] = *subnetID
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_route_table_association_test.go b/pkg/resource/aws/aws_route_table_association_test.go
deleted file mode 100644
index 9c1a98e07..000000000
--- a/pkg/resource/aws/aws_route_table_association_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_RouteTableAssociation(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route_table_association"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(4, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_route_table_test.go b/pkg/resource/aws/aws_route_table_test.go
deleted file mode 100644
index 2da2a2468..000000000
--- a/pkg/resource/aws/aws_route_table_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_RouteTable(t *testing.T) {
- t.Skip("flake")
-
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "1.0.2",
- Paths: []string{"./testdata/acc/aws_route_table"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(2, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_route_test.go b/pkg/resource/aws/aws_route_test.go
deleted file mode 100644
index d19c0e4dc..000000000
--- a/pkg/resource/aws/aws_route_test.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_Route(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(6, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
-
-// Splitted that case because it required a lot of unrelated resources
-func TestAcc_Aws_Route_With_PrefixListId(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_route_with_prefix_list_id"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_s3_account_public_access_block.go b/pkg/resource/aws/aws_s3_account_public_access_block.go
deleted file mode 100644
index c6bfd35e6..000000000
--- a/pkg/resource/aws/aws_s3_account_public_access_block.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3AccountPublicAccessBlockResourceType = "aws_s3_account_public_access_block"
diff --git a/pkg/resource/aws/aws_s3_account_public_access_block_test.go b/pkg/resource/aws/aws_s3_account_public_access_block_test.go
deleted file mode 100644
index 577f3935d..000000000
--- a/pkg/resource/aws/aws_s3_account_public_access_block_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_S3Account_PublicAccessBlock(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_s3_account_public_access_block"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_s3_bucket.go b/pkg/resource/aws/aws_s3_bucket.go
deleted file mode 100644
index b74069860..000000000
--- a/pkg/resource/aws/aws_s3_bucket.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsS3BucketResourceType = "aws_s3_bucket"
-
-func initAwsS3BucketMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsS3BucketResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"force_destroy"})
- val.SafeDelete([]string{"bucket_prefix"})
- })
- resourceSchemaRepository.UpdateSchema(AwsS3BucketResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_s3_bucket_analytics_configuration.go b/pkg/resource/aws/aws_s3_bucket_analytics_configuration.go
deleted file mode 100644
index ad2da52fe..000000000
--- a/pkg/resource/aws/aws_s3_bucket_analytics_configuration.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3BucketAnalyticsConfigurationResourceType = "aws_s3_bucket_analytics_configuration"
diff --git a/pkg/resource/aws/aws_s3_bucket_inventory.go b/pkg/resource/aws/aws_s3_bucket_inventory.go
deleted file mode 100644
index f03ad346f..000000000
--- a/pkg/resource/aws/aws_s3_bucket_inventory.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3BucketInventoryResourceType = "aws_s3_bucket_inventory"
diff --git a/pkg/resource/aws/aws_s3_bucket_metric.go b/pkg/resource/aws/aws_s3_bucket_metric.go
deleted file mode 100644
index 6a13b37c6..000000000
--- a/pkg/resource/aws/aws_s3_bucket_metric.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3BucketMetricResourceType = "aws_s3_bucket_metric"
diff --git a/pkg/resource/aws/aws_s3_bucket_notification.go b/pkg/resource/aws/aws_s3_bucket_notification.go
deleted file mode 100644
index bd6b7098c..000000000
--- a/pkg/resource/aws/aws_s3_bucket_notification.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3BucketNotificationResourceType = "aws_s3_bucket_notification"
diff --git a/pkg/resource/aws/aws_s3_bucket_policy.go b/pkg/resource/aws/aws_s3_bucket_policy.go
deleted file mode 100644
index 4cb9e457b..000000000
--- a/pkg/resource/aws/aws_s3_bucket_policy.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsS3BucketPolicyResourceType = "aws_s3_bucket_policy"
-
-func initAwsS3BucketPolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsS3BucketPolicyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
- if err != nil {
- return
- }
- _ = val.SafeSet([]string{"policy"}, jsonString)
- })
- resourceSchemaRepository.UpdateSchema(AwsS3BucketPolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_s3_bucket_public_access_block.go b/pkg/resource/aws/aws_s3_bucket_public_access_block.go
deleted file mode 100644
index 9cf7105c4..000000000
--- a/pkg/resource/aws/aws_s3_bucket_public_access_block.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsS3BucketPublicAccessBlockResourceType = "aws_s3_bucket_public_access_block"
diff --git a/pkg/resource/aws/aws_s3_bucket_public_access_block_test.go b/pkg/resource/aws/aws_s3_bucket_public_access_block_test.go
deleted file mode 100644
index 6db41410b..000000000
--- a/pkg/resource/aws/aws_s3_bucket_public_access_block_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_S3Bucket_PublicAccessBlock(t *testing.T) {
- t.Skip("flake")
-
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_s3_bucket_public_access_block"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_s3_bucket_test.go b/pkg/resource/aws/aws_s3_bucket_test.go
deleted file mode 100644
index e2142cb4e..000000000
--- a/pkg/resource/aws/aws_s3_bucket_test.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_S3Bucket_BucketInUsEast1(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "1.4.6",
- Paths: []string{"./testdata/acc/aws_s3_bucket"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertManagedCount(1)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_security_group.go b/pkg/resource/aws/aws_security_group.go
deleted file mode 100644
index 641298a6a..000000000
--- a/pkg/resource/aws/aws_security_group.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSecurityGroupResourceType = "aws_security_group"
-
-func initAwsSecurityGroupMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSecurityGroupResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"revoke_rules_on_delete"})
- val.SafeDelete([]string{"timeouts"})
-
- // TODO We need to find a way to warn users that some rules in their states could be unmanaged
- val.SafeDelete([]string{"ingress"})
- val.SafeDelete([]string{"egress"})
- })
-}
diff --git a/pkg/resource/aws/aws_security_group_rule.go b/pkg/resource/aws/aws_security_group_rule.go
deleted file mode 100644
index bef1e171e..000000000
--- a/pkg/resource/aws/aws_security_group_rule.go
+++ /dev/null
@@ -1,162 +0,0 @@
-package aws
-
-import (
- "bytes"
- "fmt"
- "strings"
-
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-
- "github.com/hashicorp/terraform/helper/hashcode"
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-const AwsSecurityGroupRuleResourceType = "aws_security_group_rule"
-
-func initAwsSecurityGroupRuleMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSecurityGroupRuleResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.DeleteIfDefault("security_group_id")
- val.DeleteIfDefault("source_security_group_id")
-
- // On first run, this field is set to null in state file and to "" after one refresh or apply
- // This ensure that if we find a nil value we dont drift
- val.DeleteIfDefault("description")
-
- // If protocol is all (e.g. -1), tcp, udp, icmp or icmpv6 then we leave the resource untouched
- // Else we delete the FromPort/ToPort and recreate the rule's id
- switch *val.GetString("protocol") {
- case "-1", "tcp", "udp", "icmp", "icmpv6":
- return
- }
-
- val.SafeDelete([]string{"from_port"})
- val.SafeDelete([]string{"to_port"})
- id := CreateSecurityGroupRuleIdHash(val)
- _ = val.SafeSet([]string{"id"}, id)
- res.Id = id
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsSecurityGroupRuleResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if sgID := val.GetString("security_group_id"); sgID != nil && *sgID != "" {
- attrs["SecurityGroup"] = *sgID
- }
- if protocol := val.GetString("protocol"); protocol != nil && *protocol != "" {
- if *protocol == "-1" {
- *protocol = "All"
- }
- attrs["Protocol"] = *protocol
- }
- fromPort := val.GetInt("from_port")
- toPort := val.GetInt("to_port")
- if fromPort != nil && toPort != nil {
- portRange := "All"
- if *fromPort != 0 && *fromPort == *toPort {
- portRange = fmt.Sprintf("%d", *fromPort)
- }
- if *fromPort != 0 && *toPort != 0 && *fromPort != *toPort {
- portRange = fmt.Sprintf("%d-%d", *fromPort, *toPort)
- }
- attrs["Ports"] = portRange
- }
- ty := val.GetString("type")
- if ty != nil && *ty != "" {
- attrs["Type"] = *ty
- var sourceOrDestination string
- switch *ty {
- case "egress":
- sourceOrDestination = "Destination"
- case "ingress":
- sourceOrDestination = "Source"
- }
- if ipv4 := val.GetSlice("cidr_blocks"); len(ipv4) > 0 {
- attrs[sourceOrDestination] = join(ipv4, ", ")
- }
- if ipv6 := val.GetSlice("ipv6_cidr_blocks"); len(ipv6) > 0 {
- attrs[sourceOrDestination] = join(ipv6, ", ")
- }
- if prefixList := val.GetSlice("prefix_list_ids"); len(prefixList) > 0 {
- attrs[sourceOrDestination] = join(prefixList, ", ")
- }
- if sourceSgID := val.GetString("source_security_group_id"); sourceSgID != nil && *sourceSgID != "" {
- attrs[sourceOrDestination] = *sourceSgID
- }
- }
- return attrs
- })
-}
-
-func join(elems []interface{}, sep string) string {
- firstElemt, ok := elems[0].(string)
- if !ok {
- panic("cannot join a slice that contains something else than strings")
- }
- switch len(elems) {
- case 0:
- return ""
- case 1:
-
- return firstElemt
- }
- n := len(sep) * (len(elems) - 1)
- for i := 0; i < len(elems); i++ {
- n += len(elems[i].(string))
- }
-
- var b strings.Builder
- b.Grow(n)
- b.WriteString(firstElemt)
- for _, s := range elems[1:] {
- b.WriteString(sep)
- elem, ok := s.(string)
- if !ok {
- panic("cannot join a slice that contains something else than strings")
- }
- b.WriteString(elem)
- }
- return b.String()
-}
-
-func CreateSecurityGroupRuleIdHash(attrs *resource.Attributes) string {
- var buf bytes.Buffer
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("security_group_id")))
- if attrs.GetInt("from_port") != nil && *attrs.GetInt("from_port") > 0 {
- buf.WriteString(fmt.Sprintf("%d-", *attrs.GetInt("from_port")))
- }
- if attrs.GetInt("to_port") != nil && *attrs.GetInt("to_port") > 0 {
- buf.WriteString(fmt.Sprintf("%d-", *attrs.GetInt("to_port")))
- }
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("protocol")))
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("type")))
-
- if attrs.GetSlice("cidr_blocks") != nil {
- for _, v := range attrs.GetSlice("cidr_blocks") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if attrs.GetSlice("ipv6_cidr_blocks") != nil {
- for _, v := range attrs.GetSlice("ipv6_cidr_blocks") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if attrs.GetSlice("prefix_list_ids") != nil {
- for _, v := range attrs.GetSlice("prefix_list_ids") {
- buf.WriteString(fmt.Sprintf("%s-", v))
- }
- }
-
- if (attrs.GetBool("self") != nil && *attrs.GetBool("self")) ||
- (attrs.GetString("source_security_group_id") != nil && *attrs.GetString("source_security_group_id") != "") {
- if attrs.GetBool("self") != nil && *attrs.GetBool("self") {
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("security_group_id")))
- } else {
- buf.WriteString(fmt.Sprintf("%s-", *attrs.GetString("source_security_group_id")))
- }
- buf.WriteString("-")
- }
-
- return fmt.Sprintf("sgrule-%d", hashcode.String(buf.String()))
-}
diff --git a/pkg/resource/aws/aws_security_group_rule_test.go b/pkg/resource/aws/aws_security_group_rule_test.go
deleted file mode 100644
index 20cfad0d6..000000000
--- a/pkg/resource/aws/aws_security_group_rule_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_SecurityGroupRule(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_security_group_rule"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertManagedCount(21)
- result.AssertDeletedCount(2)
- result.AssertUnmanagedCount(5)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_security_group_test.go b/pkg/resource/aws/aws_security_group_test.go
deleted file mode 100644
index a56d6c2e0..000000000
--- a/pkg/resource/aws/aws_security_group_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_SecurityGroup(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_security_group"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(10)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic.go b/pkg/resource/aws/aws_sns_topic.go
deleted file mode 100644
index b7fef2cd1..000000000
--- a/pkg/resource/aws/aws_sns_topic.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSnsTopicResourceType = "aws_sns_topic"
-
-func initSnsTopicMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSnsTopicResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.DeleteIfDefault("sqs_success_feedback_sample_rate")
- val.DeleteIfDefault("lambda_success_feedback_sample_rate")
- val.DeleteIfDefault("http_success_feedback_sample_rate")
- val.DeleteIfDefault("application_success_feedback_sample_rate")
- val.DeleteIfDefault("firehose_failure_feedback_role_arn")
- val.DeleteIfDefault("firehose_success_feedback_role_arn")
- val.SafeDelete([]string{"name_prefix"})
- val.SafeDelete([]string{"owner"})
- })
- resourceSchemaRepository.UpdateSchema(AwsSnsTopicResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "delivery_policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
- resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsSnsTopicResourceType, func(res *resource.Resource) map[string]string {
- val := res.Attrs
- attrs := make(map[string]string)
- if name := val.GetString("name"); name != nil && *name != "" {
- attrs["Name"] = *name
- if displayName := val.GetString("display_name"); displayName != nil && *displayName != "" {
- attrs["DisplayName"] = *displayName
- }
- }
- return attrs
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic_policy.go b/pkg/resource/aws/aws_sns_topic_policy.go
deleted file mode 100644
index 7c6f3f3e2..000000000
--- a/pkg/resource/aws/aws_sns_topic_policy.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSnsTopicPolicyResourceType = "aws_sns_topic_policy"
-
-func initSnsTopicPolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSnsTopicPolicyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"owner"})
- jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
- if err != nil {
- return
- }
- _ = val.SafeSet([]string{"policy"}, jsonString)
- })
- resourceSchemaRepository.UpdateSchema(AwsSnsTopicPolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic_policy_test.go b/pkg/resource/aws/aws_sns_topic_policy_test.go
deleted file mode 100644
index 0238f8f68..000000000
--- a/pkg/resource/aws/aws_sns_topic_policy_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_SNSTopicPolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_sns_topic_policy"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(6)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic_subscription.go b/pkg/resource/aws/aws_sns_topic_subscription.go
deleted file mode 100644
index a96a8a52f..000000000
--- a/pkg/resource/aws/aws_sns_topic_subscription.go
+++ /dev/null
@@ -1,39 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSnsTopicSubscriptionResourceType = "aws_sns_topic_subscription"
-
-func initSnsTopicSubscriptionMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSnsTopicSubscriptionResourceType, func(res *resource.Resource) {
- val := res.Attrs
- jsonString, err := helpers.NormalizeJsonString((*val)["delivery_policy"])
- if err == nil {
- _ = val.SafeSet([]string{"delivery_policy"}, jsonString)
- }
-
- jsonString, err = helpers.NormalizeJsonString((*val)["filter_policy"])
- if err == nil {
- _ = val.SafeSet([]string{"filter_policy"}, jsonString)
- }
-
- val.DeleteIfDefault("endpoint_auto_confirms")
-
- v, exists := val.Get("confirmation_timeout_in_minutes")
- if exists && v.(float64) == 1 {
- val.SafeDelete([]string{"confirmation_timeout_in_minutes"})
- }
- })
- resourceSchemaRepository.UpdateSchema(AwsSnsTopicSubscriptionResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "delivery_policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- "filter_policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic_subscription_test.go b/pkg/resource/aws/aws_sns_topic_subscription_test.go
deleted file mode 100644
index 280d7cbaf..000000000
--- a/pkg/resource/aws/aws_sns_topic_subscription_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_SNSTopicSubscription(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_sns_topic_subscription"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sns_topic_test.go b/pkg/resource/aws/aws_sns_topic_test.go
deleted file mode 100644
index bd2f78b5e..000000000
--- a/pkg/resource/aws/aws_sns_topic_test.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package aws_test
-
-import (
- "strings"
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/aws/aws-sdk-go/service/sns"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_SNSTopic(t *testing.T) {
- var mutatedTopicArn string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_sns_topic"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
-
- for _, resource := range result.Analysis.Managed() {
- if strings.Contains(resource.ResourceId(), "user-updates-topic3") {
- mutatedTopicArn = resource.ResourceId()
- }
- }
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := sns.New(awsutils.Session())
- _, err := client.SetTopicAttributes(&sns.SetTopicAttributesInput{
- AttributeName: aws.String("DisplayName"),
- AttributeValue: aws.String("CHANGED"),
- TopicArn: &mutatedTopicArn,
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertDeletedCount(0)
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sqs_queue.go b/pkg/resource/aws/aws_sqs_queue.go
deleted file mode 100644
index 5f72d488f..000000000
--- a/pkg/resource/aws/aws_sqs_queue.go
+++ /dev/null
@@ -1,3 +0,0 @@
-package aws
-
-const AwsSqsQueueResourceType = "aws_sqs_queue"
diff --git a/pkg/resource/aws/aws_sqs_queue_policy.go b/pkg/resource/aws/aws_sqs_queue_policy.go
deleted file mode 100644
index 02ee16be1..000000000
--- a/pkg/resource/aws/aws_sqs_queue_policy.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/helpers"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSqsQueuePolicyResourceType = "aws_sqs_queue_policy"
-
-func initAwsSQSQueuePolicyMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSqsQueuePolicyResourceType, func(res *resource.Resource) {
- val := res.Attrs
- jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
- if err != nil {
- return
- }
- _ = val.SafeSet([]string{"policy"}, jsonString)
- })
- resourceSchemaRepository.UpdateSchema(AwsSqsQueuePolicyResourceType, map[string]func(attributeSchema *resource.AttributeSchema){
- "policy": func(attributeSchema *resource.AttributeSchema) {
- attributeSchema.JsonString = true
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sqs_queue_policy_test.go b/pkg/resource/aws/aws_sqs_queue_policy_test.go
deleted file mode 100644
index 621293727..000000000
--- a/pkg/resource/aws/aws_sqs_queue_policy_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_SQSQueuePolicy(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_sqs_queue_policy"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(2)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_sqs_queue_test.go b/pkg/resource/aws/aws_sqs_queue_test.go
deleted file mode 100644
index edb4878d7..000000000
--- a/pkg/resource/aws/aws_sqs_queue_test.go
+++ /dev/null
@@ -1,62 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/service/sqs"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
- "github.com/snyk/driftctl/test/acceptance/awsutils"
-)
-
-func TestAcc_Aws_SQSQueue(t *testing.T) {
- t.Skip("flake")
-
- var mutatedQueue string
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_sqs_queue"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(2, result.Summary().TotalManaged)
- mutatedQueue = result.Managed()[0].ResourceId()
- },
- },
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- PreExec: func() {
- client := sqs.New(awsutils.Session())
- attributes := make(map[string]*string)
- attributes["DelaySeconds"] = aws.String("200")
- _, err := client.SetQueueAttributes(&sqs.SetQueueAttributesInput{
- Attributes: attributes,
- QueueUrl: aws.String(mutatedQueue),
- })
- if err != nil {
- t.Fatal(err)
- }
- },
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_subnet.go b/pkg/resource/aws/aws_subnet.go
deleted file mode 100644
index 1454bbfaa..000000000
--- a/pkg/resource/aws/aws_subnet.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsSubnetResourceType = "aws_subnet"
-
-func initAwsSubnetMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsSubnetResourceType, func(res *resource.Resource) {
- val := res.Attrs
- val.SafeDelete([]string{"timeouts"})
- })
-}
diff --git a/pkg/resource/aws/aws_subnet_test.go b/pkg/resource/aws/aws_subnet_test.go
deleted file mode 100644
index 7f0e717ac..000000000
--- a/pkg/resource/aws/aws_subnet_test.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_Subnet(t *testing.T) {
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_subnet"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.Equal(6, result.Summary().TotalManaged)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/aws_vpc.go b/pkg/resource/aws/aws_vpc.go
deleted file mode 100644
index d1ba2d4f4..000000000
--- a/pkg/resource/aws/aws_vpc.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
- dctlresource "github.com/snyk/driftctl/pkg/resource"
-)
-
-const AwsVpcResourceType = "aws_vpc"
-
-func initAwsVpcMetaData(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
- resourceSchemaRepository.SetNormalizeFunc(AwsVpcResourceType, func(res *resource.Resource) {
- res.Attributes().SafeDelete([]string{"arn"})
- })
-}
diff --git a/pkg/resource/aws/aws_vpc_test.go b/pkg/resource/aws/aws_vpc_test.go
deleted file mode 100644
index 3c3bc4365..000000000
--- a/pkg/resource/aws/aws_vpc_test.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package aws_test
-
-import (
- "testing"
- "time"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/snyk/driftctl/test/acceptance"
-)
-
-func TestAcc_Aws_VPC(t *testing.T) {
- t.Skip("flake")
-
- acceptance.Run(t, acceptance.AccTestCase{
- TerraformVersion: "0.15.5",
- Paths: []string{"./testdata/acc/aws_vpc"},
- Args: []string{"scan"},
- Checks: []acceptance.AccCheck{
- {
- Env: map[string]string{
- "AWS_REGION": "us-east-1",
- },
- ShouldRetry: acceptance.LinearBackoff(10 * time.Minute),
- Check: func(result *test.ScanResult, stdout string, err error) {
- if err != nil {
- t.Fatal(err)
- }
- result.AssertInfrastructureIsInSync()
- result.AssertManagedCount(3)
- },
- },
- },
- })
-}
diff --git a/pkg/resource/aws/metadata_test.go b/pkg/resource/aws/metadata_test.go
deleted file mode 100644
index a7d2718ad..000000000
--- a/pkg/resource/aws/metadata_test.go
+++ /dev/null
@@ -1,141 +0,0 @@
-package aws_test
-
-import (
- "testing"
-
- "github.com/snyk/driftctl/enumeration/resource"
- "github.com/snyk/driftctl/pkg/resource/aws"
- testresource "github.com/snyk/driftctl/test/resource"
- "github.com/stretchr/testify/assert"
-)
-
-func TestAWS_Metadata_Flags(t *testing.T) {
- testcases := map[string][]resource.Flags{
- aws.AwsAmiResourceType: {},
- aws.AwsApiGatewayAccountResourceType: {},
- aws.AwsApiGatewayApiKeyResourceType: {},
- aws.AwsApiGatewayAuthorizerResourceType: {},
- aws.AwsApiGatewayBasePathMappingResourceType: {},
- aws.AwsApiGatewayDeploymentResourceType: {},
- aws.AwsApiGatewayDomainNameResourceType: {},
- aws.AwsApiGatewayGatewayResponseResourceType: {},
- aws.AwsApiGatewayIntegrationResourceType: {},
- aws.AwsApiGatewayIntegrationResponseResourceType: {},
- aws.AwsApiGatewayMethodResourceType: {},
- aws.AwsApiGatewayMethodResponseResourceType: {},
- aws.AwsApiGatewayMethodSettingsResourceType: {},
- aws.AwsApiGatewayModelResourceType: {},
- aws.AwsApiGatewayRequestValidatorResourceType: {},
- aws.AwsApiGatewayResourceResourceType: {},
- aws.AwsApiGatewayRestApiResourceType: {},
- aws.AwsApiGatewayRestApiPolicyResourceType: {},
- aws.AwsApiGatewayStageResourceType: {},
- aws.AwsApiGatewayVpcLinkResourceType: {},
- aws.AwsApiGatewayV2ApiResourceType: {},
- aws.AwsApiGatewayV2RouteResourceType: {},
- aws.AwsApiGatewayV2DeploymentResourceType: {},
- aws.AwsApiGatewayV2VpcLinkResourceType: {},
- aws.AwsApiGatewayV2AuthorizerResourceType: {},
- aws.AwsApiGatewayV2RouteResponseResourceType: {},
- aws.AwsApiGatewayV2DomainNameResourceType: {},
- aws.AwsApiGatewayV2ModelResourceType: {},
- aws.AwsApiGatewayV2StageResourceType: {},
- aws.AwsApiGatewayV2MappingResourceType: {},
- aws.AwsApiGatewayV2IntegrationResourceType: {},
- aws.AwsApiGatewayV2IntegrationResponseResourceType: {},
- aws.AwsAppAutoscalingPolicyResourceType: {},
- aws.AwsAppAutoscalingScheduledActionResourceType: {},
- aws.AwsAppAutoscalingTargetResourceType: {},
- aws.AwsCloudformationStackResourceType: {},
- aws.AwsCloudfrontDistributionResourceType: {},
- aws.AwsDbInstanceResourceType: {},
- aws.AwsDbSubnetGroupResourceType: {},
- aws.AwsDefaultNetworkACLResourceType: {},
- aws.AwsDefaultRouteTableResourceType: {},
- aws.AwsDefaultSecurityGroupResourceType: {},
- aws.AwsDefaultSubnetResourceType: {},
- aws.AwsDefaultVpcResourceType: {},
- aws.AwsDynamodbTableResourceType: {},
- aws.AwsEbsEncryptionByDefaultResourceType: {},
- aws.AwsEbsSnapshotResourceType: {},
- aws.AwsEbsVolumeResourceType: {},
- aws.AwsEcrRepositoryResourceType: {},
- aws.AwsEipResourceType: {},
- aws.AwsEipAssociationResourceType: {},
- aws.AwsElastiCacheClusterResourceType: {},
- aws.AwsIamAccessKeyResourceType: {},
- aws.AwsIamPolicyResourceType: {},
- aws.AwsIamPolicyAttachmentResourceType: {},
- aws.AwsIamRoleResourceType: {},
- aws.AwsIamRolePolicyResourceType: {},
- aws.AwsIamRolePolicyAttachmentResourceType: {},
- aws.AwsIamUserResourceType: {},
- aws.AwsIamUserPolicyResourceType: {},
- aws.AwsIamUserPolicyAttachmentResourceType: {},
- aws.AwsIamGroupPolicyResourceType: {},
- aws.AwsIamGroupPolicyAttachmentResourceType: {},
- aws.AwsInstanceResourceType: {},
- aws.AwsInternetGatewayResourceType: {},
- aws.AwsKeyPairResourceType: {},
- aws.AwsKmsAliasResourceType: {},
- aws.AwsKmsKeyResourceType: {},
- aws.AwsLambdaEventSourceMappingResourceType: {},
- aws.AwsLambdaFunctionResourceType: {},
- aws.AwsNatGatewayResourceType: {},
- aws.AwsNetworkACLResourceType: {},
- aws.AwsRDSClusterResourceType: {},
- aws.AwsRDSClusterInstanceResourceType: {},
- aws.AwsRouteResourceType: {},
- aws.AwsRoute53HealthCheckResourceType: {},
- aws.AwsRoute53RecordResourceType: {},
- aws.AwsRoute53ZoneResourceType: {},
- aws.AwsRouteTableResourceType: {},
- aws.AwsRouteTableAssociationResourceType: {},
- aws.AwsS3BucketResourceType: {},
- aws.AwsS3BucketAnalyticsConfigurationResourceType: {},
- aws.AwsS3BucketInventoryResourceType: {},
- aws.AwsS3BucketMetricResourceType: {},
- aws.AwsS3BucketNotificationResourceType: {},
- aws.AwsS3BucketPolicyResourceType: {},
- aws.AwsS3BucketPublicAccessBlockResourceType: {},
- aws.AwsS3AccountPublicAccessBlockResourceType: {},
- aws.AwsSecurityGroupResourceType: {},
- aws.AwsSnsTopicResourceType: {},
- aws.AwsSnsTopicPolicyResourceType: {},
- aws.AwsSnsTopicSubscriptionResourceType: {},
- aws.AwsSqsQueueResourceType: {},
- aws.AwsSqsQueuePolicyResourceType: {},
- aws.AwsSubnetResourceType: {},
- aws.AwsVpcResourceType: {},
- aws.AwsSecurityGroupRuleResourceType: {},
- aws.AwsNetworkACLRuleResourceType: {},
- aws.AwsLaunchTemplateResourceType: {},
- aws.AwsLaunchConfigurationResourceType: {},
- aws.AwsLoadBalancerResourceType: {},
- aws.AwsApplicationLoadBalancerResourceType: {},
- aws.AwsClassicLoadBalancerResourceType: {},
- aws.AwsLoadBalancerListenerResourceType: {},
- aws.AwsApplicationLoadBalancerListenerResourceType: {},
- aws.AwsIamGroupResourceType: {},
- aws.AwsEcrRepositoryPolicyResourceType: {},
- }
-
- schemaRepository := testresource.InitFakeSchemaRepository("aws", "3.19.0")
- aws.InitResourcesMetadata(schemaRepository)
-
- for ty, flags := range testcases {
- t.Run(ty, func(tt *testing.T) {
- sch, exist := schemaRepository.GetSchema(ty)
- assert.True(tt, exist)
-
- if len(flags) == 0 {
- assert.Equal(tt, resource.Flags(0x0), sch.Flags, "should not have any flag")
- return
- }
-
- for _, flag := range flags {
- assert.Truef(tt, sch.Flags.HasFlag(flag), "should have given flag %d", flag)
- }
- })
- }
-}
diff --git a/pkg/resource/aws/metadatas.go b/pkg/resource/aws/metadatas.go
deleted file mode 100644
index b1c1b74ff..000000000
--- a/pkg/resource/aws/metadatas.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package aws
-
-import (
- "github.com/snyk/driftctl/pkg/resource"
-)
-
-func InitResourcesMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
- initAwsAmiMetaData(resourceSchemaRepository)
- initAwsApiGatewayV2MappingMetaData(resourceSchemaRepository)
- initAwsApiGatewayV2ModelMetaData(resourceSchemaRepository)
- initAwsAppAutoscalingPolicyMetaData(resourceSchemaRepository)
- initAwsDefaultRouteTableMetadata(resourceSchemaRepository)
- initAwsIAMRolePolicyMetaData(resourceSchemaRepository)
- initAwsIAMUserPolicyMetaData(resourceSchemaRepository)
- initAwsInternetGatewayMetaData(resourceSchemaRepository)
- initAwsLaunchTemplateMetaData(resourceSchemaRepository)
- initAwsLoadBalancerMetaData(resourceSchemaRepository)
- initAwsRoute53HealthCheckMetaData(resourceSchemaRepository)
- initAwsRouteTableMetaData(resourceSchemaRepository)
- initAwsRouteTableAssociationMetaData(resourceSchemaRepository)
- initAwsVpcMetaData(resourceSchemaRepository)
- initAwsCloudfrontDistributionMetaData(resourceSchemaRepository)
- initAwsDbInstanceMetaData(resourceSchemaRepository)
- initAwsDbSubnetGroupMetaData(resourceSchemaRepository)
- initAwsDefaultSecurityGroupMetaData(resourceSchemaRepository)
- initAwsDefaultSubnetMetaData(resourceSchemaRepository)
- initAwsDynamodbTableMetaData(resourceSchemaRepository)
- initAwsEbsSnapshotMetaData(resourceSchemaRepository)
- initAwsInstanceMetaData(resourceSchemaRepository)
- initAwsEbsVolumeMetaData(resourceSchemaRepository)
- initAwsEipMetaData(resourceSchemaRepository)
- initAwsS3BucketMetaData(resourceSchemaRepository)
- initAwsS3BucketPolicyMetaData(resourceSchemaRepository)
- initAwsEcrRepositoryMetaData(resourceSchemaRepository)
- initAwsRouteMetaData(resourceSchemaRepository)
- initAwsRoute53RecordMetaData(resourceSchemaRepository)
- initAwsRoute53ZoneMetaData(resourceSchemaRepository)
- initSnsTopicSubscriptionMetaData(resourceSchemaRepository)
- initSnsTopicPolicyMetaData(resourceSchemaRepository)
- initSnsTopicMetaData(resourceSchemaRepository)
- initAwsIAMAccessKeyMetaData(resourceSchemaRepository)
- initAwsIAMPolicyMetaData(resourceSchemaRepository)
- initAwsIAMPolicyAttachmentMetaData(resourceSchemaRepository)
- initAwsIAMRoleMetaData(resourceSchemaRepository)
- initAwsIAMUserMetaData(resourceSchemaRepository)
- initAwsKeyPairMetaData(resourceSchemaRepository)
- initAwsKmsKeyMetaData(resourceSchemaRepository)
- initAwsKmsAliasMetaData(resourceSchemaRepository)
- initAwsLambdaFunctionMetaData(resourceSchemaRepository)
- initAwsLambdaEventSourceMappingMetaData(resourceSchemaRepository)
- initAwsNetworkACLRuleMetaData(resourceSchemaRepository)
- initAwsDefaultNetworkACLMetaData(resourceSchemaRepository)
- initAwsSubnetMetaData(resourceSchemaRepository)
- initAwsSQSQueuePolicyMetaData(resourceSchemaRepository)
- initAwsSecurityGroupRuleMetaData(resourceSchemaRepository)
- initAwsSecurityGroupMetaData(resourceSchemaRepository)
- initAwsRDSClusterMetaData(resourceSchemaRepository)
- initAwsCloudformationStackMetaData(resourceSchemaRepository)
- initAwsAppAutoscalingTargetMetaData(resourceSchemaRepository)
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_alb/.driftignore b/pkg/resource/aws/testdata/acc/aws_alb/.driftignore
deleted file mode 100644
index 91cf015ef..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_lb
diff --git a/pkg/resource/aws/testdata/acc/aws_alb/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_alb/.terraform.lock.hcl
deleted file mode 100644
index cb60e412e..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb/.terraform.lock.hcl
+++ /dev/null
@@ -1,22 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "4.8.0"
- hashes = [
- "h1:T9Typ5V+dDwecG9USCLbW4oayxN3cxEGsG+OJzzjRgY=",
- "h1:W2cPGKmqkPbTc91lu42QeC3RFBqB5TnRnS3IxNME2FM=",
- "zh:16cbdbc03ad13358d12433e645e2ab5a615e3a3662a74e3c317267c9377713d8",
- "zh:1d813c5e6c21fe370652495e29f783db4e65037f913ff0d53d28515c36fbb70a",
- "zh:31ad8282e31d0fac62e96fc2321a68ad4b92ab90f560be5f875d1b01a493e491",
- "zh:5099a9e699784cabb5686d2cb52ca910f9c697e977c654ecedd196e838387623",
- "zh:5758cbb813091db8573f27bba37c48f63ba95f2104f3bc49f13131e3c305b848",
- "zh:67ea77fb00bf0a09e712f5259a7acb494ce503a34809b7919996744fd92e3312",
- "zh:72c87be5d1f7917d4281c14a3335a9ec3cd57bf63d95a440faa7035248083dcd",
- "zh:79005154b9f5eccc1580e0eb803f0dfee68ba856703ef6489719cb014a3c2b18",
- "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
- "zh:d27f9a8b5b30883a3e45f77506391524df0c66a76c3bc71f7236c3fc81d0597d",
- "zh:e2985563dc652cf9b10420bc62f0a710308ef5c31e46b94c8ea10b8f27fa1ef3",
- "zh:f11bb34ee0dad4bc865db51e7e299a4f030c5e9f6b6080d611797cc99deeb40a",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_alb/main.tf b/pkg/resource/aws/testdata/acc/aws_alb/main.tf
deleted file mode 100644
index 3cb6644bb..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb/main.tf
+++ /dev/null
@@ -1,54 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-resource "aws_vpc" "main" {
- cidr_block = "10.100.0.0/16"
-}
-
-resource "aws_internet_gateway" "gw" {
- vpc_id = aws_vpc.main.id
-}
-
-resource "aws_subnet" "main-1" {
- vpc_id = aws_vpc.main.id
- cidr_block = "10.100.0.0/24"
- availability_zone = "us-east-1a"
-}
-
-resource "aws_subnet" "main-2" {
- vpc_id = aws_vpc.main.id
- cidr_block = "10.100.1.0/24"
- availability_zone = "us-east-1b"
-}
-
-resource "aws_security_group" "lb_sg" {
- name = "allow_tls_alb"
- description = "Allow TLS inbound traffic"
- vpc_id = aws_vpc.main.id
-
- ingress {
- description = "TLS from VPC"
- from_port = 443
- to_port = 443
- protocol = "tcp"
- cidr_blocks = [aws_vpc.main.cidr_block]
- }
-
- egress {
- from_port = 0
- to_port = 0
- protocol = "-1"
- cidr_blocks = ["0.0.0.0/0"]
- ipv6_cidr_blocks = ["::/0"]
- }
-}
-
-resource "aws_alb" "test" {
- name = "acc-test-alb-tf"
- internal = false
- load_balancer_type = "application"
- security_groups = [aws_security_group.lb_sg.id]
- subnets = [aws_subnet.main-1.id,aws_subnet.main-2.id]
- enable_deletion_protection = false
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_alb_listener/.driftignore b/pkg/resource/aws/testdata/acc/aws_alb_listener/.driftignore
deleted file mode 100644
index e824a95cf..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb_listener/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_lb_listener
diff --git a/pkg/resource/aws/testdata/acc/aws_alb_listener/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_alb_listener/.terraform.lock.hcl
deleted file mode 100644
index c236fad47..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb_listener/.terraform.lock.hcl
+++ /dev/null
@@ -1,22 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "4.9.0"
- hashes = [
- "h1:GtmIOZMkKmr9tMLWouHWiGXmKEL/diOTNar5XfOVLjs=",
- "h1:OWIIlbMZl/iQ8qR1U7Co3sGjNHL1HJtgNRnnV1kXNuI=",
- "zh:084b83aef3335ad4f5e4b8323c6fe43c1ff55e17a7647c6a5cad6af519f72b42",
- "zh:132e47ce69f14de4523b84b213cedf7173398acda14245b1ffe7747aac50f050",
- "zh:2068baef7dfce3613f3b4f27314175e971f8db68d9cde9ec30b5659f80c68c6c",
- "zh:63c6f489683d5f1ac55e82a0df387143ed22701d5f22c109a4d5c9924dd4e437",
- "zh:8115fd21965954fa4568c09331e05bb29da967fab8d077419aed09954378e216",
- "zh:8efdc95fde108f777ed9c79ae25dc17aea9771903250f5c5c8a4c726b90a345f",
- "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
- "zh:9d42a7bc34d84b70c1d1bcc215cabd63abbcbd0352b70bd84da6c3916634932f",
- "zh:aacbcceb241aa475888c0869e87593182edeced3170c76a0c960dd9c905df449",
- "zh:c7fe7904511052e4102870256819a1917177572cf684f0611ebf767f9c1fbaa8",
- "zh:c8e07c3424663d1d0e7e32f4ade8099c19f6326d37c6da98104d90c986ff66fc",
- "zh:e47cafbd38b56ef14fd8d727b4ffea847c166b1c684f585ee5fb78983b537248",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_alb_listener/main.tf b/pkg/resource/aws/testdata/acc/aws_alb_listener/main.tf
deleted file mode 100644
index 2f83574a5..000000000
--- a/pkg/resource/aws/testdata/acc/aws_alb_listener/main.tf
+++ /dev/null
@@ -1,72 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-resource "aws_vpc" "main" {
- cidr_block = "10.100.0.0/16"
-}
-
-resource "aws_internet_gateway" "gw" {
- vpc_id = aws_vpc.main.id
-}
-
-resource "aws_subnet" "main-1" {
- vpc_id = aws_vpc.main.id
- cidr_block = "10.100.0.0/24"
- availability_zone = "us-east-1a"
-}
-
-resource "aws_subnet" "main-2" {
- vpc_id = aws_vpc.main.id
- cidr_block = "10.100.1.0/24"
- availability_zone = "us-east-1b"
-}
-
-resource "aws_security_group" "lb_sg" {
- name = "allow_tls_lb"
- description = "Allow TLS inbound traffic"
- vpc_id = aws_vpc.main.id
-
- ingress {
- description = "TLS from VPC"
- from_port = 443
- to_port = 443
- protocol = "tcp"
- cidr_blocks = [aws_vpc.main.cidr_block]
- }
-
- egress {
- from_port = 0
- to_port = 0
- protocol = "-1"
- cidr_blocks = ["0.0.0.0/0"]
- ipv6_cidr_blocks = ["::/0"]
- }
-}
-
-resource "aws_lb" "test" {
- name = "test-lb-tf-with-listeners"
- internal = false
- load_balancer_type = "application"
- security_groups = [aws_security_group.lb_sg.id]
- subnets = [aws_subnet.main-1.id,aws_subnet.main-2.id]
- enable_deletion_protection = false
-}
-
-resource "aws_lb_target_group" "test" {
- name = "tf-acc-lb-with-listeners-tg"
- port = 80
- protocol = "HTTP"
- vpc_id = aws_vpc.main.id
-}
-
-resource "aws_alb_listener" "front_end" {
- load_balancer_arn = aws_lb.test.arn
- port = "80"
- protocol = "HTTP"
-
- default_action {
- type = "forward"
- target_group_arn = aws_lb_target_group.test.arn
- }
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_ami/.driftignore b/pkg/resource/aws/testdata/acc/aws_ami/.driftignore
deleted file mode 100644
index efeee3562..000000000
--- a/pkg/resource/aws/testdata/acc/aws_ami/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_ami
diff --git a/pkg/resource/aws/testdata/acc/aws_ami/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_ami/.terraform.lock.hcl
deleted file mode 100644
index 8076e21f7..000000000
--- a/pkg/resource/aws/testdata/acc/aws_ami/.terraform.lock.hcl
+++ /dev/null
@@ -1,21 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:+7Vi7p13+cnrxjXbfJiTimGSFR97xCaQwkkvWcreLns=",
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_ami/terraform.tf b/pkg/resource/aws/testdata/acc/aws_ami/terraform.tf
deleted file mode 100644
index 0e71e9093..000000000
--- a/pkg/resource/aws/testdata/acc/aws_ami/terraform.tf
+++ /dev/null
@@ -1,44 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_ami" "test-ami" {
- name = "test"
- virtualization_type = "hvm"
- root_device_name = "/dev/xvda"
-
- ebs_block_device {
- device_name = "/dev/xvda"
- snapshot_id = aws_ebs_snapshot.test-ebs-snapshot.id
- volume_size = 10
- iops = 0
- encrypted = false
- }
-
- timeouts {
- create = "20m"
- }
-}
-
-resource "aws_ebs_volume" "test-ebs-volume" {
- availability_zone = "us-east-1a"
- size = 10
-
- tags = {
- Name = "HelloWorld"
- }
-}
-
-resource "aws_ebs_snapshot" "test-ebs-snapshot" {
- volume_id = aws_ebs_volume.test-ebs-volume.id
-
- tags = {
- Name = "HelloWorld_snap"
- }
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.driftignore b/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.driftignore
deleted file mode 100644
index 50a5e2afb..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_api_gateway_account
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.terraform.lock.hcl
deleted file mode 100644
index 4c3c17a70..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/.terraform.lock.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/terraform.tf b/pkg/resource/aws/testdata/acc/aws_api_gateway_account/terraform.tf
deleted file mode 100644
index 9d3ae312c..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_account/terraform.tf
+++ /dev/null
@@ -1,59 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_api_gateway_account" "account" {
- cloudwatch_role_arn = aws_iam_role.cloudwatch.arn
-}
-
-resource "aws_iam_role" "cloudwatch" {
- name = "api_gateway_cloudwatch_global"
-
- assume_role_policy = <
-
- $inputRoot.body
-
-EOF
- }
-}
-
-resource "aws_api_gateway_rest_api" "bar" {
- name = "bar"
- description = "This is bar API"
- body = jsonencode({
- openapi = "3.0.1"
- info = {
- title = "example"
- version = "1.0"
- }
- paths = {
- "/path1" = {
- get = {
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- payloadFormatVersion = "1.0"
- type = "MOCK"
- responses = {
- "2\\d{2}" : {
- "statusCode" : "200",
- "responseTemplates" : {
- "application/json" : "#set ($root=$input.path('$')) { \"stage\": \"$root.name\", \"user-id\": \"$root.key\" }",
- "application/xml" : "#set ($root=$input.path('$')) $root.name "
- }
- },
- }
- }
- }
- }
- }
- })
-}
-
-resource "aws_api_gateway_rest_api" "baz" {
- name = "baz"
- description = "This is baz API"
- body = jsonencode({
- swagger = "2.0"
- info = {
- title = "test"
- version = "2017-04-20T04:08:08Z"
- }
- schemes = ["https"]
- paths = {
- "/test" = {
- get = {
- responses = {
- "200" = {
- description = "OK"
- }
- }
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- type = "HTTP"
- responses = {
- default = {
- statusCode = 200
- }
- }
- uri = "https://aws.amazon.com/"
- }
- }
- }
- }
- })
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.driftignore b/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.driftignore
deleted file mode 100644
index a4cc9356e..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_api_gateway_method
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.terraform.lock.hcl
deleted file mode 100644
index 4c3c17a70..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/.terraform.lock.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/terraform.tf b/pkg/resource/aws/testdata/acc/aws_api_gateway_method/terraform.tf
deleted file mode 100644
index e52376fbf..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method/terraform.tf
+++ /dev/null
@@ -1,95 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_api_gateway_rest_api" "foo" {
- name = "foo"
- description = "This is foo API"
-}
-
-resource "aws_api_gateway_rest_api" "bar" {
- name = "bar"
- description = "This is bar API"
- body = jsonencode({
- openapi = "3.0.1"
- info = {
- title = "example"
- version = "1.0"
- }
- paths = {
- "/path1" = {
- get = {
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- payloadFormatVersion = "1.0"
- type = "HTTP_PROXY"
- uri = "https://ip-ranges.amazonaws.com/ip-ranges.json"
- }
- }
- }
- "/path1/path2" = {
- get = {
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- payloadFormatVersion = "1.0"
- type = "HTTP_PROXY"
- uri = "https://ip-ranges.amazonaws.com/ip-ranges.json"
- }
- }
- }
- }
- })
-}
-
-resource "aws_api_gateway_rest_api" "baz" {
- name = "baz"
- description = "This is baz API"
- body = jsonencode({
- swagger = "2.0"
- info = {
- title = "test"
- version = "2017-04-20T04:08:08Z"
- }
- schemes = ["https"]
- paths = {
- "/test" = {
- get = {
- responses = {
- "200" = {
- description = "OK"
- }
- }
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- type = "HTTP"
- responses = {
- default = {
- statusCode = 200
- }
- }
- uri = "https://aws.amazon.com/"
- }
- }
- }
- }
- })
-}
-
-resource "aws_api_gateway_resource" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- parent_id = aws_api_gateway_rest_api.foo.root_resource_id
- path_part = "foo"
-}
-
-resource "aws_api_gateway_method" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- resource_id = aws_api_gateway_resource.foo.id
- http_method = "GET"
- authorization = "NONE"
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.driftignore b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.driftignore
deleted file mode 100644
index 0500f9ac4..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_api_gateway_method_response
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.terraform.lock.hcl
deleted file mode 100644
index 4c3c17a70..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/.terraform.lock.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/terraform.tf b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/terraform.tf
deleted file mode 100644
index 659eebabf..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_response/terraform.tf
+++ /dev/null
@@ -1,127 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_api_gateway_rest_api" "foo" {
- name = "foo"
- description = "This is foo API"
-}
-
-resource "aws_api_gateway_rest_api" "bar" {
- name = "bar"
- description = "This is bar API"
- body = jsonencode({
- openapi = "3.0.1"
- info = {
- title = "example"
- version = "1.0"
- }
- paths = {
- "/path1" = {
- get = {
- "parameters" : [
- {
- "name" : "type",
- "in" : "query",
- "schema" : {
- "type" : "string"
- }
- },
- {
- "name" : "page",
- "in" : "query",
- "schema" : {
- "type" : "string"
- }
- }
- ],
- "responses" : {
- "200" : {
- "description" : "200 response",
- "headers" : {
- "Access-Control-Allow-Origin" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/Pets"
- }
- }
- }
- }
- },
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- payloadFormatVersion = "1.0"
- type = "HTTP_PROXY"
- uri = "https://ip-ranges.amazonaws.com/ip-ranges.json"
- }
- }
- }
- }
- })
-}
-
-resource "aws_api_gateway_rest_api" "baz" {
- name = "baz"
- description = "This is baz API"
- body = jsonencode({
- swagger = "2.0"
- info = {
- title = "test"
- version = "2017-04-20T04:08:08Z"
- }
- schemes = ["https"]
- paths = {
- "/test" = {
- get = {
- responses = {
- "200" = {
- description = "OK"
- }
- }
- x-amazon-apigateway-integration = {
- httpMethod = "GET"
- type = "HTTP"
- responses = {
- default = {
- statusCode = 200
- }
- }
- uri = "https://aws.amazon.com/"
- }
- }
- }
- }
- })
-}
-
-resource "aws_api_gateway_resource" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- parent_id = aws_api_gateway_rest_api.foo.root_resource_id
- path_part = "foo"
-}
-
-resource "aws_api_gateway_method" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- resource_id = aws_api_gateway_resource.foo.id
- http_method = "GET"
- authorization = "NONE"
-}
-
-resource "aws_api_gateway_method_response" "response_200" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- resource_id = aws_api_gateway_resource.foo.id
- http_method = aws_api_gateway_method.foo.http_method
- status_code = "200"
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.driftignore b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.driftignore
deleted file mode 100644
index 633ae56c7..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_api_gateway_method_settings
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.terraform.lock.hcl
deleted file mode 100644
index 4c3c17a70..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/.terraform.lock.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/terraform.tf b/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/terraform.tf
deleted file mode 100644
index d6a1253b2..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_method_settings/terraform.tf
+++ /dev/null
@@ -1,71 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_api_gateway_rest_api" "foo" {
- name = "foo"
- description = "This is foo API"
-}
-
-resource "aws_api_gateway_deployment" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- triggers = {
- redeployment = sha1(jsonencode([
- aws_api_gateway_resource.foo.id,
- aws_api_gateway_method.foo.id,
- aws_api_gateway_integration.foo.id,
- ]))
- }
-}
-
-resource "aws_api_gateway_stage" "foo" {
- deployment_id = aws_api_gateway_deployment.foo.id
- rest_api_id = aws_api_gateway_rest_api.foo.id
- stage_name = "foo"
-}
-
-resource "aws_api_gateway_resource" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- parent_id = aws_api_gateway_rest_api.foo.root_resource_id
- path_part = "foo"
-}
-
-resource "aws_api_gateway_method" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- resource_id = aws_api_gateway_resource.foo.id
- http_method = "GET"
- authorization = "NONE"
-}
-
-resource "aws_api_gateway_integration" "foo" {
- http_method = aws_api_gateway_method.foo.http_method
- resource_id = aws_api_gateway_resource.foo.id
- rest_api_id = aws_api_gateway_rest_api.foo.id
- type = "MOCK"
-}
-
-resource "aws_api_gateway_method_settings" "all" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- stage_name = aws_api_gateway_stage.foo.stage_name
- method_path = "*/*"
- settings {
- metrics_enabled = true
- logging_level = "ERROR"
- }
-}
-
-resource "aws_api_gateway_method_settings" "path_specific" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- stage_name = aws_api_gateway_stage.foo.stage_name
- method_path = "foo/GET"
- settings {
- metrics_enabled = true
- logging_level = "INFO"
- }
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.driftignore b/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.driftignore
deleted file mode 100644
index 720f5d528..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.driftignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!aws_api_gateway_model
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.terraform.lock.hcl b/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.terraform.lock.hcl
deleted file mode 100644
index 4c3c17a70..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/.terraform.lock.hcl
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is maintained automatically by "terraform init".
-# Manual edits may be lost in future updates.
-
-provider "registry.terraform.io/hashicorp/aws" {
- version = "3.19.0"
- constraints = "3.19.0"
- hashes = [
- "h1:xur9tF49NgsovNnmwmBR8RdpN8Fcg1TD4CKQPJD6n1A=",
- "zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
- "zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
- "zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
- "zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
- "zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
- "zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
- "zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
- "zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
- "zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
- "zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
- ]
-}
diff --git a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/terraform.tf b/pkg/resource/aws/testdata/acc/aws_api_gateway_model/terraform.tf
deleted file mode 100644
index 53704879a..000000000
--- a/pkg/resource/aws/testdata/acc/aws_api_gateway_model/terraform.tf
+++ /dev/null
@@ -1,62 +0,0 @@
-provider "aws" {
- region = "us-east-1"
-}
-
-terraform {
- required_providers {
- aws = "3.19.0"
- }
-}
-
-resource "aws_api_gateway_rest_api" "foo" {
- name = "foo"
- description = "This is foo API"
-}
-
-resource "aws_api_gateway_model" "foo" {
- rest_api_id = aws_api_gateway_rest_api.foo.id
- name = "foo"
- description = "a JSON schema"
- content_type = "application/json"
- schema = </dev/null; then
- echo "+ Installing goreleaser..."
- go install github.com/goreleaser/goreleaser@v1.1.0
-fi
-
-export ENV="${ENV:-dev}"
-SINGLE_TARGET="${SINGLE_TARGET:-false}"
-
-# Check configuration
-goreleaser check
-
-FLAGS=""
-FLAGS+="--rm-dist "
-FLAGS+="--parallelism 2 "
-
-CMD="release"
-
-if [ "$SINGLE_TARGET" == "true" ]; then
- CMD="build"
- FLAGS+="--single-target "
-fi
-
-# Only CI system should publish artifacts
-# We may not want to sign artifacts in dev environments
-if [ "$CI" != true ] && [ "$CMD" == "release" ]; then
- FLAGS+="--skip-announce "
- FLAGS+="--skip-publish "
- FLAGS+="--skip-sign "
-fi
-
-if [ "$CI" != true ]; then
- FLAGS+="--snapshot "
-fi
-
-if [ "$CI" == true ] && [ "$CMD" == "release" ]; then
- echo "Generating changelog..."
- ./scripts/changelog.sh > CHANGELOG.md
- cat CHANGELOG.md
- FLAGS+="--release-notes CHANGELOG.md "
-fi
-
-CMD="goreleaser ${CMD} ${FLAGS}"
-
-echo "+ Building using goreleaser"
-echo "+ ENV=${ENV}"
-echo "+ CMD=${CMD}"
-
-$CMD
diff --git a/scripts/changelog.sh b/scripts/changelog.sh
deleted file mode 100755
index 26b391616..000000000
--- a/scripts/changelog.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/usr/bin/env bash
-
-# This script compare merged pull requests between the two most recent tags
-# Please note that this script only work with Github repositories.
-# Prerequisites: git, jq, github cli
-
-print_changelist() {
- title=$1
- shift
- list=("$@")
-
- if [ ${#list[@]} -eq 0 ]; then
- return
- fi
-
- echo -e "$title"
- for change in "${list[@]}"; do
- echo "$change"
- done
-}
-
-GHCLI_BIN="gh"
-JQ_BIN="jq"
-REPO="snyk/driftctl"
-LATEST_TAG=$(git for-each-ref --sort=-taggerdate --format '%(tag)' refs/tags | sed -n 1p) # Get the last created tag
-CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
-BASE=$(git for-each-ref --sort=-taggerdate --format '%(tag)' refs/tags | sed -n 2p) # Use $CURRENT_BRANCH instead to get a pre-release changelog
-
-# Check GH cli is installed
-if ! which $GHCLI_BIN &> /dev/null; then
- echo "GitHub CLI ($GHCLI_BIN) is not installed, visit https://github.com/cli/cli#installation"
- exit 1
-fi
-
-# Check jq is installed
-if ! which $JQ_BIN &> /dev/null; then
- echo "jq ($JQ_BIN) is not installed"
- exit 1
-fi
-
-# Check GH authentication
-if ! $GHCLI_BIN auth status &> /dev/null; then
- echo "You are not logged into any GitHub hosts. Run gh auth login to authenticate."
- exit 1
-fi
-
-# Compare $BASE branch with the latest tag
-# Keep IDs of merged pull requests
-PRs=$(git log --pretty=oneline "$BASE"..."$LATEST_TAG" | grep 'Merge pull request #' | grep -oP '#[0-9]+' | sed 's/#//')
-
-# Generating changelog for commits from $BASE to $LATEST_TAG
-enchancements=()
-fixes=()
-maintenance=()
-uncategorised=()
-
-for pr in $PRs; do
- json=$($GHCLI_BIN pr view "$pr" --repo $REPO --json title,number,author,labels)
-
- labels=$(echo "$json" | jq .labels[].name)
- title=$(echo "$json" | jq -r .title)
- number=$(echo "$json" | jq -r .number)
- author=$(echo "$json" | jq -r .author.login)
-
- str="- $title (#$number) @$author"
-
- if [[ $labels =~ "kind/enhancement" ]]; then
- enchancements+=("$str")
- elif [[ $labels =~ "kind/bug" ]]; then
- fixes+=("$str")
- elif [[ $labels =~ "kind/maintenance" ]]; then
- maintenance+=("$str")
- else
- uncategorised+=("$str")
- fi
-done
-
-print_changelist "## 🚀 Enhancements" "${enchancements[@]}"
-print_changelist "## 🐛 Bug Fixes" "${fixes[@]}"
-print_changelist "## 🔨 Maintenance" "${maintenance[@]}"
-print_changelist "## Other contributions" "${uncategorised[@]}"
diff --git a/scripts/issue-tagging.sh b/scripts/issue-tagging.sh
deleted file mode 100755
index 28f772bbf..000000000
--- a/scripts/issue-tagging.sh
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/env bash
-# This script compares merged pull requests between the two most recent tags
-# Please note that this script only works with Github repositories.
-# Prerequisites: git, github cli, curl
-
-set -euo pipefail
-
-GHCLI_BIN="gh"
-REPO="snyk/driftctl"
-LATEST_TAG=$(git for-each-ref --sort=-taggerdate --format '%(tag)' refs/tags | sed -n 1p) # Get the latest created tag
-BASE_TAG=$(git for-each-ref --sort=-taggerdate --format '%(tag)' refs/tags | sed -n 2p) # Get the second latest created tag
-
-# Check GH CLI is installed
-if ! which $GHCLI_BIN &> /dev/null; then
- echo "GitHub CLI ($GHCLI_BIN) is not installed, visit https://github.com/cli/cli#installation"
- exit 1
-fi
-
-# Check GH authentication
-if [[ -z "${GITHUB_TOKEN}" ]]; then
- echo "GITHUB_TOKEN environment variable is not set, it is required to use the GitHub API."
- exit 1
-fi
-
-# Check GH authentication
-if ! $GHCLI_BIN auth status &> /dev/null; then
- echo "You are not logged into any GitHub hosts. Run gh auth login to authenticate."
- exit 1
-fi
-
-echo "Finding merged pull requests between $BASE_TAG and $LATEST_TAG..."
-
-# Compare $BASE_TAG branch with the latest tag
-# Keep IDs of merged pull requests
-PRs=$(git log --pretty=oneline "$BASE_TAG"..."$LATEST_TAG" | grep 'Merge pull request #' | grep -oE '#[0-9]+' | sed 's/#//')
-
-# Find fixed issues from $BASE_TAG to $LATEST_TAG
-ISSUES=()
-for pr in $PRs; do
- id=$($GHCLI_BIN pr view "$pr" --json body | grep -oE '(Related issues \| )(.*)?[0-9]+(.*|\r|\n)?(\|)' | sed 's/[^[:digit:]]//g' | sed -z 's/\n//g' || true)
- if [ -z "$id" ]; then
- continue
- fi
- if ! $GHCLI_BIN issue view "$id" --json title &> /dev/null; then
- echo "Invalid issue $id for pull request $pr. Skipping."
- continue
- fi
- ISSUES+=("$id")
-done
-
-if (( ${#ISSUES[@]} > 0 )); then
- # Remove duplicate IDs
- # This can happen when we release using a separate branch (e.g. patch releases)
- mapfile -t ISSUES < <(printf "%s\n" "${ISSUES[@]}" | sort -u)
-fi
-
-echo "Creating milestone $LATEST_TAG in github.com/$REPO"
-curl -X POST \
- -H "Accept: application/vnd.github.v3+json" \
- -H "Authorization: token $GITHUB_TOKEN" \
- --data "{\"title\":\"$LATEST_TAG\"}" \
- "https://api.github.com/repos/$REPO/milestones"
-
-for issue in "${ISSUES[@]}"; do
- echo "Adding milestone $LATEST_TAG to issue #$issue"
- gh issue edit "$issue" -m "$LATEST_TAG"
-
- curl -X POST \
- -H "Accept: application/vnd.github.v3+json" \
- -H "Authorization: token $GITHUB_TOKEN" \
- --data "{\"body\":\"This issue has been referenced in the [$LATEST_TAG release](https://github.com/$REPO/releases/tag/$LATEST_TAG).\"}" \
- "https://api.github.com/repos/$REPO/issues/$issue/comments"
-done
-
-echo "Done."
diff --git a/sentry/sentry.go b/sentry/sentry.go
deleted file mode 100644
index 80deb59cd..000000000
--- a/sentry/sentry.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package sentry
-
-import (
- "fmt"
- "reflect"
-
- gosentry "github.com/getsentry/sentry-go"
- "github.com/pkg/errors"
- "github.com/sirupsen/logrus"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
- "github.com/snyk/driftctl/pkg/version"
-)
-
-var excludedErrorTypes = []error{
- cmderrors.UsageError{},
-}
-
-func Initialize() error {
- logrus.Debug("Enabled error reporting")
- return gosentry.Init(gosentry.ClientOptions{
- Dsn: "https://9f2b735e20bc452387f7fa093f786173@o495597.ingest.sentry.io/5568568",
- Release: fmt.Sprintf("driftctl@%s", version.Current()),
- AttachStacktrace: true,
- })
-}
-
-func shouldCaptureException(err error) bool {
- errType, causeType := reflect.TypeOf(err), reflect.TypeOf(errors.Cause(err))
- for _, exludedError := range excludedErrorTypes {
- switch reflect.TypeOf(exludedError) {
- case errType:
- return false
- case causeType:
- return false
- default:
- }
- }
- logrus.WithFields(logrus.Fields{
- "error_type": errType,
- "cause_type": causeType,
- }).Debug("Sentry captured error")
- return true
-}
-
-func CaptureException(err error) {
- if shouldCaptureException(err) {
- gosentry.CaptureException(err)
- }
-}
diff --git a/sentry/sentry_test.go b/sentry/sentry_test.go
deleted file mode 100644
index 003cd7349..000000000
--- a/sentry/sentry_test.go
+++ /dev/null
@@ -1,39 +0,0 @@
-package sentry
-
-import (
- "testing"
-
- "github.com/pkg/errors"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
-)
-
-func Test_shouldCaptureException(t *testing.T) {
- tests := []struct {
- name string
- err error
- want bool
- }{
- {
- name: "should not capture errors.UsageError",
- err: cmderrors.UsageError{},
- want: false,
- },
- {
- name: "should not capture wrapped errors.UsageError",
- err: errors.Wrap(cmderrors.UsageError{}, "test"),
- want: false,
- },
- {
- name: "should capture errors.withStack",
- err: errors.New("test"),
- want: true,
- },
- }
- for _, tt := range tests {
- t.Run(tt.name, func(t *testing.T) {
- if got := shouldCaptureException(tt.err); got != tt.want {
- t.Errorf("shouldCaptureException() = %v, want %v", got, tt.want)
- }
- })
- }
-}
diff --git a/test/acceptance/awsutils/aws.go b/test/acceptance/awsutils/aws.go
deleted file mode 100644
index def050689..000000000
--- a/test/acceptance/awsutils/aws.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package awsutils
-
-import (
- "github.com/aws/aws-sdk-go/aws/session"
-)
-
-func Session() *session.Session {
- return session.Must(session.NewSessionWithOptions(session.Options{
- SharedConfigState: session.SharedConfigEnable,
- }))
-}
diff --git a/test/acceptance/testing.go b/test/acceptance/testing.go
deleted file mode 100644
index 7d4384bbe..000000000
--- a/test/acceptance/testing.go
+++ /dev/null
@@ -1,480 +0,0 @@
-package acceptance
-
-import (
- "bytes"
- "context"
- "encoding/json"
- "fmt"
- "io"
- "io/fs"
- "os"
- "path"
- "strings"
- "testing"
- "time"
-
- "github.com/eapache/go-resiliency/retrier"
- "github.com/pkg/errors"
- "github.com/snyk/driftctl/pkg/analyser"
- cmderrors "github.com/snyk/driftctl/pkg/cmd/errors"
-
- "github.com/sirupsen/logrus"
-
- "github.com/snyk/driftctl/test"
-
- "github.com/spf13/cobra"
-
- "github.com/snyk/driftctl/logger"
- "github.com/snyk/driftctl/pkg/cmd"
-
- "github.com/hashicorp/terraform-exec/tfexec"
- "github.com/hashicorp/terraform-exec/tfinstall"
-)
-
-type ShouldRetryFunc func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool
-
-type AccCheck struct {
- PreExec func()
- PostExec func()
- Env map[string]string
- Args func() []string
- ShouldRetry ShouldRetryFunc
- Check func(result *test.ScanResult, stdout string, err error)
-}
-
-type AccTestCase struct {
- DoNotRunTerraform bool
- TerraformVersion string
- WorkingDir string
- Paths []string
- Args []string
- OnStart func()
- OnEnd func()
- Checks []AccCheck
- tmpResultFilePath string
- originalEnv []string
- tf map[string]*tfexec.Terraform
- ShouldRefreshBeforeDestroy bool
-}
-
-func (c *AccTestCase) initTerraformExecutor() error {
- logrus.Debug("Initializing terraform...")
- installPath := path.Join(os.TempDir(), "terraform-bin", c.TerraformVersion)
- binPath := path.Join(installPath, "terraform")
- execPathFinderOptions := make([]tfinstall.ExecPathFinder, 0)
-
- err := os.MkdirAll(installPath, fs.ModePerm)
- if err != nil {
- return err
- }
-
- _, err = os.Stat(binPath)
- if os.IsNotExist(err) {
- execPathFinderOptions = append(execPathFinderOptions, tfinstall.ExactVersion(c.TerraformVersion, installPath))
- } else {
- execPathFinderOptions = append(execPathFinderOptions, tfinstall.ExactPath(binPath))
- }
-
- execPath, err := tfinstall.Find(context.Background(), execPathFinderOptions...)
- if err != nil {
- return err
- }
-
- c.tf = make(map[string]*tfexec.Terraform, 1)
- for _, p := range c.Paths {
- c.tf[p], err = tfexec.NewTerraform(p, execPath)
- if err != nil {
- return err
- }
- env := c.resolveTerraformEnv()
- if err := c.tf[p].SetEnv(env); err != nil {
- return err
- }
- }
- return nil
-}
-
-func (c *AccTestCase) createResultFile(t *testing.T) error {
- tmpDir := t.TempDir()
- file, err := os.CreateTemp(tmpDir, "result")
- if err != nil {
- return err
- }
- defer file.Close()
- c.tmpResultFilePath = file.Name()
- return nil
-}
-
-func (c *AccTestCase) validate() error {
- if len(c.Checks) == 0 {
- return fmt.Errorf("checks attribute must be defined")
- }
-
- if len(c.Paths) < 1 && !c.DoNotRunTerraform {
- return fmt.Errorf("Paths attribute must be defined")
- }
-
- for _, arg := range c.Args {
- if arg == "--output" || arg == "-o" {
- return fmt.Errorf("--output flag should not be defined in test case, it is automatically tested")
- }
- }
-
- return nil
-}
-
-func (c *AccTestCase) getResultFilePath() string {
- return c.tmpResultFilePath
-}
-
-func (c *AccTestCase) getResult(t *testing.T) *test.ScanResult {
- analysis := &analyser.Analysis{}
- result, err := os.ReadFile(c.getResultFilePath())
- if err != nil {
- return nil
- }
-
- if err := json.Unmarshal(result, analysis); err != nil {
- return nil
- }
-
- return test.NewScanResult(t, analysis)
-}
-
-/**
- * Retrieve env from os.Environ() but override every variable prefixed with ACC_
- * e.g. ACC_AWS_PROFILE will override AWS_PROFILE
- */
-func (c *AccTestCase) resolveTerraformEnv() map[string]string {
-
- environMap := make(map[string]string, len(os.Environ()))
-
- const PREFIX string = "ACC_"
-
- for _, e := range os.Environ() {
- envKeyValue := strings.SplitN(e, "=", 2)
- if strings.HasPrefix(envKeyValue[0], PREFIX) {
- varName := strings.TrimPrefix(envKeyValue[0], PREFIX)
- environMap[varName] = envKeyValue[1]
- continue
- }
- if _, exist := environMap[envKeyValue[0]]; !exist {
- environMap[envKeyValue[0]] = envKeyValue[1]
- }
- }
-
- return environMap
-}
-
-func (c *AccTestCase) terraformInit() error {
- if err := c.initTerraformExecutor(); err != nil {
- return err
- }
- for _, p := range c.Paths {
- _, err := os.Stat(path.Join(p, ".terraform"))
- if os.IsNotExist(err) {
- logrus.WithFields(logrus.Fields{
- "path": p,
- }).Debug("Running terraform init ...")
- stderr := new(bytes.Buffer)
- c.tf[p].SetStderr(stderr)
- if err := c.tf[p].Init(context.Background()); err != nil {
- return errors.Wrap(err, stderr.String())
- }
- logrus.WithFields(logrus.Fields{
- "path": p,
- }).Debug("Terraform init done")
- }
- }
-
- return nil
-}
-
-func (c *AccTestCase) terraformApply() error {
- for _, p := range c.Paths {
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Running terraform apply ...")
- stderr := new(bytes.Buffer)
- c.tf[p].SetStderr(stderr)
- if err := c.tf[p].Apply(context.Background()); err != nil {
- return errors.Wrap(err, stderr.String())
- }
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Terraform apply done")
- }
-
- return nil
-}
-
-func (c *AccTestCase) terraformDestroy() error {
- if c.ShouldRefreshBeforeDestroy {
- logrus.Debug("Running terraform refresh...")
- if err := c.terraformRefresh(); err != nil {
- return err
- }
- }
-
- for _, p := range c.Paths {
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Running terraform destroy ...")
- stderr := new(bytes.Buffer)
- c.tf[p].SetStderr(stderr)
- if err := c.tf[p].Destroy(context.Background()); err != nil {
- return errors.Wrap(err, stderr.String())
- }
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Terraform destroy done")
- }
-
- return nil
-}
-
-func (c *AccTestCase) terraformRefresh() error {
- for _, p := range c.Paths {
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Running terraform refresh ...")
- stderr := new(bytes.Buffer)
- c.tf[p].SetStderr(stderr)
- if err := c.tf[p].Refresh(context.Background()); err != nil {
- return errors.Wrap(err, stderr.String())
- }
- logrus.WithFields(logrus.Fields{
- "p": p,
- }).Debug("Terraform refresh done")
- }
-
- return nil
-}
-
-func runDriftCtlCmd(driftctlCmd *cmd.DriftctlCmd) (*cobra.Command, string, error) {
- old := os.Stdout // keep backup of the real stdout
- r, w, _ := os.Pipe()
- os.Stdout = w
- cmd, cmdErr := driftctlCmd.ExecuteC()
- // Ignore not in sync errors in acceptance test context
- if _, isNotInSyncErr := cmdErr.(cmderrors.InfrastructureNotInSync); isNotInSyncErr {
- cmdErr = nil
- }
- outC := make(chan string)
- // copy the output in a separate goroutine so printing can't block indefinitely
- go func() {
- var buf bytes.Buffer
- _, _ = io.Copy(&buf, r)
- outC <- buf.String()
- }()
-
- // back to normal state
- w.Close()
- os.Stdout = old // restoring the real stdout
- out := <-outC
- return cmd, out, cmdErr
-}
-
-func (c *AccTestCase) useTerraformEnv() {
- c.originalEnv = os.Environ()
- environMap := c.resolveTerraformEnv()
- env := make([]string, 0, len(environMap))
- for k, v := range environMap {
- env = append(env, fmt.Sprintf("%s=%s", k, v))
- }
- c.setEnv(env)
-}
-
-func (c *AccTestCase) restoreEnv() {
- if c.originalEnv != nil {
- logrus.Debug("Restoring original environment ...")
- os.Clearenv()
- c.setEnv(c.originalEnv)
- c.originalEnv = nil
- }
-}
-
-func (c *AccTestCase) setEnv(env []string) {
- os.Clearenv()
- for _, e := range env {
- envKeyValue := strings.SplitN(e, "=", 2)
- os.Setenv(envKeyValue[0], envKeyValue[1])
- }
-}
-
-func Run(t *testing.T, c AccTestCase) {
-
- logger.Init()
-
- if os.Getenv("DRIFTCTL_ACC") == "" {
- t.Skip()
- }
-
- if err := c.validate(); err != nil {
- t.Fatal(err)
- }
-
- if c.OnStart != nil {
- c.useTerraformEnv()
- c.OnStart()
- if c.OnEnd != nil {
- defer func() {
- c.useTerraformEnv()
- c.OnEnd()
- c.restoreEnv()
- }()
- }
- c.restoreEnv()
- }
-
- // Disable terraform version checks
- // @link https://www.terraform.io/docs/commands/index.html#upgrade-and-security-bulletin-checks
- checkpoint := os.Getenv("CHECKPOINT_DISABLE")
- os.Setenv("CHECKPOINT_DISABLE", "true")
-
- // Retry after 2s, 4s, 8s, 16s, 32s, 64s, 2m, 2m, 2m, 2m
- // Try tweaking the backoff interval limit and/or the retry count limit in
- // response to flaky tests.
- limitedExponentialBackoff := retrier.New(retrier.LimitedExponentialBackoff(10, time.Second*2, time.Minute*2), nil)
-
- if !c.DoNotRunTerraform {
- // Execute terraform init if .terraform folder is not found in test folder
- err := limitedExponentialBackoff.Run(c.terraformInit)
- if err != nil {
- t.Fatal(err)
- }
-
- defer func() {
- c.restoreEnv()
- err := limitedExponentialBackoff.Run(c.terraformDestroy)
- os.Setenv("CHECKPOINT_DISABLE", checkpoint)
- if err != nil {
- t.Fatal(err)
- }
- }()
-
- err = limitedExponentialBackoff.Run(c.terraformApply)
- if err != nil {
- t.Fatal(err)
- }
-
- err = c.createResultFile(t)
- if err != nil {
- t.Fatal(err)
- }
- }
-
- // If the path contains only one element, we switch to this directory for driftctl execution
- // We can override this logic by passing a WorkingDir argument in test
- if c.WorkingDir == "" && len(c.Paths) == 1 {
- c.WorkingDir = c.Paths[0]
- }
-
- if c.Args != nil {
- c.Args = append([]string{""}, c.Args...)
- isFromSet := false
- for _, arg := range c.Args {
- if arg == "--from" || arg == "-f" {
- isFromSet = true
- break
- }
- }
- // If any --from flag was manually provided OR if a working dir is specified,
- // do not setup any --from flags
- if !isFromSet && c.WorkingDir == "" {
- for _, p := range c.Paths {
- c.Args = append(c.Args,
- "--from", fmt.Sprintf("tfstate://%s", path.Join(p, "terraform.tfstate")),
- )
- }
- }
- if c.getResultFilePath() != "" {
- c.Args = append(c.Args,
- "--output", fmt.Sprintf("json://%s", c.getResultFilePath()),
- )
- }
- }
-
- for _, check := range c.Checks {
- if check.Check == nil {
- t.Fatal("Check attribute must be defined")
- }
- if len(check.Env) > 0 {
- for key, value := range check.Env {
- os.Setenv(key, value)
- }
- }
- if check.PreExec != nil {
- c.useTerraformEnv()
- check.PreExec()
- c.restoreEnv()
- }
- os.Args = c.Args
- if check.Args != nil {
- os.Args = append(os.Args, check.Args()...)
- }
-
- wd, _ := os.Getwd()
- if c.WorkingDir != "" {
- logrus.WithField("dir", c.WorkingDir).Debug("Switching working directory for driftctl execution")
- err := os.Chdir(c.WorkingDir)
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "from": wd,
- "to": c.WorkingDir,
- }).Errorf("Unable to switch to testing working dir: %s", err.Error())
- }
- }
- logrus.WithField("args", fmt.Sprintf("%+v", os.Args)).Debug("Running driftctl")
- driftctlCmd := cmd.NewDriftctlCmd(test.Build{})
- _, out, cmdErr := runDriftCtlCmd(driftctlCmd)
- result := c.getResult(t)
- var retryCount uint8 = 0
- timeBeforeRetry := time.Now()
- for {
- if check.ShouldRetry == nil || !check.ShouldRetry(result, time.Since(timeBeforeRetry), retryCount) {
- break
- }
- logrus.
- WithField("count", fmt.Sprintf("%d", retryCount)).
- WithField("retry_duration", time.Since(timeBeforeRetry).Round(time.Second)).
- Debug("Retrying scan ...")
- _, _, _ = runDriftCtlCmd(driftctlCmd)
- result = c.getResult(t)
- retryCount++
- }
- // Restore original working directory
- if c.WorkingDir != "" {
- err := os.Chdir(wd)
- if err != nil {
- logrus.WithFields(logrus.Fields{
- "to": wd,
- "from": c.WorkingDir,
- }).Errorf("Unable to switch back to original working dir: %s", err.Error())
- }
- }
-
- if len(check.Env) > 0 {
- for key := range check.Env {
- _ = os.Unsetenv(key)
- }
- }
- check.Check(result, out, cmdErr)
- if check.PostExec != nil {
- check.PostExec()
- }
- }
-}
-
-// LinearBackoff returns a function that retries using
-// a back-off strategy of retrying 'n' times and doubling the
-// amount of time waited after each one.
-func LinearBackoff(limit time.Duration) ShouldRetryFunc {
- return func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool {
- if result.IsSync() || retryDuration > limit {
- return false
- }
- time.Sleep((2 * time.Duration(retryCount)) * time.Minute)
- return true
- }
-}
diff --git a/test/acceptance/testing_test.go b/test/acceptance/testing_test.go
deleted file mode 100644
index bbfd40fba..000000000
--- a/test/acceptance/testing_test.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package acceptance
-
-import (
- "os"
- "reflect"
- "testing"
-)
-
-func TestAccTestCase_resolveTerraformEnv(t *testing.T) {
- os.Clearenv()
- os.Setenv("ACC_TEST_VAR", "foobar")
- os.Setenv("TEST_VAR", "barfoo")
- os.Setenv("TEST_VAR_2", "barfoo")
- os.Setenv("ACC_TEST_VAR_3", "")
- os.Setenv("TEST_VAR_3", "barfoo")
- os.Setenv("TEST_VAR_4", "barfoo")
- os.Setenv("ACC_TEST_VAR_4", "")
-
- testCase := AccTestCase{}
- env := testCase.resolveTerraformEnv()
- expected := map[string]string{
- "TEST_VAR": "foobar",
- "TEST_VAR_2": "barfoo",
- "TEST_VAR_3": "",
- "TEST_VAR_4": "",
- }
-
- if !reflect.DeepEqual(expected, env) {
- t.Fatalf("Variable env override not working, got: %+v, expected %+v", env, expected)
- }
-}
diff --git a/test/aws/README.md b/test/aws/README.md
deleted file mode 100644
index 910cba48d..000000000
--- a/test/aws/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-These interface wrappers are only used to generate mock.
-
-You can generate a mock with `mockery --name SNSCLient --dir ./test/aws`
diff --git a/test/aws/apigateway.go b/test/aws/apigateway.go
deleted file mode 100644
index 88ca772b7..000000000
--- a/test/aws/apigateway.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface"
-)
-
-type FakeApiGateway interface {
- apigatewayiface.APIGatewayAPI
-}
diff --git a/test/aws/apigatewayv2.go b/test/aws/apigatewayv2.go
deleted file mode 100644
index 761bbd0a9..000000000
--- a/test/aws/apigatewayv2.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/apigatewayv2/apigatewayv2iface"
-)
-
-type FakeApiGatewayV2 interface {
- apigatewayv2iface.ApiGatewayV2API
-}
diff --git a/test/aws/applicationautoscaling.go b/test/aws/applicationautoscaling.go
deleted file mode 100644
index e08af5555..000000000
--- a/test/aws/applicationautoscaling.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface"
-)
-
-type FakeApplicationAutoScaling interface {
- applicationautoscalingiface.ApplicationAutoScalingAPI
-}
diff --git a/test/aws/autoscaling.go b/test/aws/autoscaling.go
deleted file mode 100644
index 9aac72304..000000000
--- a/test/aws/autoscaling.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface"
-)
-
-type FakeAutoscaling interface {
- autoscalingiface.AutoScalingAPI
-}
diff --git a/test/aws/cloudformation.go b/test/aws/cloudformation.go
deleted file mode 100644
index b985706ee..000000000
--- a/test/aws/cloudformation.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface"
-)
-
-type FakeCloudformation interface {
- cloudformationiface.CloudFormationAPI
-}
diff --git a/test/aws/cloudfront.go b/test/aws/cloudfront.go
deleted file mode 100644
index 7f52cbbfa..000000000
--- a/test/aws/cloudfront.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface"
-
-type FakeCloudFront interface {
- cloudfrontiface.CloudFrontAPI
-}
diff --git a/test/aws/cloudtrail.go b/test/aws/cloudtrail.go
deleted file mode 100644
index 404ab3a90..000000000
--- a/test/aws/cloudtrail.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface"
-)
-
-type FakeCloudtrail interface {
- cloudtrailiface.CloudTrailAPI
-}
diff --git a/test/aws/dynamodb.go b/test/aws/dynamodb.go
deleted file mode 100644
index 90eb096d9..000000000
--- a/test/aws/dynamodb.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface"
-
-type FakeDynamoDB interface {
- dynamodbiface.DynamoDBAPI
-}
diff --git a/test/aws/ec2.go b/test/aws/ec2.go
deleted file mode 100644
index b7ea2fda1..000000000
--- a/test/aws/ec2.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/ec2/ec2iface"
-)
-
-type FakeEC2 interface {
- ec2iface.EC2API
-}
diff --git a/test/aws/ecr.go b/test/aws/ecr.go
deleted file mode 100644
index 47b42d57b..000000000
--- a/test/aws/ecr.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/ecr/ecriface"
-
-type FakeECR interface {
- ecriface.ECRAPI
-}
diff --git a/test/aws/elasticache.go b/test/aws/elasticache.go
deleted file mode 100644
index f2941c298..000000000
--- a/test/aws/elasticache.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface"
-)
-
-type FakeElastiCache interface {
- elasticacheiface.ElastiCacheAPI
-}
diff --git a/test/aws/elb.go b/test/aws/elb.go
deleted file mode 100644
index 9416d5437..000000000
--- a/test/aws/elb.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/elb/elbiface"
-)
-
-type FakeELB interface {
- elbiface.ELBAPI
-}
diff --git a/test/aws/elbv2.go b/test/aws/elbv2.go
deleted file mode 100644
index b485cb83f..000000000
--- a/test/aws/elbv2.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/elbv2/elbv2iface"
-)
-
-type FakeELBV2 interface {
- elbv2iface.ELBV2API
-}
diff --git a/test/aws/iam.go b/test/aws/iam.go
deleted file mode 100644
index 9081ce298..000000000
--- a/test/aws/iam.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/iam/iamiface"
-)
-
-type FakeIAM interface {
- iamiface.IAMAPI
-}
diff --git a/test/aws/kms.go b/test/aws/kms.go
deleted file mode 100644
index 4d3f97ffd..000000000
--- a/test/aws/kms.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/kms/kmsiface"
-
-type FakeKMS interface {
- kmsiface.KMSAPI
-}
diff --git a/test/aws/lambda.go b/test/aws/lambda.go
deleted file mode 100644
index b24b591e3..000000000
--- a/test/aws/lambda.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/lambda/lambdaiface"
-
-type FakeLambda interface {
- lambdaiface.LambdaAPI
-}
diff --git a/test/aws/mock_FakeApiGateway.go b/test/aws/mock_FakeApiGateway.go
deleted file mode 100644
index 2cf3a1422..000000000
--- a/test/aws/mock_FakeApiGateway.go
+++ /dev/null
@@ -1,10893 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- apigateway "github.com/aws/aws-sdk-go/service/apigateway"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeApiGateway is an autogenerated mock type for the FakeApiGateway type
-type MockFakeApiGateway struct {
- mock.Mock
-}
-
-// CreateApiKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateApiKey(_a0 *apigateway.CreateApiKeyInput) (*apigateway.ApiKey, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateApiKeyInput) (*apigateway.ApiKey, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateApiKeyInput) *apigateway.ApiKey); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateApiKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateApiKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateApiKeyRequest(_a0 *apigateway.CreateApiKeyInput) (*request.Request, *apigateway.ApiKey) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ApiKey
- if rf, ok := ret.Get(0).(func(*apigateway.CreateApiKeyInput) (*request.Request, *apigateway.ApiKey)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateApiKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateApiKeyInput) *apigateway.ApiKey); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ApiKey)
- }
- }
-
- return r0, r1
-}
-
-// CreateApiKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateApiKeyWithContext(_a0 context.Context, _a1 *apigateway.CreateApiKeyInput, _a2 ...request.Option) (*apigateway.ApiKey, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateApiKeyInput, ...request.Option) *apigateway.ApiKey); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateApiKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateAuthorizer(_a0 *apigateway.CreateAuthorizerInput) (*apigateway.Authorizer, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateAuthorizerInput) (*apigateway.Authorizer, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateAuthorizerInput) *apigateway.Authorizer); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateAuthorizerRequest(_a0 *apigateway.CreateAuthorizerInput) (*request.Request, *apigateway.Authorizer) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Authorizer
- if rf, ok := ret.Get(0).(func(*apigateway.CreateAuthorizerInput) (*request.Request, *apigateway.Authorizer)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateAuthorizerInput) *apigateway.Authorizer); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Authorizer)
- }
- }
-
- return r0, r1
-}
-
-// CreateAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateAuthorizerWithContext(_a0 context.Context, _a1 *apigateway.CreateAuthorizerInput, _a2 ...request.Option) (*apigateway.Authorizer, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateAuthorizerInput, ...request.Option) *apigateway.Authorizer); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBasePathMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateBasePathMapping(_a0 *apigateway.CreateBasePathMappingInput) (*apigateway.BasePathMapping, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateBasePathMappingInput) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateBasePathMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBasePathMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateBasePathMappingRequest(_a0 *apigateway.CreateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.BasePathMapping
- if rf, ok := ret.Get(0).(func(*apigateway.CreateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateBasePathMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.BasePathMapping)
- }
- }
-
- return r0, r1
-}
-
-// CreateBasePathMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateBasePathMappingWithContext(_a0 context.Context, _a1 *apigateway.CreateBasePathMappingInput, _a2 ...request.Option) (*apigateway.BasePathMapping, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateBasePathMappingInput, ...request.Option) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateBasePathMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDeployment(_a0 *apigateway.CreateDeploymentInput) (*apigateway.Deployment, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDeploymentInput) (*apigateway.Deployment, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDeploymentInput) *apigateway.Deployment); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDeploymentRequest(_a0 *apigateway.CreateDeploymentInput) (*request.Request, *apigateway.Deployment) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Deployment
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDeploymentInput) (*request.Request, *apigateway.Deployment)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDeploymentInput) *apigateway.Deployment); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Deployment)
- }
- }
-
- return r0, r1
-}
-
-// CreateDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateDeploymentWithContext(_a0 context.Context, _a1 *apigateway.CreateDeploymentInput, _a2 ...request.Option) (*apigateway.Deployment, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDeploymentInput, ...request.Option) (*apigateway.Deployment, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDeploymentInput, ...request.Option) *apigateway.Deployment); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDocumentationPart provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDocumentationPart(_a0 *apigateway.CreateDocumentationPartInput) (*apigateway.DocumentationPart, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationPartInput) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDocumentationPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDocumentationPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDocumentationPartRequest(_a0 *apigateway.CreateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationPart
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationPart)
- }
- }
-
- return r0, r1
-}
-
-// CreateDocumentationPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateDocumentationPartWithContext(_a0 context.Context, _a1 *apigateway.CreateDocumentationPartInput, _a2 ...request.Option) (*apigateway.DocumentationPart, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDocumentationPartInput, ...request.Option) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateDocumentationPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDocumentationVersion provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDocumentationVersion(_a0 *apigateway.CreateDocumentationVersionInput) (*apigateway.DocumentationVersion, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationVersionInput) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDocumentationVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDocumentationVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDocumentationVersionRequest(_a0 *apigateway.CreateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationVersion
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDocumentationVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationVersion)
- }
- }
-
- return r0, r1
-}
-
-// CreateDocumentationVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateDocumentationVersionWithContext(_a0 context.Context, _a1 *apigateway.CreateDocumentationVersionInput, _a2 ...request.Option) (*apigateway.DocumentationVersion, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDocumentationVersionInput, ...request.Option) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateDocumentationVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDomainName(_a0 *apigateway.CreateDomainNameInput) (*apigateway.DomainName, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDomainNameInput) (*apigateway.DomainName, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDomainNameInput) *apigateway.DomainName); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateDomainNameRequest(_a0 *apigateway.CreateDomainNameInput) (*request.Request, *apigateway.DomainName) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DomainName
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDomainNameInput) (*request.Request, *apigateway.DomainName)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateDomainNameInput) *apigateway.DomainName); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DomainName)
- }
- }
-
- return r0, r1
-}
-
-// CreateDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateDomainNameWithContext(_a0 context.Context, _a1 *apigateway.CreateDomainNameInput, _a2 ...request.Option) (*apigateway.DomainName, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDomainNameInput, ...request.Option) (*apigateway.DomainName, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateDomainNameInput, ...request.Option) *apigateway.DomainName); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateModel(_a0 *apigateway.CreateModelInput) (*apigateway.Model, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateModelInput) (*apigateway.Model, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateModelInput) *apigateway.Model); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateModelRequest(_a0 *apigateway.CreateModelInput) (*request.Request, *apigateway.Model) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Model
- if rf, ok := ret.Get(0).(func(*apigateway.CreateModelInput) (*request.Request, *apigateway.Model)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateModelInput) *apigateway.Model); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Model)
- }
- }
-
- return r0, r1
-}
-
-// CreateModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateModelWithContext(_a0 context.Context, _a1 *apigateway.CreateModelInput, _a2 ...request.Option) (*apigateway.Model, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateModelInput, ...request.Option) (*apigateway.Model, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateModelInput, ...request.Option) *apigateway.Model); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRequestValidator provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateRequestValidator(_a0 *apigateway.CreateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateRequestValidatorInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRequestValidatorRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateRequestValidatorRequest(_a0 *apigateway.CreateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateRequestValidatorOutput
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRequestValidatorInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRequestValidatorWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateRequestValidatorWithContext(_a0 context.Context, _a1 *apigateway.CreateRequestValidatorInput, _a2 ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateRequestValidatorInput, ...request.Option) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateRequestValidatorInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateResource(_a0 *apigateway.CreateResourceInput) (*apigateway.Resource, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateResourceInput) (*apigateway.Resource, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateResourceInput) *apigateway.Resource); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateResourceRequest(_a0 *apigateway.CreateResourceInput) (*request.Request, *apigateway.Resource) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Resource
- if rf, ok := ret.Get(0).(func(*apigateway.CreateResourceInput) (*request.Request, *apigateway.Resource)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateResourceInput) *apigateway.Resource); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Resource)
- }
- }
-
- return r0, r1
-}
-
-// CreateResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateResourceWithContext(_a0 context.Context, _a1 *apigateway.CreateResourceInput, _a2 ...request.Option) (*apigateway.Resource, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateResourceInput, ...request.Option) (*apigateway.Resource, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateResourceInput, ...request.Option) *apigateway.Resource); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateRestApi(_a0 *apigateway.CreateRestApiInput) (*apigateway.RestApi, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRestApiInput) (*apigateway.RestApi, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRestApiInput) *apigateway.RestApi); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateRestApiRequest(_a0 *apigateway.CreateRestApiInput) (*request.Request, *apigateway.RestApi) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.RestApi
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRestApiInput) (*request.Request, *apigateway.RestApi)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateRestApiInput) *apigateway.RestApi); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.RestApi)
- }
- }
-
- return r0, r1
-}
-
-// CreateRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateRestApiWithContext(_a0 context.Context, _a1 *apigateway.CreateRestApiInput, _a2 ...request.Option) (*apigateway.RestApi, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateRestApiInput, ...request.Option) (*apigateway.RestApi, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateRestApiInput, ...request.Option) *apigateway.RestApi); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateStage(_a0 *apigateway.CreateStageInput) (*apigateway.Stage, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateStageInput) (*apigateway.Stage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateStageInput) *apigateway.Stage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateStageRequest(_a0 *apigateway.CreateStageInput) (*request.Request, *apigateway.Stage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Stage
- if rf, ok := ret.Get(0).(func(*apigateway.CreateStageInput) (*request.Request, *apigateway.Stage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateStageInput) *apigateway.Stage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Stage)
- }
- }
-
- return r0, r1
-}
-
-// CreateStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateStageWithContext(_a0 context.Context, _a1 *apigateway.CreateStageInput, _a2 ...request.Option) (*apigateway.Stage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateStageInput, ...request.Option) (*apigateway.Stage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateStageInput, ...request.Option) *apigateway.Stage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUsagePlan provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateUsagePlan(_a0 *apigateway.CreateUsagePlanInput) (*apigateway.UsagePlan, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanInput) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanInput) *apigateway.UsagePlan); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateUsagePlanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUsagePlanKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateUsagePlanKey(_a0 *apigateway.CreateUsagePlanKeyInput) (*apigateway.UsagePlanKey, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UsagePlanKey
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanKeyInput) (*apigateway.UsagePlanKey, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanKeyInput) *apigateway.UsagePlanKey); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlanKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateUsagePlanKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUsagePlanKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateUsagePlanKeyRequest(_a0 *apigateway.CreateUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UsagePlanKey
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateUsagePlanKeyInput) *apigateway.UsagePlanKey); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UsagePlanKey)
- }
- }
-
- return r0, r1
-}
-
-// CreateUsagePlanKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateUsagePlanKeyWithContext(_a0 context.Context, _a1 *apigateway.CreateUsagePlanKeyInput, _a2 ...request.Option) (*apigateway.UsagePlanKey, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UsagePlanKey
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateUsagePlanKeyInput, ...request.Option) (*apigateway.UsagePlanKey, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateUsagePlanKeyInput, ...request.Option) *apigateway.UsagePlanKey); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlanKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateUsagePlanKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUsagePlanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateUsagePlanRequest(_a0 *apigateway.CreateUsagePlanInput) (*request.Request, *apigateway.UsagePlan) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UsagePlan
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanInput) (*request.Request, *apigateway.UsagePlan)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateUsagePlanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateUsagePlanInput) *apigateway.UsagePlan); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UsagePlan)
- }
- }
-
- return r0, r1
-}
-
-// CreateUsagePlanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateUsagePlanWithContext(_a0 context.Context, _a1 *apigateway.CreateUsagePlanInput, _a2 ...request.Option) (*apigateway.UsagePlan, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateUsagePlanInput, ...request.Option) *apigateway.UsagePlan); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateUsagePlanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateVpcLink(_a0 *apigateway.CreateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.CreateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) CreateVpcLinkRequest(_a0 *apigateway.CreateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigateway.CreateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.CreateVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.CreateVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) CreateVpcLinkWithContext(_a0 context.Context, _a1 *apigateway.CreateVpcLinkInput, _a2 ...request.Option) (*apigateway.UpdateVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.CreateVpcLinkInput, ...request.Option) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.CreateVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApiKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteApiKey(_a0 *apigateway.DeleteApiKeyInput) (*apigateway.DeleteApiKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteApiKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteApiKeyInput) (*apigateway.DeleteApiKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteApiKeyInput) *apigateway.DeleteApiKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteApiKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteApiKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApiKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteApiKeyRequest(_a0 *apigateway.DeleteApiKeyInput) (*request.Request, *apigateway.DeleteApiKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteApiKeyOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteApiKeyInput) (*request.Request, *apigateway.DeleteApiKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteApiKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteApiKeyInput) *apigateway.DeleteApiKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteApiKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteApiKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteApiKeyWithContext(_a0 context.Context, _a1 *apigateway.DeleteApiKeyInput, _a2 ...request.Option) (*apigateway.DeleteApiKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteApiKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteApiKeyInput, ...request.Option) (*apigateway.DeleteApiKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteApiKeyInput, ...request.Option) *apigateway.DeleteApiKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteApiKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteApiKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteAuthorizer(_a0 *apigateway.DeleteAuthorizerInput) (*apigateway.DeleteAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteAuthorizerInput) (*apigateway.DeleteAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteAuthorizerInput) *apigateway.DeleteAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteAuthorizerRequest(_a0 *apigateway.DeleteAuthorizerInput) (*request.Request, *apigateway.DeleteAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteAuthorizerInput) (*request.Request, *apigateway.DeleteAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteAuthorizerInput) *apigateway.DeleteAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteAuthorizerWithContext(_a0 context.Context, _a1 *apigateway.DeleteAuthorizerInput, _a2 ...request.Option) (*apigateway.DeleteAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteAuthorizerInput, ...request.Option) (*apigateway.DeleteAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteAuthorizerInput, ...request.Option) *apigateway.DeleteAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBasePathMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteBasePathMapping(_a0 *apigateway.DeleteBasePathMappingInput) (*apigateway.DeleteBasePathMappingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteBasePathMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteBasePathMappingInput) (*apigateway.DeleteBasePathMappingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteBasePathMappingInput) *apigateway.DeleteBasePathMappingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteBasePathMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteBasePathMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBasePathMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteBasePathMappingRequest(_a0 *apigateway.DeleteBasePathMappingInput) (*request.Request, *apigateway.DeleteBasePathMappingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteBasePathMappingOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteBasePathMappingInput) (*request.Request, *apigateway.DeleteBasePathMappingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteBasePathMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteBasePathMappingInput) *apigateway.DeleteBasePathMappingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteBasePathMappingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBasePathMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteBasePathMappingWithContext(_a0 context.Context, _a1 *apigateway.DeleteBasePathMappingInput, _a2 ...request.Option) (*apigateway.DeleteBasePathMappingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteBasePathMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteBasePathMappingInput, ...request.Option) (*apigateway.DeleteBasePathMappingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteBasePathMappingInput, ...request.Option) *apigateway.DeleteBasePathMappingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteBasePathMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteBasePathMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteClientCertificate(_a0 *apigateway.DeleteClientCertificateInput) (*apigateway.DeleteClientCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteClientCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteClientCertificateInput) (*apigateway.DeleteClientCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteClientCertificateInput) *apigateway.DeleteClientCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteClientCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteClientCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteClientCertificateRequest(_a0 *apigateway.DeleteClientCertificateInput) (*request.Request, *apigateway.DeleteClientCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteClientCertificateOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteClientCertificateInput) (*request.Request, *apigateway.DeleteClientCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteClientCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteClientCertificateInput) *apigateway.DeleteClientCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteClientCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteClientCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteClientCertificateWithContext(_a0 context.Context, _a1 *apigateway.DeleteClientCertificateInput, _a2 ...request.Option) (*apigateway.DeleteClientCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteClientCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteClientCertificateInput, ...request.Option) (*apigateway.DeleteClientCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteClientCertificateInput, ...request.Option) *apigateway.DeleteClientCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteClientCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteClientCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDeployment(_a0 *apigateway.DeleteDeploymentInput) (*apigateway.DeleteDeploymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDeploymentInput) (*apigateway.DeleteDeploymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDeploymentInput) *apigateway.DeleteDeploymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDeploymentRequest(_a0 *apigateway.DeleteDeploymentInput) (*request.Request, *apigateway.DeleteDeploymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteDeploymentOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDeploymentInput) (*request.Request, *apigateway.DeleteDeploymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDeploymentInput) *apigateway.DeleteDeploymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteDeploymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteDeploymentWithContext(_a0 context.Context, _a1 *apigateway.DeleteDeploymentInput, _a2 ...request.Option) (*apigateway.DeleteDeploymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDeploymentInput, ...request.Option) (*apigateway.DeleteDeploymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDeploymentInput, ...request.Option) *apigateway.DeleteDeploymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationPart provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDocumentationPart(_a0 *apigateway.DeleteDocumentationPartInput) (*apigateway.DeleteDocumentationPartOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteDocumentationPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationPartInput) (*apigateway.DeleteDocumentationPartOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationPartInput) *apigateway.DeleteDocumentationPartOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDocumentationPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDocumentationPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDocumentationPartRequest(_a0 *apigateway.DeleteDocumentationPartInput) (*request.Request, *apigateway.DeleteDocumentationPartOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteDocumentationPartOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationPartInput) (*request.Request, *apigateway.DeleteDocumentationPartOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDocumentationPartInput) *apigateway.DeleteDocumentationPartOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteDocumentationPartOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteDocumentationPartWithContext(_a0 context.Context, _a1 *apigateway.DeleteDocumentationPartInput, _a2 ...request.Option) (*apigateway.DeleteDocumentationPartOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteDocumentationPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDocumentationPartInput, ...request.Option) (*apigateway.DeleteDocumentationPartOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDocumentationPartInput, ...request.Option) *apigateway.DeleteDocumentationPartOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDocumentationPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteDocumentationPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationVersion provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDocumentationVersion(_a0 *apigateway.DeleteDocumentationVersionInput) (*apigateway.DeleteDocumentationVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteDocumentationVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationVersionInput) (*apigateway.DeleteDocumentationVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationVersionInput) *apigateway.DeleteDocumentationVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDocumentationVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDocumentationVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDocumentationVersionRequest(_a0 *apigateway.DeleteDocumentationVersionInput) (*request.Request, *apigateway.DeleteDocumentationVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteDocumentationVersionOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationVersionInput) (*request.Request, *apigateway.DeleteDocumentationVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDocumentationVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDocumentationVersionInput) *apigateway.DeleteDocumentationVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteDocumentationVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDocumentationVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteDocumentationVersionWithContext(_a0 context.Context, _a1 *apigateway.DeleteDocumentationVersionInput, _a2 ...request.Option) (*apigateway.DeleteDocumentationVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteDocumentationVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDocumentationVersionInput, ...request.Option) (*apigateway.DeleteDocumentationVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDocumentationVersionInput, ...request.Option) *apigateway.DeleteDocumentationVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDocumentationVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteDocumentationVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDomainName(_a0 *apigateway.DeleteDomainNameInput) (*apigateway.DeleteDomainNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDomainNameInput) (*apigateway.DeleteDomainNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDomainNameInput) *apigateway.DeleteDomainNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteDomainNameRequest(_a0 *apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteDomainNameOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteDomainNameInput) *apigateway.DeleteDomainNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteDomainNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteDomainNameWithContext(_a0 context.Context, _a1 *apigateway.DeleteDomainNameInput, _a2 ...request.Option) (*apigateway.DeleteDomainNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDomainNameInput, ...request.Option) (*apigateway.DeleteDomainNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteDomainNameInput, ...request.Option) *apigateway.DeleteDomainNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGatewayResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteGatewayResponse(_a0 *apigateway.DeleteGatewayResponseInput) (*apigateway.DeleteGatewayResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteGatewayResponseInput) (*apigateway.DeleteGatewayResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteGatewayResponseInput) *apigateway.DeleteGatewayResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteGatewayResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGatewayResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteGatewayResponseRequest(_a0 *apigateway.DeleteGatewayResponseInput) (*request.Request, *apigateway.DeleteGatewayResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteGatewayResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteGatewayResponseInput) (*request.Request, *apigateway.DeleteGatewayResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteGatewayResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteGatewayResponseInput) *apigateway.DeleteGatewayResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteGatewayResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteGatewayResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteGatewayResponseWithContext(_a0 context.Context, _a1 *apigateway.DeleteGatewayResponseInput, _a2 ...request.Option) (*apigateway.DeleteGatewayResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteGatewayResponseInput, ...request.Option) (*apigateway.DeleteGatewayResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteGatewayResponseInput, ...request.Option) *apigateway.DeleteGatewayResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteGatewayResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteIntegration(_a0 *apigateway.DeleteIntegrationInput) (*apigateway.DeleteIntegrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationInput) (*apigateway.DeleteIntegrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationInput) *apigateway.DeleteIntegrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteIntegrationRequest(_a0 *apigateway.DeleteIntegrationInput) (*request.Request, *apigateway.DeleteIntegrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteIntegrationOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationInput) (*request.Request, *apigateway.DeleteIntegrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteIntegrationInput) *apigateway.DeleteIntegrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteIntegrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteIntegrationResponse(_a0 *apigateway.DeleteIntegrationResponseInput) (*apigateway.DeleteIntegrationResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationResponseInput) (*apigateway.DeleteIntegrationResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationResponseInput) *apigateway.DeleteIntegrationResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteIntegrationResponseRequest(_a0 *apigateway.DeleteIntegrationResponseInput) (*request.Request, *apigateway.DeleteIntegrationResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteIntegrationResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationResponseInput) (*request.Request, *apigateway.DeleteIntegrationResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteIntegrationResponseInput) *apigateway.DeleteIntegrationResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteIntegrationResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteIntegrationResponseWithContext(_a0 context.Context, _a1 *apigateway.DeleteIntegrationResponseInput, _a2 ...request.Option) (*apigateway.DeleteIntegrationResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteIntegrationResponseInput, ...request.Option) (*apigateway.DeleteIntegrationResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteIntegrationResponseInput, ...request.Option) *apigateway.DeleteIntegrationResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteIntegrationWithContext(_a0 context.Context, _a1 *apigateway.DeleteIntegrationInput, _a2 ...request.Option) (*apigateway.DeleteIntegrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteIntegrationInput, ...request.Option) (*apigateway.DeleteIntegrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteIntegrationInput, ...request.Option) *apigateway.DeleteIntegrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMethod provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteMethod(_a0 *apigateway.DeleteMethodInput) (*apigateway.DeleteMethodOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteMethodOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodInput) (*apigateway.DeleteMethodOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodInput) *apigateway.DeleteMethodOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteMethodOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteMethodInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMethodRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteMethodRequest(_a0 *apigateway.DeleteMethodInput) (*request.Request, *apigateway.DeleteMethodOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteMethodOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodInput) (*request.Request, *apigateway.DeleteMethodOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteMethodInput) *apigateway.DeleteMethodOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteMethodOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMethodResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteMethodResponse(_a0 *apigateway.DeleteMethodResponseInput) (*apigateway.DeleteMethodResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteMethodResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodResponseInput) (*apigateway.DeleteMethodResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodResponseInput) *apigateway.DeleteMethodResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteMethodResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteMethodResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMethodResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteMethodResponseRequest(_a0 *apigateway.DeleteMethodResponseInput) (*request.Request, *apigateway.DeleteMethodResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteMethodResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodResponseInput) (*request.Request, *apigateway.DeleteMethodResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteMethodResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteMethodResponseInput) *apigateway.DeleteMethodResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteMethodResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMethodResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteMethodResponseWithContext(_a0 context.Context, _a1 *apigateway.DeleteMethodResponseInput, _a2 ...request.Option) (*apigateway.DeleteMethodResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteMethodResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteMethodResponseInput, ...request.Option) (*apigateway.DeleteMethodResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteMethodResponseInput, ...request.Option) *apigateway.DeleteMethodResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteMethodResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteMethodResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMethodWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteMethodWithContext(_a0 context.Context, _a1 *apigateway.DeleteMethodInput, _a2 ...request.Option) (*apigateway.DeleteMethodOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteMethodOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteMethodInput, ...request.Option) (*apigateway.DeleteMethodOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteMethodInput, ...request.Option) *apigateway.DeleteMethodOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteMethodOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteMethodInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteModel(_a0 *apigateway.DeleteModelInput) (*apigateway.DeleteModelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteModelInput) (*apigateway.DeleteModelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteModelInput) *apigateway.DeleteModelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteModelRequest(_a0 *apigateway.DeleteModelInput) (*request.Request, *apigateway.DeleteModelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteModelOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteModelInput) (*request.Request, *apigateway.DeleteModelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteModelInput) *apigateway.DeleteModelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteModelOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteModelWithContext(_a0 context.Context, _a1 *apigateway.DeleteModelInput, _a2 ...request.Option) (*apigateway.DeleteModelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteModelInput, ...request.Option) (*apigateway.DeleteModelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteModelInput, ...request.Option) *apigateway.DeleteModelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRequestValidator provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteRequestValidator(_a0 *apigateway.DeleteRequestValidatorInput) (*apigateway.DeleteRequestValidatorOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRequestValidatorInput) (*apigateway.DeleteRequestValidatorOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRequestValidatorInput) *apigateway.DeleteRequestValidatorOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteRequestValidatorInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRequestValidatorRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteRequestValidatorRequest(_a0 *apigateway.DeleteRequestValidatorInput) (*request.Request, *apigateway.DeleteRequestValidatorOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteRequestValidatorOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRequestValidatorInput) (*request.Request, *apigateway.DeleteRequestValidatorOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRequestValidatorInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteRequestValidatorInput) *apigateway.DeleteRequestValidatorOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteRequestValidatorOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRequestValidatorWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteRequestValidatorWithContext(_a0 context.Context, _a1 *apigateway.DeleteRequestValidatorInput, _a2 ...request.Option) (*apigateway.DeleteRequestValidatorOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteRequestValidatorInput, ...request.Option) (*apigateway.DeleteRequestValidatorOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteRequestValidatorInput, ...request.Option) *apigateway.DeleteRequestValidatorOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteRequestValidatorInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteResource(_a0 *apigateway.DeleteResourceInput) (*apigateway.DeleteResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteResourceInput) (*apigateway.DeleteResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteResourceInput) *apigateway.DeleteResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteResourceRequest(_a0 *apigateway.DeleteResourceInput) (*request.Request, *apigateway.DeleteResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteResourceOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteResourceInput) (*request.Request, *apigateway.DeleteResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteResourceInput) *apigateway.DeleteResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteResourceWithContext(_a0 context.Context, _a1 *apigateway.DeleteResourceInput, _a2 ...request.Option) (*apigateway.DeleteResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteResourceInput, ...request.Option) (*apigateway.DeleteResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteResourceInput, ...request.Option) *apigateway.DeleteResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteRestApi(_a0 *apigateway.DeleteRestApiInput) (*apigateway.DeleteRestApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteRestApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRestApiInput) (*apigateway.DeleteRestApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRestApiInput) *apigateway.DeleteRestApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteRestApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteRestApiRequest(_a0 *apigateway.DeleteRestApiInput) (*request.Request, *apigateway.DeleteRestApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteRestApiOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRestApiInput) (*request.Request, *apigateway.DeleteRestApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteRestApiInput) *apigateway.DeleteRestApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteRestApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteRestApiWithContext(_a0 context.Context, _a1 *apigateway.DeleteRestApiInput, _a2 ...request.Option) (*apigateway.DeleteRestApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteRestApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteRestApiInput, ...request.Option) (*apigateway.DeleteRestApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteRestApiInput, ...request.Option) *apigateway.DeleteRestApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteRestApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteStage(_a0 *apigateway.DeleteStageInput) (*apigateway.DeleteStageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteStageInput) (*apigateway.DeleteStageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteStageInput) *apigateway.DeleteStageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteStageRequest(_a0 *apigateway.DeleteStageInput) (*request.Request, *apigateway.DeleteStageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteStageOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteStageInput) (*request.Request, *apigateway.DeleteStageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteStageInput) *apigateway.DeleteStageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteStageOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteStageWithContext(_a0 context.Context, _a1 *apigateway.DeleteStageInput, _a2 ...request.Option) (*apigateway.DeleteStageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteStageInput, ...request.Option) (*apigateway.DeleteStageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteStageInput, ...request.Option) *apigateway.DeleteStageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlan provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteUsagePlan(_a0 *apigateway.DeleteUsagePlanInput) (*apigateway.DeleteUsagePlanOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteUsagePlanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanInput) (*apigateway.DeleteUsagePlanOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanInput) *apigateway.DeleteUsagePlanOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteUsagePlanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteUsagePlanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlanKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteUsagePlanKey(_a0 *apigateway.DeleteUsagePlanKeyInput) (*apigateway.DeleteUsagePlanKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteUsagePlanKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanKeyInput) (*apigateway.DeleteUsagePlanKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanKeyInput) *apigateway.DeleteUsagePlanKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteUsagePlanKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteUsagePlanKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlanKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteUsagePlanKeyRequest(_a0 *apigateway.DeleteUsagePlanKeyInput) (*request.Request, *apigateway.DeleteUsagePlanKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteUsagePlanKeyOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanKeyInput) (*request.Request, *apigateway.DeleteUsagePlanKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteUsagePlanKeyInput) *apigateway.DeleteUsagePlanKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteUsagePlanKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlanKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteUsagePlanKeyWithContext(_a0 context.Context, _a1 *apigateway.DeleteUsagePlanKeyInput, _a2 ...request.Option) (*apigateway.DeleteUsagePlanKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteUsagePlanKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteUsagePlanKeyInput, ...request.Option) (*apigateway.DeleteUsagePlanKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteUsagePlanKeyInput, ...request.Option) *apigateway.DeleteUsagePlanKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteUsagePlanKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteUsagePlanKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteUsagePlanRequest(_a0 *apigateway.DeleteUsagePlanInput) (*request.Request, *apigateway.DeleteUsagePlanOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteUsagePlanOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanInput) (*request.Request, *apigateway.DeleteUsagePlanOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteUsagePlanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteUsagePlanInput) *apigateway.DeleteUsagePlanOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteUsagePlanOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUsagePlanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteUsagePlanWithContext(_a0 context.Context, _a1 *apigateway.DeleteUsagePlanInput, _a2 ...request.Option) (*apigateway.DeleteUsagePlanOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteUsagePlanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteUsagePlanInput, ...request.Option) (*apigateway.DeleteUsagePlanOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteUsagePlanInput, ...request.Option) *apigateway.DeleteUsagePlanOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteUsagePlanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteUsagePlanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteVpcLink(_a0 *apigateway.DeleteVpcLinkInput) (*apigateway.DeleteVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DeleteVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteVpcLinkInput) (*apigateway.DeleteVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteVpcLinkInput) *apigateway.DeleteVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) DeleteVpcLinkRequest(_a0 *apigateway.DeleteVpcLinkInput) (*request.Request, *apigateway.DeleteVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DeleteVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteVpcLinkInput) (*request.Request, *apigateway.DeleteVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.DeleteVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.DeleteVpcLinkInput) *apigateway.DeleteVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DeleteVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) DeleteVpcLinkWithContext(_a0 context.Context, _a1 *apigateway.DeleteVpcLinkInput, _a2 ...request.Option) (*apigateway.DeleteVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DeleteVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteVpcLinkInput, ...request.Option) (*apigateway.DeleteVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.DeleteVpcLinkInput, ...request.Option) *apigateway.DeleteVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DeleteVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.DeleteVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FlushStageAuthorizersCache provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) FlushStageAuthorizersCache(_a0 *apigateway.FlushStageAuthorizersCacheInput) (*apigateway.FlushStageAuthorizersCacheOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.FlushStageAuthorizersCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageAuthorizersCacheInput) (*apigateway.FlushStageAuthorizersCacheOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageAuthorizersCacheInput) *apigateway.FlushStageAuthorizersCacheOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.FlushStageAuthorizersCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.FlushStageAuthorizersCacheInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FlushStageAuthorizersCacheRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) FlushStageAuthorizersCacheRequest(_a0 *apigateway.FlushStageAuthorizersCacheInput) (*request.Request, *apigateway.FlushStageAuthorizersCacheOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.FlushStageAuthorizersCacheOutput
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageAuthorizersCacheInput) (*request.Request, *apigateway.FlushStageAuthorizersCacheOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageAuthorizersCacheInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.FlushStageAuthorizersCacheInput) *apigateway.FlushStageAuthorizersCacheOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.FlushStageAuthorizersCacheOutput)
- }
- }
-
- return r0, r1
-}
-
-// FlushStageAuthorizersCacheWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) FlushStageAuthorizersCacheWithContext(_a0 context.Context, _a1 *apigateway.FlushStageAuthorizersCacheInput, _a2 ...request.Option) (*apigateway.FlushStageAuthorizersCacheOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.FlushStageAuthorizersCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.FlushStageAuthorizersCacheInput, ...request.Option) (*apigateway.FlushStageAuthorizersCacheOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.FlushStageAuthorizersCacheInput, ...request.Option) *apigateway.FlushStageAuthorizersCacheOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.FlushStageAuthorizersCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.FlushStageAuthorizersCacheInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FlushStageCache provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) FlushStageCache(_a0 *apigateway.FlushStageCacheInput) (*apigateway.FlushStageCacheOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.FlushStageCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageCacheInput) (*apigateway.FlushStageCacheOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageCacheInput) *apigateway.FlushStageCacheOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.FlushStageCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.FlushStageCacheInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FlushStageCacheRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) FlushStageCacheRequest(_a0 *apigateway.FlushStageCacheInput) (*request.Request, *apigateway.FlushStageCacheOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.FlushStageCacheOutput
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageCacheInput) (*request.Request, *apigateway.FlushStageCacheOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.FlushStageCacheInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.FlushStageCacheInput) *apigateway.FlushStageCacheOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.FlushStageCacheOutput)
- }
- }
-
- return r0, r1
-}
-
-// FlushStageCacheWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) FlushStageCacheWithContext(_a0 context.Context, _a1 *apigateway.FlushStageCacheInput, _a2 ...request.Option) (*apigateway.FlushStageCacheOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.FlushStageCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.FlushStageCacheInput, ...request.Option) (*apigateway.FlushStageCacheOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.FlushStageCacheInput, ...request.Option) *apigateway.FlushStageCacheOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.FlushStageCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.FlushStageCacheInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateClientCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GenerateClientCertificate(_a0 *apigateway.GenerateClientCertificateInput) (*apigateway.ClientCertificate, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GenerateClientCertificateInput) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GenerateClientCertificateInput) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GenerateClientCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateClientCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GenerateClientCertificateRequest(_a0 *apigateway.GenerateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ClientCertificate
- if rf, ok := ret.Get(0).(func(*apigateway.GenerateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GenerateClientCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GenerateClientCertificateInput) *apigateway.ClientCertificate); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ClientCertificate)
- }
- }
-
- return r0, r1
-}
-
-// GenerateClientCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GenerateClientCertificateWithContext(_a0 context.Context, _a1 *apigateway.GenerateClientCertificateInput, _a2 ...request.Option) (*apigateway.ClientCertificate, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GenerateClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GenerateClientCertificateInput, ...request.Option) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GenerateClientCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccount provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAccount(_a0 *apigateway.GetAccountInput) (*apigateway.Account, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Account
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetAccountInput) (*apigateway.Account, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAccountInput) *apigateway.Account); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Account)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAccountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAccountRequest(_a0 *apigateway.GetAccountInput) (*request.Request, *apigateway.Account) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Account
- if rf, ok := ret.Get(0).(func(*apigateway.GetAccountInput) (*request.Request, *apigateway.Account)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAccountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAccountInput) *apigateway.Account); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Account)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetAccountWithContext(_a0 context.Context, _a1 *apigateway.GetAccountInput, _a2 ...request.Option) (*apigateway.Account, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Account
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAccountInput, ...request.Option) (*apigateway.Account, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAccountInput, ...request.Option) *apigateway.Account); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Account)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetAccountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetApiKey(_a0 *apigateway.GetApiKeyInput) (*apigateway.ApiKey, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeyInput) (*apigateway.ApiKey, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeyInput) *apigateway.ApiKey); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetApiKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetApiKeyRequest(_a0 *apigateway.GetApiKeyInput) (*request.Request, *apigateway.ApiKey) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ApiKey
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeyInput) (*request.Request, *apigateway.ApiKey)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetApiKeyInput) *apigateway.ApiKey); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ApiKey)
- }
- }
-
- return r0, r1
-}
-
-// GetApiKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetApiKeyWithContext(_a0 context.Context, _a1 *apigateway.GetApiKeyInput, _a2 ...request.Option) (*apigateway.ApiKey, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetApiKeyInput, ...request.Option) *apigateway.ApiKey); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetApiKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiKeys provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetApiKeys(_a0 *apigateway.GetApiKeysInput) (*apigateway.GetApiKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetApiKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeysInput) (*apigateway.GetApiKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeysInput) *apigateway.GetApiKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetApiKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetApiKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetApiKeysPages(_a0 *apigateway.GetApiKeysInput, _a1 func(*apigateway.GetApiKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeysInput, func(*apigateway.GetApiKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetApiKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetApiKeysPagesWithContext(_a0 context.Context, _a1 *apigateway.GetApiKeysInput, _a2 func(*apigateway.GetApiKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetApiKeysInput, func(*apigateway.GetApiKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetApiKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetApiKeysRequest(_a0 *apigateway.GetApiKeysInput) (*request.Request, *apigateway.GetApiKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetApiKeysOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeysInput) (*request.Request, *apigateway.GetApiKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetApiKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetApiKeysInput) *apigateway.GetApiKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetApiKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetApiKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetApiKeysWithContext(_a0 context.Context, _a1 *apigateway.GetApiKeysInput, _a2 ...request.Option) (*apigateway.GetApiKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetApiKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetApiKeysInput, ...request.Option) (*apigateway.GetApiKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetApiKeysInput, ...request.Option) *apigateway.GetApiKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetApiKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetApiKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAuthorizer(_a0 *apigateway.GetAuthorizerInput) (*apigateway.Authorizer, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizerInput) (*apigateway.Authorizer, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizerInput) *apigateway.Authorizer); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAuthorizerRequest(_a0 *apigateway.GetAuthorizerInput) (*request.Request, *apigateway.Authorizer) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Authorizer
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizerInput) (*request.Request, *apigateway.Authorizer)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAuthorizerInput) *apigateway.Authorizer); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Authorizer)
- }
- }
-
- return r0, r1
-}
-
-// GetAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetAuthorizerWithContext(_a0 context.Context, _a1 *apigateway.GetAuthorizerInput, _a2 ...request.Option) (*apigateway.Authorizer, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAuthorizerInput, ...request.Option) *apigateway.Authorizer); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizers provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAuthorizers(_a0 *apigateway.GetAuthorizersInput) (*apigateway.GetAuthorizersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetAuthorizersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizersInput) (*apigateway.GetAuthorizersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizersInput) *apigateway.GetAuthorizersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetAuthorizersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAuthorizersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetAuthorizersRequest(_a0 *apigateway.GetAuthorizersInput) (*request.Request, *apigateway.GetAuthorizersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetAuthorizersOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizersInput) (*request.Request, *apigateway.GetAuthorizersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetAuthorizersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetAuthorizersInput) *apigateway.GetAuthorizersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetAuthorizersOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAuthorizersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetAuthorizersWithContext(_a0 context.Context, _a1 *apigateway.GetAuthorizersInput, _a2 ...request.Option) (*apigateway.GetAuthorizersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetAuthorizersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAuthorizersInput, ...request.Option) (*apigateway.GetAuthorizersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetAuthorizersInput, ...request.Option) *apigateway.GetAuthorizersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetAuthorizersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetAuthorizersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBasePathMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetBasePathMapping(_a0 *apigateway.GetBasePathMappingInput) (*apigateway.BasePathMapping, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingInput) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetBasePathMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBasePathMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetBasePathMappingRequest(_a0 *apigateway.GetBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.BasePathMapping
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.BasePathMapping)
- }
- }
-
- return r0, r1
-}
-
-// GetBasePathMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetBasePathMappingWithContext(_a0 context.Context, _a1 *apigateway.GetBasePathMappingInput, _a2 ...request.Option) (*apigateway.BasePathMapping, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetBasePathMappingInput, ...request.Option) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetBasePathMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBasePathMappings provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetBasePathMappings(_a0 *apigateway.GetBasePathMappingsInput) (*apigateway.GetBasePathMappingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetBasePathMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingsInput) (*apigateway.GetBasePathMappingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingsInput) *apigateway.GetBasePathMappingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetBasePathMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetBasePathMappingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBasePathMappingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetBasePathMappingsPages(_a0 *apigateway.GetBasePathMappingsInput, _a1 func(*apigateway.GetBasePathMappingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingsInput, func(*apigateway.GetBasePathMappingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetBasePathMappingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetBasePathMappingsPagesWithContext(_a0 context.Context, _a1 *apigateway.GetBasePathMappingsInput, _a2 func(*apigateway.GetBasePathMappingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetBasePathMappingsInput, func(*apigateway.GetBasePathMappingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetBasePathMappingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetBasePathMappingsRequest(_a0 *apigateway.GetBasePathMappingsInput) (*request.Request, *apigateway.GetBasePathMappingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetBasePathMappingsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingsInput) (*request.Request, *apigateway.GetBasePathMappingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetBasePathMappingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetBasePathMappingsInput) *apigateway.GetBasePathMappingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetBasePathMappingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBasePathMappingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetBasePathMappingsWithContext(_a0 context.Context, _a1 *apigateway.GetBasePathMappingsInput, _a2 ...request.Option) (*apigateway.GetBasePathMappingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetBasePathMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetBasePathMappingsInput, ...request.Option) (*apigateway.GetBasePathMappingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetBasePathMappingsInput, ...request.Option) *apigateway.GetBasePathMappingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetBasePathMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetBasePathMappingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetClientCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetClientCertificate(_a0 *apigateway.GetClientCertificateInput) (*apigateway.ClientCertificate, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificateInput) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificateInput) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetClientCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetClientCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetClientCertificateRequest(_a0 *apigateway.GetClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ClientCertificate
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetClientCertificateInput) *apigateway.ClientCertificate); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ClientCertificate)
- }
- }
-
- return r0, r1
-}
-
-// GetClientCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetClientCertificateWithContext(_a0 context.Context, _a1 *apigateway.GetClientCertificateInput, _a2 ...request.Option) (*apigateway.ClientCertificate, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetClientCertificateInput, ...request.Option) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetClientCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetClientCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetClientCertificates(_a0 *apigateway.GetClientCertificatesInput) (*apigateway.GetClientCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetClientCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificatesInput) (*apigateway.GetClientCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificatesInput) *apigateway.GetClientCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetClientCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetClientCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetClientCertificatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetClientCertificatesPages(_a0 *apigateway.GetClientCertificatesInput, _a1 func(*apigateway.GetClientCertificatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificatesInput, func(*apigateway.GetClientCertificatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetClientCertificatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetClientCertificatesPagesWithContext(_a0 context.Context, _a1 *apigateway.GetClientCertificatesInput, _a2 func(*apigateway.GetClientCertificatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetClientCertificatesInput, func(*apigateway.GetClientCertificatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetClientCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetClientCertificatesRequest(_a0 *apigateway.GetClientCertificatesInput) (*request.Request, *apigateway.GetClientCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetClientCertificatesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificatesInput) (*request.Request, *apigateway.GetClientCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetClientCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetClientCertificatesInput) *apigateway.GetClientCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetClientCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetClientCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetClientCertificatesWithContext(_a0 context.Context, _a1 *apigateway.GetClientCertificatesInput, _a2 ...request.Option) (*apigateway.GetClientCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetClientCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetClientCertificatesInput, ...request.Option) (*apigateway.GetClientCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetClientCertificatesInput, ...request.Option) *apigateway.GetClientCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetClientCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetClientCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDeployment(_a0 *apigateway.GetDeploymentInput) (*apigateway.Deployment, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentInput) (*apigateway.Deployment, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentInput) *apigateway.Deployment); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDeploymentRequest(_a0 *apigateway.GetDeploymentInput) (*request.Request, *apigateway.Deployment) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Deployment
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentInput) (*request.Request, *apigateway.Deployment)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDeploymentInput) *apigateway.Deployment); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Deployment)
- }
- }
-
- return r0, r1
-}
-
-// GetDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDeploymentWithContext(_a0 context.Context, _a1 *apigateway.GetDeploymentInput, _a2 ...request.Option) (*apigateway.Deployment, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDeploymentInput, ...request.Option) (*apigateway.Deployment, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDeploymentInput, ...request.Option) *apigateway.Deployment); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeployments provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDeployments(_a0 *apigateway.GetDeploymentsInput) (*apigateway.GetDeploymentsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetDeploymentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentsInput) (*apigateway.GetDeploymentsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentsInput) *apigateway.GetDeploymentsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDeploymentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDeploymentsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeploymentsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetDeploymentsPages(_a0 *apigateway.GetDeploymentsInput, _a1 func(*apigateway.GetDeploymentsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetDeploymentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetDeploymentsPagesWithContext(_a0 context.Context, _a1 *apigateway.GetDeploymentsInput, _a2 func(*apigateway.GetDeploymentsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetDeploymentsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDeploymentsRequest(_a0 *apigateway.GetDeploymentsInput) (*request.Request, *apigateway.GetDeploymentsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetDeploymentsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentsInput) (*request.Request, *apigateway.GetDeploymentsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDeploymentsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDeploymentsInput) *apigateway.GetDeploymentsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetDeploymentsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDeploymentsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDeploymentsWithContext(_a0 context.Context, _a1 *apigateway.GetDeploymentsInput, _a2 ...request.Option) (*apigateway.GetDeploymentsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetDeploymentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDeploymentsInput, ...request.Option) (*apigateway.GetDeploymentsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDeploymentsInput, ...request.Option) *apigateway.GetDeploymentsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDeploymentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDeploymentsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationPart provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationPart(_a0 *apigateway.GetDocumentationPartInput) (*apigateway.DocumentationPart, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartInput) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationPartRequest(_a0 *apigateway.GetDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationPart
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationPart)
- }
- }
-
- return r0, r1
-}
-
-// GetDocumentationPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDocumentationPartWithContext(_a0 context.Context, _a1 *apigateway.GetDocumentationPartInput, _a2 ...request.Option) (*apigateway.DocumentationPart, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationPartInput, ...request.Option) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDocumentationPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationParts provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationParts(_a0 *apigateway.GetDocumentationPartsInput) (*apigateway.GetDocumentationPartsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetDocumentationPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartsInput) (*apigateway.GetDocumentationPartsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartsInput) *apigateway.GetDocumentationPartsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDocumentationPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationPartsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationPartsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationPartsRequest(_a0 *apigateway.GetDocumentationPartsInput) (*request.Request, *apigateway.GetDocumentationPartsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetDocumentationPartsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartsInput) (*request.Request, *apigateway.GetDocumentationPartsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationPartsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationPartsInput) *apigateway.GetDocumentationPartsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetDocumentationPartsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDocumentationPartsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDocumentationPartsWithContext(_a0 context.Context, _a1 *apigateway.GetDocumentationPartsInput, _a2 ...request.Option) (*apigateway.GetDocumentationPartsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetDocumentationPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationPartsInput, ...request.Option) (*apigateway.GetDocumentationPartsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationPartsInput, ...request.Option) *apigateway.GetDocumentationPartsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDocumentationPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDocumentationPartsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersion provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationVersion(_a0 *apigateway.GetDocumentationVersionInput) (*apigateway.DocumentationVersion, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionInput) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationVersionRequest(_a0 *apigateway.GetDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationVersion
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationVersion)
- }
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDocumentationVersionWithContext(_a0 context.Context, _a1 *apigateway.GetDocumentationVersionInput, _a2 ...request.Option) (*apigateway.DocumentationVersion, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationVersionInput, ...request.Option) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDocumentationVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersions provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationVersions(_a0 *apigateway.GetDocumentationVersionsInput) (*apigateway.GetDocumentationVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetDocumentationVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionsInput) (*apigateway.GetDocumentationVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionsInput) *apigateway.GetDocumentationVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDocumentationVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDocumentationVersionsRequest(_a0 *apigateway.GetDocumentationVersionsInput) (*request.Request, *apigateway.GetDocumentationVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetDocumentationVersionsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionsInput) (*request.Request, *apigateway.GetDocumentationVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDocumentationVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDocumentationVersionsInput) *apigateway.GetDocumentationVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetDocumentationVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDocumentationVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDocumentationVersionsWithContext(_a0 context.Context, _a1 *apigateway.GetDocumentationVersionsInput, _a2 ...request.Option) (*apigateway.GetDocumentationVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetDocumentationVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationVersionsInput, ...request.Option) (*apigateway.GetDocumentationVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDocumentationVersionsInput, ...request.Option) *apigateway.GetDocumentationVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDocumentationVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDocumentationVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDomainName(_a0 *apigateway.GetDomainNameInput) (*apigateway.DomainName, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNameInput) (*apigateway.DomainName, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNameInput) *apigateway.DomainName); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDomainNameRequest(_a0 *apigateway.GetDomainNameInput) (*request.Request, *apigateway.DomainName) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DomainName
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNameInput) (*request.Request, *apigateway.DomainName)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDomainNameInput) *apigateway.DomainName); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DomainName)
- }
- }
-
- return r0, r1
-}
-
-// GetDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDomainNameWithContext(_a0 context.Context, _a1 *apigateway.GetDomainNameInput, _a2 ...request.Option) (*apigateway.DomainName, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDomainNameInput, ...request.Option) (*apigateway.DomainName, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDomainNameInput, ...request.Option) *apigateway.DomainName); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNames provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDomainNames(_a0 *apigateway.GetDomainNamesInput) (*apigateway.GetDomainNamesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetDomainNamesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNamesInput) (*apigateway.GetDomainNamesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNamesInput) *apigateway.GetDomainNamesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDomainNamesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDomainNamesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNamesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetDomainNamesPages(_a0 *apigateway.GetDomainNamesInput, _a1 func(*apigateway.GetDomainNamesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNamesInput, func(*apigateway.GetDomainNamesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetDomainNamesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetDomainNamesPagesWithContext(_a0 context.Context, _a1 *apigateway.GetDomainNamesInput, _a2 func(*apigateway.GetDomainNamesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDomainNamesInput, func(*apigateway.GetDomainNamesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetDomainNamesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetDomainNamesRequest(_a0 *apigateway.GetDomainNamesInput) (*request.Request, *apigateway.GetDomainNamesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetDomainNamesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNamesInput) (*request.Request, *apigateway.GetDomainNamesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetDomainNamesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetDomainNamesInput) *apigateway.GetDomainNamesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetDomainNamesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDomainNamesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetDomainNamesWithContext(_a0 context.Context, _a1 *apigateway.GetDomainNamesInput, _a2 ...request.Option) (*apigateway.GetDomainNamesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetDomainNamesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDomainNamesInput, ...request.Option) (*apigateway.GetDomainNamesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetDomainNamesInput, ...request.Option) *apigateway.GetDomainNamesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetDomainNamesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetDomainNamesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetExport provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetExport(_a0 *apigateway.GetExportInput) (*apigateway.GetExportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetExportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetExportInput) (*apigateway.GetExportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetExportInput) *apigateway.GetExportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetExportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetExportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetExportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetExportRequest(_a0 *apigateway.GetExportInput) (*request.Request, *apigateway.GetExportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetExportOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetExportInput) (*request.Request, *apigateway.GetExportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetExportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetExportInput) *apigateway.GetExportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetExportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetExportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetExportWithContext(_a0 context.Context, _a1 *apigateway.GetExportInput, _a2 ...request.Option) (*apigateway.GetExportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetExportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetExportInput, ...request.Option) (*apigateway.GetExportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetExportInput, ...request.Option) *apigateway.GetExportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetExportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetExportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGatewayResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetGatewayResponse(_a0 *apigateway.GetGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetGatewayResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGatewayResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetGatewayResponseRequest(_a0 *apigateway.GetGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateGatewayResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGatewayResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetGatewayResponseWithContext(_a0 context.Context, _a1 *apigateway.GetGatewayResponseInput, _a2 ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetGatewayResponseInput, ...request.Option) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetGatewayResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGatewayResponses provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetGatewayResponses(_a0 *apigateway.GetGatewayResponsesInput) (*apigateway.GetGatewayResponsesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetGatewayResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponsesInput) (*apigateway.GetGatewayResponsesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponsesInput) *apigateway.GetGatewayResponsesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetGatewayResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetGatewayResponsesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGatewayResponsesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetGatewayResponsesRequest(_a0 *apigateway.GetGatewayResponsesInput) (*request.Request, *apigateway.GetGatewayResponsesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetGatewayResponsesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponsesInput) (*request.Request, *apigateway.GetGatewayResponsesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetGatewayResponsesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetGatewayResponsesInput) *apigateway.GetGatewayResponsesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetGatewayResponsesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGatewayResponsesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetGatewayResponsesWithContext(_a0 context.Context, _a1 *apigateway.GetGatewayResponsesInput, _a2 ...request.Option) (*apigateway.GetGatewayResponsesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetGatewayResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetGatewayResponsesInput, ...request.Option) (*apigateway.GetGatewayResponsesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetGatewayResponsesInput, ...request.Option) *apigateway.GetGatewayResponsesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetGatewayResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetGatewayResponsesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetIntegration(_a0 *apigateway.GetIntegrationInput) (*apigateway.Integration, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationInput) (*apigateway.Integration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationInput) *apigateway.Integration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetIntegrationRequest(_a0 *apigateway.GetIntegrationInput) (*request.Request, *apigateway.Integration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Integration
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationInput) (*request.Request, *apigateway.Integration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetIntegrationInput) *apigateway.Integration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Integration)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetIntegrationResponse(_a0 *apigateway.GetIntegrationResponseInput) (*apigateway.IntegrationResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationResponseInput) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetIntegrationResponseRequest(_a0 *apigateway.GetIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.IntegrationResponse
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.IntegrationResponse)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetIntegrationResponseWithContext(_a0 context.Context, _a1 *apigateway.GetIntegrationResponseInput, _a2 ...request.Option) (*apigateway.IntegrationResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetIntegrationResponseInput, ...request.Option) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetIntegrationWithContext(_a0 context.Context, _a1 *apigateway.GetIntegrationInput, _a2 ...request.Option) (*apigateway.Integration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetIntegrationInput, ...request.Option) (*apigateway.Integration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetIntegrationInput, ...request.Option) *apigateway.Integration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMethod provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetMethod(_a0 *apigateway.GetMethodInput) (*apigateway.Method, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodInput) (*apigateway.Method, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodInput) *apigateway.Method); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetMethodInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMethodRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetMethodRequest(_a0 *apigateway.GetMethodInput) (*request.Request, *apigateway.Method) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Method
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodInput) (*request.Request, *apigateway.Method)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetMethodInput) *apigateway.Method); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Method)
- }
- }
-
- return r0, r1
-}
-
-// GetMethodResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetMethodResponse(_a0 *apigateway.GetMethodResponseInput) (*apigateway.MethodResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodResponseInput) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodResponseInput) *apigateway.MethodResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetMethodResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMethodResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetMethodResponseRequest(_a0 *apigateway.GetMethodResponseInput) (*request.Request, *apigateway.MethodResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.MethodResponse
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodResponseInput) (*request.Request, *apigateway.MethodResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetMethodResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetMethodResponseInput) *apigateway.MethodResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.MethodResponse)
- }
- }
-
- return r0, r1
-}
-
-// GetMethodResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetMethodResponseWithContext(_a0 context.Context, _a1 *apigateway.GetMethodResponseInput, _a2 ...request.Option) (*apigateway.MethodResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetMethodResponseInput, ...request.Option) *apigateway.MethodResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetMethodResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMethodWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetMethodWithContext(_a0 context.Context, _a1 *apigateway.GetMethodInput, _a2 ...request.Option) (*apigateway.Method, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetMethodInput, ...request.Option) (*apigateway.Method, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetMethodInput, ...request.Option) *apigateway.Method); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetMethodInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModel(_a0 *apigateway.GetModelInput) (*apigateway.Model, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelInput) (*apigateway.Model, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelInput) *apigateway.Model); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModelRequest(_a0 *apigateway.GetModelInput) (*request.Request, *apigateway.Model) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Model
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelInput) (*request.Request, *apigateway.Model)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelInput) *apigateway.Model); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Model)
- }
- }
-
- return r0, r1
-}
-
-// GetModelTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModelTemplate(_a0 *apigateway.GetModelTemplateInput) (*apigateway.GetModelTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetModelTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelTemplateInput) (*apigateway.GetModelTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelTemplateInput) *apigateway.GetModelTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetModelTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModelTemplateRequest(_a0 *apigateway.GetModelTemplateInput) (*request.Request, *apigateway.GetModelTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetModelTemplateOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelTemplateInput) (*request.Request, *apigateway.GetModelTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelTemplateInput) *apigateway.GetModelTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetModelTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetModelTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetModelTemplateWithContext(_a0 context.Context, _a1 *apigateway.GetModelTemplateInput, _a2 ...request.Option) (*apigateway.GetModelTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetModelTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelTemplateInput, ...request.Option) (*apigateway.GetModelTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelTemplateInput, ...request.Option) *apigateway.GetModelTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetModelTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetModelTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetModelWithContext(_a0 context.Context, _a1 *apigateway.GetModelInput, _a2 ...request.Option) (*apigateway.Model, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelInput, ...request.Option) (*apigateway.Model, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelInput, ...request.Option) *apigateway.Model); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModels provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModels(_a0 *apigateway.GetModelsInput) (*apigateway.GetModelsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetModelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelsInput) (*apigateway.GetModelsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelsInput) *apigateway.GetModelsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetModelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetModelsPages(_a0 *apigateway.GetModelsInput, _a1 func(*apigateway.GetModelsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetModelsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetModelsPagesWithContext(_a0 context.Context, _a1 *apigateway.GetModelsInput, _a2 func(*apigateway.GetModelsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetModelsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetModelsRequest(_a0 *apigateway.GetModelsInput) (*request.Request, *apigateway.GetModelsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetModelsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelsInput) (*request.Request, *apigateway.GetModelsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetModelsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetModelsInput) *apigateway.GetModelsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetModelsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetModelsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetModelsWithContext(_a0 context.Context, _a1 *apigateway.GetModelsInput, _a2 ...request.Option) (*apigateway.GetModelsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetModelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelsInput, ...request.Option) (*apigateway.GetModelsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetModelsInput, ...request.Option) *apigateway.GetModelsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetModelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetModelsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRequestValidator provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRequestValidator(_a0 *apigateway.GetRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRequestValidatorInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRequestValidatorRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRequestValidatorRequest(_a0 *apigateway.GetRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateRequestValidatorOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRequestValidatorWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetRequestValidatorWithContext(_a0 context.Context, _a1 *apigateway.GetRequestValidatorInput, _a2 ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRequestValidatorInput, ...request.Option) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetRequestValidatorInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRequestValidators provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRequestValidators(_a0 *apigateway.GetRequestValidatorsInput) (*apigateway.GetRequestValidatorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetRequestValidatorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorsInput) (*apigateway.GetRequestValidatorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorsInput) *apigateway.GetRequestValidatorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetRequestValidatorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRequestValidatorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRequestValidatorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRequestValidatorsRequest(_a0 *apigateway.GetRequestValidatorsInput) (*request.Request, *apigateway.GetRequestValidatorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetRequestValidatorsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorsInput) (*request.Request, *apigateway.GetRequestValidatorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRequestValidatorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRequestValidatorsInput) *apigateway.GetRequestValidatorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetRequestValidatorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRequestValidatorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetRequestValidatorsWithContext(_a0 context.Context, _a1 *apigateway.GetRequestValidatorsInput, _a2 ...request.Option) (*apigateway.GetRequestValidatorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetRequestValidatorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRequestValidatorsInput, ...request.Option) (*apigateway.GetRequestValidatorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRequestValidatorsInput, ...request.Option) *apigateway.GetRequestValidatorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetRequestValidatorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetRequestValidatorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetResource(_a0 *apigateway.GetResourceInput) (*apigateway.Resource, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourceInput) (*apigateway.Resource, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourceInput) *apigateway.Resource); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetResourceRequest(_a0 *apigateway.GetResourceInput) (*request.Request, *apigateway.Resource) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Resource
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourceInput) (*request.Request, *apigateway.Resource)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetResourceInput) *apigateway.Resource); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Resource)
- }
- }
-
- return r0, r1
-}
-
-// GetResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetResourceWithContext(_a0 context.Context, _a1 *apigateway.GetResourceInput, _a2 ...request.Option) (*apigateway.Resource, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetResourceInput, ...request.Option) (*apigateway.Resource, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetResourceInput, ...request.Option) *apigateway.Resource); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResources provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetResources(_a0 *apigateway.GetResourcesInput) (*apigateway.GetResourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourcesInput) (*apigateway.GetResourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourcesInput) *apigateway.GetResourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetResourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResourcesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetResourcesPages(_a0 *apigateway.GetResourcesInput, _a1 func(*apigateway.GetResourcesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourcesInput, func(*apigateway.GetResourcesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetResourcesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetResourcesPagesWithContext(_a0 context.Context, _a1 *apigateway.GetResourcesInput, _a2 func(*apigateway.GetResourcesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetResourcesInput, func(*apigateway.GetResourcesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetResourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetResourcesRequest(_a0 *apigateway.GetResourcesInput) (*request.Request, *apigateway.GetResourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetResourcesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourcesInput) (*request.Request, *apigateway.GetResourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetResourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetResourcesInput) *apigateway.GetResourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetResourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetResourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetResourcesWithContext(_a0 context.Context, _a1 *apigateway.GetResourcesInput, _a2 ...request.Option) (*apigateway.GetResourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetResourcesInput, ...request.Option) (*apigateway.GetResourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetResourcesInput, ...request.Option) *apigateway.GetResourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetResourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRestApi(_a0 *apigateway.GetRestApiInput) (*apigateway.RestApi, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApiInput) (*apigateway.RestApi, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApiInput) *apigateway.RestApi); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRestApiRequest(_a0 *apigateway.GetRestApiInput) (*request.Request, *apigateway.RestApi) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.RestApi
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApiInput) (*request.Request, *apigateway.RestApi)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRestApiInput) *apigateway.RestApi); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.RestApi)
- }
- }
-
- return r0, r1
-}
-
-// GetRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetRestApiWithContext(_a0 context.Context, _a1 *apigateway.GetRestApiInput, _a2 ...request.Option) (*apigateway.RestApi, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRestApiInput, ...request.Option) (*apigateway.RestApi, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRestApiInput, ...request.Option) *apigateway.RestApi); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRestApis provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRestApis(_a0 *apigateway.GetRestApisInput) (*apigateway.GetRestApisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetRestApisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApisInput) (*apigateway.GetRestApisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApisInput) *apigateway.GetRestApisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetRestApisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRestApisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRestApisPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetRestApisPages(_a0 *apigateway.GetRestApisInput, _a1 func(*apigateway.GetRestApisOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApisInput, func(*apigateway.GetRestApisOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetRestApisPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetRestApisPagesWithContext(_a0 context.Context, _a1 *apigateway.GetRestApisInput, _a2 func(*apigateway.GetRestApisOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRestApisInput, func(*apigateway.GetRestApisOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetRestApisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetRestApisRequest(_a0 *apigateway.GetRestApisInput) (*request.Request, *apigateway.GetRestApisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetRestApisOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApisInput) (*request.Request, *apigateway.GetRestApisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetRestApisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetRestApisInput) *apigateway.GetRestApisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetRestApisOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRestApisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetRestApisWithContext(_a0 context.Context, _a1 *apigateway.GetRestApisInput, _a2 ...request.Option) (*apigateway.GetRestApisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetRestApisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRestApisInput, ...request.Option) (*apigateway.GetRestApisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetRestApisInput, ...request.Option) *apigateway.GetRestApisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetRestApisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetRestApisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdk provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdk(_a0 *apigateway.GetSdkInput) (*apigateway.GetSdkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetSdkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkInput) (*apigateway.GetSdkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkInput) *apigateway.GetSdkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetSdkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdkRequest(_a0 *apigateway.GetSdkInput) (*request.Request, *apigateway.GetSdkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetSdkOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkInput) (*request.Request, *apigateway.GetSdkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkInput) *apigateway.GetSdkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetSdkOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSdkType provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdkType(_a0 *apigateway.GetSdkTypeInput) (*apigateway.SdkType, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.SdkType
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypeInput) (*apigateway.SdkType, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypeInput) *apigateway.SdkType); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.SdkType)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdkTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdkTypeRequest(_a0 *apigateway.GetSdkTypeInput) (*request.Request, *apigateway.SdkType) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.SdkType
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypeInput) (*request.Request, *apigateway.SdkType)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkTypeInput) *apigateway.SdkType); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.SdkType)
- }
- }
-
- return r0, r1
-}
-
-// GetSdkTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetSdkTypeWithContext(_a0 context.Context, _a1 *apigateway.GetSdkTypeInput, _a2 ...request.Option) (*apigateway.SdkType, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.SdkType
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkTypeInput, ...request.Option) (*apigateway.SdkType, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkTypeInput, ...request.Option) *apigateway.SdkType); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.SdkType)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetSdkTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdkTypes provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdkTypes(_a0 *apigateway.GetSdkTypesInput) (*apigateway.GetSdkTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetSdkTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypesInput) (*apigateway.GetSdkTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypesInput) *apigateway.GetSdkTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetSdkTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdkTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetSdkTypesRequest(_a0 *apigateway.GetSdkTypesInput) (*request.Request, *apigateway.GetSdkTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetSdkTypesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypesInput) (*request.Request, *apigateway.GetSdkTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetSdkTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetSdkTypesInput) *apigateway.GetSdkTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetSdkTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSdkTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetSdkTypesWithContext(_a0 context.Context, _a1 *apigateway.GetSdkTypesInput, _a2 ...request.Option) (*apigateway.GetSdkTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetSdkTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkTypesInput, ...request.Option) (*apigateway.GetSdkTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkTypesInput, ...request.Option) *apigateway.GetSdkTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetSdkTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetSdkTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSdkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetSdkWithContext(_a0 context.Context, _a1 *apigateway.GetSdkInput, _a2 ...request.Option) (*apigateway.GetSdkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetSdkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkInput, ...request.Option) (*apigateway.GetSdkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetSdkInput, ...request.Option) *apigateway.GetSdkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetSdkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetSdkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetStage(_a0 *apigateway.GetStageInput) (*apigateway.Stage, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetStageInput) (*apigateway.Stage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetStageInput) *apigateway.Stage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetStageRequest(_a0 *apigateway.GetStageInput) (*request.Request, *apigateway.Stage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Stage
- if rf, ok := ret.Get(0).(func(*apigateway.GetStageInput) (*request.Request, *apigateway.Stage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetStageInput) *apigateway.Stage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Stage)
- }
- }
-
- return r0, r1
-}
-
-// GetStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetStageWithContext(_a0 context.Context, _a1 *apigateway.GetStageInput, _a2 ...request.Option) (*apigateway.Stage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetStageInput, ...request.Option) (*apigateway.Stage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetStageInput, ...request.Option) *apigateway.Stage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStages provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetStages(_a0 *apigateway.GetStagesInput) (*apigateway.GetStagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetStagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetStagesInput) (*apigateway.GetStagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetStagesInput) *apigateway.GetStagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetStagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetStagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetStagesRequest(_a0 *apigateway.GetStagesInput) (*request.Request, *apigateway.GetStagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetStagesOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetStagesInput) (*request.Request, *apigateway.GetStagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetStagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetStagesInput) *apigateway.GetStagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetStagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetStagesWithContext(_a0 context.Context, _a1 *apigateway.GetStagesInput, _a2 ...request.Option) (*apigateway.GetStagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetStagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetStagesInput, ...request.Option) (*apigateway.GetStagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetStagesInput, ...request.Option) *apigateway.GetStagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetStagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetStagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTags provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetTags(_a0 *apigateway.GetTagsInput) (*apigateway.GetTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetTagsInput) (*apigateway.GetTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetTagsInput) *apigateway.GetTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetTagsRequest(_a0 *apigateway.GetTagsInput) (*request.Request, *apigateway.GetTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetTagsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetTagsInput) (*request.Request, *apigateway.GetTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetTagsInput) *apigateway.GetTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetTagsWithContext(_a0 context.Context, _a1 *apigateway.GetTagsInput, _a2 ...request.Option) (*apigateway.GetTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetTagsInput, ...request.Option) (*apigateway.GetTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetTagsInput, ...request.Option) *apigateway.GetTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsage(_a0 *apigateway.GetUsageInput) (*apigateway.Usage, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Usage
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsageInput) (*apigateway.Usage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsageInput) *apigateway.Usage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Usage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetUsagePages(_a0 *apigateway.GetUsageInput, _a1 func(*apigateway.Usage, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsageInput, func(*apigateway.Usage, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetUsagePagesWithContext(_a0 context.Context, _a1 *apigateway.GetUsageInput, _a2 func(*apigateway.Usage, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsageInput, func(*apigateway.Usage, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePlan provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlan(_a0 *apigateway.GetUsagePlanInput) (*apigateway.UsagePlan, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanInput) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanInput) *apigateway.UsagePlan); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlanKey(_a0 *apigateway.GetUsagePlanKeyInput) (*apigateway.UsagePlanKey, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UsagePlanKey
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeyInput) (*apigateway.UsagePlanKey, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeyInput) *apigateway.UsagePlanKey); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlanKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlanKeyRequest(_a0 *apigateway.GetUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UsagePlanKey
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanKeyInput) *apigateway.UsagePlanKey); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UsagePlanKey)
- }
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetUsagePlanKeyWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlanKeyInput, _a2 ...request.Option) (*apigateway.UsagePlanKey, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UsagePlanKey
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanKeyInput, ...request.Option) (*apigateway.UsagePlanKey, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanKeyInput, ...request.Option) *apigateway.UsagePlanKey); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlanKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetUsagePlanKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKeys provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlanKeys(_a0 *apigateway.GetUsagePlanKeysInput) (*apigateway.GetUsagePlanKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetUsagePlanKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeysInput) (*apigateway.GetUsagePlanKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeysInput) *apigateway.GetUsagePlanKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetUsagePlanKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetUsagePlanKeysPages(_a0 *apigateway.GetUsagePlanKeysInput, _a1 func(*apigateway.GetUsagePlanKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeysInput, func(*apigateway.GetUsagePlanKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePlanKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetUsagePlanKeysPagesWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlanKeysInput, _a2 func(*apigateway.GetUsagePlanKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanKeysInput, func(*apigateway.GetUsagePlanKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePlanKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlanKeysRequest(_a0 *apigateway.GetUsagePlanKeysInput) (*request.Request, *apigateway.GetUsagePlanKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetUsagePlanKeysOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeysInput) (*request.Request, *apigateway.GetUsagePlanKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanKeysInput) *apigateway.GetUsagePlanKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetUsagePlanKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetUsagePlanKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetUsagePlanKeysWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlanKeysInput, _a2 ...request.Option) (*apigateway.GetUsagePlanKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetUsagePlanKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanKeysInput, ...request.Option) (*apigateway.GetUsagePlanKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanKeysInput, ...request.Option) *apigateway.GetUsagePlanKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetUsagePlanKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetUsagePlanKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlanRequest(_a0 *apigateway.GetUsagePlanInput) (*request.Request, *apigateway.UsagePlan) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UsagePlan
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanInput) (*request.Request, *apigateway.UsagePlan)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlanInput) *apigateway.UsagePlan); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UsagePlan)
- }
- }
-
- return r0, r1
-}
-
-// GetUsagePlanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetUsagePlanWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlanInput, _a2 ...request.Option) (*apigateway.UsagePlan, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlanInput, ...request.Option) *apigateway.UsagePlan); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetUsagePlanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlans provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlans(_a0 *apigateway.GetUsagePlansInput) (*apigateway.GetUsagePlansOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetUsagePlansOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlansInput) (*apigateway.GetUsagePlansOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlansInput) *apigateway.GetUsagePlansOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetUsagePlansOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlansInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsagePlansPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetUsagePlansPages(_a0 *apigateway.GetUsagePlansInput, _a1 func(*apigateway.GetUsagePlansOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePlansPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetUsagePlansPagesWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlansInput, _a2 func(*apigateway.GetUsagePlansOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetUsagePlansRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsagePlansRequest(_a0 *apigateway.GetUsagePlansInput) (*request.Request, *apigateway.GetUsagePlansOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetUsagePlansOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlansInput) (*request.Request, *apigateway.GetUsagePlansOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsagePlansInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsagePlansInput) *apigateway.GetUsagePlansOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetUsagePlansOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetUsagePlansWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetUsagePlansWithContext(_a0 context.Context, _a1 *apigateway.GetUsagePlansInput, _a2 ...request.Option) (*apigateway.GetUsagePlansOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetUsagePlansOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlansInput, ...request.Option) (*apigateway.GetUsagePlansOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsagePlansInput, ...request.Option) *apigateway.GetUsagePlansOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetUsagePlansOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetUsagePlansInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUsageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetUsageRequest(_a0 *apigateway.GetUsageInput) (*request.Request, *apigateway.Usage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Usage
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsageInput) (*request.Request, *apigateway.Usage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetUsageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetUsageInput) *apigateway.Usage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Usage)
- }
- }
-
- return r0, r1
-}
-
-// GetUsageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetUsageWithContext(_a0 context.Context, _a1 *apigateway.GetUsageInput, _a2 ...request.Option) (*apigateway.Usage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Usage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsageInput, ...request.Option) (*apigateway.Usage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetUsageInput, ...request.Option) *apigateway.Usage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Usage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetUsageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetVpcLink(_a0 *apigateway.GetVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetVpcLinkRequest(_a0 *apigateway.GetVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetVpcLinkWithContext(_a0 context.Context, _a1 *apigateway.GetVpcLinkInput, _a2 ...request.Option) (*apigateway.UpdateVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetVpcLinkInput, ...request.Option) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinks provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetVpcLinks(_a0 *apigateway.GetVpcLinksInput) (*apigateway.GetVpcLinksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.GetVpcLinksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinksInput) (*apigateway.GetVpcLinksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinksInput) *apigateway.GetVpcLinksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetVpcLinksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetVpcLinksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApiGateway) GetVpcLinksPages(_a0 *apigateway.GetVpcLinksInput, _a1 func(*apigateway.GetVpcLinksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetVpcLinksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApiGateway) GetVpcLinksPagesWithContext(_a0 context.Context, _a1 *apigateway.GetVpcLinksInput, _a2 func(*apigateway.GetVpcLinksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetVpcLinksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) GetVpcLinksRequest(_a0 *apigateway.GetVpcLinksInput) (*request.Request, *apigateway.GetVpcLinksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.GetVpcLinksOutput
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinksInput) (*request.Request, *apigateway.GetVpcLinksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.GetVpcLinksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.GetVpcLinksInput) *apigateway.GetVpcLinksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.GetVpcLinksOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpcLinksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) GetVpcLinksWithContext(_a0 context.Context, _a1 *apigateway.GetVpcLinksInput, _a2 ...request.Option) (*apigateway.GetVpcLinksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.GetVpcLinksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetVpcLinksInput, ...request.Option) (*apigateway.GetVpcLinksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.GetVpcLinksInput, ...request.Option) *apigateway.GetVpcLinksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.GetVpcLinksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.GetVpcLinksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportApiKeys provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportApiKeys(_a0 *apigateway.ImportApiKeysInput) (*apigateway.ImportApiKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ImportApiKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.ImportApiKeysInput) (*apigateway.ImportApiKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportApiKeysInput) *apigateway.ImportApiKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ImportApiKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportApiKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportApiKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportApiKeysRequest(_a0 *apigateway.ImportApiKeysInput) (*request.Request, *apigateway.ImportApiKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ImportApiKeysOutput
- if rf, ok := ret.Get(0).(func(*apigateway.ImportApiKeysInput) (*request.Request, *apigateway.ImportApiKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportApiKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportApiKeysInput) *apigateway.ImportApiKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ImportApiKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportApiKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) ImportApiKeysWithContext(_a0 context.Context, _a1 *apigateway.ImportApiKeysInput, _a2 ...request.Option) (*apigateway.ImportApiKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ImportApiKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportApiKeysInput, ...request.Option) (*apigateway.ImportApiKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportApiKeysInput, ...request.Option) *apigateway.ImportApiKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ImportApiKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.ImportApiKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportDocumentationParts provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportDocumentationParts(_a0 *apigateway.ImportDocumentationPartsInput) (*apigateway.ImportDocumentationPartsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ImportDocumentationPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.ImportDocumentationPartsInput) (*apigateway.ImportDocumentationPartsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportDocumentationPartsInput) *apigateway.ImportDocumentationPartsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ImportDocumentationPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportDocumentationPartsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportDocumentationPartsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportDocumentationPartsRequest(_a0 *apigateway.ImportDocumentationPartsInput) (*request.Request, *apigateway.ImportDocumentationPartsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ImportDocumentationPartsOutput
- if rf, ok := ret.Get(0).(func(*apigateway.ImportDocumentationPartsInput) (*request.Request, *apigateway.ImportDocumentationPartsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportDocumentationPartsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportDocumentationPartsInput) *apigateway.ImportDocumentationPartsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ImportDocumentationPartsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportDocumentationPartsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) ImportDocumentationPartsWithContext(_a0 context.Context, _a1 *apigateway.ImportDocumentationPartsInput, _a2 ...request.Option) (*apigateway.ImportDocumentationPartsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ImportDocumentationPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportDocumentationPartsInput, ...request.Option) (*apigateway.ImportDocumentationPartsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportDocumentationPartsInput, ...request.Option) *apigateway.ImportDocumentationPartsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ImportDocumentationPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.ImportDocumentationPartsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportRestApi(_a0 *apigateway.ImportRestApiInput) (*apigateway.RestApi, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.ImportRestApiInput) (*apigateway.RestApi, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportRestApiInput) *apigateway.RestApi); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) ImportRestApiRequest(_a0 *apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.RestApi
- if rf, ok := ret.Get(0).(func(*apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.ImportRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.ImportRestApiInput) *apigateway.RestApi); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.RestApi)
- }
- }
-
- return r0, r1
-}
-
-// ImportRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) ImportRestApiWithContext(_a0 context.Context, _a1 *apigateway.ImportRestApiInput, _a2 ...request.Option) (*apigateway.RestApi, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportRestApiInput, ...request.Option) (*apigateway.RestApi, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.ImportRestApiInput, ...request.Option) *apigateway.RestApi); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.ImportRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutGatewayResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutGatewayResponse(_a0 *apigateway.PutGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutGatewayResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutGatewayResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutGatewayResponseRequest(_a0 *apigateway.PutGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateGatewayResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.PutGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutGatewayResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutGatewayResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutGatewayResponseWithContext(_a0 context.Context, _a1 *apigateway.PutGatewayResponseInput, _a2 ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutGatewayResponseInput, ...request.Option) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutGatewayResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutIntegration(_a0 *apigateway.PutIntegrationInput) (*apigateway.Integration, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationInput) (*apigateway.Integration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationInput) *apigateway.Integration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutIntegrationRequest(_a0 *apigateway.PutIntegrationInput) (*request.Request, *apigateway.Integration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Integration
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationInput) (*request.Request, *apigateway.Integration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutIntegrationInput) *apigateway.Integration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Integration)
- }
- }
-
- return r0, r1
-}
-
-// PutIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutIntegrationResponse(_a0 *apigateway.PutIntegrationResponseInput) (*apigateway.IntegrationResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationResponseInput) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutIntegrationResponseRequest(_a0 *apigateway.PutIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.IntegrationResponse
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.IntegrationResponse)
- }
- }
-
- return r0, r1
-}
-
-// PutIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutIntegrationResponseWithContext(_a0 context.Context, _a1 *apigateway.PutIntegrationResponseInput, _a2 ...request.Option) (*apigateway.IntegrationResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutIntegrationResponseInput, ...request.Option) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutIntegrationWithContext(_a0 context.Context, _a1 *apigateway.PutIntegrationInput, _a2 ...request.Option) (*apigateway.Integration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutIntegrationInput, ...request.Option) (*apigateway.Integration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutIntegrationInput, ...request.Option) *apigateway.Integration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMethod provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutMethod(_a0 *apigateway.PutMethodInput) (*apigateway.Method, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodInput) (*apigateway.Method, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodInput) *apigateway.Method); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutMethodInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMethodRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutMethodRequest(_a0 *apigateway.PutMethodInput) (*request.Request, *apigateway.Method) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Method
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodInput) (*request.Request, *apigateway.Method)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutMethodInput) *apigateway.Method); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Method)
- }
- }
-
- return r0, r1
-}
-
-// PutMethodResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutMethodResponse(_a0 *apigateway.PutMethodResponseInput) (*apigateway.MethodResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodResponseInput) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodResponseInput) *apigateway.MethodResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutMethodResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMethodResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutMethodResponseRequest(_a0 *apigateway.PutMethodResponseInput) (*request.Request, *apigateway.MethodResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.MethodResponse
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodResponseInput) (*request.Request, *apigateway.MethodResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutMethodResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutMethodResponseInput) *apigateway.MethodResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.MethodResponse)
- }
- }
-
- return r0, r1
-}
-
-// PutMethodResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutMethodResponseWithContext(_a0 context.Context, _a1 *apigateway.PutMethodResponseInput, _a2 ...request.Option) (*apigateway.MethodResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutMethodResponseInput, ...request.Option) *apigateway.MethodResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutMethodResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMethodWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutMethodWithContext(_a0 context.Context, _a1 *apigateway.PutMethodInput, _a2 ...request.Option) (*apigateway.Method, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutMethodInput, ...request.Option) (*apigateway.Method, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutMethodInput, ...request.Option) *apigateway.Method); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutMethodInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutRestApi(_a0 *apigateway.PutRestApiInput) (*apigateway.RestApi, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.PutRestApiInput) (*apigateway.RestApi, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutRestApiInput) *apigateway.RestApi); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) PutRestApiRequest(_a0 *apigateway.PutRestApiInput) (*request.Request, *apigateway.RestApi) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.RestApi
- if rf, ok := ret.Get(0).(func(*apigateway.PutRestApiInput) (*request.Request, *apigateway.RestApi)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.PutRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.PutRestApiInput) *apigateway.RestApi); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.RestApi)
- }
- }
-
- return r0, r1
-}
-
-// PutRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) PutRestApiWithContext(_a0 context.Context, _a1 *apigateway.PutRestApiInput, _a2 ...request.Option) (*apigateway.RestApi, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutRestApiInput, ...request.Option) (*apigateway.RestApi, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.PutRestApiInput, ...request.Option) *apigateway.RestApi); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.PutRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TagResource(_a0 *apigateway.TagResourceInput) (*apigateway.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.TagResourceInput) (*apigateway.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TagResourceInput) *apigateway.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TagResourceRequest(_a0 *apigateway.TagResourceInput) (*request.Request, *apigateway.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*apigateway.TagResourceInput) (*request.Request, *apigateway.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TagResourceInput) *apigateway.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) TagResourceWithContext(_a0 context.Context, _a1 *apigateway.TagResourceInput, _a2 ...request.Option) (*apigateway.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TagResourceInput, ...request.Option) (*apigateway.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TagResourceInput, ...request.Option) *apigateway.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestInvokeAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TestInvokeAuthorizer(_a0 *apigateway.TestInvokeAuthorizerInput) (*apigateway.TestInvokeAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.TestInvokeAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeAuthorizerInput) (*apigateway.TestInvokeAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeAuthorizerInput) *apigateway.TestInvokeAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TestInvokeAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TestInvokeAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestInvokeAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TestInvokeAuthorizerRequest(_a0 *apigateway.TestInvokeAuthorizerInput) (*request.Request, *apigateway.TestInvokeAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.TestInvokeAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeAuthorizerInput) (*request.Request, *apigateway.TestInvokeAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TestInvokeAuthorizerInput) *apigateway.TestInvokeAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.TestInvokeAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestInvokeAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) TestInvokeAuthorizerWithContext(_a0 context.Context, _a1 *apigateway.TestInvokeAuthorizerInput, _a2 ...request.Option) (*apigateway.TestInvokeAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.TestInvokeAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TestInvokeAuthorizerInput, ...request.Option) (*apigateway.TestInvokeAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TestInvokeAuthorizerInput, ...request.Option) *apigateway.TestInvokeAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TestInvokeAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.TestInvokeAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestInvokeMethod provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TestInvokeMethod(_a0 *apigateway.TestInvokeMethodInput) (*apigateway.TestInvokeMethodOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.TestInvokeMethodOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeMethodInput) (*apigateway.TestInvokeMethodOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeMethodInput) *apigateway.TestInvokeMethodOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TestInvokeMethodOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TestInvokeMethodInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestInvokeMethodRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) TestInvokeMethodRequest(_a0 *apigateway.TestInvokeMethodInput) (*request.Request, *apigateway.TestInvokeMethodOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.TestInvokeMethodOutput
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeMethodInput) (*request.Request, *apigateway.TestInvokeMethodOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.TestInvokeMethodInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.TestInvokeMethodInput) *apigateway.TestInvokeMethodOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.TestInvokeMethodOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestInvokeMethodWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) TestInvokeMethodWithContext(_a0 context.Context, _a1 *apigateway.TestInvokeMethodInput, _a2 ...request.Option) (*apigateway.TestInvokeMethodOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.TestInvokeMethodOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TestInvokeMethodInput, ...request.Option) (*apigateway.TestInvokeMethodOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.TestInvokeMethodInput, ...request.Option) *apigateway.TestInvokeMethodOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.TestInvokeMethodOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.TestInvokeMethodInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UntagResource(_a0 *apigateway.UntagResourceInput) (*apigateway.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UntagResourceInput) (*apigateway.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UntagResourceInput) *apigateway.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UntagResourceRequest(_a0 *apigateway.UntagResourceInput) (*request.Request, *apigateway.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*apigateway.UntagResourceInput) (*request.Request, *apigateway.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UntagResourceInput) *apigateway.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UntagResourceWithContext(_a0 context.Context, _a1 *apigateway.UntagResourceInput, _a2 ...request.Option) (*apigateway.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UntagResourceInput, ...request.Option) (*apigateway.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UntagResourceInput, ...request.Option) *apigateway.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccount provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateAccount(_a0 *apigateway.UpdateAccountInput) (*apigateway.Account, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Account
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAccountInput) (*apigateway.Account, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAccountInput) *apigateway.Account); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Account)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateAccountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateAccountRequest(_a0 *apigateway.UpdateAccountInput) (*request.Request, *apigateway.Account) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Account
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAccountInput) (*request.Request, *apigateway.Account)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAccountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateAccountInput) *apigateway.Account); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Account)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAccountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateAccountWithContext(_a0 context.Context, _a1 *apigateway.UpdateAccountInput, _a2 ...request.Option) (*apigateway.Account, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Account
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateAccountInput, ...request.Option) (*apigateway.Account, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateAccountInput, ...request.Option) *apigateway.Account); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Account)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateAccountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApiKey provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateApiKey(_a0 *apigateway.UpdateApiKeyInput) (*apigateway.ApiKey, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateApiKeyInput) (*apigateway.ApiKey, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateApiKeyInput) *apigateway.ApiKey); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateApiKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApiKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateApiKeyRequest(_a0 *apigateway.UpdateApiKeyInput) (*request.Request, *apigateway.ApiKey) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ApiKey
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateApiKeyInput) (*request.Request, *apigateway.ApiKey)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateApiKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateApiKeyInput) *apigateway.ApiKey); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ApiKey)
- }
- }
-
- return r0, r1
-}
-
-// UpdateApiKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateApiKeyWithContext(_a0 context.Context, _a1 *apigateway.UpdateApiKeyInput, _a2 ...request.Option) (*apigateway.ApiKey, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ApiKey
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateApiKeyInput, ...request.Option) *apigateway.ApiKey); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ApiKey)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateApiKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateAuthorizer(_a0 *apigateway.UpdateAuthorizerInput) (*apigateway.Authorizer, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAuthorizerInput) (*apigateway.Authorizer, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAuthorizerInput) *apigateway.Authorizer); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateAuthorizerRequest(_a0 *apigateway.UpdateAuthorizerInput) (*request.Request, *apigateway.Authorizer) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Authorizer
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAuthorizerInput) (*request.Request, *apigateway.Authorizer)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateAuthorizerInput) *apigateway.Authorizer); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Authorizer)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateAuthorizerWithContext(_a0 context.Context, _a1 *apigateway.UpdateAuthorizerInput, _a2 ...request.Option) (*apigateway.Authorizer, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Authorizer
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateAuthorizerInput, ...request.Option) *apigateway.Authorizer); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Authorizer)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateBasePathMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateBasePathMapping(_a0 *apigateway.UpdateBasePathMappingInput) (*apigateway.BasePathMapping, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateBasePathMappingInput) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateBasePathMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateBasePathMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateBasePathMappingRequest(_a0 *apigateway.UpdateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.BasePathMapping
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateBasePathMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateBasePathMappingInput) *apigateway.BasePathMapping); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.BasePathMapping)
- }
- }
-
- return r0, r1
-}
-
-// UpdateBasePathMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateBasePathMappingWithContext(_a0 context.Context, _a1 *apigateway.UpdateBasePathMappingInput, _a2 ...request.Option) (*apigateway.BasePathMapping, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.BasePathMapping
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateBasePathMappingInput, ...request.Option) *apigateway.BasePathMapping); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.BasePathMapping)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateBasePathMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateClientCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateClientCertificate(_a0 *apigateway.UpdateClientCertificateInput) (*apigateway.ClientCertificate, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateClientCertificateInput) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateClientCertificateInput) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateClientCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateClientCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateClientCertificateRequest(_a0 *apigateway.UpdateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.ClientCertificate
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateClientCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateClientCertificateInput) *apigateway.ClientCertificate); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.ClientCertificate)
- }
- }
-
- return r0, r1
-}
-
-// UpdateClientCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateClientCertificateWithContext(_a0 context.Context, _a1 *apigateway.UpdateClientCertificateInput, _a2 ...request.Option) (*apigateway.ClientCertificate, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.ClientCertificate
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateClientCertificateInput, ...request.Option) *apigateway.ClientCertificate); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.ClientCertificate)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateClientCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDeployment(_a0 *apigateway.UpdateDeploymentInput) (*apigateway.Deployment, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDeploymentInput) (*apigateway.Deployment, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDeploymentInput) *apigateway.Deployment); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDeploymentRequest(_a0 *apigateway.UpdateDeploymentInput) (*request.Request, *apigateway.Deployment) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Deployment
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDeploymentInput) (*request.Request, *apigateway.Deployment)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDeploymentInput) *apigateway.Deployment); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Deployment)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateDeploymentWithContext(_a0 context.Context, _a1 *apigateway.UpdateDeploymentInput, _a2 ...request.Option) (*apigateway.Deployment, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Deployment
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDeploymentInput, ...request.Option) (*apigateway.Deployment, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDeploymentInput, ...request.Option) *apigateway.Deployment); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Deployment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationPart provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDocumentationPart(_a0 *apigateway.UpdateDocumentationPartInput) (*apigateway.DocumentationPart, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationPartInput) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDocumentationPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDocumentationPartRequest(_a0 *apigateway.UpdateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationPart
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDocumentationPartInput) *apigateway.DocumentationPart); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationPart)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateDocumentationPartWithContext(_a0 context.Context, _a1 *apigateway.UpdateDocumentationPartInput, _a2 ...request.Option) (*apigateway.DocumentationPart, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationPart
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDocumentationPartInput, ...request.Option) *apigateway.DocumentationPart); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationPart)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateDocumentationPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationVersion provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDocumentationVersion(_a0 *apigateway.UpdateDocumentationVersionInput) (*apigateway.DocumentationVersion, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationVersionInput) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDocumentationVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDocumentationVersionRequest(_a0 *apigateway.UpdateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DocumentationVersion
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDocumentationVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDocumentationVersionInput) *apigateway.DocumentationVersion); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DocumentationVersion)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDocumentationVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateDocumentationVersionWithContext(_a0 context.Context, _a1 *apigateway.UpdateDocumentationVersionInput, _a2 ...request.Option) (*apigateway.DocumentationVersion, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DocumentationVersion
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDocumentationVersionInput, ...request.Option) *apigateway.DocumentationVersion); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DocumentationVersion)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateDocumentationVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDomainName(_a0 *apigateway.UpdateDomainNameInput) (*apigateway.DomainName, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDomainNameInput) (*apigateway.DomainName, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDomainNameInput) *apigateway.DomainName); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateDomainNameRequest(_a0 *apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.DomainName
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateDomainNameInput) *apigateway.DomainName); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.DomainName)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateDomainNameWithContext(_a0 context.Context, _a1 *apigateway.UpdateDomainNameInput, _a2 ...request.Option) (*apigateway.DomainName, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.DomainName
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDomainNameInput, ...request.Option) (*apigateway.DomainName, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateDomainNameInput, ...request.Option) *apigateway.DomainName); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.DomainName)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGatewayResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateGatewayResponse(_a0 *apigateway.UpdateGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateGatewayResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGatewayResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateGatewayResponseRequest(_a0 *apigateway.UpdateGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateGatewayResponseOutput
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateGatewayResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateGatewayResponseInput) *apigateway.UpdateGatewayResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateGatewayResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateGatewayResponseWithContext(_a0 context.Context, _a1 *apigateway.UpdateGatewayResponseInput, _a2 ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateGatewayResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateGatewayResponseInput, ...request.Option) *apigateway.UpdateGatewayResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateGatewayResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateGatewayResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateIntegration(_a0 *apigateway.UpdateIntegrationInput) (*apigateway.Integration, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationInput) (*apigateway.Integration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationInput) *apigateway.Integration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateIntegrationRequest(_a0 *apigateway.UpdateIntegrationInput) (*request.Request, *apigateway.Integration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Integration
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationInput) (*request.Request, *apigateway.Integration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateIntegrationInput) *apigateway.Integration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Integration)
- }
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateIntegrationResponse(_a0 *apigateway.UpdateIntegrationResponseInput) (*apigateway.IntegrationResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationResponseInput) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateIntegrationResponseRequest(_a0 *apigateway.UpdateIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.IntegrationResponse
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateIntegrationResponseInput) *apigateway.IntegrationResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.IntegrationResponse)
- }
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateIntegrationResponseWithContext(_a0 context.Context, _a1 *apigateway.UpdateIntegrationResponseInput, _a2 ...request.Option) (*apigateway.IntegrationResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.IntegrationResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateIntegrationResponseInput, ...request.Option) *apigateway.IntegrationResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.IntegrationResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateIntegrationWithContext(_a0 context.Context, _a1 *apigateway.UpdateIntegrationInput, _a2 ...request.Option) (*apigateway.Integration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Integration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateIntegrationInput, ...request.Option) (*apigateway.Integration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateIntegrationInput, ...request.Option) *apigateway.Integration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Integration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateMethod provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateMethod(_a0 *apigateway.UpdateMethodInput) (*apigateway.Method, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodInput) (*apigateway.Method, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodInput) *apigateway.Method); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateMethodInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateMethodRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateMethodRequest(_a0 *apigateway.UpdateMethodInput) (*request.Request, *apigateway.Method) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Method
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodInput) (*request.Request, *apigateway.Method)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateMethodInput) *apigateway.Method); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Method)
- }
- }
-
- return r0, r1
-}
-
-// UpdateMethodResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateMethodResponse(_a0 *apigateway.UpdateMethodResponseInput) (*apigateway.MethodResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodResponseInput) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodResponseInput) *apigateway.MethodResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateMethodResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateMethodResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateMethodResponseRequest(_a0 *apigateway.UpdateMethodResponseInput) (*request.Request, *apigateway.MethodResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.MethodResponse
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodResponseInput) (*request.Request, *apigateway.MethodResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateMethodResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateMethodResponseInput) *apigateway.MethodResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.MethodResponse)
- }
- }
-
- return r0, r1
-}
-
-// UpdateMethodResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateMethodResponseWithContext(_a0 context.Context, _a1 *apigateway.UpdateMethodResponseInput, _a2 ...request.Option) (*apigateway.MethodResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.MethodResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateMethodResponseInput, ...request.Option) *apigateway.MethodResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.MethodResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateMethodResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateMethodWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateMethodWithContext(_a0 context.Context, _a1 *apigateway.UpdateMethodInput, _a2 ...request.Option) (*apigateway.Method, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Method
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateMethodInput, ...request.Option) (*apigateway.Method, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateMethodInput, ...request.Option) *apigateway.Method); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Method)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateMethodInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateModel(_a0 *apigateway.UpdateModelInput) (*apigateway.Model, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateModelInput) (*apigateway.Model, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateModelInput) *apigateway.Model); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateModelRequest(_a0 *apigateway.UpdateModelInput) (*request.Request, *apigateway.Model) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Model
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateModelInput) (*request.Request, *apigateway.Model)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateModelInput) *apigateway.Model); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Model)
- }
- }
-
- return r0, r1
-}
-
-// UpdateModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateModelWithContext(_a0 context.Context, _a1 *apigateway.UpdateModelInput, _a2 ...request.Option) (*apigateway.Model, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Model
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateModelInput, ...request.Option) (*apigateway.Model, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateModelInput, ...request.Option) *apigateway.Model); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Model)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRequestValidator provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateRequestValidator(_a0 *apigateway.UpdateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateRequestValidatorInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRequestValidatorRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateRequestValidatorRequest(_a0 *apigateway.UpdateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateRequestValidatorOutput
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRequestValidatorInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateRequestValidatorInput) *apigateway.UpdateRequestValidatorOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRequestValidatorWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateRequestValidatorWithContext(_a0 context.Context, _a1 *apigateway.UpdateRequestValidatorInput, _a2 ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateRequestValidatorOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateRequestValidatorInput, ...request.Option) *apigateway.UpdateRequestValidatorOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateRequestValidatorOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateRequestValidatorInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateResource(_a0 *apigateway.UpdateResourceInput) (*apigateway.Resource, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateResourceInput) (*apigateway.Resource, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateResourceInput) *apigateway.Resource); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateResourceRequest(_a0 *apigateway.UpdateResourceInput) (*request.Request, *apigateway.Resource) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Resource
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateResourceInput) (*request.Request, *apigateway.Resource)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateResourceInput) *apigateway.Resource); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Resource)
- }
- }
-
- return r0, r1
-}
-
-// UpdateResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateResourceWithContext(_a0 context.Context, _a1 *apigateway.UpdateResourceInput, _a2 ...request.Option) (*apigateway.Resource, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Resource
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateResourceInput, ...request.Option) (*apigateway.Resource, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateResourceInput, ...request.Option) *apigateway.Resource); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Resource)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRestApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateRestApi(_a0 *apigateway.UpdateRestApiInput) (*apigateway.RestApi, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRestApiInput) (*apigateway.RestApi, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRestApiInput) *apigateway.RestApi); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateRestApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRestApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateRestApiRequest(_a0 *apigateway.UpdateRestApiInput) (*request.Request, *apigateway.RestApi) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.RestApi
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRestApiInput) (*request.Request, *apigateway.RestApi)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateRestApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateRestApiInput) *apigateway.RestApi); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.RestApi)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRestApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateRestApiWithContext(_a0 context.Context, _a1 *apigateway.UpdateRestApiInput, _a2 ...request.Option) (*apigateway.RestApi, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.RestApi
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateRestApiInput, ...request.Option) (*apigateway.RestApi, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateRestApiInput, ...request.Option) *apigateway.RestApi); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.RestApi)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateRestApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateStage(_a0 *apigateway.UpdateStageInput) (*apigateway.Stage, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateStageInput) (*apigateway.Stage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateStageInput) *apigateway.Stage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateStageRequest(_a0 *apigateway.UpdateStageInput) (*request.Request, *apigateway.Stage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Stage
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateStageInput) (*request.Request, *apigateway.Stage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateStageInput) *apigateway.Stage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Stage)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateStageWithContext(_a0 context.Context, _a1 *apigateway.UpdateStageInput, _a2 ...request.Option) (*apigateway.Stage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Stage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateStageInput, ...request.Option) (*apigateway.Stage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateStageInput, ...request.Option) *apigateway.Stage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Stage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUsage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateUsage(_a0 *apigateway.UpdateUsageInput) (*apigateway.Usage, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.Usage
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsageInput) (*apigateway.Usage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsageInput) *apigateway.Usage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Usage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateUsageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUsagePlan provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateUsagePlan(_a0 *apigateway.UpdateUsagePlanInput) (*apigateway.UsagePlan, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsagePlanInput) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsagePlanInput) *apigateway.UsagePlan); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateUsagePlanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUsagePlanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateUsagePlanRequest(_a0 *apigateway.UpdateUsagePlanInput) (*request.Request, *apigateway.UsagePlan) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UsagePlan
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsagePlanInput) (*request.Request, *apigateway.UsagePlan)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsagePlanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateUsagePlanInput) *apigateway.UsagePlan); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UsagePlan)
- }
- }
-
- return r0, r1
-}
-
-// UpdateUsagePlanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateUsagePlanWithContext(_a0 context.Context, _a1 *apigateway.UpdateUsagePlanInput, _a2 ...request.Option) (*apigateway.UsagePlan, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UsagePlan
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateUsagePlanInput, ...request.Option) *apigateway.UsagePlan); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UsagePlan)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateUsagePlanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUsageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateUsageRequest(_a0 *apigateway.UpdateUsageInput) (*request.Request, *apigateway.Usage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.Usage
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsageInput) (*request.Request, *apigateway.Usage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateUsageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateUsageInput) *apigateway.Usage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.Usage)
- }
- }
-
- return r0, r1
-}
-
-// UpdateUsageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateUsageWithContext(_a0 context.Context, _a1 *apigateway.UpdateUsageInput, _a2 ...request.Option) (*apigateway.Usage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.Usage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateUsageInput, ...request.Option) (*apigateway.Usage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateUsageInput, ...request.Option) *apigateway.Usage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.Usage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateUsageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateVpcLink(_a0 *apigateway.UpdateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGateway) UpdateVpcLinkRequest(_a0 *apigateway.UpdateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigateway.UpdateVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigateway.UpdateVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigateway.UpdateVpcLinkInput) *apigateway.UpdateVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGateway) UpdateVpcLinkWithContext(_a0 context.Context, _a1 *apigateway.UpdateVpcLinkInput, _a2 ...request.Option) (*apigateway.UpdateVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigateway.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigateway.UpdateVpcLinkInput, ...request.Option) *apigateway.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigateway.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigateway.UpdateVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeApiGateway interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeApiGateway creates a new instance of MockFakeApiGateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeApiGateway(t mockConstructorTestingTNewMockFakeApiGateway) *MockFakeApiGateway {
- mock := &MockFakeApiGateway{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeApiGatewayV2.go b/test/aws/mock_FakeApiGatewayV2.go
deleted file mode 100644
index 725f72aed..000000000
--- a/test/aws/mock_FakeApiGatewayV2.go
+++ /dev/null
@@ -1,6297 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- apigatewayv2 "github.com/aws/aws-sdk-go/service/apigatewayv2"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeApiGatewayV2 is an autogenerated mock type for the FakeApiGatewayV2 type
-type MockFakeApiGatewayV2 struct {
- mock.Mock
-}
-
-// CreateApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateApi(_a0 *apigatewayv2.CreateApiInput) (*apigatewayv2.CreateApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiInput) (*apigatewayv2.CreateApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiInput) *apigatewayv2.CreateApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateApiMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateApiMapping(_a0 *apigatewayv2.CreateApiMappingInput) (*apigatewayv2.CreateApiMappingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiMappingInput) (*apigatewayv2.CreateApiMappingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiMappingInput) *apigatewayv2.CreateApiMappingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateApiMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateApiMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateApiMappingRequest(_a0 *apigatewayv2.CreateApiMappingInput) (*request.Request, *apigatewayv2.CreateApiMappingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateApiMappingOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiMappingInput) (*request.Request, *apigatewayv2.CreateApiMappingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateApiMappingInput) *apigatewayv2.CreateApiMappingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateApiMappingOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateApiMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateApiMappingWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateApiMappingInput, _a2 ...request.Option) (*apigatewayv2.CreateApiMappingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateApiMappingInput, ...request.Option) (*apigatewayv2.CreateApiMappingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateApiMappingInput, ...request.Option) *apigatewayv2.CreateApiMappingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateApiMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateApiRequest(_a0 *apigatewayv2.CreateApiInput) (*request.Request, *apigatewayv2.CreateApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiInput) (*request.Request, *apigatewayv2.CreateApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateApiInput) *apigatewayv2.CreateApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateApiWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateApiInput, _a2 ...request.Option) (*apigatewayv2.CreateApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateApiInput, ...request.Option) (*apigatewayv2.CreateApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateApiInput, ...request.Option) *apigatewayv2.CreateApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateAuthorizer(_a0 *apigatewayv2.CreateAuthorizerInput) (*apigatewayv2.CreateAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateAuthorizerInput) (*apigatewayv2.CreateAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateAuthorizerInput) *apigatewayv2.CreateAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateAuthorizerRequest(_a0 *apigatewayv2.CreateAuthorizerInput) (*request.Request, *apigatewayv2.CreateAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateAuthorizerInput) (*request.Request, *apigatewayv2.CreateAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateAuthorizerInput) *apigatewayv2.CreateAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateAuthorizerWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateAuthorizerInput, _a2 ...request.Option) (*apigatewayv2.CreateAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateAuthorizerInput, ...request.Option) (*apigatewayv2.CreateAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateAuthorizerInput, ...request.Option) *apigatewayv2.CreateAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateDeployment(_a0 *apigatewayv2.CreateDeploymentInput) (*apigatewayv2.CreateDeploymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDeploymentInput) (*apigatewayv2.CreateDeploymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDeploymentInput) *apigatewayv2.CreateDeploymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateDeploymentRequest(_a0 *apigatewayv2.CreateDeploymentInput) (*request.Request, *apigatewayv2.CreateDeploymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateDeploymentOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDeploymentInput) (*request.Request, *apigatewayv2.CreateDeploymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateDeploymentInput) *apigatewayv2.CreateDeploymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateDeploymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateDeploymentWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateDeploymentInput, _a2 ...request.Option) (*apigatewayv2.CreateDeploymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateDeploymentInput, ...request.Option) (*apigatewayv2.CreateDeploymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateDeploymentInput, ...request.Option) *apigatewayv2.CreateDeploymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateDomainName(_a0 *apigatewayv2.CreateDomainNameInput) (*apigatewayv2.CreateDomainNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDomainNameInput) (*apigatewayv2.CreateDomainNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDomainNameInput) *apigatewayv2.CreateDomainNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateDomainNameRequest(_a0 *apigatewayv2.CreateDomainNameInput) (*request.Request, *apigatewayv2.CreateDomainNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateDomainNameOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDomainNameInput) (*request.Request, *apigatewayv2.CreateDomainNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateDomainNameInput) *apigatewayv2.CreateDomainNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateDomainNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateDomainNameWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateDomainNameInput, _a2 ...request.Option) (*apigatewayv2.CreateDomainNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateDomainNameInput, ...request.Option) (*apigatewayv2.CreateDomainNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateDomainNameInput, ...request.Option) *apigatewayv2.CreateDomainNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateIntegration(_a0 *apigatewayv2.CreateIntegrationInput) (*apigatewayv2.CreateIntegrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationInput) (*apigatewayv2.CreateIntegrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationInput) *apigatewayv2.CreateIntegrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateIntegrationRequest(_a0 *apigatewayv2.CreateIntegrationInput) (*request.Request, *apigatewayv2.CreateIntegrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateIntegrationOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationInput) (*request.Request, *apigatewayv2.CreateIntegrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateIntegrationInput) *apigatewayv2.CreateIntegrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateIntegrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateIntegrationResponse(_a0 *apigatewayv2.CreateIntegrationResponseInput) (*apigatewayv2.CreateIntegrationResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationResponseInput) (*apigatewayv2.CreateIntegrationResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationResponseInput) *apigatewayv2.CreateIntegrationResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateIntegrationResponseRequest(_a0 *apigatewayv2.CreateIntegrationResponseInput) (*request.Request, *apigatewayv2.CreateIntegrationResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateIntegrationResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationResponseInput) (*request.Request, *apigatewayv2.CreateIntegrationResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateIntegrationResponseInput) *apigatewayv2.CreateIntegrationResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateIntegrationResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateIntegrationResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateIntegrationResponseInput, _a2 ...request.Option) (*apigatewayv2.CreateIntegrationResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateIntegrationResponseInput, ...request.Option) (*apigatewayv2.CreateIntegrationResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateIntegrationResponseInput, ...request.Option) *apigatewayv2.CreateIntegrationResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateIntegrationWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateIntegrationInput, _a2 ...request.Option) (*apigatewayv2.CreateIntegrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateIntegrationInput, ...request.Option) (*apigatewayv2.CreateIntegrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateIntegrationInput, ...request.Option) *apigatewayv2.CreateIntegrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateModel(_a0 *apigatewayv2.CreateModelInput) (*apigatewayv2.CreateModelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateModelInput) (*apigatewayv2.CreateModelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateModelInput) *apigatewayv2.CreateModelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateModelRequest(_a0 *apigatewayv2.CreateModelInput) (*request.Request, *apigatewayv2.CreateModelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateModelOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateModelInput) (*request.Request, *apigatewayv2.CreateModelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateModelInput) *apigatewayv2.CreateModelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateModelOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateModelWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateModelInput, _a2 ...request.Option) (*apigatewayv2.CreateModelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateModelInput, ...request.Option) (*apigatewayv2.CreateModelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateModelInput, ...request.Option) *apigatewayv2.CreateModelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRoute provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateRoute(_a0 *apigatewayv2.CreateRouteInput) (*apigatewayv2.CreateRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteInput) (*apigatewayv2.CreateRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteInput) *apigatewayv2.CreateRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateRouteRequest(_a0 *apigatewayv2.CreateRouteInput) (*request.Request, *apigatewayv2.CreateRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateRouteOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteInput) (*request.Request, *apigatewayv2.CreateRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateRouteInput) *apigatewayv2.CreateRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRouteResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateRouteResponse(_a0 *apigatewayv2.CreateRouteResponseInput) (*apigatewayv2.CreateRouteResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteResponseInput) (*apigatewayv2.CreateRouteResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteResponseInput) *apigatewayv2.CreateRouteResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateRouteResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateRouteResponseRequest(_a0 *apigatewayv2.CreateRouteResponseInput) (*request.Request, *apigatewayv2.CreateRouteResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateRouteResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteResponseInput) (*request.Request, *apigatewayv2.CreateRouteResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateRouteResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateRouteResponseInput) *apigatewayv2.CreateRouteResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateRouteResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRouteResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateRouteResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateRouteResponseInput, _a2 ...request.Option) (*apigatewayv2.CreateRouteResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateRouteResponseInput, ...request.Option) (*apigatewayv2.CreateRouteResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateRouteResponseInput, ...request.Option) *apigatewayv2.CreateRouteResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateRouteResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateRouteWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateRouteInput, _a2 ...request.Option) (*apigatewayv2.CreateRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateRouteInput, ...request.Option) (*apigatewayv2.CreateRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateRouteInput, ...request.Option) *apigatewayv2.CreateRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateStage(_a0 *apigatewayv2.CreateStageInput) (*apigatewayv2.CreateStageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateStageInput) (*apigatewayv2.CreateStageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateStageInput) *apigatewayv2.CreateStageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateStageRequest(_a0 *apigatewayv2.CreateStageInput) (*request.Request, *apigatewayv2.CreateStageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateStageOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateStageInput) (*request.Request, *apigatewayv2.CreateStageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateStageInput) *apigatewayv2.CreateStageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateStageOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateStageWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateStageInput, _a2 ...request.Option) (*apigatewayv2.CreateStageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateStageInput, ...request.Option) (*apigatewayv2.CreateStageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateStageInput, ...request.Option) *apigatewayv2.CreateStageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateVpcLink(_a0 *apigatewayv2.CreateVpcLinkInput) (*apigatewayv2.CreateVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.CreateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateVpcLinkInput) (*apigatewayv2.CreateVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateVpcLinkInput) *apigatewayv2.CreateVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) CreateVpcLinkRequest(_a0 *apigatewayv2.CreateVpcLinkInput) (*request.Request, *apigatewayv2.CreateVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.CreateVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateVpcLinkInput) (*request.Request, *apigatewayv2.CreateVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.CreateVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.CreateVpcLinkInput) *apigatewayv2.CreateVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.CreateVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) CreateVpcLinkWithContext(_a0 context.Context, _a1 *apigatewayv2.CreateVpcLinkInput, _a2 ...request.Option) (*apigatewayv2.CreateVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.CreateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateVpcLinkInput, ...request.Option) (*apigatewayv2.CreateVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.CreateVpcLinkInput, ...request.Option) *apigatewayv2.CreateVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.CreateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.CreateVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessLogSettings provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteAccessLogSettings(_a0 *apigatewayv2.DeleteAccessLogSettingsInput) (*apigatewayv2.DeleteAccessLogSettingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteAccessLogSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAccessLogSettingsInput) (*apigatewayv2.DeleteAccessLogSettingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAccessLogSettingsInput) *apigatewayv2.DeleteAccessLogSettingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteAccessLogSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteAccessLogSettingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessLogSettingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteAccessLogSettingsRequest(_a0 *apigatewayv2.DeleteAccessLogSettingsInput) (*request.Request, *apigatewayv2.DeleteAccessLogSettingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteAccessLogSettingsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAccessLogSettingsInput) (*request.Request, *apigatewayv2.DeleteAccessLogSettingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAccessLogSettingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteAccessLogSettingsInput) *apigatewayv2.DeleteAccessLogSettingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteAccessLogSettingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessLogSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteAccessLogSettingsWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteAccessLogSettingsInput, _a2 ...request.Option) (*apigatewayv2.DeleteAccessLogSettingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteAccessLogSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteAccessLogSettingsInput, ...request.Option) (*apigatewayv2.DeleteAccessLogSettingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteAccessLogSettingsInput, ...request.Option) *apigatewayv2.DeleteAccessLogSettingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteAccessLogSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteAccessLogSettingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteApi(_a0 *apigatewayv2.DeleteApiInput) (*apigatewayv2.DeleteApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiInput) (*apigatewayv2.DeleteApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiInput) *apigatewayv2.DeleteApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApiMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteApiMapping(_a0 *apigatewayv2.DeleteApiMappingInput) (*apigatewayv2.DeleteApiMappingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiMappingInput) (*apigatewayv2.DeleteApiMappingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiMappingInput) *apigatewayv2.DeleteApiMappingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteApiMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApiMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteApiMappingRequest(_a0 *apigatewayv2.DeleteApiMappingInput) (*request.Request, *apigatewayv2.DeleteApiMappingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteApiMappingOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiMappingInput) (*request.Request, *apigatewayv2.DeleteApiMappingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteApiMappingInput) *apigatewayv2.DeleteApiMappingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteApiMappingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteApiMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteApiMappingWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteApiMappingInput, _a2 ...request.Option) (*apigatewayv2.DeleteApiMappingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteApiMappingInput, ...request.Option) (*apigatewayv2.DeleteApiMappingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteApiMappingInput, ...request.Option) *apigatewayv2.DeleteApiMappingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteApiMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteApiRequest(_a0 *apigatewayv2.DeleteApiInput) (*request.Request, *apigatewayv2.DeleteApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiInput) (*request.Request, *apigatewayv2.DeleteApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteApiInput) *apigatewayv2.DeleteApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteApiWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteApiInput, _a2 ...request.Option) (*apigatewayv2.DeleteApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteApiInput, ...request.Option) (*apigatewayv2.DeleteApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteApiInput, ...request.Option) *apigatewayv2.DeleteApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteAuthorizer(_a0 *apigatewayv2.DeleteAuthorizerInput) (*apigatewayv2.DeleteAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAuthorizerInput) (*apigatewayv2.DeleteAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAuthorizerInput) *apigatewayv2.DeleteAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteAuthorizerRequest(_a0 *apigatewayv2.DeleteAuthorizerInput) (*request.Request, *apigatewayv2.DeleteAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAuthorizerInput) (*request.Request, *apigatewayv2.DeleteAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteAuthorizerInput) *apigatewayv2.DeleteAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteAuthorizerWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteAuthorizerInput, _a2 ...request.Option) (*apigatewayv2.DeleteAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteAuthorizerInput, ...request.Option) (*apigatewayv2.DeleteAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteAuthorizerInput, ...request.Option) *apigatewayv2.DeleteAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCorsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteCorsConfiguration(_a0 *apigatewayv2.DeleteCorsConfigurationInput) (*apigatewayv2.DeleteCorsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteCorsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteCorsConfigurationInput) (*apigatewayv2.DeleteCorsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteCorsConfigurationInput) *apigatewayv2.DeleteCorsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteCorsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteCorsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCorsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteCorsConfigurationRequest(_a0 *apigatewayv2.DeleteCorsConfigurationInput) (*request.Request, *apigatewayv2.DeleteCorsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteCorsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteCorsConfigurationInput) (*request.Request, *apigatewayv2.DeleteCorsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteCorsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteCorsConfigurationInput) *apigatewayv2.DeleteCorsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteCorsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCorsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteCorsConfigurationWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteCorsConfigurationInput, _a2 ...request.Option) (*apigatewayv2.DeleteCorsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteCorsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteCorsConfigurationInput, ...request.Option) (*apigatewayv2.DeleteCorsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteCorsConfigurationInput, ...request.Option) *apigatewayv2.DeleteCorsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteCorsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteCorsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteDeployment(_a0 *apigatewayv2.DeleteDeploymentInput) (*apigatewayv2.DeleteDeploymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDeploymentInput) (*apigatewayv2.DeleteDeploymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDeploymentInput) *apigatewayv2.DeleteDeploymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteDeploymentRequest(_a0 *apigatewayv2.DeleteDeploymentInput) (*request.Request, *apigatewayv2.DeleteDeploymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteDeploymentOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDeploymentInput) (*request.Request, *apigatewayv2.DeleteDeploymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteDeploymentInput) *apigatewayv2.DeleteDeploymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteDeploymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteDeploymentWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteDeploymentInput, _a2 ...request.Option) (*apigatewayv2.DeleteDeploymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteDeploymentInput, ...request.Option) (*apigatewayv2.DeleteDeploymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteDeploymentInput, ...request.Option) *apigatewayv2.DeleteDeploymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteDomainName(_a0 *apigatewayv2.DeleteDomainNameInput) (*apigatewayv2.DeleteDomainNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDomainNameInput) (*apigatewayv2.DeleteDomainNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDomainNameInput) *apigatewayv2.DeleteDomainNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteDomainNameRequest(_a0 *apigatewayv2.DeleteDomainNameInput) (*request.Request, *apigatewayv2.DeleteDomainNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteDomainNameOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDomainNameInput) (*request.Request, *apigatewayv2.DeleteDomainNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteDomainNameInput) *apigatewayv2.DeleteDomainNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteDomainNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteDomainNameWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteDomainNameInput, _a2 ...request.Option) (*apigatewayv2.DeleteDomainNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteDomainNameInput, ...request.Option) (*apigatewayv2.DeleteDomainNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteDomainNameInput, ...request.Option) *apigatewayv2.DeleteDomainNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteIntegration(_a0 *apigatewayv2.DeleteIntegrationInput) (*apigatewayv2.DeleteIntegrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationInput) (*apigatewayv2.DeleteIntegrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationInput) *apigatewayv2.DeleteIntegrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteIntegrationRequest(_a0 *apigatewayv2.DeleteIntegrationInput) (*request.Request, *apigatewayv2.DeleteIntegrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteIntegrationOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationInput) (*request.Request, *apigatewayv2.DeleteIntegrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteIntegrationInput) *apigatewayv2.DeleteIntegrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteIntegrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteIntegrationResponse(_a0 *apigatewayv2.DeleteIntegrationResponseInput) (*apigatewayv2.DeleteIntegrationResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationResponseInput) (*apigatewayv2.DeleteIntegrationResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationResponseInput) *apigatewayv2.DeleteIntegrationResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteIntegrationResponseRequest(_a0 *apigatewayv2.DeleteIntegrationResponseInput) (*request.Request, *apigatewayv2.DeleteIntegrationResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteIntegrationResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationResponseInput) (*request.Request, *apigatewayv2.DeleteIntegrationResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteIntegrationResponseInput) *apigatewayv2.DeleteIntegrationResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteIntegrationResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteIntegrationResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteIntegrationResponseInput, _a2 ...request.Option) (*apigatewayv2.DeleteIntegrationResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteIntegrationResponseInput, ...request.Option) (*apigatewayv2.DeleteIntegrationResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteIntegrationResponseInput, ...request.Option) *apigatewayv2.DeleteIntegrationResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteIntegrationWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteIntegrationInput, _a2 ...request.Option) (*apigatewayv2.DeleteIntegrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteIntegrationInput, ...request.Option) (*apigatewayv2.DeleteIntegrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteIntegrationInput, ...request.Option) *apigatewayv2.DeleteIntegrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteModel(_a0 *apigatewayv2.DeleteModelInput) (*apigatewayv2.DeleteModelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteModelInput) (*apigatewayv2.DeleteModelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteModelInput) *apigatewayv2.DeleteModelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteModelRequest(_a0 *apigatewayv2.DeleteModelInput) (*request.Request, *apigatewayv2.DeleteModelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteModelOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteModelInput) (*request.Request, *apigatewayv2.DeleteModelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteModelInput) *apigatewayv2.DeleteModelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteModelOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteModelWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteModelInput, _a2 ...request.Option) (*apigatewayv2.DeleteModelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteModelInput, ...request.Option) (*apigatewayv2.DeleteModelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteModelInput, ...request.Option) *apigatewayv2.DeleteModelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRoute provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRoute(_a0 *apigatewayv2.DeleteRouteInput) (*apigatewayv2.DeleteRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteInput) (*apigatewayv2.DeleteRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteInput) *apigatewayv2.DeleteRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteRequest(_a0 *apigatewayv2.DeleteRouteInput) (*request.Request, *apigatewayv2.DeleteRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteRouteOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteInput) (*request.Request, *apigatewayv2.DeleteRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteInput) *apigatewayv2.DeleteRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteRequestParameter provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteRequestParameter(_a0 *apigatewayv2.DeleteRouteRequestParameterInput) (*apigatewayv2.DeleteRouteRequestParameterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteRouteRequestParameterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteRequestParameterInput) (*apigatewayv2.DeleteRouteRequestParameterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteRequestParameterInput) *apigatewayv2.DeleteRouteRequestParameterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteRequestParameterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteRequestParameterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteRequestParameterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteRequestParameterRequest(_a0 *apigatewayv2.DeleteRouteRequestParameterInput) (*request.Request, *apigatewayv2.DeleteRouteRequestParameterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteRouteRequestParameterOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteRequestParameterInput) (*request.Request, *apigatewayv2.DeleteRouteRequestParameterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteRequestParameterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteRequestParameterInput) *apigatewayv2.DeleteRouteRequestParameterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteRouteRequestParameterOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteRequestParameterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteRouteRequestParameterWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteRouteRequestParameterInput, _a2 ...request.Option) (*apigatewayv2.DeleteRouteRequestParameterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteRouteRequestParameterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteRequestParameterInput, ...request.Option) (*apigatewayv2.DeleteRouteRequestParameterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteRequestParameterInput, ...request.Option) *apigatewayv2.DeleteRouteRequestParameterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteRequestParameterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteRouteRequestParameterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteResponse(_a0 *apigatewayv2.DeleteRouteResponseInput) (*apigatewayv2.DeleteRouteResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteResponseInput) (*apigatewayv2.DeleteRouteResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteResponseInput) *apigatewayv2.DeleteRouteResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteResponseRequest(_a0 *apigatewayv2.DeleteRouteResponseInput) (*request.Request, *apigatewayv2.DeleteRouteResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteRouteResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteResponseInput) (*request.Request, *apigatewayv2.DeleteRouteResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteResponseInput) *apigatewayv2.DeleteRouteResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteRouteResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteRouteResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteRouteResponseInput, _a2 ...request.Option) (*apigatewayv2.DeleteRouteResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteResponseInput, ...request.Option) (*apigatewayv2.DeleteRouteResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteResponseInput, ...request.Option) *apigatewayv2.DeleteRouteResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteRouteResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteSettings provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteSettings(_a0 *apigatewayv2.DeleteRouteSettingsInput) (*apigatewayv2.DeleteRouteSettingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteRouteSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteSettingsInput) (*apigatewayv2.DeleteRouteSettingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteSettingsInput) *apigatewayv2.DeleteRouteSettingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteSettingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteSettingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteRouteSettingsRequest(_a0 *apigatewayv2.DeleteRouteSettingsInput) (*request.Request, *apigatewayv2.DeleteRouteSettingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteRouteSettingsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteSettingsInput) (*request.Request, *apigatewayv2.DeleteRouteSettingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteRouteSettingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteRouteSettingsInput) *apigatewayv2.DeleteRouteSettingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteRouteSettingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteRouteSettingsWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteRouteSettingsInput, _a2 ...request.Option) (*apigatewayv2.DeleteRouteSettingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteRouteSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteSettingsInput, ...request.Option) (*apigatewayv2.DeleteRouteSettingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteSettingsInput, ...request.Option) *apigatewayv2.DeleteRouteSettingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteRouteSettingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteRouteWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteRouteInput, _a2 ...request.Option) (*apigatewayv2.DeleteRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteInput, ...request.Option) (*apigatewayv2.DeleteRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteRouteInput, ...request.Option) *apigatewayv2.DeleteRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteStage(_a0 *apigatewayv2.DeleteStageInput) (*apigatewayv2.DeleteStageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteStageInput) (*apigatewayv2.DeleteStageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteStageInput) *apigatewayv2.DeleteStageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteStageRequest(_a0 *apigatewayv2.DeleteStageInput) (*request.Request, *apigatewayv2.DeleteStageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteStageOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteStageInput) (*request.Request, *apigatewayv2.DeleteStageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteStageInput) *apigatewayv2.DeleteStageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteStageOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteStageWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteStageInput, _a2 ...request.Option) (*apigatewayv2.DeleteStageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteStageInput, ...request.Option) (*apigatewayv2.DeleteStageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteStageInput, ...request.Option) *apigatewayv2.DeleteStageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteVpcLink(_a0 *apigatewayv2.DeleteVpcLinkInput) (*apigatewayv2.DeleteVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.DeleteVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteVpcLinkInput) (*apigatewayv2.DeleteVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteVpcLinkInput) *apigatewayv2.DeleteVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) DeleteVpcLinkRequest(_a0 *apigatewayv2.DeleteVpcLinkInput) (*request.Request, *apigatewayv2.DeleteVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.DeleteVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteVpcLinkInput) (*request.Request, *apigatewayv2.DeleteVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.DeleteVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.DeleteVpcLinkInput) *apigatewayv2.DeleteVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.DeleteVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) DeleteVpcLinkWithContext(_a0 context.Context, _a1 *apigatewayv2.DeleteVpcLinkInput, _a2 ...request.Option) (*apigatewayv2.DeleteVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.DeleteVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteVpcLinkInput, ...request.Option) (*apigatewayv2.DeleteVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.DeleteVpcLinkInput, ...request.Option) *apigatewayv2.DeleteVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.DeleteVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.DeleteVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ExportApi(_a0 *apigatewayv2.ExportApiInput) (*apigatewayv2.ExportApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.ExportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ExportApiInput) (*apigatewayv2.ExportApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ExportApiInput) *apigatewayv2.ExportApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ExportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ExportApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ExportApiRequest(_a0 *apigatewayv2.ExportApiInput) (*request.Request, *apigatewayv2.ExportApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.ExportApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ExportApiInput) (*request.Request, *apigatewayv2.ExportApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ExportApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ExportApiInput) *apigatewayv2.ExportApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.ExportApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) ExportApiWithContext(_a0 context.Context, _a1 *apigatewayv2.ExportApiInput, _a2 ...request.Option) (*apigatewayv2.ExportApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.ExportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ExportApiInput, ...request.Option) (*apigatewayv2.ExportApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ExportApiInput, ...request.Option) *apigatewayv2.ExportApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ExportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.ExportApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApi(_a0 *apigatewayv2.GetApiInput) (*apigatewayv2.GetApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiInput) (*apigatewayv2.GetApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiInput) *apigatewayv2.GetApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApiMapping(_a0 *apigatewayv2.GetApiMappingInput) (*apigatewayv2.GetApiMappingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingInput) (*apigatewayv2.GetApiMappingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingInput) *apigatewayv2.GetApiMappingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApiMappingRequest(_a0 *apigatewayv2.GetApiMappingInput) (*request.Request, *apigatewayv2.GetApiMappingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetApiMappingOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingInput) (*request.Request, *apigatewayv2.GetApiMappingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiMappingInput) *apigatewayv2.GetApiMappingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetApiMappingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetApiMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetApiMappingWithContext(_a0 context.Context, _a1 *apigatewayv2.GetApiMappingInput, _a2 ...request.Option) (*apigatewayv2.GetApiMappingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiMappingInput, ...request.Option) (*apigatewayv2.GetApiMappingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiMappingInput, ...request.Option) *apigatewayv2.GetApiMappingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetApiMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiMappings provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApiMappings(_a0 *apigatewayv2.GetApiMappingsInput) (*apigatewayv2.GetApiMappingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetApiMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingsInput) (*apigatewayv2.GetApiMappingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingsInput) *apigatewayv2.GetApiMappingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiMappingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiMappingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApiMappingsRequest(_a0 *apigatewayv2.GetApiMappingsInput) (*request.Request, *apigatewayv2.GetApiMappingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetApiMappingsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingsInput) (*request.Request, *apigatewayv2.GetApiMappingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiMappingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiMappingsInput) *apigatewayv2.GetApiMappingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetApiMappingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetApiMappingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetApiMappingsWithContext(_a0 context.Context, _a1 *apigatewayv2.GetApiMappingsInput, _a2 ...request.Option) (*apigatewayv2.GetApiMappingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetApiMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiMappingsInput, ...request.Option) (*apigatewayv2.GetApiMappingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiMappingsInput, ...request.Option) *apigatewayv2.GetApiMappingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetApiMappingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApiRequest(_a0 *apigatewayv2.GetApiInput) (*request.Request, *apigatewayv2.GetApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiInput) (*request.Request, *apigatewayv2.GetApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApiInput) *apigatewayv2.GetApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetApiWithContext(_a0 context.Context, _a1 *apigatewayv2.GetApiInput, _a2 ...request.Option) (*apigatewayv2.GetApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiInput, ...request.Option) (*apigatewayv2.GetApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApiInput, ...request.Option) *apigatewayv2.GetApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApis provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApis(_a0 *apigatewayv2.GetApisInput) (*apigatewayv2.GetApisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetApisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApisInput) (*apigatewayv2.GetApisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApisInput) *apigatewayv2.GetApisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetApisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetApisRequest(_a0 *apigatewayv2.GetApisInput) (*request.Request, *apigatewayv2.GetApisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetApisOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApisInput) (*request.Request, *apigatewayv2.GetApisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetApisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetApisInput) *apigatewayv2.GetApisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetApisOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetApisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetApisWithContext(_a0 context.Context, _a1 *apigatewayv2.GetApisInput, _a2 ...request.Option) (*apigatewayv2.GetApisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetApisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApisInput, ...request.Option) (*apigatewayv2.GetApisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetApisInput, ...request.Option) *apigatewayv2.GetApisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetApisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetApisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetAuthorizer(_a0 *apigatewayv2.GetAuthorizerInput) (*apigatewayv2.GetAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizerInput) (*apigatewayv2.GetAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizerInput) *apigatewayv2.GetAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetAuthorizerRequest(_a0 *apigatewayv2.GetAuthorizerInput) (*request.Request, *apigatewayv2.GetAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizerInput) (*request.Request, *apigatewayv2.GetAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetAuthorizerInput) *apigatewayv2.GetAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetAuthorizerWithContext(_a0 context.Context, _a1 *apigatewayv2.GetAuthorizerInput, _a2 ...request.Option) (*apigatewayv2.GetAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetAuthorizerInput, ...request.Option) (*apigatewayv2.GetAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetAuthorizerInput, ...request.Option) *apigatewayv2.GetAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizers provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetAuthorizers(_a0 *apigatewayv2.GetAuthorizersInput) (*apigatewayv2.GetAuthorizersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetAuthorizersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizersInput) (*apigatewayv2.GetAuthorizersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizersInput) *apigatewayv2.GetAuthorizersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetAuthorizersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetAuthorizersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetAuthorizersRequest(_a0 *apigatewayv2.GetAuthorizersInput) (*request.Request, *apigatewayv2.GetAuthorizersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetAuthorizersOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizersInput) (*request.Request, *apigatewayv2.GetAuthorizersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetAuthorizersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetAuthorizersInput) *apigatewayv2.GetAuthorizersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetAuthorizersOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAuthorizersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetAuthorizersWithContext(_a0 context.Context, _a1 *apigatewayv2.GetAuthorizersInput, _a2 ...request.Option) (*apigatewayv2.GetAuthorizersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetAuthorizersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetAuthorizersInput, ...request.Option) (*apigatewayv2.GetAuthorizersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetAuthorizersInput, ...request.Option) *apigatewayv2.GetAuthorizersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetAuthorizersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetAuthorizersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDeployment(_a0 *apigatewayv2.GetDeploymentInput) (*apigatewayv2.GetDeploymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentInput) (*apigatewayv2.GetDeploymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentInput) *apigatewayv2.GetDeploymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDeploymentRequest(_a0 *apigatewayv2.GetDeploymentInput) (*request.Request, *apigatewayv2.GetDeploymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetDeploymentOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentInput) (*request.Request, *apigatewayv2.GetDeploymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDeploymentInput) *apigatewayv2.GetDeploymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetDeploymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetDeploymentWithContext(_a0 context.Context, _a1 *apigatewayv2.GetDeploymentInput, _a2 ...request.Option) (*apigatewayv2.GetDeploymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDeploymentInput, ...request.Option) (*apigatewayv2.GetDeploymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDeploymentInput, ...request.Option) *apigatewayv2.GetDeploymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeployments provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDeployments(_a0 *apigatewayv2.GetDeploymentsInput) (*apigatewayv2.GetDeploymentsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetDeploymentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentsInput) (*apigatewayv2.GetDeploymentsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentsInput) *apigatewayv2.GetDeploymentsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDeploymentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDeploymentsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDeploymentsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDeploymentsRequest(_a0 *apigatewayv2.GetDeploymentsInput) (*request.Request, *apigatewayv2.GetDeploymentsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetDeploymentsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentsInput) (*request.Request, *apigatewayv2.GetDeploymentsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDeploymentsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDeploymentsInput) *apigatewayv2.GetDeploymentsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetDeploymentsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDeploymentsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetDeploymentsWithContext(_a0 context.Context, _a1 *apigatewayv2.GetDeploymentsInput, _a2 ...request.Option) (*apigatewayv2.GetDeploymentsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetDeploymentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDeploymentsInput, ...request.Option) (*apigatewayv2.GetDeploymentsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDeploymentsInput, ...request.Option) *apigatewayv2.GetDeploymentsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDeploymentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetDeploymentsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDomainName(_a0 *apigatewayv2.GetDomainNameInput) (*apigatewayv2.GetDomainNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNameInput) (*apigatewayv2.GetDomainNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNameInput) *apigatewayv2.GetDomainNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDomainNameRequest(_a0 *apigatewayv2.GetDomainNameInput) (*request.Request, *apigatewayv2.GetDomainNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetDomainNameOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNameInput) (*request.Request, *apigatewayv2.GetDomainNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDomainNameInput) *apigatewayv2.GetDomainNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetDomainNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetDomainNameWithContext(_a0 context.Context, _a1 *apigatewayv2.GetDomainNameInput, _a2 ...request.Option) (*apigatewayv2.GetDomainNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDomainNameInput, ...request.Option) (*apigatewayv2.GetDomainNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDomainNameInput, ...request.Option) *apigatewayv2.GetDomainNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNames provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDomainNames(_a0 *apigatewayv2.GetDomainNamesInput) (*apigatewayv2.GetDomainNamesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetDomainNamesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNamesInput) (*apigatewayv2.GetDomainNamesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNamesInput) *apigatewayv2.GetDomainNamesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDomainNamesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDomainNamesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDomainNamesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetDomainNamesRequest(_a0 *apigatewayv2.GetDomainNamesInput) (*request.Request, *apigatewayv2.GetDomainNamesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetDomainNamesOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNamesInput) (*request.Request, *apigatewayv2.GetDomainNamesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetDomainNamesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetDomainNamesInput) *apigatewayv2.GetDomainNamesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetDomainNamesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDomainNamesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetDomainNamesWithContext(_a0 context.Context, _a1 *apigatewayv2.GetDomainNamesInput, _a2 ...request.Option) (*apigatewayv2.GetDomainNamesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetDomainNamesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDomainNamesInput, ...request.Option) (*apigatewayv2.GetDomainNamesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetDomainNamesInput, ...request.Option) *apigatewayv2.GetDomainNamesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetDomainNamesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetDomainNamesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegration(_a0 *apigatewayv2.GetIntegrationInput) (*apigatewayv2.GetIntegrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationInput) (*apigatewayv2.GetIntegrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationInput) *apigatewayv2.GetIntegrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationRequest(_a0 *apigatewayv2.GetIntegrationInput) (*request.Request, *apigatewayv2.GetIntegrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetIntegrationOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationInput) (*request.Request, *apigatewayv2.GetIntegrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationInput) *apigatewayv2.GetIntegrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetIntegrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponse(_a0 *apigatewayv2.GetIntegrationResponseInput) (*apigatewayv2.GetIntegrationResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponseInput) (*apigatewayv2.GetIntegrationResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponseInput) *apigatewayv2.GetIntegrationResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponseRequest(_a0 *apigatewayv2.GetIntegrationResponseInput) (*request.Request, *apigatewayv2.GetIntegrationResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetIntegrationResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponseInput) (*request.Request, *apigatewayv2.GetIntegrationResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationResponseInput) *apigatewayv2.GetIntegrationResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetIntegrationResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.GetIntegrationResponseInput, _a2 ...request.Option) (*apigatewayv2.GetIntegrationResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationResponseInput, ...request.Option) (*apigatewayv2.GetIntegrationResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationResponseInput, ...request.Option) *apigatewayv2.GetIntegrationResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponses provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponses(_a0 *apigatewayv2.GetIntegrationResponsesInput) (*apigatewayv2.GetIntegrationResponsesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetIntegrationResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponsesInput) (*apigatewayv2.GetIntegrationResponsesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponsesInput) *apigatewayv2.GetIntegrationResponsesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationResponsesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponsesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponsesRequest(_a0 *apigatewayv2.GetIntegrationResponsesInput) (*request.Request, *apigatewayv2.GetIntegrationResponsesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetIntegrationResponsesOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponsesInput) (*request.Request, *apigatewayv2.GetIntegrationResponsesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationResponsesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationResponsesInput) *apigatewayv2.GetIntegrationResponsesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetIntegrationResponsesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationResponsesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetIntegrationResponsesWithContext(_a0 context.Context, _a1 *apigatewayv2.GetIntegrationResponsesInput, _a2 ...request.Option) (*apigatewayv2.GetIntegrationResponsesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetIntegrationResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationResponsesInput, ...request.Option) (*apigatewayv2.GetIntegrationResponsesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationResponsesInput, ...request.Option) *apigatewayv2.GetIntegrationResponsesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetIntegrationResponsesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetIntegrationWithContext(_a0 context.Context, _a1 *apigatewayv2.GetIntegrationInput, _a2 ...request.Option) (*apigatewayv2.GetIntegrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationInput, ...request.Option) (*apigatewayv2.GetIntegrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationInput, ...request.Option) *apigatewayv2.GetIntegrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrations provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrations(_a0 *apigatewayv2.GetIntegrationsInput) (*apigatewayv2.GetIntegrationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetIntegrationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationsInput) (*apigatewayv2.GetIntegrationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationsInput) *apigatewayv2.GetIntegrationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIntegrationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetIntegrationsRequest(_a0 *apigatewayv2.GetIntegrationsInput) (*request.Request, *apigatewayv2.GetIntegrationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetIntegrationsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationsInput) (*request.Request, *apigatewayv2.GetIntegrationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetIntegrationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetIntegrationsInput) *apigatewayv2.GetIntegrationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetIntegrationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIntegrationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetIntegrationsWithContext(_a0 context.Context, _a1 *apigatewayv2.GetIntegrationsInput, _a2 ...request.Option) (*apigatewayv2.GetIntegrationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetIntegrationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationsInput, ...request.Option) (*apigatewayv2.GetIntegrationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetIntegrationsInput, ...request.Option) *apigatewayv2.GetIntegrationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetIntegrationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetIntegrationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModel(_a0 *apigatewayv2.GetModelInput) (*apigatewayv2.GetModelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelInput) (*apigatewayv2.GetModelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelInput) *apigatewayv2.GetModelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModelRequest(_a0 *apigatewayv2.GetModelInput) (*request.Request, *apigatewayv2.GetModelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetModelOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelInput) (*request.Request, *apigatewayv2.GetModelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelInput) *apigatewayv2.GetModelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetModelOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetModelTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModelTemplate(_a0 *apigatewayv2.GetModelTemplateInput) (*apigatewayv2.GetModelTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetModelTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelTemplateInput) (*apigatewayv2.GetModelTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelTemplateInput) *apigatewayv2.GetModelTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModelTemplateRequest(_a0 *apigatewayv2.GetModelTemplateInput) (*request.Request, *apigatewayv2.GetModelTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetModelTemplateOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelTemplateInput) (*request.Request, *apigatewayv2.GetModelTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelTemplateInput) *apigatewayv2.GetModelTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetModelTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetModelTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetModelTemplateWithContext(_a0 context.Context, _a1 *apigatewayv2.GetModelTemplateInput, _a2 ...request.Option) (*apigatewayv2.GetModelTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetModelTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelTemplateInput, ...request.Option) (*apigatewayv2.GetModelTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelTemplateInput, ...request.Option) *apigatewayv2.GetModelTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetModelTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetModelWithContext(_a0 context.Context, _a1 *apigatewayv2.GetModelInput, _a2 ...request.Option) (*apigatewayv2.GetModelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelInput, ...request.Option) (*apigatewayv2.GetModelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelInput, ...request.Option) *apigatewayv2.GetModelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModels provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModels(_a0 *apigatewayv2.GetModelsInput) (*apigatewayv2.GetModelsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetModelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelsInput) (*apigatewayv2.GetModelsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelsInput) *apigatewayv2.GetModelsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetModelsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetModelsRequest(_a0 *apigatewayv2.GetModelsInput) (*request.Request, *apigatewayv2.GetModelsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetModelsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelsInput) (*request.Request, *apigatewayv2.GetModelsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetModelsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetModelsInput) *apigatewayv2.GetModelsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetModelsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetModelsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetModelsWithContext(_a0 context.Context, _a1 *apigatewayv2.GetModelsInput, _a2 ...request.Option) (*apigatewayv2.GetModelsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetModelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelsInput, ...request.Option) (*apigatewayv2.GetModelsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetModelsInput, ...request.Option) *apigatewayv2.GetModelsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetModelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetModelsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRoute provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRoute(_a0 *apigatewayv2.GetRouteInput) (*apigatewayv2.GetRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteInput) (*apigatewayv2.GetRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteInput) *apigatewayv2.GetRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRouteRequest(_a0 *apigatewayv2.GetRouteInput) (*request.Request, *apigatewayv2.GetRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetRouteOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteInput) (*request.Request, *apigatewayv2.GetRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteInput) *apigatewayv2.GetRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRouteResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRouteResponse(_a0 *apigatewayv2.GetRouteResponseInput) (*apigatewayv2.GetRouteResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponseInput) (*apigatewayv2.GetRouteResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponseInput) *apigatewayv2.GetRouteResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRouteResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRouteResponseRequest(_a0 *apigatewayv2.GetRouteResponseInput) (*request.Request, *apigatewayv2.GetRouteResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetRouteResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponseInput) (*request.Request, *apigatewayv2.GetRouteResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteResponseInput) *apigatewayv2.GetRouteResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetRouteResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRouteResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetRouteResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.GetRouteResponseInput, _a2 ...request.Option) (*apigatewayv2.GetRouteResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteResponseInput, ...request.Option) (*apigatewayv2.GetRouteResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteResponseInput, ...request.Option) *apigatewayv2.GetRouteResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetRouteResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRouteResponses provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRouteResponses(_a0 *apigatewayv2.GetRouteResponsesInput) (*apigatewayv2.GetRouteResponsesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetRouteResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponsesInput) (*apigatewayv2.GetRouteResponsesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponsesInput) *apigatewayv2.GetRouteResponsesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteResponsesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRouteResponsesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRouteResponsesRequest(_a0 *apigatewayv2.GetRouteResponsesInput) (*request.Request, *apigatewayv2.GetRouteResponsesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetRouteResponsesOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponsesInput) (*request.Request, *apigatewayv2.GetRouteResponsesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRouteResponsesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRouteResponsesInput) *apigatewayv2.GetRouteResponsesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetRouteResponsesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRouteResponsesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetRouteResponsesWithContext(_a0 context.Context, _a1 *apigatewayv2.GetRouteResponsesInput, _a2 ...request.Option) (*apigatewayv2.GetRouteResponsesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetRouteResponsesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteResponsesInput, ...request.Option) (*apigatewayv2.GetRouteResponsesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteResponsesInput, ...request.Option) *apigatewayv2.GetRouteResponsesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteResponsesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetRouteResponsesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetRouteWithContext(_a0 context.Context, _a1 *apigatewayv2.GetRouteInput, _a2 ...request.Option) (*apigatewayv2.GetRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteInput, ...request.Option) (*apigatewayv2.GetRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRouteInput, ...request.Option) *apigatewayv2.GetRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRoutes provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRoutes(_a0 *apigatewayv2.GetRoutesInput) (*apigatewayv2.GetRoutesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRoutesInput) (*apigatewayv2.GetRoutesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRoutesInput) *apigatewayv2.GetRoutesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRoutesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRoutesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetRoutesRequest(_a0 *apigatewayv2.GetRoutesInput) (*request.Request, *apigatewayv2.GetRoutesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetRoutesOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRoutesInput) (*request.Request, *apigatewayv2.GetRoutesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetRoutesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetRoutesInput) *apigatewayv2.GetRoutesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetRoutesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetRoutesWithContext(_a0 context.Context, _a1 *apigatewayv2.GetRoutesInput, _a2 ...request.Option) (*apigatewayv2.GetRoutesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRoutesInput, ...request.Option) (*apigatewayv2.GetRoutesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetRoutesInput, ...request.Option) *apigatewayv2.GetRoutesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetRoutesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetStage(_a0 *apigatewayv2.GetStageInput) (*apigatewayv2.GetStageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStageInput) (*apigatewayv2.GetStageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStageInput) *apigatewayv2.GetStageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetStageRequest(_a0 *apigatewayv2.GetStageInput) (*request.Request, *apigatewayv2.GetStageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetStageOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStageInput) (*request.Request, *apigatewayv2.GetStageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetStageInput) *apigatewayv2.GetStageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetStageOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetStageWithContext(_a0 context.Context, _a1 *apigatewayv2.GetStageInput, _a2 ...request.Option) (*apigatewayv2.GetStageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetStageInput, ...request.Option) (*apigatewayv2.GetStageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetStageInput, ...request.Option) *apigatewayv2.GetStageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStages provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetStages(_a0 *apigatewayv2.GetStagesInput) (*apigatewayv2.GetStagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetStagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStagesInput) (*apigatewayv2.GetStagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStagesInput) *apigatewayv2.GetStagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetStagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetStagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetStagesRequest(_a0 *apigatewayv2.GetStagesInput) (*request.Request, *apigatewayv2.GetStagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetStagesOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStagesInput) (*request.Request, *apigatewayv2.GetStagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetStagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetStagesInput) *apigatewayv2.GetStagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetStagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetStagesWithContext(_a0 context.Context, _a1 *apigatewayv2.GetStagesInput, _a2 ...request.Option) (*apigatewayv2.GetStagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetStagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetStagesInput, ...request.Option) (*apigatewayv2.GetStagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetStagesInput, ...request.Option) *apigatewayv2.GetStagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetStagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetStagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTags provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetTags(_a0 *apigatewayv2.GetTagsInput) (*apigatewayv2.GetTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetTagsInput) (*apigatewayv2.GetTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetTagsInput) *apigatewayv2.GetTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetTagsRequest(_a0 *apigatewayv2.GetTagsInput) (*request.Request, *apigatewayv2.GetTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetTagsOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetTagsInput) (*request.Request, *apigatewayv2.GetTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetTagsInput) *apigatewayv2.GetTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetTagsWithContext(_a0 context.Context, _a1 *apigatewayv2.GetTagsInput, _a2 ...request.Option) (*apigatewayv2.GetTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetTagsInput, ...request.Option) (*apigatewayv2.GetTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetTagsInput, ...request.Option) *apigatewayv2.GetTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetVpcLink(_a0 *apigatewayv2.GetVpcLinkInput) (*apigatewayv2.GetVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinkInput) (*apigatewayv2.GetVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinkInput) *apigatewayv2.GetVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetVpcLinkRequest(_a0 *apigatewayv2.GetVpcLinkInput) (*request.Request, *apigatewayv2.GetVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinkInput) (*request.Request, *apigatewayv2.GetVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetVpcLinkInput) *apigatewayv2.GetVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetVpcLinkWithContext(_a0 context.Context, _a1 *apigatewayv2.GetVpcLinkInput, _a2 ...request.Option) (*apigatewayv2.GetVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetVpcLinkInput, ...request.Option) (*apigatewayv2.GetVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetVpcLinkInput, ...request.Option) *apigatewayv2.GetVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinks provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetVpcLinks(_a0 *apigatewayv2.GetVpcLinksInput) (*apigatewayv2.GetVpcLinksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.GetVpcLinksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinksInput) (*apigatewayv2.GetVpcLinksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinksInput) *apigatewayv2.GetVpcLinksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetVpcLinksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetVpcLinksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpcLinksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) GetVpcLinksRequest(_a0 *apigatewayv2.GetVpcLinksInput) (*request.Request, *apigatewayv2.GetVpcLinksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.GetVpcLinksOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinksInput) (*request.Request, *apigatewayv2.GetVpcLinksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.GetVpcLinksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.GetVpcLinksInput) *apigatewayv2.GetVpcLinksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.GetVpcLinksOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpcLinksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) GetVpcLinksWithContext(_a0 context.Context, _a1 *apigatewayv2.GetVpcLinksInput, _a2 ...request.Option) (*apigatewayv2.GetVpcLinksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.GetVpcLinksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetVpcLinksInput, ...request.Option) (*apigatewayv2.GetVpcLinksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.GetVpcLinksInput, ...request.Option) *apigatewayv2.GetVpcLinksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.GetVpcLinksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.GetVpcLinksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ImportApi(_a0 *apigatewayv2.ImportApiInput) (*apigatewayv2.ImportApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.ImportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ImportApiInput) (*apigatewayv2.ImportApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ImportApiInput) *apigatewayv2.ImportApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ImportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ImportApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ImportApiRequest(_a0 *apigatewayv2.ImportApiInput) (*request.Request, *apigatewayv2.ImportApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.ImportApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ImportApiInput) (*request.Request, *apigatewayv2.ImportApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ImportApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ImportApiInput) *apigatewayv2.ImportApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.ImportApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) ImportApiWithContext(_a0 context.Context, _a1 *apigatewayv2.ImportApiInput, _a2 ...request.Option) (*apigatewayv2.ImportApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.ImportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ImportApiInput, ...request.Option) (*apigatewayv2.ImportApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ImportApiInput, ...request.Option) *apigatewayv2.ImportApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ImportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.ImportApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReimportApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ReimportApi(_a0 *apigatewayv2.ReimportApiInput) (*apigatewayv2.ReimportApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.ReimportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ReimportApiInput) (*apigatewayv2.ReimportApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ReimportApiInput) *apigatewayv2.ReimportApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ReimportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ReimportApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReimportApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ReimportApiRequest(_a0 *apigatewayv2.ReimportApiInput) (*request.Request, *apigatewayv2.ReimportApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.ReimportApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ReimportApiInput) (*request.Request, *apigatewayv2.ReimportApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ReimportApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ReimportApiInput) *apigatewayv2.ReimportApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.ReimportApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReimportApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) ReimportApiWithContext(_a0 context.Context, _a1 *apigatewayv2.ReimportApiInput, _a2 ...request.Option) (*apigatewayv2.ReimportApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.ReimportApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ReimportApiInput, ...request.Option) (*apigatewayv2.ReimportApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ReimportApiInput, ...request.Option) *apigatewayv2.ReimportApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ReimportApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.ReimportApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetAuthorizersCache provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ResetAuthorizersCache(_a0 *apigatewayv2.ResetAuthorizersCacheInput) (*apigatewayv2.ResetAuthorizersCacheOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.ResetAuthorizersCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ResetAuthorizersCacheInput) (*apigatewayv2.ResetAuthorizersCacheOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ResetAuthorizersCacheInput) *apigatewayv2.ResetAuthorizersCacheOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ResetAuthorizersCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ResetAuthorizersCacheInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetAuthorizersCacheRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) ResetAuthorizersCacheRequest(_a0 *apigatewayv2.ResetAuthorizersCacheInput) (*request.Request, *apigatewayv2.ResetAuthorizersCacheOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.ResetAuthorizersCacheOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ResetAuthorizersCacheInput) (*request.Request, *apigatewayv2.ResetAuthorizersCacheOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.ResetAuthorizersCacheInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.ResetAuthorizersCacheInput) *apigatewayv2.ResetAuthorizersCacheOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.ResetAuthorizersCacheOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetAuthorizersCacheWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) ResetAuthorizersCacheWithContext(_a0 context.Context, _a1 *apigatewayv2.ResetAuthorizersCacheInput, _a2 ...request.Option) (*apigatewayv2.ResetAuthorizersCacheOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.ResetAuthorizersCacheOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ResetAuthorizersCacheInput, ...request.Option) (*apigatewayv2.ResetAuthorizersCacheOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.ResetAuthorizersCacheInput, ...request.Option) *apigatewayv2.ResetAuthorizersCacheOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.ResetAuthorizersCacheOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.ResetAuthorizersCacheInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) TagResource(_a0 *apigatewayv2.TagResourceInput) (*apigatewayv2.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.TagResourceInput) (*apigatewayv2.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.TagResourceInput) *apigatewayv2.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) TagResourceRequest(_a0 *apigatewayv2.TagResourceInput) (*request.Request, *apigatewayv2.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.TagResourceInput) (*request.Request, *apigatewayv2.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.TagResourceInput) *apigatewayv2.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) TagResourceWithContext(_a0 context.Context, _a1 *apigatewayv2.TagResourceInput, _a2 ...request.Option) (*apigatewayv2.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.TagResourceInput, ...request.Option) (*apigatewayv2.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.TagResourceInput, ...request.Option) *apigatewayv2.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UntagResource(_a0 *apigatewayv2.UntagResourceInput) (*apigatewayv2.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UntagResourceInput) (*apigatewayv2.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UntagResourceInput) *apigatewayv2.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UntagResourceRequest(_a0 *apigatewayv2.UntagResourceInput) (*request.Request, *apigatewayv2.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UntagResourceInput) (*request.Request, *apigatewayv2.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UntagResourceInput) *apigatewayv2.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UntagResourceWithContext(_a0 context.Context, _a1 *apigatewayv2.UntagResourceInput, _a2 ...request.Option) (*apigatewayv2.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UntagResourceInput, ...request.Option) (*apigatewayv2.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UntagResourceInput, ...request.Option) *apigatewayv2.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApi provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateApi(_a0 *apigatewayv2.UpdateApiInput) (*apigatewayv2.UpdateApiOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiInput) (*apigatewayv2.UpdateApiOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiInput) *apigatewayv2.UpdateApiOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateApiInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApiMapping provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateApiMapping(_a0 *apigatewayv2.UpdateApiMappingInput) (*apigatewayv2.UpdateApiMappingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiMappingInput) (*apigatewayv2.UpdateApiMappingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiMappingInput) *apigatewayv2.UpdateApiMappingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateApiMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApiMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateApiMappingRequest(_a0 *apigatewayv2.UpdateApiMappingInput) (*request.Request, *apigatewayv2.UpdateApiMappingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateApiMappingOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiMappingInput) (*request.Request, *apigatewayv2.UpdateApiMappingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateApiMappingInput) *apigatewayv2.UpdateApiMappingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateApiMappingOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateApiMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateApiMappingWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateApiMappingInput, _a2 ...request.Option) (*apigatewayv2.UpdateApiMappingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateApiMappingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateApiMappingInput, ...request.Option) (*apigatewayv2.UpdateApiMappingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateApiMappingInput, ...request.Option) *apigatewayv2.UpdateApiMappingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateApiMappingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateApiMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateApiRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateApiRequest(_a0 *apigatewayv2.UpdateApiInput) (*request.Request, *apigatewayv2.UpdateApiOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateApiOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiInput) (*request.Request, *apigatewayv2.UpdateApiOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateApiInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateApiInput) *apigatewayv2.UpdateApiOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateApiOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateApiWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateApiWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateApiInput, _a2 ...request.Option) (*apigatewayv2.UpdateApiOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateApiOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateApiInput, ...request.Option) (*apigatewayv2.UpdateApiOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateApiInput, ...request.Option) *apigatewayv2.UpdateApiOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateApiOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateApiInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizer provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateAuthorizer(_a0 *apigatewayv2.UpdateAuthorizerInput) (*apigatewayv2.UpdateAuthorizerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateAuthorizerInput) (*apigatewayv2.UpdateAuthorizerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateAuthorizerInput) *apigatewayv2.UpdateAuthorizerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateAuthorizerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateAuthorizerRequest(_a0 *apigatewayv2.UpdateAuthorizerInput) (*request.Request, *apigatewayv2.UpdateAuthorizerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateAuthorizerOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateAuthorizerInput) (*request.Request, *apigatewayv2.UpdateAuthorizerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateAuthorizerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateAuthorizerInput) *apigatewayv2.UpdateAuthorizerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateAuthorizerOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAuthorizerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateAuthorizerWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateAuthorizerInput, _a2 ...request.Option) (*apigatewayv2.UpdateAuthorizerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateAuthorizerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateAuthorizerInput, ...request.Option) (*apigatewayv2.UpdateAuthorizerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateAuthorizerInput, ...request.Option) *apigatewayv2.UpdateAuthorizerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateAuthorizerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateAuthorizerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDeployment provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateDeployment(_a0 *apigatewayv2.UpdateDeploymentInput) (*apigatewayv2.UpdateDeploymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDeploymentInput) (*apigatewayv2.UpdateDeploymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDeploymentInput) *apigatewayv2.UpdateDeploymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateDeploymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDeploymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateDeploymentRequest(_a0 *apigatewayv2.UpdateDeploymentInput) (*request.Request, *apigatewayv2.UpdateDeploymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateDeploymentOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDeploymentInput) (*request.Request, *apigatewayv2.UpdateDeploymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDeploymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateDeploymentInput) *apigatewayv2.UpdateDeploymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateDeploymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDeploymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateDeploymentWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateDeploymentInput, _a2 ...request.Option) (*apigatewayv2.UpdateDeploymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateDeploymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateDeploymentInput, ...request.Option) (*apigatewayv2.UpdateDeploymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateDeploymentInput, ...request.Option) *apigatewayv2.UpdateDeploymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateDeploymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateDeploymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDomainName provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateDomainName(_a0 *apigatewayv2.UpdateDomainNameInput) (*apigatewayv2.UpdateDomainNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDomainNameInput) (*apigatewayv2.UpdateDomainNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDomainNameInput) *apigatewayv2.UpdateDomainNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateDomainNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDomainNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateDomainNameRequest(_a0 *apigatewayv2.UpdateDomainNameInput) (*request.Request, *apigatewayv2.UpdateDomainNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateDomainNameOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDomainNameInput) (*request.Request, *apigatewayv2.UpdateDomainNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateDomainNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateDomainNameInput) *apigatewayv2.UpdateDomainNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateDomainNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDomainNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateDomainNameWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateDomainNameInput, _a2 ...request.Option) (*apigatewayv2.UpdateDomainNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateDomainNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateDomainNameInput, ...request.Option) (*apigatewayv2.UpdateDomainNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateDomainNameInput, ...request.Option) *apigatewayv2.UpdateDomainNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateDomainNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateDomainNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegration provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateIntegration(_a0 *apigatewayv2.UpdateIntegrationInput) (*apigatewayv2.UpdateIntegrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationInput) (*apigatewayv2.UpdateIntegrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationInput) *apigatewayv2.UpdateIntegrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateIntegrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateIntegrationRequest(_a0 *apigatewayv2.UpdateIntegrationInput) (*request.Request, *apigatewayv2.UpdateIntegrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateIntegrationOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationInput) (*request.Request, *apigatewayv2.UpdateIntegrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateIntegrationInput) *apigatewayv2.UpdateIntegrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateIntegrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateIntegrationResponse(_a0 *apigatewayv2.UpdateIntegrationResponseInput) (*apigatewayv2.UpdateIntegrationResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationResponseInput) (*apigatewayv2.UpdateIntegrationResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationResponseInput) *apigatewayv2.UpdateIntegrationResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateIntegrationResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateIntegrationResponseRequest(_a0 *apigatewayv2.UpdateIntegrationResponseInput) (*request.Request, *apigatewayv2.UpdateIntegrationResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateIntegrationResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationResponseInput) (*request.Request, *apigatewayv2.UpdateIntegrationResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateIntegrationResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateIntegrationResponseInput) *apigatewayv2.UpdateIntegrationResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateIntegrationResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateIntegrationResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateIntegrationResponseInput, _a2 ...request.Option) (*apigatewayv2.UpdateIntegrationResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateIntegrationResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateIntegrationResponseInput, ...request.Option) (*apigatewayv2.UpdateIntegrationResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateIntegrationResponseInput, ...request.Option) *apigatewayv2.UpdateIntegrationResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateIntegrationResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateIntegrationResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateIntegrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateIntegrationWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateIntegrationInput, _a2 ...request.Option) (*apigatewayv2.UpdateIntegrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateIntegrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateIntegrationInput, ...request.Option) (*apigatewayv2.UpdateIntegrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateIntegrationInput, ...request.Option) *apigatewayv2.UpdateIntegrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateIntegrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateIntegrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateModel provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateModel(_a0 *apigatewayv2.UpdateModelInput) (*apigatewayv2.UpdateModelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateModelInput) (*apigatewayv2.UpdateModelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateModelInput) *apigatewayv2.UpdateModelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateModelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateModelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateModelRequest(_a0 *apigatewayv2.UpdateModelInput) (*request.Request, *apigatewayv2.UpdateModelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateModelOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateModelInput) (*request.Request, *apigatewayv2.UpdateModelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateModelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateModelInput) *apigatewayv2.UpdateModelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateModelOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateModelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateModelWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateModelInput, _a2 ...request.Option) (*apigatewayv2.UpdateModelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateModelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateModelInput, ...request.Option) (*apigatewayv2.UpdateModelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateModelInput, ...request.Option) *apigatewayv2.UpdateModelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateModelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateModelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRoute provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateRoute(_a0 *apigatewayv2.UpdateRouteInput) (*apigatewayv2.UpdateRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteInput) (*apigatewayv2.UpdateRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteInput) *apigatewayv2.UpdateRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateRouteRequest(_a0 *apigatewayv2.UpdateRouteInput) (*request.Request, *apigatewayv2.UpdateRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateRouteOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteInput) (*request.Request, *apigatewayv2.UpdateRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateRouteInput) *apigatewayv2.UpdateRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRouteResponse provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateRouteResponse(_a0 *apigatewayv2.UpdateRouteResponseInput) (*apigatewayv2.UpdateRouteResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteResponseInput) (*apigatewayv2.UpdateRouteResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteResponseInput) *apigatewayv2.UpdateRouteResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateRouteResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRouteResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateRouteResponseRequest(_a0 *apigatewayv2.UpdateRouteResponseInput) (*request.Request, *apigatewayv2.UpdateRouteResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateRouteResponseOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteResponseInput) (*request.Request, *apigatewayv2.UpdateRouteResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateRouteResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateRouteResponseInput) *apigatewayv2.UpdateRouteResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateRouteResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRouteResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateRouteResponseWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateRouteResponseInput, _a2 ...request.Option) (*apigatewayv2.UpdateRouteResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateRouteResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateRouteResponseInput, ...request.Option) (*apigatewayv2.UpdateRouteResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateRouteResponseInput, ...request.Option) *apigatewayv2.UpdateRouteResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateRouteResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateRouteResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateRouteWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateRouteInput, _a2 ...request.Option) (*apigatewayv2.UpdateRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateRouteInput, ...request.Option) (*apigatewayv2.UpdateRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateRouteInput, ...request.Option) *apigatewayv2.UpdateRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStage provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateStage(_a0 *apigatewayv2.UpdateStageInput) (*apigatewayv2.UpdateStageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateStageInput) (*apigatewayv2.UpdateStageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateStageInput) *apigatewayv2.UpdateStageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateStageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateStageRequest(_a0 *apigatewayv2.UpdateStageInput) (*request.Request, *apigatewayv2.UpdateStageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateStageOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateStageInput) (*request.Request, *apigatewayv2.UpdateStageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateStageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateStageInput) *apigatewayv2.UpdateStageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateStageOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateStageWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateStageInput, _a2 ...request.Option) (*apigatewayv2.UpdateStageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateStageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateStageInput, ...request.Option) (*apigatewayv2.UpdateStageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateStageInput, ...request.Option) *apigatewayv2.UpdateStageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateStageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateStageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateVpcLink provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateVpcLink(_a0 *apigatewayv2.UpdateVpcLinkInput) (*apigatewayv2.UpdateVpcLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *apigatewayv2.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateVpcLinkInput) (*apigatewayv2.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateVpcLinkInput) *apigatewayv2.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateVpcLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateVpcLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApiGatewayV2) UpdateVpcLinkRequest(_a0 *apigatewayv2.UpdateVpcLinkInput) (*request.Request, *apigatewayv2.UpdateVpcLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *apigatewayv2.UpdateVpcLinkOutput
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateVpcLinkInput) (*request.Request, *apigatewayv2.UpdateVpcLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*apigatewayv2.UpdateVpcLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*apigatewayv2.UpdateVpcLinkInput) *apigatewayv2.UpdateVpcLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*apigatewayv2.UpdateVpcLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateVpcLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApiGatewayV2) UpdateVpcLinkWithContext(_a0 context.Context, _a1 *apigatewayv2.UpdateVpcLinkInput, _a2 ...request.Option) (*apigatewayv2.UpdateVpcLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *apigatewayv2.UpdateVpcLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateVpcLinkInput, ...request.Option) (*apigatewayv2.UpdateVpcLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *apigatewayv2.UpdateVpcLinkInput, ...request.Option) *apigatewayv2.UpdateVpcLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*apigatewayv2.UpdateVpcLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *apigatewayv2.UpdateVpcLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeApiGatewayV2 interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeApiGatewayV2 creates a new instance of MockFakeApiGatewayV2. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeApiGatewayV2(t mockConstructorTestingTNewMockFakeApiGatewayV2) *MockFakeApiGatewayV2 {
- mock := &MockFakeApiGatewayV2{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeApplicationAutoScaling.go b/test/aws/mock_FakeApplicationAutoScaling.go
deleted file mode 100644
index fa888c33e..000000000
--- a/test/aws/mock_FakeApplicationAutoScaling.go
+++ /dev/null
@@ -1,1043 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- applicationautoscaling "github.com/aws/aws-sdk-go/service/applicationautoscaling"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeApplicationAutoScaling is an autogenerated mock type for the FakeApplicationAutoScaling type
-type MockFakeApplicationAutoScaling struct {
- mock.Mock
-}
-
-// DeleteScalingPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeleteScalingPolicy(_a0 *applicationautoscaling.DeleteScalingPolicyInput) (*applicationautoscaling.DeleteScalingPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DeleteScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScalingPolicyInput) (*applicationautoscaling.DeleteScalingPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScalingPolicyInput) *applicationautoscaling.DeleteScalingPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeleteScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeleteScalingPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteScalingPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeleteScalingPolicyRequest(_a0 *applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DeleteScalingPolicyOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScalingPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeleteScalingPolicyInput) *applicationautoscaling.DeleteScalingPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DeleteScalingPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteScalingPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DeleteScalingPolicyWithContext(_a0 context.Context, _a1 *applicationautoscaling.DeleteScalingPolicyInput, _a2 ...request.Option) (*applicationautoscaling.DeleteScalingPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DeleteScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) (*applicationautoscaling.DeleteScalingPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) *applicationautoscaling.DeleteScalingPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeleteScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteScheduledAction provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeleteScheduledAction(_a0 *applicationautoscaling.DeleteScheduledActionInput) (*applicationautoscaling.DeleteScheduledActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScheduledActionInput) (*applicationautoscaling.DeleteScheduledActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScheduledActionInput) *applicationautoscaling.DeleteScheduledActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeleteScheduledActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteScheduledActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeleteScheduledActionRequest(_a0 *applicationautoscaling.DeleteScheduledActionInput) (*request.Request, *applicationautoscaling.DeleteScheduledActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DeleteScheduledActionOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScheduledActionInput) (*request.Request, *applicationautoscaling.DeleteScheduledActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeleteScheduledActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeleteScheduledActionInput) *applicationautoscaling.DeleteScheduledActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DeleteScheduledActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteScheduledActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DeleteScheduledActionWithContext(_a0 context.Context, _a1 *applicationautoscaling.DeleteScheduledActionInput, _a2 ...request.Option) (*applicationautoscaling.DeleteScheduledActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) (*applicationautoscaling.DeleteScheduledActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) *applicationautoscaling.DeleteScheduledActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterScalableTarget provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeregisterScalableTarget(_a0 *applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DeregisterScalableTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeregisterScalableTargetInput) *applicationautoscaling.DeregisterScalableTargetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeregisterScalableTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeregisterScalableTargetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterScalableTargetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DeregisterScalableTargetRequest(_a0 *applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DeregisterScalableTargetOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DeregisterScalableTargetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DeregisterScalableTargetInput) *applicationautoscaling.DeregisterScalableTargetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DeregisterScalableTargetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterScalableTargetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DeregisterScalableTargetWithContext(_a0 context.Context, _a1 *applicationautoscaling.DeregisterScalableTargetInput, _a2 ...request.Option) (*applicationautoscaling.DeregisterScalableTargetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DeregisterScalableTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) (*applicationautoscaling.DeregisterScalableTargetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) *applicationautoscaling.DeregisterScalableTargetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DeregisterScalableTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalableTargets provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalableTargets(_a0 *applicationautoscaling.DescribeScalableTargetsInput) (*applicationautoscaling.DescribeScalableTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DescribeScalableTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalableTargetsInput) (*applicationautoscaling.DescribeScalableTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalableTargetsInput) *applicationautoscaling.DescribeScalableTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalableTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalableTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalableTargetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApplicationAutoScaling) DescribeScalableTargetsPages(_a0 *applicationautoscaling.DescribeScalableTargetsInput, _a1 func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalableTargetsInput, func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalableTargetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApplicationAutoScaling) DescribeScalableTargetsPagesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalableTargetsInput, _a2 func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalableTargetsInput, func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalableTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalableTargetsRequest(_a0 *applicationautoscaling.DescribeScalableTargetsInput) (*request.Request, *applicationautoscaling.DescribeScalableTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DescribeScalableTargetsOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalableTargetsInput) (*request.Request, *applicationautoscaling.DescribeScalableTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalableTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalableTargetsInput) *applicationautoscaling.DescribeScalableTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DescribeScalableTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScalableTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DescribeScalableTargetsWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalableTargetsInput, _a2 ...request.Option) (*applicationautoscaling.DescribeScalableTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DescribeScalableTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalableTargetsInput, ...request.Option) (*applicationautoscaling.DescribeScalableTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalableTargetsInput, ...request.Option) *applicationautoscaling.DescribeScalableTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalableTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DescribeScalableTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivities provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingActivities(_a0 *applicationautoscaling.DescribeScalingActivitiesInput) (*applicationautoscaling.DescribeScalingActivitiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DescribeScalingActivitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingActivitiesInput) (*applicationautoscaling.DescribeScalingActivitiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingActivitiesInput) *applicationautoscaling.DescribeScalingActivitiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalingActivitiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivitiesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingActivitiesPages(_a0 *applicationautoscaling.DescribeScalingActivitiesInput, _a1 func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingActivitiesInput, func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingActivitiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingActivitiesPagesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalingActivitiesInput, _a2 func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingActivitiesInput, func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingActivitiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingActivitiesRequest(_a0 *applicationautoscaling.DescribeScalingActivitiesInput) (*request.Request, *applicationautoscaling.DescribeScalingActivitiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DescribeScalingActivitiesOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingActivitiesInput) (*request.Request, *applicationautoscaling.DescribeScalingActivitiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingActivitiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalingActivitiesInput) *applicationautoscaling.DescribeScalingActivitiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivitiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingActivitiesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalingActivitiesInput, _a2 ...request.Option) (*applicationautoscaling.DescribeScalingActivitiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DescribeScalingActivitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingActivitiesInput, ...request.Option) (*applicationautoscaling.DescribeScalingActivitiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingActivitiesInput, ...request.Option) *applicationautoscaling.DescribeScalingActivitiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DescribeScalingActivitiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingPolicies(_a0 *applicationautoscaling.DescribeScalingPoliciesInput) (*applicationautoscaling.DescribeScalingPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DescribeScalingPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingPoliciesInput) (*applicationautoscaling.DescribeScalingPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingPoliciesInput) *applicationautoscaling.DescribeScalingPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalingPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalingPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingPoliciesPages(_a0 *applicationautoscaling.DescribeScalingPoliciesInput, _a1 func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingPoliciesPagesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalingPoliciesInput, _a2 func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingPoliciesRequest(_a0 *applicationautoscaling.DescribeScalingPoliciesInput) (*request.Request, *applicationautoscaling.DescribeScalingPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DescribeScalingPoliciesOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingPoliciesInput) (*request.Request, *applicationautoscaling.DescribeScalingPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScalingPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScalingPoliciesInput) *applicationautoscaling.DescribeScalingPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DescribeScalingPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScalingPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DescribeScalingPoliciesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScalingPoliciesInput, _a2 ...request.Option) (*applicationautoscaling.DescribeScalingPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DescribeScalingPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingPoliciesInput, ...request.Option) (*applicationautoscaling.DescribeScalingPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScalingPoliciesInput, ...request.Option) *applicationautoscaling.DescribeScalingPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScalingPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DescribeScalingPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActions provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScheduledActions(_a0 *applicationautoscaling.DescribeScheduledActionsInput) (*applicationautoscaling.DescribeScheduledActionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.DescribeScheduledActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScheduledActionsInput) (*applicationautoscaling.DescribeScheduledActionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScheduledActionsInput) *applicationautoscaling.DescribeScheduledActionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScheduledActionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeApplicationAutoScaling) DescribeScheduledActionsPages(_a0 *applicationautoscaling.DescribeScheduledActionsInput, _a1 func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledActionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeApplicationAutoScaling) DescribeScheduledActionsPagesWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScheduledActionsInput, _a2 func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledActionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) DescribeScheduledActionsRequest(_a0 *applicationautoscaling.DescribeScheduledActionsInput) (*request.Request, *applicationautoscaling.DescribeScheduledActionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.DescribeScheduledActionsOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScheduledActionsInput) (*request.Request, *applicationautoscaling.DescribeScheduledActionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.DescribeScheduledActionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.DescribeScheduledActionsInput) *applicationautoscaling.DescribeScheduledActionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) DescribeScheduledActionsWithContext(_a0 context.Context, _a1 *applicationautoscaling.DescribeScheduledActionsInput, _a2 ...request.Option) (*applicationautoscaling.DescribeScheduledActionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.DescribeScheduledActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) (*applicationautoscaling.DescribeScheduledActionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) *applicationautoscaling.DescribeScheduledActionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScalingPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) PutScalingPolicy(_a0 *applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.PutScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScalingPolicyInput) *applicationautoscaling.PutScalingPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.PutScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.PutScalingPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScalingPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) PutScalingPolicyRequest(_a0 *applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.PutScalingPolicyOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScalingPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.PutScalingPolicyInput) *applicationautoscaling.PutScalingPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.PutScalingPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutScalingPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) PutScalingPolicyWithContext(_a0 context.Context, _a1 *applicationautoscaling.PutScalingPolicyInput, _a2 ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.PutScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) *applicationautoscaling.PutScalingPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.PutScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScheduledAction provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) PutScheduledAction(_a0 *applicationautoscaling.PutScheduledActionInput) (*applicationautoscaling.PutScheduledActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.PutScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScheduledActionInput) (*applicationautoscaling.PutScheduledActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScheduledActionInput) *applicationautoscaling.PutScheduledActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.PutScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.PutScheduledActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScheduledActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) PutScheduledActionRequest(_a0 *applicationautoscaling.PutScheduledActionInput) (*request.Request, *applicationautoscaling.PutScheduledActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.PutScheduledActionOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScheduledActionInput) (*request.Request, *applicationautoscaling.PutScheduledActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.PutScheduledActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.PutScheduledActionInput) *applicationautoscaling.PutScheduledActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.PutScheduledActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutScheduledActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) PutScheduledActionWithContext(_a0 context.Context, _a1 *applicationautoscaling.PutScheduledActionInput, _a2 ...request.Option) (*applicationautoscaling.PutScheduledActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.PutScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) (*applicationautoscaling.PutScheduledActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) *applicationautoscaling.PutScheduledActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.PutScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterScalableTarget provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) RegisterScalableTarget(_a0 *applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *applicationautoscaling.RegisterScalableTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.RegisterScalableTargetInput) *applicationautoscaling.RegisterScalableTargetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.RegisterScalableTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.RegisterScalableTargetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterScalableTargetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeApplicationAutoScaling) RegisterScalableTargetRequest(_a0 *applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *applicationautoscaling.RegisterScalableTargetOutput
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*applicationautoscaling.RegisterScalableTargetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*applicationautoscaling.RegisterScalableTargetInput) *applicationautoscaling.RegisterScalableTargetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*applicationautoscaling.RegisterScalableTargetOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterScalableTargetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeApplicationAutoScaling) RegisterScalableTargetWithContext(_a0 context.Context, _a1 *applicationautoscaling.RegisterScalableTargetInput, _a2 ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *applicationautoscaling.RegisterScalableTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) *applicationautoscaling.RegisterScalableTargetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*applicationautoscaling.RegisterScalableTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeApplicationAutoScaling interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeApplicationAutoScaling creates a new instance of MockFakeApplicationAutoScaling. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeApplicationAutoScaling(t mockConstructorTestingTNewMockFakeApplicationAutoScaling) *MockFakeApplicationAutoScaling {
- mock := &MockFakeApplicationAutoScaling{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeAutoscaling.go b/test/aws/mock_FakeAutoscaling.go
deleted file mode 100644
index eb5c488c5..000000000
--- a/test/aws/mock_FakeAutoscaling.go
+++ /dev/null
@@ -1,5725 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- autoscaling "github.com/aws/aws-sdk-go/service/autoscaling"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeAutoscaling is an autogenerated mock type for the FakeAutoscaling type
-type MockFakeAutoscaling struct {
- mock.Mock
-}
-
-// AttachInstances provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachInstances(_a0 *autoscaling.AttachInstancesInput) (*autoscaling.AttachInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.AttachInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachInstancesInput) (*autoscaling.AttachInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachInstancesInput) *autoscaling.AttachInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachInstancesRequest(_a0 *autoscaling.AttachInstancesInput) (*request.Request, *autoscaling.AttachInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.AttachInstancesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachInstancesInput) (*request.Request, *autoscaling.AttachInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachInstancesInput) *autoscaling.AttachInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.AttachInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) AttachInstancesWithContext(_a0 context.Context, _a1 *autoscaling.AttachInstancesInput, _a2 ...request.Option) (*autoscaling.AttachInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.AttachInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachInstancesInput, ...request.Option) (*autoscaling.AttachInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachInstancesInput, ...request.Option) *autoscaling.AttachInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.AttachInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerTargetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachLoadBalancerTargetGroups(_a0 *autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.AttachLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) *autoscaling.AttachLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerTargetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachLoadBalancerTargetGroupsRequest(_a0 *autoscaling.AttachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.AttachLoadBalancerTargetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.AttachLoadBalancerTargetGroupsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.AttachLoadBalancerTargetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachLoadBalancerTargetGroupsInput) *autoscaling.AttachLoadBalancerTargetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.AttachLoadBalancerTargetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) AttachLoadBalancerTargetGroupsWithContext(_a0 context.Context, _a1 *autoscaling.AttachLoadBalancerTargetGroupsInput, _a2 ...request.Option) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.AttachLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachLoadBalancerTargetGroupsInput, ...request.Option) *autoscaling.AttachLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.AttachLoadBalancerTargetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancers provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachLoadBalancers(_a0 *autoscaling.AttachLoadBalancersInput) (*autoscaling.AttachLoadBalancersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.AttachLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancersInput) (*autoscaling.AttachLoadBalancersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancersInput) *autoscaling.AttachLoadBalancersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachLoadBalancersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) AttachLoadBalancersRequest(_a0 *autoscaling.AttachLoadBalancersInput) (*request.Request, *autoscaling.AttachLoadBalancersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.AttachLoadBalancersOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancersInput) (*request.Request, *autoscaling.AttachLoadBalancersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.AttachLoadBalancersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.AttachLoadBalancersInput) *autoscaling.AttachLoadBalancersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.AttachLoadBalancersOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) AttachLoadBalancersWithContext(_a0 context.Context, _a1 *autoscaling.AttachLoadBalancersInput, _a2 ...request.Option) (*autoscaling.AttachLoadBalancersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.AttachLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachLoadBalancersInput, ...request.Option) (*autoscaling.AttachLoadBalancersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.AttachLoadBalancersInput, ...request.Option) *autoscaling.AttachLoadBalancersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.AttachLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.AttachLoadBalancersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDeleteScheduledAction provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) BatchDeleteScheduledAction(_a0 *autoscaling.BatchDeleteScheduledActionInput) (*autoscaling.BatchDeleteScheduledActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.BatchDeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchDeleteScheduledActionInput) (*autoscaling.BatchDeleteScheduledActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchDeleteScheduledActionInput) *autoscaling.BatchDeleteScheduledActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.BatchDeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.BatchDeleteScheduledActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDeleteScheduledActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) BatchDeleteScheduledActionRequest(_a0 *autoscaling.BatchDeleteScheduledActionInput) (*request.Request, *autoscaling.BatchDeleteScheduledActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.BatchDeleteScheduledActionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchDeleteScheduledActionInput) (*request.Request, *autoscaling.BatchDeleteScheduledActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchDeleteScheduledActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.BatchDeleteScheduledActionInput) *autoscaling.BatchDeleteScheduledActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.BatchDeleteScheduledActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchDeleteScheduledActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) BatchDeleteScheduledActionWithContext(_a0 context.Context, _a1 *autoscaling.BatchDeleteScheduledActionInput, _a2 ...request.Option) (*autoscaling.BatchDeleteScheduledActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.BatchDeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.BatchDeleteScheduledActionInput, ...request.Option) (*autoscaling.BatchDeleteScheduledActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.BatchDeleteScheduledActionInput, ...request.Option) *autoscaling.BatchDeleteScheduledActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.BatchDeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.BatchDeleteScheduledActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchPutScheduledUpdateGroupAction provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) BatchPutScheduledUpdateGroupAction(_a0 *autoscaling.BatchPutScheduledUpdateGroupActionInput) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.BatchPutScheduledUpdateGroupActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) *autoscaling.BatchPutScheduledUpdateGroupActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.BatchPutScheduledUpdateGroupActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchPutScheduledUpdateGroupActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) BatchPutScheduledUpdateGroupActionRequest(_a0 *autoscaling.BatchPutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.BatchPutScheduledUpdateGroupActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.BatchPutScheduledUpdateGroupActionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.BatchPutScheduledUpdateGroupActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.BatchPutScheduledUpdateGroupActionInput) *autoscaling.BatchPutScheduledUpdateGroupActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.BatchPutScheduledUpdateGroupActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchPutScheduledUpdateGroupActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) BatchPutScheduledUpdateGroupActionWithContext(_a0 context.Context, _a1 *autoscaling.BatchPutScheduledUpdateGroupActionInput, _a2 ...request.Option) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.BatchPutScheduledUpdateGroupActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.BatchPutScheduledUpdateGroupActionInput, ...request.Option) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.BatchPutScheduledUpdateGroupActionInput, ...request.Option) *autoscaling.BatchPutScheduledUpdateGroupActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.BatchPutScheduledUpdateGroupActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.BatchPutScheduledUpdateGroupActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelInstanceRefresh provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CancelInstanceRefresh(_a0 *autoscaling.CancelInstanceRefreshInput) (*autoscaling.CancelInstanceRefreshOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.CancelInstanceRefreshOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.CancelInstanceRefreshInput) (*autoscaling.CancelInstanceRefreshOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CancelInstanceRefreshInput) *autoscaling.CancelInstanceRefreshOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CancelInstanceRefreshOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CancelInstanceRefreshInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelInstanceRefreshRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CancelInstanceRefreshRequest(_a0 *autoscaling.CancelInstanceRefreshInput) (*request.Request, *autoscaling.CancelInstanceRefreshOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.CancelInstanceRefreshOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.CancelInstanceRefreshInput) (*request.Request, *autoscaling.CancelInstanceRefreshOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CancelInstanceRefreshInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CancelInstanceRefreshInput) *autoscaling.CancelInstanceRefreshOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.CancelInstanceRefreshOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelInstanceRefreshWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) CancelInstanceRefreshWithContext(_a0 context.Context, _a1 *autoscaling.CancelInstanceRefreshInput, _a2 ...request.Option) (*autoscaling.CancelInstanceRefreshOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.CancelInstanceRefreshOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CancelInstanceRefreshInput, ...request.Option) (*autoscaling.CancelInstanceRefreshOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CancelInstanceRefreshInput, ...request.Option) *autoscaling.CancelInstanceRefreshOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CancelInstanceRefreshOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.CancelInstanceRefreshInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteLifecycleAction provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CompleteLifecycleAction(_a0 *autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.CompleteLifecycleActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CompleteLifecycleActionInput) *autoscaling.CompleteLifecycleActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CompleteLifecycleActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CompleteLifecycleActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteLifecycleActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CompleteLifecycleActionRequest(_a0 *autoscaling.CompleteLifecycleActionInput) (*request.Request, *autoscaling.CompleteLifecycleActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.CompleteLifecycleActionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.CompleteLifecycleActionInput) (*request.Request, *autoscaling.CompleteLifecycleActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CompleteLifecycleActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CompleteLifecycleActionInput) *autoscaling.CompleteLifecycleActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.CompleteLifecycleActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CompleteLifecycleActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) CompleteLifecycleActionWithContext(_a0 context.Context, _a1 *autoscaling.CompleteLifecycleActionInput, _a2 ...request.Option) (*autoscaling.CompleteLifecycleActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.CompleteLifecycleActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CompleteLifecycleActionInput, ...request.Option) (*autoscaling.CompleteLifecycleActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CompleteLifecycleActionInput, ...request.Option) *autoscaling.CompleteLifecycleActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CompleteLifecycleActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.CompleteLifecycleActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAutoScalingGroup provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateAutoScalingGroup(_a0 *autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.CreateAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateAutoScalingGroupInput) *autoscaling.CreateAutoScalingGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateAutoScalingGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAutoScalingGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateAutoScalingGroupRequest(_a0 *autoscaling.CreateAutoScalingGroupInput) (*request.Request, *autoscaling.CreateAutoScalingGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.CreateAutoScalingGroupOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateAutoScalingGroupInput) (*request.Request, *autoscaling.CreateAutoScalingGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateAutoScalingGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateAutoScalingGroupInput) *autoscaling.CreateAutoScalingGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.CreateAutoScalingGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAutoScalingGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) CreateAutoScalingGroupWithContext(_a0 context.Context, _a1 *autoscaling.CreateAutoScalingGroupInput, _a2 ...request.Option) (*autoscaling.CreateAutoScalingGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.CreateAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateAutoScalingGroupInput, ...request.Option) (*autoscaling.CreateAutoScalingGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateAutoScalingGroupInput, ...request.Option) *autoscaling.CreateAutoScalingGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.CreateAutoScalingGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateLaunchConfiguration(_a0 *autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.CreateLaunchConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateLaunchConfigurationInput) *autoscaling.CreateLaunchConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateLaunchConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateLaunchConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateLaunchConfigurationRequest(_a0 *autoscaling.CreateLaunchConfigurationInput) (*request.Request, *autoscaling.CreateLaunchConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.CreateLaunchConfigurationOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateLaunchConfigurationInput) (*request.Request, *autoscaling.CreateLaunchConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateLaunchConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateLaunchConfigurationInput) *autoscaling.CreateLaunchConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.CreateLaunchConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLaunchConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) CreateLaunchConfigurationWithContext(_a0 context.Context, _a1 *autoscaling.CreateLaunchConfigurationInput, _a2 ...request.Option) (*autoscaling.CreateLaunchConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.CreateLaunchConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateLaunchConfigurationInput, ...request.Option) (*autoscaling.CreateLaunchConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateLaunchConfigurationInput, ...request.Option) *autoscaling.CreateLaunchConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateLaunchConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.CreateLaunchConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOrUpdateTags provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateOrUpdateTags(_a0 *autoscaling.CreateOrUpdateTagsInput) (*autoscaling.CreateOrUpdateTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.CreateOrUpdateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateOrUpdateTagsInput) (*autoscaling.CreateOrUpdateTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateOrUpdateTagsInput) *autoscaling.CreateOrUpdateTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateOrUpdateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateOrUpdateTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOrUpdateTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) CreateOrUpdateTagsRequest(_a0 *autoscaling.CreateOrUpdateTagsInput) (*request.Request, *autoscaling.CreateOrUpdateTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.CreateOrUpdateTagsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateOrUpdateTagsInput) (*request.Request, *autoscaling.CreateOrUpdateTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.CreateOrUpdateTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.CreateOrUpdateTagsInput) *autoscaling.CreateOrUpdateTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.CreateOrUpdateTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateOrUpdateTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) CreateOrUpdateTagsWithContext(_a0 context.Context, _a1 *autoscaling.CreateOrUpdateTagsInput, _a2 ...request.Option) (*autoscaling.CreateOrUpdateTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.CreateOrUpdateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateOrUpdateTagsInput, ...request.Option) (*autoscaling.CreateOrUpdateTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.CreateOrUpdateTagsInput, ...request.Option) *autoscaling.CreateOrUpdateTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.CreateOrUpdateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.CreateOrUpdateTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAutoScalingGroup provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteAutoScalingGroup(_a0 *autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteAutoScalingGroupInput) *autoscaling.DeleteAutoScalingGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteAutoScalingGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAutoScalingGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteAutoScalingGroupRequest(_a0 *autoscaling.DeleteAutoScalingGroupInput) (*request.Request, *autoscaling.DeleteAutoScalingGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteAutoScalingGroupOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteAutoScalingGroupInput) (*request.Request, *autoscaling.DeleteAutoScalingGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteAutoScalingGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteAutoScalingGroupInput) *autoscaling.DeleteAutoScalingGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteAutoScalingGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAutoScalingGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteAutoScalingGroupWithContext(_a0 context.Context, _a1 *autoscaling.DeleteAutoScalingGroupInput, _a2 ...request.Option) (*autoscaling.DeleteAutoScalingGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteAutoScalingGroupInput, ...request.Option) (*autoscaling.DeleteAutoScalingGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteAutoScalingGroupInput, ...request.Option) *autoscaling.DeleteAutoScalingGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteAutoScalingGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteLaunchConfiguration(_a0 *autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteLaunchConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLaunchConfigurationInput) *autoscaling.DeleteLaunchConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteLaunchConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteLaunchConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteLaunchConfigurationRequest(_a0 *autoscaling.DeleteLaunchConfigurationInput) (*request.Request, *autoscaling.DeleteLaunchConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteLaunchConfigurationOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLaunchConfigurationInput) (*request.Request, *autoscaling.DeleteLaunchConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLaunchConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteLaunchConfigurationInput) *autoscaling.DeleteLaunchConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteLaunchConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLaunchConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteLaunchConfigurationWithContext(_a0 context.Context, _a1 *autoscaling.DeleteLaunchConfigurationInput, _a2 ...request.Option) (*autoscaling.DeleteLaunchConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteLaunchConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteLaunchConfigurationInput, ...request.Option) (*autoscaling.DeleteLaunchConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteLaunchConfigurationInput, ...request.Option) *autoscaling.DeleteLaunchConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteLaunchConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteLaunchConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLifecycleHook provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteLifecycleHook(_a0 *autoscaling.DeleteLifecycleHookInput) (*autoscaling.DeleteLifecycleHookOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteLifecycleHookOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLifecycleHookInput) (*autoscaling.DeleteLifecycleHookOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLifecycleHookInput) *autoscaling.DeleteLifecycleHookOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteLifecycleHookOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteLifecycleHookInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLifecycleHookRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteLifecycleHookRequest(_a0 *autoscaling.DeleteLifecycleHookInput) (*request.Request, *autoscaling.DeleteLifecycleHookOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteLifecycleHookOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLifecycleHookInput) (*request.Request, *autoscaling.DeleteLifecycleHookOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteLifecycleHookInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteLifecycleHookInput) *autoscaling.DeleteLifecycleHookOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteLifecycleHookOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLifecycleHookWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteLifecycleHookWithContext(_a0 context.Context, _a1 *autoscaling.DeleteLifecycleHookInput, _a2 ...request.Option) (*autoscaling.DeleteLifecycleHookOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteLifecycleHookOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteLifecycleHookInput, ...request.Option) (*autoscaling.DeleteLifecycleHookOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteLifecycleHookInput, ...request.Option) *autoscaling.DeleteLifecycleHookOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteLifecycleHookOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteLifecycleHookInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNotificationConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteNotificationConfiguration(_a0 *autoscaling.DeleteNotificationConfigurationInput) (*autoscaling.DeleteNotificationConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteNotificationConfigurationInput) (*autoscaling.DeleteNotificationConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteNotificationConfigurationInput) *autoscaling.DeleteNotificationConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteNotificationConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNotificationConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteNotificationConfigurationRequest(_a0 *autoscaling.DeleteNotificationConfigurationInput) (*request.Request, *autoscaling.DeleteNotificationConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteNotificationConfigurationOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteNotificationConfigurationInput) (*request.Request, *autoscaling.DeleteNotificationConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteNotificationConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteNotificationConfigurationInput) *autoscaling.DeleteNotificationConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteNotificationConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNotificationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteNotificationConfigurationWithContext(_a0 context.Context, _a1 *autoscaling.DeleteNotificationConfigurationInput, _a2 ...request.Option) (*autoscaling.DeleteNotificationConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteNotificationConfigurationInput, ...request.Option) (*autoscaling.DeleteNotificationConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteNotificationConfigurationInput, ...request.Option) *autoscaling.DeleteNotificationConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteNotificationConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeletePolicy(_a0 *autoscaling.DeletePolicyInput) (*autoscaling.DeletePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeletePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeletePolicyInput) (*autoscaling.DeletePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeletePolicyInput) *autoscaling.DeletePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeletePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeletePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeletePolicyRequest(_a0 *autoscaling.DeletePolicyInput) (*request.Request, *autoscaling.DeletePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeletePolicyOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeletePolicyInput) (*request.Request, *autoscaling.DeletePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeletePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeletePolicyInput) *autoscaling.DeletePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeletePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeletePolicyWithContext(_a0 context.Context, _a1 *autoscaling.DeletePolicyInput, _a2 ...request.Option) (*autoscaling.DeletePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeletePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeletePolicyInput, ...request.Option) (*autoscaling.DeletePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeletePolicyInput, ...request.Option) *autoscaling.DeletePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeletePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeletePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteScheduledAction provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteScheduledAction(_a0 *autoscaling.DeleteScheduledActionInput) (*autoscaling.DeleteScheduledActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteScheduledActionInput) (*autoscaling.DeleteScheduledActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteScheduledActionInput) *autoscaling.DeleteScheduledActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteScheduledActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteScheduledActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteScheduledActionRequest(_a0 *autoscaling.DeleteScheduledActionInput) (*request.Request, *autoscaling.DeleteScheduledActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteScheduledActionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteScheduledActionInput) (*request.Request, *autoscaling.DeleteScheduledActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteScheduledActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteScheduledActionInput) *autoscaling.DeleteScheduledActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteScheduledActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteScheduledActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteScheduledActionWithContext(_a0 context.Context, _a1 *autoscaling.DeleteScheduledActionInput, _a2 ...request.Option) (*autoscaling.DeleteScheduledActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteScheduledActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteScheduledActionInput, ...request.Option) (*autoscaling.DeleteScheduledActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteScheduledActionInput, ...request.Option) *autoscaling.DeleteScheduledActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteScheduledActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteScheduledActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTags provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteTags(_a0 *autoscaling.DeleteTagsInput) (*autoscaling.DeleteTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteTagsInput) (*autoscaling.DeleteTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteTagsInput) *autoscaling.DeleteTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteTagsRequest(_a0 *autoscaling.DeleteTagsInput) (*request.Request, *autoscaling.DeleteTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteTagsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteTagsInput) (*request.Request, *autoscaling.DeleteTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteTagsInput) *autoscaling.DeleteTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteTagsWithContext(_a0 context.Context, _a1 *autoscaling.DeleteTagsInput, _a2 ...request.Option) (*autoscaling.DeleteTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteTagsInput, ...request.Option) (*autoscaling.DeleteTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteTagsInput, ...request.Option) *autoscaling.DeleteTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteWarmPool provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteWarmPool(_a0 *autoscaling.DeleteWarmPoolInput) (*autoscaling.DeleteWarmPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DeleteWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteWarmPoolInput) (*autoscaling.DeleteWarmPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteWarmPoolInput) *autoscaling.DeleteWarmPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteWarmPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteWarmPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DeleteWarmPoolRequest(_a0 *autoscaling.DeleteWarmPoolInput) (*request.Request, *autoscaling.DeleteWarmPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DeleteWarmPoolOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteWarmPoolInput) (*request.Request, *autoscaling.DeleteWarmPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DeleteWarmPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DeleteWarmPoolInput) *autoscaling.DeleteWarmPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DeleteWarmPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteWarmPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DeleteWarmPoolWithContext(_a0 context.Context, _a1 *autoscaling.DeleteWarmPoolInput, _a2 ...request.Option) (*autoscaling.DeleteWarmPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DeleteWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteWarmPoolInput, ...request.Option) (*autoscaling.DeleteWarmPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DeleteWarmPoolInput, ...request.Option) *autoscaling.DeleteWarmPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DeleteWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DeleteWarmPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimits provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAccountLimits(_a0 *autoscaling.DescribeAccountLimitsInput) (*autoscaling.DescribeAccountLimitsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAccountLimitsInput) (*autoscaling.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAccountLimitsInput) *autoscaling.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAccountLimitsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAccountLimitsRequest(_a0 *autoscaling.DescribeAccountLimitsInput) (*request.Request, *autoscaling.DescribeAccountLimitsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeAccountLimitsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAccountLimitsInput) (*request.Request, *autoscaling.DescribeAccountLimitsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAccountLimitsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAccountLimitsInput) *autoscaling.DescribeAccountLimitsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeAccountLimitsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeAccountLimitsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAccountLimitsInput, _a2 ...request.Option) (*autoscaling.DescribeAccountLimitsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAccountLimitsInput, ...request.Option) (*autoscaling.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAccountLimitsInput, ...request.Option) *autoscaling.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeAccountLimitsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAdjustmentTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAdjustmentTypes(_a0 *autoscaling.DescribeAdjustmentTypesInput) (*autoscaling.DescribeAdjustmentTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeAdjustmentTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAdjustmentTypesInput) (*autoscaling.DescribeAdjustmentTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAdjustmentTypesInput) *autoscaling.DescribeAdjustmentTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAdjustmentTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAdjustmentTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAdjustmentTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAdjustmentTypesRequest(_a0 *autoscaling.DescribeAdjustmentTypesInput) (*request.Request, *autoscaling.DescribeAdjustmentTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeAdjustmentTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAdjustmentTypesInput) (*request.Request, *autoscaling.DescribeAdjustmentTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAdjustmentTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAdjustmentTypesInput) *autoscaling.DescribeAdjustmentTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeAdjustmentTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAdjustmentTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeAdjustmentTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAdjustmentTypesInput, _a2 ...request.Option) (*autoscaling.DescribeAdjustmentTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeAdjustmentTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAdjustmentTypesInput, ...request.Option) (*autoscaling.DescribeAdjustmentTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAdjustmentTypesInput, ...request.Option) *autoscaling.DescribeAdjustmentTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAdjustmentTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeAdjustmentTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingGroups provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingGroups(_a0 *autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeAutoScalingGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) *autoscaling.DescribeAutoScalingGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeAutoScalingGroupsPages(_a0 *autoscaling.DescribeAutoScalingGroupsInput, _a1 func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput, func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAutoScalingGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeAutoScalingGroupsPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingGroupsInput, _a2 func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAutoScalingGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingGroupsRequest(_a0 *autoscaling.DescribeAutoScalingGroupsInput) (*request.Request, *autoscaling.DescribeAutoScalingGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeAutoScalingGroupsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) (*request.Request, *autoscaling.DescribeAutoScalingGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingGroupsInput) *autoscaling.DescribeAutoScalingGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeAutoScalingGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeAutoScalingGroupsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingGroupsInput, _a2 ...request.Option) (*autoscaling.DescribeAutoScalingGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeAutoScalingGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.Option) (*autoscaling.DescribeAutoScalingGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.Option) *autoscaling.DescribeAutoScalingGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingInstances provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingInstances(_a0 *autoscaling.DescribeAutoScalingInstancesInput) (*autoscaling.DescribeAutoScalingInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeAutoScalingInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingInstancesInput) (*autoscaling.DescribeAutoScalingInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingInstancesInput) *autoscaling.DescribeAutoScalingInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeAutoScalingInstancesPages(_a0 *autoscaling.DescribeAutoScalingInstancesInput, _a1 func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingInstancesInput, func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAutoScalingInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeAutoScalingInstancesPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingInstancesInput, _a2 func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingInstancesInput, func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAutoScalingInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingInstancesRequest(_a0 *autoscaling.DescribeAutoScalingInstancesInput) (*request.Request, *autoscaling.DescribeAutoScalingInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeAutoScalingInstancesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingInstancesInput) (*request.Request, *autoscaling.DescribeAutoScalingInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingInstancesInput) *autoscaling.DescribeAutoScalingInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeAutoScalingInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeAutoScalingInstancesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingInstancesInput, _a2 ...request.Option) (*autoscaling.DescribeAutoScalingInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeAutoScalingInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingInstancesInput, ...request.Option) (*autoscaling.DescribeAutoScalingInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingInstancesInput, ...request.Option) *autoscaling.DescribeAutoScalingInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeAutoScalingInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingNotificationTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingNotificationTypes(_a0 *autoscaling.DescribeAutoScalingNotificationTypesInput) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeAutoScalingNotificationTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) *autoscaling.DescribeAutoScalingNotificationTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingNotificationTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingNotificationTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeAutoScalingNotificationTypesRequest(_a0 *autoscaling.DescribeAutoScalingNotificationTypesInput) (*request.Request, *autoscaling.DescribeAutoScalingNotificationTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeAutoScalingNotificationTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) (*request.Request, *autoscaling.DescribeAutoScalingNotificationTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeAutoScalingNotificationTypesInput) *autoscaling.DescribeAutoScalingNotificationTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeAutoScalingNotificationTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAutoScalingNotificationTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeAutoScalingNotificationTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingNotificationTypesInput, _a2 ...request.Option) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeAutoScalingNotificationTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingNotificationTypesInput, ...request.Option) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingNotificationTypesInput, ...request.Option) *autoscaling.DescribeAutoScalingNotificationTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeAutoScalingNotificationTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeAutoScalingNotificationTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceRefreshes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeInstanceRefreshes(_a0 *autoscaling.DescribeInstanceRefreshesInput) (*autoscaling.DescribeInstanceRefreshesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeInstanceRefreshesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeInstanceRefreshesInput) (*autoscaling.DescribeInstanceRefreshesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeInstanceRefreshesInput) *autoscaling.DescribeInstanceRefreshesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeInstanceRefreshesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeInstanceRefreshesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceRefreshesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeInstanceRefreshesRequest(_a0 *autoscaling.DescribeInstanceRefreshesInput) (*request.Request, *autoscaling.DescribeInstanceRefreshesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeInstanceRefreshesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeInstanceRefreshesInput) (*request.Request, *autoscaling.DescribeInstanceRefreshesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeInstanceRefreshesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeInstanceRefreshesInput) *autoscaling.DescribeInstanceRefreshesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeInstanceRefreshesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceRefreshesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeInstanceRefreshesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeInstanceRefreshesInput, _a2 ...request.Option) (*autoscaling.DescribeInstanceRefreshesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeInstanceRefreshesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeInstanceRefreshesInput, ...request.Option) (*autoscaling.DescribeInstanceRefreshesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeInstanceRefreshesInput, ...request.Option) *autoscaling.DescribeInstanceRefreshesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeInstanceRefreshesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeInstanceRefreshesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLaunchConfigurations(_a0 *autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeLaunchConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLaunchConfigurationsInput) *autoscaling.DescribeLaunchConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLaunchConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLaunchConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchConfigurationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeLaunchConfigurationsPages(_a0 *autoscaling.DescribeLaunchConfigurationsInput, _a1 func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLaunchConfigurationsInput, func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchConfigurationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeLaunchConfigurationsPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLaunchConfigurationsInput, _a2 func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLaunchConfigurationsInput, func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLaunchConfigurationsRequest(_a0 *autoscaling.DescribeLaunchConfigurationsInput) (*request.Request, *autoscaling.DescribeLaunchConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeLaunchConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLaunchConfigurationsInput) (*request.Request, *autoscaling.DescribeLaunchConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLaunchConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLaunchConfigurationsInput) *autoscaling.DescribeLaunchConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeLaunchConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLaunchConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeLaunchConfigurationsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLaunchConfigurationsInput, _a2 ...request.Option) (*autoscaling.DescribeLaunchConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeLaunchConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLaunchConfigurationsInput, ...request.Option) (*autoscaling.DescribeLaunchConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLaunchConfigurationsInput, ...request.Option) *autoscaling.DescribeLaunchConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLaunchConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeLaunchConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHookTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLifecycleHookTypes(_a0 *autoscaling.DescribeLifecycleHookTypesInput) (*autoscaling.DescribeLifecycleHookTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeLifecycleHookTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHookTypesInput) (*autoscaling.DescribeLifecycleHookTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHookTypesInput) *autoscaling.DescribeLifecycleHookTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLifecycleHookTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLifecycleHookTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHookTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLifecycleHookTypesRequest(_a0 *autoscaling.DescribeLifecycleHookTypesInput) (*request.Request, *autoscaling.DescribeLifecycleHookTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeLifecycleHookTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHookTypesInput) (*request.Request, *autoscaling.DescribeLifecycleHookTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHookTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLifecycleHookTypesInput) *autoscaling.DescribeLifecycleHookTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeLifecycleHookTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHookTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeLifecycleHookTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLifecycleHookTypesInput, _a2 ...request.Option) (*autoscaling.DescribeLifecycleHookTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeLifecycleHookTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLifecycleHookTypesInput, ...request.Option) (*autoscaling.DescribeLifecycleHookTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLifecycleHookTypesInput, ...request.Option) *autoscaling.DescribeLifecycleHookTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLifecycleHookTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeLifecycleHookTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHooks provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLifecycleHooks(_a0 *autoscaling.DescribeLifecycleHooksInput) (*autoscaling.DescribeLifecycleHooksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeLifecycleHooksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHooksInput) (*autoscaling.DescribeLifecycleHooksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHooksInput) *autoscaling.DescribeLifecycleHooksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLifecycleHooksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLifecycleHooksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHooksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLifecycleHooksRequest(_a0 *autoscaling.DescribeLifecycleHooksInput) (*request.Request, *autoscaling.DescribeLifecycleHooksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeLifecycleHooksOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHooksInput) (*request.Request, *autoscaling.DescribeLifecycleHooksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLifecycleHooksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLifecycleHooksInput) *autoscaling.DescribeLifecycleHooksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeLifecycleHooksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLifecycleHooksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeLifecycleHooksWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLifecycleHooksInput, _a2 ...request.Option) (*autoscaling.DescribeLifecycleHooksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeLifecycleHooksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLifecycleHooksInput, ...request.Option) (*autoscaling.DescribeLifecycleHooksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLifecycleHooksInput, ...request.Option) *autoscaling.DescribeLifecycleHooksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLifecycleHooksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeLifecycleHooksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerTargetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLoadBalancerTargetGroups(_a0 *autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) *autoscaling.DescribeLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerTargetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLoadBalancerTargetGroupsRequest(_a0 *autoscaling.DescribeLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DescribeLoadBalancerTargetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeLoadBalancerTargetGroupsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DescribeLoadBalancerTargetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLoadBalancerTargetGroupsInput) *autoscaling.DescribeLoadBalancerTargetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeLoadBalancerTargetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeLoadBalancerTargetGroupsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLoadBalancerTargetGroupsInput, _a2 ...request.Option) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLoadBalancerTargetGroupsInput, ...request.Option) *autoscaling.DescribeLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeLoadBalancerTargetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancers provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLoadBalancers(_a0 *autoscaling.DescribeLoadBalancersInput) (*autoscaling.DescribeLoadBalancersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancersInput) (*autoscaling.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancersInput) *autoscaling.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLoadBalancersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeLoadBalancersRequest(_a0 *autoscaling.DescribeLoadBalancersInput) (*request.Request, *autoscaling.DescribeLoadBalancersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeLoadBalancersOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancersInput) (*request.Request, *autoscaling.DescribeLoadBalancersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeLoadBalancersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeLoadBalancersInput) *autoscaling.DescribeLoadBalancersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeLoadBalancersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeLoadBalancersWithContext(_a0 context.Context, _a1 *autoscaling.DescribeLoadBalancersInput, _a2 ...request.Option) (*autoscaling.DescribeLoadBalancersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLoadBalancersInput, ...request.Option) (*autoscaling.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeLoadBalancersInput, ...request.Option) *autoscaling.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeLoadBalancersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMetricCollectionTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeMetricCollectionTypes(_a0 *autoscaling.DescribeMetricCollectionTypesInput) (*autoscaling.DescribeMetricCollectionTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeMetricCollectionTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeMetricCollectionTypesInput) (*autoscaling.DescribeMetricCollectionTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeMetricCollectionTypesInput) *autoscaling.DescribeMetricCollectionTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeMetricCollectionTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeMetricCollectionTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMetricCollectionTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeMetricCollectionTypesRequest(_a0 *autoscaling.DescribeMetricCollectionTypesInput) (*request.Request, *autoscaling.DescribeMetricCollectionTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeMetricCollectionTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeMetricCollectionTypesInput) (*request.Request, *autoscaling.DescribeMetricCollectionTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeMetricCollectionTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeMetricCollectionTypesInput) *autoscaling.DescribeMetricCollectionTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeMetricCollectionTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeMetricCollectionTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeMetricCollectionTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeMetricCollectionTypesInput, _a2 ...request.Option) (*autoscaling.DescribeMetricCollectionTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeMetricCollectionTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeMetricCollectionTypesInput, ...request.Option) (*autoscaling.DescribeMetricCollectionTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeMetricCollectionTypesInput, ...request.Option) *autoscaling.DescribeMetricCollectionTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeMetricCollectionTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeMetricCollectionTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNotificationConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeNotificationConfigurations(_a0 *autoscaling.DescribeNotificationConfigurationsInput) (*autoscaling.DescribeNotificationConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeNotificationConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeNotificationConfigurationsInput) (*autoscaling.DescribeNotificationConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeNotificationConfigurationsInput) *autoscaling.DescribeNotificationConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeNotificationConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeNotificationConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNotificationConfigurationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeNotificationConfigurationsPages(_a0 *autoscaling.DescribeNotificationConfigurationsInput, _a1 func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeNotificationConfigurationsInput, func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNotificationConfigurationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeNotificationConfigurationsPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeNotificationConfigurationsInput, _a2 func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeNotificationConfigurationsInput, func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNotificationConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeNotificationConfigurationsRequest(_a0 *autoscaling.DescribeNotificationConfigurationsInput) (*request.Request, *autoscaling.DescribeNotificationConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeNotificationConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeNotificationConfigurationsInput) (*request.Request, *autoscaling.DescribeNotificationConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeNotificationConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeNotificationConfigurationsInput) *autoscaling.DescribeNotificationConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeNotificationConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNotificationConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeNotificationConfigurationsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeNotificationConfigurationsInput, _a2 ...request.Option) (*autoscaling.DescribeNotificationConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeNotificationConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeNotificationConfigurationsInput, ...request.Option) (*autoscaling.DescribeNotificationConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeNotificationConfigurationsInput, ...request.Option) *autoscaling.DescribeNotificationConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeNotificationConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeNotificationConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePolicies provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribePolicies(_a0 *autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribePoliciesInput) *autoscaling.DescribePoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribePoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribePoliciesPages(_a0 *autoscaling.DescribePoliciesInput, _a1 func(*autoscaling.DescribePoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribePoliciesInput, func(*autoscaling.DescribePoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribePoliciesPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribePoliciesInput, _a2 func(*autoscaling.DescribePoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribePoliciesInput, func(*autoscaling.DescribePoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribePoliciesRequest(_a0 *autoscaling.DescribePoliciesInput) (*request.Request, *autoscaling.DescribePoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribePoliciesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribePoliciesInput) (*request.Request, *autoscaling.DescribePoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribePoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribePoliciesInput) *autoscaling.DescribePoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribePoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribePoliciesWithContext(_a0 context.Context, _a1 *autoscaling.DescribePoliciesInput, _a2 ...request.Option) (*autoscaling.DescribePoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribePoliciesInput, ...request.Option) (*autoscaling.DescribePoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribePoliciesInput, ...request.Option) *autoscaling.DescribePoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribePoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivities provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScalingActivities(_a0 *autoscaling.DescribeScalingActivitiesInput) (*autoscaling.DescribeScalingActivitiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeScalingActivitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingActivitiesInput) (*autoscaling.DescribeScalingActivitiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingActivitiesInput) *autoscaling.DescribeScalingActivitiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScalingActivitiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivitiesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeScalingActivitiesPages(_a0 *autoscaling.DescribeScalingActivitiesInput, _a1 func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingActivitiesInput, func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingActivitiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeScalingActivitiesPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeScalingActivitiesInput, _a2 func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScalingActivitiesInput, func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScalingActivitiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScalingActivitiesRequest(_a0 *autoscaling.DescribeScalingActivitiesInput) (*request.Request, *autoscaling.DescribeScalingActivitiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeScalingActivitiesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingActivitiesInput) (*request.Request, *autoscaling.DescribeScalingActivitiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingActivitiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScalingActivitiesInput) *autoscaling.DescribeScalingActivitiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScalingActivitiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeScalingActivitiesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeScalingActivitiesInput, _a2 ...request.Option) (*autoscaling.DescribeScalingActivitiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeScalingActivitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScalingActivitiesInput, ...request.Option) (*autoscaling.DescribeScalingActivitiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScalingActivitiesInput, ...request.Option) *autoscaling.DescribeScalingActivitiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScalingActivitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeScalingActivitiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingProcessTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScalingProcessTypes(_a0 *autoscaling.DescribeScalingProcessTypesInput) (*autoscaling.DescribeScalingProcessTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeScalingProcessTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingProcessTypesInput) (*autoscaling.DescribeScalingProcessTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingProcessTypesInput) *autoscaling.DescribeScalingProcessTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScalingProcessTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScalingProcessTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScalingProcessTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScalingProcessTypesRequest(_a0 *autoscaling.DescribeScalingProcessTypesInput) (*request.Request, *autoscaling.DescribeScalingProcessTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeScalingProcessTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingProcessTypesInput) (*request.Request, *autoscaling.DescribeScalingProcessTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScalingProcessTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScalingProcessTypesInput) *autoscaling.DescribeScalingProcessTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeScalingProcessTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScalingProcessTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeScalingProcessTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeScalingProcessTypesInput, _a2 ...request.Option) (*autoscaling.DescribeScalingProcessTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeScalingProcessTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScalingProcessTypesInput, ...request.Option) (*autoscaling.DescribeScalingProcessTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScalingProcessTypesInput, ...request.Option) *autoscaling.DescribeScalingProcessTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScalingProcessTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeScalingProcessTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActions provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScheduledActions(_a0 *autoscaling.DescribeScheduledActionsInput) (*autoscaling.DescribeScheduledActionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeScheduledActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScheduledActionsInput) (*autoscaling.DescribeScheduledActionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScheduledActionsInput) *autoscaling.DescribeScheduledActionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScheduledActionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeScheduledActionsPages(_a0 *autoscaling.DescribeScheduledActionsInput, _a1 func(*autoscaling.DescribeScheduledActionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScheduledActionsInput, func(*autoscaling.DescribeScheduledActionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledActionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeScheduledActionsPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeScheduledActionsInput, _a2 func(*autoscaling.DescribeScheduledActionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScheduledActionsInput, func(*autoscaling.DescribeScheduledActionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledActionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeScheduledActionsRequest(_a0 *autoscaling.DescribeScheduledActionsInput) (*request.Request, *autoscaling.DescribeScheduledActionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeScheduledActionsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScheduledActionsInput) (*request.Request, *autoscaling.DescribeScheduledActionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeScheduledActionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeScheduledActionsInput) *autoscaling.DescribeScheduledActionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScheduledActionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeScheduledActionsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeScheduledActionsInput, _a2 ...request.Option) (*autoscaling.DescribeScheduledActionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeScheduledActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScheduledActionsInput, ...request.Option) (*autoscaling.DescribeScheduledActionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeScheduledActionsInput, ...request.Option) *autoscaling.DescribeScheduledActionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeScheduledActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeScheduledActionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTags provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeTags(_a0 *autoscaling.DescribeTagsInput) (*autoscaling.DescribeTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTagsInput) (*autoscaling.DescribeTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTagsInput) *autoscaling.DescribeTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTagsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeAutoscaling) DescribeTagsPages(_a0 *autoscaling.DescribeTagsInput, _a1 func(*autoscaling.DescribeTagsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTagsInput, func(*autoscaling.DescribeTagsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeAutoscaling) DescribeTagsPagesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeTagsInput, _a2 func(*autoscaling.DescribeTagsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeTagsInput, func(*autoscaling.DescribeTagsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeTagsRequest(_a0 *autoscaling.DescribeTagsInput) (*request.Request, *autoscaling.DescribeTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeTagsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTagsInput) (*request.Request, *autoscaling.DescribeTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeTagsInput) *autoscaling.DescribeTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeTagsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeTagsInput, _a2 ...request.Option) (*autoscaling.DescribeTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeTagsInput, ...request.Option) (*autoscaling.DescribeTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeTagsInput, ...request.Option) *autoscaling.DescribeTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTerminationPolicyTypes provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeTerminationPolicyTypes(_a0 *autoscaling.DescribeTerminationPolicyTypesInput) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeTerminationPolicyTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTerminationPolicyTypesInput) (*autoscaling.DescribeTerminationPolicyTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTerminationPolicyTypesInput) *autoscaling.DescribeTerminationPolicyTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeTerminationPolicyTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeTerminationPolicyTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTerminationPolicyTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeTerminationPolicyTypesRequest(_a0 *autoscaling.DescribeTerminationPolicyTypesInput) (*request.Request, *autoscaling.DescribeTerminationPolicyTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeTerminationPolicyTypesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTerminationPolicyTypesInput) (*request.Request, *autoscaling.DescribeTerminationPolicyTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeTerminationPolicyTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeTerminationPolicyTypesInput) *autoscaling.DescribeTerminationPolicyTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeTerminationPolicyTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTerminationPolicyTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeTerminationPolicyTypesWithContext(_a0 context.Context, _a1 *autoscaling.DescribeTerminationPolicyTypesInput, _a2 ...request.Option) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeTerminationPolicyTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeTerminationPolicyTypesInput, ...request.Option) (*autoscaling.DescribeTerminationPolicyTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeTerminationPolicyTypesInput, ...request.Option) *autoscaling.DescribeTerminationPolicyTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeTerminationPolicyTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeTerminationPolicyTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeWarmPool provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeWarmPool(_a0 *autoscaling.DescribeWarmPoolInput) (*autoscaling.DescribeWarmPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DescribeWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeWarmPoolInput) (*autoscaling.DescribeWarmPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeWarmPoolInput) *autoscaling.DescribeWarmPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeWarmPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeWarmPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DescribeWarmPoolRequest(_a0 *autoscaling.DescribeWarmPoolInput) (*request.Request, *autoscaling.DescribeWarmPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DescribeWarmPoolOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeWarmPoolInput) (*request.Request, *autoscaling.DescribeWarmPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeWarmPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DescribeWarmPoolInput) *autoscaling.DescribeWarmPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DescribeWarmPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeWarmPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DescribeWarmPoolWithContext(_a0 context.Context, _a1 *autoscaling.DescribeWarmPoolInput, _a2 ...request.Option) (*autoscaling.DescribeWarmPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DescribeWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeWarmPoolInput, ...request.Option) (*autoscaling.DescribeWarmPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeWarmPoolInput, ...request.Option) *autoscaling.DescribeWarmPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DescribeWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DescribeWarmPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachInstances provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachInstances(_a0 *autoscaling.DetachInstancesInput) (*autoscaling.DetachInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DetachInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachInstancesInput) (*autoscaling.DetachInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachInstancesInput) *autoscaling.DetachInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachInstancesRequest(_a0 *autoscaling.DetachInstancesInput) (*request.Request, *autoscaling.DetachInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DetachInstancesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachInstancesInput) (*request.Request, *autoscaling.DetachInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachInstancesInput) *autoscaling.DetachInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DetachInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DetachInstancesWithContext(_a0 context.Context, _a1 *autoscaling.DetachInstancesInput, _a2 ...request.Option) (*autoscaling.DetachInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DetachInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachInstancesInput, ...request.Option) (*autoscaling.DetachInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachInstancesInput, ...request.Option) *autoscaling.DetachInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DetachInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerTargetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachLoadBalancerTargetGroups(_a0 *autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DetachLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) *autoscaling.DetachLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerTargetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachLoadBalancerTargetGroupsRequest(_a0 *autoscaling.DetachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DetachLoadBalancerTargetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DetachLoadBalancerTargetGroupsOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DetachLoadBalancerTargetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachLoadBalancerTargetGroupsInput) *autoscaling.DetachLoadBalancerTargetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DetachLoadBalancerTargetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DetachLoadBalancerTargetGroupsWithContext(_a0 context.Context, _a1 *autoscaling.DetachLoadBalancerTargetGroupsInput, _a2 ...request.Option) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DetachLoadBalancerTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachLoadBalancerTargetGroupsInput, ...request.Option) *autoscaling.DetachLoadBalancerTargetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachLoadBalancerTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DetachLoadBalancerTargetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancers provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachLoadBalancers(_a0 *autoscaling.DetachLoadBalancersInput) (*autoscaling.DetachLoadBalancersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DetachLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancersInput) (*autoscaling.DetachLoadBalancersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancersInput) *autoscaling.DetachLoadBalancersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachLoadBalancersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DetachLoadBalancersRequest(_a0 *autoscaling.DetachLoadBalancersInput) (*request.Request, *autoscaling.DetachLoadBalancersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DetachLoadBalancersOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancersInput) (*request.Request, *autoscaling.DetachLoadBalancersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DetachLoadBalancersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DetachLoadBalancersInput) *autoscaling.DetachLoadBalancersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DetachLoadBalancersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DetachLoadBalancersWithContext(_a0 context.Context, _a1 *autoscaling.DetachLoadBalancersInput, _a2 ...request.Option) (*autoscaling.DetachLoadBalancersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DetachLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachLoadBalancersInput, ...request.Option) (*autoscaling.DetachLoadBalancersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DetachLoadBalancersInput, ...request.Option) *autoscaling.DetachLoadBalancersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DetachLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DetachLoadBalancersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableMetricsCollection provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DisableMetricsCollection(_a0 *autoscaling.DisableMetricsCollectionInput) (*autoscaling.DisableMetricsCollectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.DisableMetricsCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DisableMetricsCollectionInput) (*autoscaling.DisableMetricsCollectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DisableMetricsCollectionInput) *autoscaling.DisableMetricsCollectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DisableMetricsCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DisableMetricsCollectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableMetricsCollectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) DisableMetricsCollectionRequest(_a0 *autoscaling.DisableMetricsCollectionInput) (*request.Request, *autoscaling.DisableMetricsCollectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.DisableMetricsCollectionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.DisableMetricsCollectionInput) (*request.Request, *autoscaling.DisableMetricsCollectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.DisableMetricsCollectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.DisableMetricsCollectionInput) *autoscaling.DisableMetricsCollectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.DisableMetricsCollectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableMetricsCollectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) DisableMetricsCollectionWithContext(_a0 context.Context, _a1 *autoscaling.DisableMetricsCollectionInput, _a2 ...request.Option) (*autoscaling.DisableMetricsCollectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.DisableMetricsCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DisableMetricsCollectionInput, ...request.Option) (*autoscaling.DisableMetricsCollectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DisableMetricsCollectionInput, ...request.Option) *autoscaling.DisableMetricsCollectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.DisableMetricsCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.DisableMetricsCollectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableMetricsCollection provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) EnableMetricsCollection(_a0 *autoscaling.EnableMetricsCollectionInput) (*autoscaling.EnableMetricsCollectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.EnableMetricsCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.EnableMetricsCollectionInput) (*autoscaling.EnableMetricsCollectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.EnableMetricsCollectionInput) *autoscaling.EnableMetricsCollectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.EnableMetricsCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.EnableMetricsCollectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableMetricsCollectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) EnableMetricsCollectionRequest(_a0 *autoscaling.EnableMetricsCollectionInput) (*request.Request, *autoscaling.EnableMetricsCollectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.EnableMetricsCollectionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.EnableMetricsCollectionInput) (*request.Request, *autoscaling.EnableMetricsCollectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.EnableMetricsCollectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.EnableMetricsCollectionInput) *autoscaling.EnableMetricsCollectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.EnableMetricsCollectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableMetricsCollectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) EnableMetricsCollectionWithContext(_a0 context.Context, _a1 *autoscaling.EnableMetricsCollectionInput, _a2 ...request.Option) (*autoscaling.EnableMetricsCollectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.EnableMetricsCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.EnableMetricsCollectionInput, ...request.Option) (*autoscaling.EnableMetricsCollectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.EnableMetricsCollectionInput, ...request.Option) *autoscaling.EnableMetricsCollectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.EnableMetricsCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.EnableMetricsCollectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnterStandby provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) EnterStandby(_a0 *autoscaling.EnterStandbyInput) (*autoscaling.EnterStandbyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.EnterStandbyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.EnterStandbyInput) (*autoscaling.EnterStandbyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.EnterStandbyInput) *autoscaling.EnterStandbyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.EnterStandbyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.EnterStandbyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnterStandbyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) EnterStandbyRequest(_a0 *autoscaling.EnterStandbyInput) (*request.Request, *autoscaling.EnterStandbyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.EnterStandbyOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.EnterStandbyInput) (*request.Request, *autoscaling.EnterStandbyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.EnterStandbyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.EnterStandbyInput) *autoscaling.EnterStandbyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.EnterStandbyOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnterStandbyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) EnterStandbyWithContext(_a0 context.Context, _a1 *autoscaling.EnterStandbyInput, _a2 ...request.Option) (*autoscaling.EnterStandbyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.EnterStandbyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.EnterStandbyInput, ...request.Option) (*autoscaling.EnterStandbyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.EnterStandbyInput, ...request.Option) *autoscaling.EnterStandbyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.EnterStandbyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.EnterStandbyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecutePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ExecutePolicy(_a0 *autoscaling.ExecutePolicyInput) (*autoscaling.ExecutePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.ExecutePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.ExecutePolicyInput) (*autoscaling.ExecutePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ExecutePolicyInput) *autoscaling.ExecutePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ExecutePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ExecutePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecutePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ExecutePolicyRequest(_a0 *autoscaling.ExecutePolicyInput) (*request.Request, *autoscaling.ExecutePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.ExecutePolicyOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.ExecutePolicyInput) (*request.Request, *autoscaling.ExecutePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ExecutePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ExecutePolicyInput) *autoscaling.ExecutePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.ExecutePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExecutePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) ExecutePolicyWithContext(_a0 context.Context, _a1 *autoscaling.ExecutePolicyInput, _a2 ...request.Option) (*autoscaling.ExecutePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.ExecutePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ExecutePolicyInput, ...request.Option) (*autoscaling.ExecutePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ExecutePolicyInput, ...request.Option) *autoscaling.ExecutePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ExecutePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.ExecutePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExitStandby provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ExitStandby(_a0 *autoscaling.ExitStandbyInput) (*autoscaling.ExitStandbyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.ExitStandbyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.ExitStandbyInput) (*autoscaling.ExitStandbyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ExitStandbyInput) *autoscaling.ExitStandbyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ExitStandbyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ExitStandbyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExitStandbyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ExitStandbyRequest(_a0 *autoscaling.ExitStandbyInput) (*request.Request, *autoscaling.ExitStandbyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.ExitStandbyOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.ExitStandbyInput) (*request.Request, *autoscaling.ExitStandbyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ExitStandbyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ExitStandbyInput) *autoscaling.ExitStandbyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.ExitStandbyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExitStandbyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) ExitStandbyWithContext(_a0 context.Context, _a1 *autoscaling.ExitStandbyInput, _a2 ...request.Option) (*autoscaling.ExitStandbyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.ExitStandbyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ExitStandbyInput, ...request.Option) (*autoscaling.ExitStandbyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ExitStandbyInput, ...request.Option) *autoscaling.ExitStandbyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ExitStandbyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.ExitStandbyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPredictiveScalingForecast provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) GetPredictiveScalingForecast(_a0 *autoscaling.GetPredictiveScalingForecastInput) (*autoscaling.GetPredictiveScalingForecastOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.GetPredictiveScalingForecastOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.GetPredictiveScalingForecastInput) (*autoscaling.GetPredictiveScalingForecastOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.GetPredictiveScalingForecastInput) *autoscaling.GetPredictiveScalingForecastOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.GetPredictiveScalingForecastOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.GetPredictiveScalingForecastInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPredictiveScalingForecastRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) GetPredictiveScalingForecastRequest(_a0 *autoscaling.GetPredictiveScalingForecastInput) (*request.Request, *autoscaling.GetPredictiveScalingForecastOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.GetPredictiveScalingForecastOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.GetPredictiveScalingForecastInput) (*request.Request, *autoscaling.GetPredictiveScalingForecastOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.GetPredictiveScalingForecastInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.GetPredictiveScalingForecastInput) *autoscaling.GetPredictiveScalingForecastOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.GetPredictiveScalingForecastOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPredictiveScalingForecastWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) GetPredictiveScalingForecastWithContext(_a0 context.Context, _a1 *autoscaling.GetPredictiveScalingForecastInput, _a2 ...request.Option) (*autoscaling.GetPredictiveScalingForecastOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.GetPredictiveScalingForecastOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.GetPredictiveScalingForecastInput, ...request.Option) (*autoscaling.GetPredictiveScalingForecastOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.GetPredictiveScalingForecastInput, ...request.Option) *autoscaling.GetPredictiveScalingForecastOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.GetPredictiveScalingForecastOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.GetPredictiveScalingForecastInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutLifecycleHook provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutLifecycleHook(_a0 *autoscaling.PutLifecycleHookInput) (*autoscaling.PutLifecycleHookOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.PutLifecycleHookOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.PutLifecycleHookInput) (*autoscaling.PutLifecycleHookOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutLifecycleHookInput) *autoscaling.PutLifecycleHookOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutLifecycleHookOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutLifecycleHookInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutLifecycleHookRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutLifecycleHookRequest(_a0 *autoscaling.PutLifecycleHookInput) (*request.Request, *autoscaling.PutLifecycleHookOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.PutLifecycleHookOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.PutLifecycleHookInput) (*request.Request, *autoscaling.PutLifecycleHookOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutLifecycleHookInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutLifecycleHookInput) *autoscaling.PutLifecycleHookOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.PutLifecycleHookOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutLifecycleHookWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) PutLifecycleHookWithContext(_a0 context.Context, _a1 *autoscaling.PutLifecycleHookInput, _a2 ...request.Option) (*autoscaling.PutLifecycleHookOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.PutLifecycleHookOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutLifecycleHookInput, ...request.Option) (*autoscaling.PutLifecycleHookOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutLifecycleHookInput, ...request.Option) *autoscaling.PutLifecycleHookOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutLifecycleHookOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.PutLifecycleHookInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutNotificationConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutNotificationConfiguration(_a0 *autoscaling.PutNotificationConfigurationInput) (*autoscaling.PutNotificationConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.PutNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.PutNotificationConfigurationInput) (*autoscaling.PutNotificationConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutNotificationConfigurationInput) *autoscaling.PutNotificationConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutNotificationConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutNotificationConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutNotificationConfigurationRequest(_a0 *autoscaling.PutNotificationConfigurationInput) (*request.Request, *autoscaling.PutNotificationConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.PutNotificationConfigurationOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.PutNotificationConfigurationInput) (*request.Request, *autoscaling.PutNotificationConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutNotificationConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutNotificationConfigurationInput) *autoscaling.PutNotificationConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.PutNotificationConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutNotificationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) PutNotificationConfigurationWithContext(_a0 context.Context, _a1 *autoscaling.PutNotificationConfigurationInput, _a2 ...request.Option) (*autoscaling.PutNotificationConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.PutNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutNotificationConfigurationInput, ...request.Option) (*autoscaling.PutNotificationConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutNotificationConfigurationInput, ...request.Option) *autoscaling.PutNotificationConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.PutNotificationConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScalingPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutScalingPolicy(_a0 *autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.PutScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScalingPolicyInput) *autoscaling.PutScalingPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutScalingPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScalingPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutScalingPolicyRequest(_a0 *autoscaling.PutScalingPolicyInput) (*request.Request, *autoscaling.PutScalingPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.PutScalingPolicyOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScalingPolicyInput) (*request.Request, *autoscaling.PutScalingPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScalingPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutScalingPolicyInput) *autoscaling.PutScalingPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.PutScalingPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutScalingPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) PutScalingPolicyWithContext(_a0 context.Context, _a1 *autoscaling.PutScalingPolicyInput, _a2 ...request.Option) (*autoscaling.PutScalingPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.PutScalingPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutScalingPolicyInput, ...request.Option) (*autoscaling.PutScalingPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutScalingPolicyInput, ...request.Option) *autoscaling.PutScalingPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutScalingPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.PutScalingPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScheduledUpdateGroupAction provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutScheduledUpdateGroupAction(_a0 *autoscaling.PutScheduledUpdateGroupActionInput) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.PutScheduledUpdateGroupActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScheduledUpdateGroupActionInput) (*autoscaling.PutScheduledUpdateGroupActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScheduledUpdateGroupActionInput) *autoscaling.PutScheduledUpdateGroupActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutScheduledUpdateGroupActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutScheduledUpdateGroupActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutScheduledUpdateGroupActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutScheduledUpdateGroupActionRequest(_a0 *autoscaling.PutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.PutScheduledUpdateGroupActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.PutScheduledUpdateGroupActionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.PutScheduledUpdateGroupActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutScheduledUpdateGroupActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutScheduledUpdateGroupActionInput) *autoscaling.PutScheduledUpdateGroupActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.PutScheduledUpdateGroupActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutScheduledUpdateGroupActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) PutScheduledUpdateGroupActionWithContext(_a0 context.Context, _a1 *autoscaling.PutScheduledUpdateGroupActionInput, _a2 ...request.Option) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.PutScheduledUpdateGroupActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutScheduledUpdateGroupActionInput, ...request.Option) (*autoscaling.PutScheduledUpdateGroupActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutScheduledUpdateGroupActionInput, ...request.Option) *autoscaling.PutScheduledUpdateGroupActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutScheduledUpdateGroupActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.PutScheduledUpdateGroupActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutWarmPool provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutWarmPool(_a0 *autoscaling.PutWarmPoolInput) (*autoscaling.PutWarmPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.PutWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.PutWarmPoolInput) (*autoscaling.PutWarmPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutWarmPoolInput) *autoscaling.PutWarmPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutWarmPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutWarmPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) PutWarmPoolRequest(_a0 *autoscaling.PutWarmPoolInput) (*request.Request, *autoscaling.PutWarmPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.PutWarmPoolOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.PutWarmPoolInput) (*request.Request, *autoscaling.PutWarmPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.PutWarmPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.PutWarmPoolInput) *autoscaling.PutWarmPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.PutWarmPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutWarmPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) PutWarmPoolWithContext(_a0 context.Context, _a1 *autoscaling.PutWarmPoolInput, _a2 ...request.Option) (*autoscaling.PutWarmPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.PutWarmPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutWarmPoolInput, ...request.Option) (*autoscaling.PutWarmPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.PutWarmPoolInput, ...request.Option) *autoscaling.PutWarmPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.PutWarmPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.PutWarmPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RecordLifecycleActionHeartbeat provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) RecordLifecycleActionHeartbeat(_a0 *autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.RecordLifecycleActionHeartbeatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) *autoscaling.RecordLifecycleActionHeartbeatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.RecordLifecycleActionHeartbeatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RecordLifecycleActionHeartbeatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) RecordLifecycleActionHeartbeatRequest(_a0 *autoscaling.RecordLifecycleActionHeartbeatInput) (*request.Request, *autoscaling.RecordLifecycleActionHeartbeatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.RecordLifecycleActionHeartbeatOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) (*request.Request, *autoscaling.RecordLifecycleActionHeartbeatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.RecordLifecycleActionHeartbeatInput) *autoscaling.RecordLifecycleActionHeartbeatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.RecordLifecycleActionHeartbeatOutput)
- }
- }
-
- return r0, r1
-}
-
-// RecordLifecycleActionHeartbeatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) RecordLifecycleActionHeartbeatWithContext(_a0 context.Context, _a1 *autoscaling.RecordLifecycleActionHeartbeatInput, _a2 ...request.Option) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.RecordLifecycleActionHeartbeatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.RecordLifecycleActionHeartbeatInput, ...request.Option) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.RecordLifecycleActionHeartbeatInput, ...request.Option) *autoscaling.RecordLifecycleActionHeartbeatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.RecordLifecycleActionHeartbeatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.RecordLifecycleActionHeartbeatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResumeProcesses provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ResumeProcesses(_a0 *autoscaling.ScalingProcessQuery) (*autoscaling.ResumeProcessesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.ResumeProcessesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) (*autoscaling.ResumeProcessesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) *autoscaling.ResumeProcessesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ResumeProcessesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ScalingProcessQuery) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResumeProcessesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) ResumeProcessesRequest(_a0 *autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.ResumeProcessesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.ResumeProcessesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.ResumeProcessesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ScalingProcessQuery) *autoscaling.ResumeProcessesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.ResumeProcessesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResumeProcessesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) ResumeProcessesWithContext(_a0 context.Context, _a1 *autoscaling.ScalingProcessQuery, _a2 ...request.Option) (*autoscaling.ResumeProcessesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.ResumeProcessesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) (*autoscaling.ResumeProcessesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) *autoscaling.ResumeProcessesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.ResumeProcessesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetDesiredCapacity provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetDesiredCapacity(_a0 *autoscaling.SetDesiredCapacityInput) (*autoscaling.SetDesiredCapacityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.SetDesiredCapacityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.SetDesiredCapacityInput) (*autoscaling.SetDesiredCapacityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetDesiredCapacityInput) *autoscaling.SetDesiredCapacityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetDesiredCapacityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetDesiredCapacityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetDesiredCapacityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetDesiredCapacityRequest(_a0 *autoscaling.SetDesiredCapacityInput) (*request.Request, *autoscaling.SetDesiredCapacityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.SetDesiredCapacityOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.SetDesiredCapacityInput) (*request.Request, *autoscaling.SetDesiredCapacityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetDesiredCapacityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetDesiredCapacityInput) *autoscaling.SetDesiredCapacityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.SetDesiredCapacityOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetDesiredCapacityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) SetDesiredCapacityWithContext(_a0 context.Context, _a1 *autoscaling.SetDesiredCapacityInput, _a2 ...request.Option) (*autoscaling.SetDesiredCapacityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.SetDesiredCapacityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetDesiredCapacityInput, ...request.Option) (*autoscaling.SetDesiredCapacityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetDesiredCapacityInput, ...request.Option) *autoscaling.SetDesiredCapacityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetDesiredCapacityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.SetDesiredCapacityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetInstanceHealth provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetInstanceHealth(_a0 *autoscaling.SetInstanceHealthInput) (*autoscaling.SetInstanceHealthOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.SetInstanceHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceHealthInput) (*autoscaling.SetInstanceHealthOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceHealthInput) *autoscaling.SetInstanceHealthOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetInstanceHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetInstanceHealthInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetInstanceHealthRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetInstanceHealthRequest(_a0 *autoscaling.SetInstanceHealthInput) (*request.Request, *autoscaling.SetInstanceHealthOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.SetInstanceHealthOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceHealthInput) (*request.Request, *autoscaling.SetInstanceHealthOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceHealthInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetInstanceHealthInput) *autoscaling.SetInstanceHealthOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.SetInstanceHealthOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetInstanceHealthWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) SetInstanceHealthWithContext(_a0 context.Context, _a1 *autoscaling.SetInstanceHealthInput, _a2 ...request.Option) (*autoscaling.SetInstanceHealthOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.SetInstanceHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetInstanceHealthInput, ...request.Option) (*autoscaling.SetInstanceHealthOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetInstanceHealthInput, ...request.Option) *autoscaling.SetInstanceHealthOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetInstanceHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.SetInstanceHealthInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetInstanceProtection provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetInstanceProtection(_a0 *autoscaling.SetInstanceProtectionInput) (*autoscaling.SetInstanceProtectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.SetInstanceProtectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceProtectionInput) (*autoscaling.SetInstanceProtectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceProtectionInput) *autoscaling.SetInstanceProtectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetInstanceProtectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetInstanceProtectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetInstanceProtectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SetInstanceProtectionRequest(_a0 *autoscaling.SetInstanceProtectionInput) (*request.Request, *autoscaling.SetInstanceProtectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.SetInstanceProtectionOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceProtectionInput) (*request.Request, *autoscaling.SetInstanceProtectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.SetInstanceProtectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.SetInstanceProtectionInput) *autoscaling.SetInstanceProtectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.SetInstanceProtectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetInstanceProtectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) SetInstanceProtectionWithContext(_a0 context.Context, _a1 *autoscaling.SetInstanceProtectionInput, _a2 ...request.Option) (*autoscaling.SetInstanceProtectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.SetInstanceProtectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetInstanceProtectionInput, ...request.Option) (*autoscaling.SetInstanceProtectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.SetInstanceProtectionInput, ...request.Option) *autoscaling.SetInstanceProtectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SetInstanceProtectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.SetInstanceProtectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartInstanceRefresh provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) StartInstanceRefresh(_a0 *autoscaling.StartInstanceRefreshInput) (*autoscaling.StartInstanceRefreshOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.StartInstanceRefreshOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.StartInstanceRefreshInput) (*autoscaling.StartInstanceRefreshOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.StartInstanceRefreshInput) *autoscaling.StartInstanceRefreshOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.StartInstanceRefreshOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.StartInstanceRefreshInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartInstanceRefreshRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) StartInstanceRefreshRequest(_a0 *autoscaling.StartInstanceRefreshInput) (*request.Request, *autoscaling.StartInstanceRefreshOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.StartInstanceRefreshOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.StartInstanceRefreshInput) (*request.Request, *autoscaling.StartInstanceRefreshOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.StartInstanceRefreshInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.StartInstanceRefreshInput) *autoscaling.StartInstanceRefreshOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.StartInstanceRefreshOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartInstanceRefreshWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) StartInstanceRefreshWithContext(_a0 context.Context, _a1 *autoscaling.StartInstanceRefreshInput, _a2 ...request.Option) (*autoscaling.StartInstanceRefreshOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.StartInstanceRefreshOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.StartInstanceRefreshInput, ...request.Option) (*autoscaling.StartInstanceRefreshOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.StartInstanceRefreshInput, ...request.Option) *autoscaling.StartInstanceRefreshOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.StartInstanceRefreshOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.StartInstanceRefreshInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SuspendProcesses provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SuspendProcesses(_a0 *autoscaling.ScalingProcessQuery) (*autoscaling.SuspendProcessesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.SuspendProcessesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) (*autoscaling.SuspendProcessesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) *autoscaling.SuspendProcessesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SuspendProcessesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ScalingProcessQuery) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SuspendProcessesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) SuspendProcessesRequest(_a0 *autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.SuspendProcessesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.SuspendProcessesOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.SuspendProcessesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.ScalingProcessQuery) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.ScalingProcessQuery) *autoscaling.SuspendProcessesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.SuspendProcessesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SuspendProcessesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) SuspendProcessesWithContext(_a0 context.Context, _a1 *autoscaling.ScalingProcessQuery, _a2 ...request.Option) (*autoscaling.SuspendProcessesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.SuspendProcessesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) (*autoscaling.SuspendProcessesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) *autoscaling.SuspendProcessesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.SuspendProcessesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.ScalingProcessQuery, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateInstanceInAutoScalingGroup provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) TerminateInstanceInAutoScalingGroup(_a0 *autoscaling.TerminateInstanceInAutoScalingGroupInput) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.TerminateInstanceInAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) *autoscaling.TerminateInstanceInAutoScalingGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.TerminateInstanceInAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateInstanceInAutoScalingGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) TerminateInstanceInAutoScalingGroupRequest(_a0 *autoscaling.TerminateInstanceInAutoScalingGroupInput) (*request.Request, *autoscaling.TerminateInstanceInAutoScalingGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.TerminateInstanceInAutoScalingGroupOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) (*request.Request, *autoscaling.TerminateInstanceInAutoScalingGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.TerminateInstanceInAutoScalingGroupInput) *autoscaling.TerminateInstanceInAutoScalingGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.TerminateInstanceInAutoScalingGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// TerminateInstanceInAutoScalingGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) TerminateInstanceInAutoScalingGroupWithContext(_a0 context.Context, _a1 *autoscaling.TerminateInstanceInAutoScalingGroupInput, _a2 ...request.Option) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.TerminateInstanceInAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.TerminateInstanceInAutoScalingGroupInput, ...request.Option) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.TerminateInstanceInAutoScalingGroupInput, ...request.Option) *autoscaling.TerminateInstanceInAutoScalingGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.TerminateInstanceInAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.TerminateInstanceInAutoScalingGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAutoScalingGroup provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) UpdateAutoScalingGroup(_a0 *autoscaling.UpdateAutoScalingGroupInput) (*autoscaling.UpdateAutoScalingGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *autoscaling.UpdateAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*autoscaling.UpdateAutoScalingGroupInput) (*autoscaling.UpdateAutoScalingGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.UpdateAutoScalingGroupInput) *autoscaling.UpdateAutoScalingGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.UpdateAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.UpdateAutoScalingGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAutoScalingGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) UpdateAutoScalingGroupRequest(_a0 *autoscaling.UpdateAutoScalingGroupInput) (*request.Request, *autoscaling.UpdateAutoScalingGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *autoscaling.UpdateAutoScalingGroupOutput
- if rf, ok := ret.Get(0).(func(*autoscaling.UpdateAutoScalingGroupInput) (*request.Request, *autoscaling.UpdateAutoScalingGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*autoscaling.UpdateAutoScalingGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*autoscaling.UpdateAutoScalingGroupInput) *autoscaling.UpdateAutoScalingGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*autoscaling.UpdateAutoScalingGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAutoScalingGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) UpdateAutoScalingGroupWithContext(_a0 context.Context, _a1 *autoscaling.UpdateAutoScalingGroupInput, _a2 ...request.Option) (*autoscaling.UpdateAutoScalingGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *autoscaling.UpdateAutoScalingGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.UpdateAutoScalingGroupInput, ...request.Option) (*autoscaling.UpdateAutoScalingGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.UpdateAutoScalingGroupInput, ...request.Option) *autoscaling.UpdateAutoScalingGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*autoscaling.UpdateAutoScalingGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *autoscaling.UpdateAutoScalingGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilGroupExists provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) WaitUntilGroupExists(_a0 *autoscaling.DescribeAutoScalingGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilGroupExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) WaitUntilGroupExistsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilGroupInService provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) WaitUntilGroupInService(_a0 *autoscaling.DescribeAutoScalingGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilGroupInServiceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) WaitUntilGroupInServiceWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilGroupNotExists provides a mock function with given fields: _a0
-func (_m *MockFakeAutoscaling) WaitUntilGroupNotExists(_a0 *autoscaling.DescribeAutoScalingGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*autoscaling.DescribeAutoScalingGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilGroupNotExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeAutoscaling) WaitUntilGroupNotExistsWithContext(_a0 context.Context, _a1 *autoscaling.DescribeAutoScalingGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeAutoscaling interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeAutoscaling creates a new instance of MockFakeAutoscaling. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeAutoscaling(t mockConstructorTestingTNewMockFakeAutoscaling) *MockFakeAutoscaling {
- mock := &MockFakeAutoscaling{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeCloudFront.go b/test/aws/mock_FakeCloudFront.go
deleted file mode 100644
index c06325397..000000000
--- a/test/aws/mock_FakeCloudFront.go
+++ /dev/null
@@ -1,8804 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- cloudfront "github.com/aws/aws-sdk-go/service/cloudfront"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeCloudFront is an autogenerated mock type for the FakeCloudFront type
-type MockFakeCloudFront struct {
- mock.Mock
-}
-
-// AssociateAlias provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) AssociateAlias(_a0 *cloudfront.AssociateAliasInput) (*cloudfront.AssociateAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.AssociateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.AssociateAliasInput) (*cloudfront.AssociateAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.AssociateAliasInput) *cloudfront.AssociateAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.AssociateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.AssociateAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) AssociateAliasRequest(_a0 *cloudfront.AssociateAliasInput) (*request.Request, *cloudfront.AssociateAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.AssociateAliasOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.AssociateAliasInput) (*request.Request, *cloudfront.AssociateAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.AssociateAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.AssociateAliasInput) *cloudfront.AssociateAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.AssociateAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) AssociateAliasWithContext(_a0 context.Context, _a1 *cloudfront.AssociateAliasInput, _a2 ...request.Option) (*cloudfront.AssociateAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.AssociateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.AssociateAliasInput, ...request.Option) (*cloudfront.AssociateAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.AssociateAliasInput, ...request.Option) *cloudfront.AssociateAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.AssociateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.AssociateAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCachePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateCachePolicy(_a0 *cloudfront.CreateCachePolicyInput) (*cloudfront.CreateCachePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCachePolicyInput) (*cloudfront.CreateCachePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCachePolicyInput) *cloudfront.CreateCachePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateCachePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCachePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateCachePolicyRequest(_a0 *cloudfront.CreateCachePolicyInput) (*request.Request, *cloudfront.CreateCachePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateCachePolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCachePolicyInput) (*request.Request, *cloudfront.CreateCachePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCachePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateCachePolicyInput) *cloudfront.CreateCachePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateCachePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.CreateCachePolicyInput, _a2 ...request.Option) (*cloudfront.CreateCachePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateCachePolicyInput, ...request.Option) (*cloudfront.CreateCachePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateCachePolicyInput, ...request.Option) *cloudfront.CreateCachePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateCachePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateCloudFrontOriginAccessIdentity(_a0 *cloudfront.CreateCloudFrontOriginAccessIdentityInput) (*cloudfront.CreateCloudFrontOriginAccessIdentityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) (*cloudfront.CreateCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) *cloudfront.CreateCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.CreateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.CreateCloudFrontOriginAccessIdentityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateCloudFrontOriginAccessIdentityOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.CreateCloudFrontOriginAccessIdentityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) *cloudfront.CreateCloudFrontOriginAccessIdentityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.CreateCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.CreateCloudFrontOriginAccessIdentityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.CreateCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.CreateCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateDistribution(_a0 *cloudfront.CreateDistributionInput) (*cloudfront.CreateDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionInput) (*cloudfront.CreateDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionInput) *cloudfront.CreateDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateDistributionRequest(_a0 *cloudfront.CreateDistributionInput) (*request.Request, *cloudfront.CreateDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionInput) (*request.Request, *cloudfront.CreateDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateDistributionInput) *cloudfront.CreateDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateDistributionWithContext(_a0 context.Context, _a1 *cloudfront.CreateDistributionInput, _a2 ...request.Option) (*cloudfront.CreateDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateDistributionInput, ...request.Option) (*cloudfront.CreateDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateDistributionInput, ...request.Option) *cloudfront.CreateDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDistributionWithTags provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateDistributionWithTags(_a0 *cloudfront.CreateDistributionWithTagsInput) (*cloudfront.CreateDistributionWithTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateDistributionWithTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionWithTagsInput) (*cloudfront.CreateDistributionWithTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionWithTagsInput) *cloudfront.CreateDistributionWithTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateDistributionWithTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateDistributionWithTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDistributionWithTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateDistributionWithTagsRequest(_a0 *cloudfront.CreateDistributionWithTagsInput) (*request.Request, *cloudfront.CreateDistributionWithTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateDistributionWithTagsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionWithTagsInput) (*request.Request, *cloudfront.CreateDistributionWithTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateDistributionWithTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateDistributionWithTagsInput) *cloudfront.CreateDistributionWithTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateDistributionWithTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDistributionWithTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateDistributionWithTagsWithContext(_a0 context.Context, _a1 *cloudfront.CreateDistributionWithTagsInput, _a2 ...request.Option) (*cloudfront.CreateDistributionWithTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateDistributionWithTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateDistributionWithTagsInput, ...request.Option) (*cloudfront.CreateDistributionWithTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateDistributionWithTagsInput, ...request.Option) *cloudfront.CreateDistributionWithTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateDistributionWithTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateDistributionWithTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionConfig(_a0 *cloudfront.CreateFieldLevelEncryptionConfigInput) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) *cloudfront.CreateFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionConfigRequest(_a0 *cloudfront.CreateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateFieldLevelEncryptionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFieldLevelEncryptionConfigInput) *cloudfront.CreateFieldLevelEncryptionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateFieldLevelEncryptionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.CreateFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.CreateFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionProfile provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionProfile(_a0 *cloudfront.CreateFieldLevelEncryptionProfileInput) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) *cloudfront.CreateFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionProfileRequest(_a0 *cloudfront.CreateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateFieldLevelEncryptionProfileOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFieldLevelEncryptionProfileInput) *cloudfront.CreateFieldLevelEncryptionProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateFieldLevelEncryptionProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.CreateFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.CreateFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateFieldLevelEncryptionProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFunction(_a0 *cloudfront.CreateFunctionInput) (*cloudfront.CreateFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) (*cloudfront.CreateFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) *cloudfront.CreateFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateFunctionRequest(_a0 *cloudfront.CreateFunctionInput) (*request.Request, *cloudfront.CreateFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) (*request.Request, *cloudfront.CreateFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateFunctionInput) *cloudfront.CreateFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateFunctionWithContext(_a0 context.Context, _a1 *cloudfront.CreateFunctionInput, _a2 ...request.Option) (*cloudfront.CreateFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFunctionInput, ...request.Option) (*cloudfront.CreateFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFunctionInput, ...request.Option) *cloudfront.CreateFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInvalidation provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateInvalidation(_a0 *cloudfront.CreateInvalidationInput) (*cloudfront.CreateInvalidationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateInvalidationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateInvalidationInput) (*cloudfront.CreateInvalidationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateInvalidationInput) *cloudfront.CreateInvalidationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateInvalidationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateInvalidationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInvalidationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateInvalidationRequest(_a0 *cloudfront.CreateInvalidationInput) (*request.Request, *cloudfront.CreateInvalidationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateInvalidationOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateInvalidationInput) (*request.Request, *cloudfront.CreateInvalidationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateInvalidationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateInvalidationInput) *cloudfront.CreateInvalidationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateInvalidationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateInvalidationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateInvalidationWithContext(_a0 context.Context, _a1 *cloudfront.CreateInvalidationInput, _a2 ...request.Option) (*cloudfront.CreateInvalidationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateInvalidationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateInvalidationInput, ...request.Option) (*cloudfront.CreateInvalidationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateInvalidationInput, ...request.Option) *cloudfront.CreateInvalidationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateInvalidationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateInvalidationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeyGroup provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateKeyGroup(_a0 *cloudfront.CreateKeyGroupInput) (*cloudfront.CreateKeyGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) (*cloudfront.CreateKeyGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) *cloudfront.CreateKeyGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateKeyGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeyGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateKeyGroupRequest(_a0 *cloudfront.CreateKeyGroupInput) (*request.Request, *cloudfront.CreateKeyGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateKeyGroupOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) (*request.Request, *cloudfront.CreateKeyGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateKeyGroupInput) *cloudfront.CreateKeyGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateKeyGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.CreateKeyGroupInput, _a2 ...request.Option) (*cloudfront.CreateKeyGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateKeyGroupInput, ...request.Option) (*cloudfront.CreateKeyGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateKeyGroupInput, ...request.Option) *cloudfront.CreateKeyGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateKeyGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMonitoringSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateMonitoringSubscription(_a0 *cloudfront.CreateMonitoringSubscriptionInput) (*cloudfront.CreateMonitoringSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) (*cloudfront.CreateMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) *cloudfront.CreateMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateMonitoringSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMonitoringSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateMonitoringSubscriptionRequest(_a0 *cloudfront.CreateMonitoringSubscriptionInput) (*request.Request, *cloudfront.CreateMonitoringSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateMonitoringSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) (*request.Request, *cloudfront.CreateMonitoringSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateMonitoringSubscriptionInput) *cloudfront.CreateMonitoringSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateMonitoringSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.CreateMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.CreateMonitoringSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateMonitoringSubscriptionInput, ...request.Option) (*cloudfront.CreateMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateMonitoringSubscriptionInput, ...request.Option) *cloudfront.CreateMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateMonitoringSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOriginAccessControl provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateOriginAccessControl(_a0 *cloudfront.CreateOriginAccessControlInput) (*cloudfront.CreateOriginAccessControlOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginAccessControlInput) (*cloudfront.CreateOriginAccessControlOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginAccessControlInput) *cloudfront.CreateOriginAccessControlOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateOriginAccessControlInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOriginAccessControlRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateOriginAccessControlRequest(_a0 *cloudfront.CreateOriginAccessControlInput) (*request.Request, *cloudfront.CreateOriginAccessControlOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateOriginAccessControlOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginAccessControlInput) (*request.Request, *cloudfront.CreateOriginAccessControlOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginAccessControlInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateOriginAccessControlInput) *cloudfront.CreateOriginAccessControlOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateOriginAccessControlOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateOriginAccessControlWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateOriginAccessControlWithContext(_a0 context.Context, _a1 *cloudfront.CreateOriginAccessControlInput, _a2 ...request.Option) (*cloudfront.CreateOriginAccessControlOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateOriginAccessControlInput, ...request.Option) (*cloudfront.CreateOriginAccessControlOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateOriginAccessControlInput, ...request.Option) *cloudfront.CreateOriginAccessControlOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateOriginAccessControlInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOriginRequestPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateOriginRequestPolicy(_a0 *cloudfront.CreateOriginRequestPolicyInput) (*cloudfront.CreateOriginRequestPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginRequestPolicyInput) (*cloudfront.CreateOriginRequestPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginRequestPolicyInput) *cloudfront.CreateOriginRequestPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateOriginRequestPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOriginRequestPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateOriginRequestPolicyRequest(_a0 *cloudfront.CreateOriginRequestPolicyInput) (*request.Request, *cloudfront.CreateOriginRequestPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateOriginRequestPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginRequestPolicyInput) (*request.Request, *cloudfront.CreateOriginRequestPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateOriginRequestPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateOriginRequestPolicyInput) *cloudfront.CreateOriginRequestPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateOriginRequestPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.CreateOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.CreateOriginRequestPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateOriginRequestPolicyInput, ...request.Option) (*cloudfront.CreateOriginRequestPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateOriginRequestPolicyInput, ...request.Option) *cloudfront.CreateOriginRequestPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateOriginRequestPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreatePublicKey(_a0 *cloudfront.CreatePublicKeyInput) (*cloudfront.CreatePublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreatePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreatePublicKeyInput) (*cloudfront.CreatePublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreatePublicKeyInput) *cloudfront.CreatePublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreatePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreatePublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreatePublicKeyRequest(_a0 *cloudfront.CreatePublicKeyInput) (*request.Request, *cloudfront.CreatePublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreatePublicKeyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreatePublicKeyInput) (*request.Request, *cloudfront.CreatePublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreatePublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreatePublicKeyInput) *cloudfront.CreatePublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreatePublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreatePublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.CreatePublicKeyInput, _a2 ...request.Option) (*cloudfront.CreatePublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreatePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreatePublicKeyInput, ...request.Option) (*cloudfront.CreatePublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreatePublicKeyInput, ...request.Option) *cloudfront.CreatePublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreatePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreatePublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRealtimeLogConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateRealtimeLogConfig(_a0 *cloudfront.CreateRealtimeLogConfigInput) (*cloudfront.CreateRealtimeLogConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) (*cloudfront.CreateRealtimeLogConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) *cloudfront.CreateRealtimeLogConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateRealtimeLogConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRealtimeLogConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateRealtimeLogConfigRequest(_a0 *cloudfront.CreateRealtimeLogConfigInput) (*request.Request, *cloudfront.CreateRealtimeLogConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateRealtimeLogConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) (*request.Request, *cloudfront.CreateRealtimeLogConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateRealtimeLogConfigInput) *cloudfront.CreateRealtimeLogConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateRealtimeLogConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.CreateRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.CreateRealtimeLogConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateRealtimeLogConfigInput, ...request.Option) (*cloudfront.CreateRealtimeLogConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateRealtimeLogConfigInput, ...request.Option) *cloudfront.CreateRealtimeLogConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateRealtimeLogConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateResponseHeadersPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateResponseHeadersPolicy(_a0 *cloudfront.CreateResponseHeadersPolicyInput) (*cloudfront.CreateResponseHeadersPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateResponseHeadersPolicyInput) (*cloudfront.CreateResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateResponseHeadersPolicyInput) *cloudfront.CreateResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateResponseHeadersPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateResponseHeadersPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateResponseHeadersPolicyRequest(_a0 *cloudfront.CreateResponseHeadersPolicyInput) (*request.Request, *cloudfront.CreateResponseHeadersPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateResponseHeadersPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateResponseHeadersPolicyInput) (*request.Request, *cloudfront.CreateResponseHeadersPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateResponseHeadersPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateResponseHeadersPolicyInput) *cloudfront.CreateResponseHeadersPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateResponseHeadersPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateResponseHeadersPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateResponseHeadersPolicyWithContext(_a0 context.Context, _a1 *cloudfront.CreateResponseHeadersPolicyInput, _a2 ...request.Option) (*cloudfront.CreateResponseHeadersPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateResponseHeadersPolicyInput, ...request.Option) (*cloudfront.CreateResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateResponseHeadersPolicyInput, ...request.Option) *cloudfront.CreateResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateResponseHeadersPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateStreamingDistribution(_a0 *cloudfront.CreateStreamingDistributionInput) (*cloudfront.CreateStreamingDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionInput) (*cloudfront.CreateStreamingDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionInput) *cloudfront.CreateStreamingDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateStreamingDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateStreamingDistributionRequest(_a0 *cloudfront.CreateStreamingDistributionInput) (*request.Request, *cloudfront.CreateStreamingDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateStreamingDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionInput) (*request.Request, *cloudfront.CreateStreamingDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateStreamingDistributionInput) *cloudfront.CreateStreamingDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateStreamingDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.CreateStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.CreateStreamingDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateStreamingDistributionInput, ...request.Option) (*cloudfront.CreateStreamingDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateStreamingDistributionInput, ...request.Option) *cloudfront.CreateStreamingDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateStreamingDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistributionWithTags provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateStreamingDistributionWithTags(_a0 *cloudfront.CreateStreamingDistributionWithTagsInput) (*cloudfront.CreateStreamingDistributionWithTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.CreateStreamingDistributionWithTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) (*cloudfront.CreateStreamingDistributionWithTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) *cloudfront.CreateStreamingDistributionWithTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateStreamingDistributionWithTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistributionWithTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) CreateStreamingDistributionWithTagsRequest(_a0 *cloudfront.CreateStreamingDistributionWithTagsInput) (*request.Request, *cloudfront.CreateStreamingDistributionWithTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.CreateStreamingDistributionWithTagsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) (*request.Request, *cloudfront.CreateStreamingDistributionWithTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.CreateStreamingDistributionWithTagsInput) *cloudfront.CreateStreamingDistributionWithTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.CreateStreamingDistributionWithTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStreamingDistributionWithTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) CreateStreamingDistributionWithTagsWithContext(_a0 context.Context, _a1 *cloudfront.CreateStreamingDistributionWithTagsInput, _a2 ...request.Option) (*cloudfront.CreateStreamingDistributionWithTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.CreateStreamingDistributionWithTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateStreamingDistributionWithTagsInput, ...request.Option) (*cloudfront.CreateStreamingDistributionWithTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateStreamingDistributionWithTagsInput, ...request.Option) *cloudfront.CreateStreamingDistributionWithTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.CreateStreamingDistributionWithTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateStreamingDistributionWithTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCachePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteCachePolicy(_a0 *cloudfront.DeleteCachePolicyInput) (*cloudfront.DeleteCachePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCachePolicyInput) (*cloudfront.DeleteCachePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCachePolicyInput) *cloudfront.DeleteCachePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteCachePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCachePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteCachePolicyRequest(_a0 *cloudfront.DeleteCachePolicyInput) (*request.Request, *cloudfront.DeleteCachePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteCachePolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCachePolicyInput) (*request.Request, *cloudfront.DeleteCachePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCachePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteCachePolicyInput) *cloudfront.DeleteCachePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteCachePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.DeleteCachePolicyInput, _a2 ...request.Option) (*cloudfront.DeleteCachePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteCachePolicyInput, ...request.Option) (*cloudfront.DeleteCachePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteCachePolicyInput, ...request.Option) *cloudfront.DeleteCachePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteCachePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteCloudFrontOriginAccessIdentity(_a0 *cloudfront.DeleteCloudFrontOriginAccessIdentityInput) (*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) (*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.DeleteCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.DeleteCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteDistribution(_a0 *cloudfront.DeleteDistributionInput) (*cloudfront.DeleteDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteDistributionInput) (*cloudfront.DeleteDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteDistributionInput) *cloudfront.DeleteDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteDistributionRequest(_a0 *cloudfront.DeleteDistributionInput) (*request.Request, *cloudfront.DeleteDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteDistributionInput) (*request.Request, *cloudfront.DeleteDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteDistributionInput) *cloudfront.DeleteDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteDistributionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteDistributionInput, _a2 ...request.Option) (*cloudfront.DeleteDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteDistributionInput, ...request.Option) (*cloudfront.DeleteDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteDistributionInput, ...request.Option) *cloudfront.DeleteDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionConfig(_a0 *cloudfront.DeleteFieldLevelEncryptionConfigInput) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) *cloudfront.DeleteFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionConfigRequest(_a0 *cloudfront.DeleteFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteFieldLevelEncryptionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFieldLevelEncryptionConfigInput) *cloudfront.DeleteFieldLevelEncryptionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteFieldLevelEncryptionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.DeleteFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.DeleteFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionProfile provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionProfile(_a0 *cloudfront.DeleteFieldLevelEncryptionProfileInput) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) *cloudfront.DeleteFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionProfileRequest(_a0 *cloudfront.DeleteFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteFieldLevelEncryptionProfileOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFieldLevelEncryptionProfileInput) *cloudfront.DeleteFieldLevelEncryptionProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteFieldLevelEncryptionProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.DeleteFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.DeleteFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteFieldLevelEncryptionProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFunction(_a0 *cloudfront.DeleteFunctionInput) (*cloudfront.DeleteFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) (*cloudfront.DeleteFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) *cloudfront.DeleteFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteFunctionRequest(_a0 *cloudfront.DeleteFunctionInput) (*request.Request, *cloudfront.DeleteFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) (*request.Request, *cloudfront.DeleteFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFunctionInput) *cloudfront.DeleteFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteFunctionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteFunctionInput, _a2 ...request.Option) (*cloudfront.DeleteFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFunctionInput, ...request.Option) (*cloudfront.DeleteFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFunctionInput, ...request.Option) *cloudfront.DeleteFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeyGroup provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteKeyGroup(_a0 *cloudfront.DeleteKeyGroupInput) (*cloudfront.DeleteKeyGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) (*cloudfront.DeleteKeyGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) *cloudfront.DeleteKeyGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteKeyGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeyGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteKeyGroupRequest(_a0 *cloudfront.DeleteKeyGroupInput) (*request.Request, *cloudfront.DeleteKeyGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteKeyGroupOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) (*request.Request, *cloudfront.DeleteKeyGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteKeyGroupInput) *cloudfront.DeleteKeyGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteKeyGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.DeleteKeyGroupInput, _a2 ...request.Option) (*cloudfront.DeleteKeyGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteKeyGroupInput, ...request.Option) (*cloudfront.DeleteKeyGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteKeyGroupInput, ...request.Option) *cloudfront.DeleteKeyGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteKeyGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMonitoringSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteMonitoringSubscription(_a0 *cloudfront.DeleteMonitoringSubscriptionInput) (*cloudfront.DeleteMonitoringSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) (*cloudfront.DeleteMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *cloudfront.DeleteMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteMonitoringSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMonitoringSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteMonitoringSubscriptionRequest(_a0 *cloudfront.DeleteMonitoringSubscriptionInput) (*request.Request, *cloudfront.DeleteMonitoringSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteMonitoringSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) (*request.Request, *cloudfront.DeleteMonitoringSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *cloudfront.DeleteMonitoringSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteMonitoringSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.DeleteMonitoringSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteMonitoringSubscriptionInput, ...request.Option) (*cloudfront.DeleteMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteMonitoringSubscriptionInput, ...request.Option) *cloudfront.DeleteMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteMonitoringSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOriginAccessControl provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteOriginAccessControl(_a0 *cloudfront.DeleteOriginAccessControlInput) (*cloudfront.DeleteOriginAccessControlOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginAccessControlInput) (*cloudfront.DeleteOriginAccessControlOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginAccessControlInput) *cloudfront.DeleteOriginAccessControlOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginAccessControlInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOriginAccessControlRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteOriginAccessControlRequest(_a0 *cloudfront.DeleteOriginAccessControlInput) (*request.Request, *cloudfront.DeleteOriginAccessControlOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteOriginAccessControlOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginAccessControlInput) (*request.Request, *cloudfront.DeleteOriginAccessControlOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginAccessControlInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginAccessControlInput) *cloudfront.DeleteOriginAccessControlOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteOriginAccessControlOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteOriginAccessControlWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteOriginAccessControlWithContext(_a0 context.Context, _a1 *cloudfront.DeleteOriginAccessControlInput, _a2 ...request.Option) (*cloudfront.DeleteOriginAccessControlOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginAccessControlInput, ...request.Option) (*cloudfront.DeleteOriginAccessControlOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginAccessControlInput, ...request.Option) *cloudfront.DeleteOriginAccessControlOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteOriginAccessControlInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOriginRequestPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteOriginRequestPolicy(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*cloudfront.DeleteOriginRequestPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) (*cloudfront.DeleteOriginRequestPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOriginRequestPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyRequest(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*request.Request, *cloudfront.DeleteOriginRequestPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteOriginRequestPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) (*request.Request, *cloudfront.DeleteOriginRequestPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteOriginRequestPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.DeleteOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.DeleteOriginRequestPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) (*cloudfront.DeleteOriginRequestPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) *cloudfront.DeleteOriginRequestPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeletePublicKey(_a0 *cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeletePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeletePublicKeyRequest(_a0 *cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeletePublicKeyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeletePublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeletePublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.DeletePublicKeyInput, _a2 ...request.Option) (*cloudfront.DeletePublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeletePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) (*cloudfront.DeletePublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) *cloudfront.DeletePublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRealtimeLogConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteRealtimeLogConfig(_a0 *cloudfront.DeleteRealtimeLogConfigInput) (*cloudfront.DeleteRealtimeLogConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) (*cloudfront.DeleteRealtimeLogConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) *cloudfront.DeleteRealtimeLogConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteRealtimeLogConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRealtimeLogConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteRealtimeLogConfigRequest(_a0 *cloudfront.DeleteRealtimeLogConfigInput) (*request.Request, *cloudfront.DeleteRealtimeLogConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteRealtimeLogConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) (*request.Request, *cloudfront.DeleteRealtimeLogConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteRealtimeLogConfigInput) *cloudfront.DeleteRealtimeLogConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteRealtimeLogConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.DeleteRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.DeleteRealtimeLogConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteRealtimeLogConfigInput, ...request.Option) (*cloudfront.DeleteRealtimeLogConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteRealtimeLogConfigInput, ...request.Option) *cloudfront.DeleteRealtimeLogConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteRealtimeLogConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteResponseHeadersPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteResponseHeadersPolicy(_a0 *cloudfront.DeleteResponseHeadersPolicyInput) (*cloudfront.DeleteResponseHeadersPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteResponseHeadersPolicyInput) (*cloudfront.DeleteResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteResponseHeadersPolicyInput) *cloudfront.DeleteResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteResponseHeadersPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteResponseHeadersPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteResponseHeadersPolicyRequest(_a0 *cloudfront.DeleteResponseHeadersPolicyInput) (*request.Request, *cloudfront.DeleteResponseHeadersPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteResponseHeadersPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteResponseHeadersPolicyInput) (*request.Request, *cloudfront.DeleteResponseHeadersPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteResponseHeadersPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteResponseHeadersPolicyInput) *cloudfront.DeleteResponseHeadersPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteResponseHeadersPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteResponseHeadersPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteResponseHeadersPolicyWithContext(_a0 context.Context, _a1 *cloudfront.DeleteResponseHeadersPolicyInput, _a2 ...request.Option) (*cloudfront.DeleteResponseHeadersPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteResponseHeadersPolicyInput, ...request.Option) (*cloudfront.DeleteResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteResponseHeadersPolicyInput, ...request.Option) *cloudfront.DeleteResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteResponseHeadersPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStreamingDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteStreamingDistribution(_a0 *cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DeleteStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStreamingDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DeleteStreamingDistributionRequest(_a0 *cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DeleteStreamingDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DeleteStreamingDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DeleteStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DeleteStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) *cloudfront.DeleteStreamingDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DescribeFunction(_a0 *cloudfront.DescribeFunctionInput) (*cloudfront.DescribeFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.DescribeFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) (*cloudfront.DescribeFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) *cloudfront.DescribeFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DescribeFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DescribeFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) DescribeFunctionRequest(_a0 *cloudfront.DescribeFunctionInput) (*request.Request, *cloudfront.DescribeFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.DescribeFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) (*request.Request, *cloudfront.DescribeFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.DescribeFunctionInput) *cloudfront.DescribeFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.DescribeFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) DescribeFunctionWithContext(_a0 context.Context, _a1 *cloudfront.DescribeFunctionInput, _a2 ...request.Option) (*cloudfront.DescribeFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.DescribeFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DescribeFunctionInput, ...request.Option) (*cloudfront.DescribeFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DescribeFunctionInput, ...request.Option) *cloudfront.DescribeFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.DescribeFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DescribeFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCachePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCachePolicy(_a0 *cloudfront.GetCachePolicyInput) (*cloudfront.GetCachePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) (*cloudfront.GetCachePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCachePolicyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCachePolicyConfig(_a0 *cloudfront.GetCachePolicyConfigInput) (*cloudfront.GetCachePolicyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetCachePolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) (*cloudfront.GetCachePolicyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCachePolicyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCachePolicyConfigRequest(_a0 *cloudfront.GetCachePolicyConfigInput) (*request.Request, *cloudfront.GetCachePolicyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetCachePolicyConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) (*request.Request, *cloudfront.GetCachePolicyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetCachePolicyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCachePolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetCachePolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetCachePolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) (*cloudfront.GetCachePolicyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) *cloudfront.GetCachePolicyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCachePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCachePolicyRequest(_a0 *cloudfront.GetCachePolicyInput) (*request.Request, *cloudfront.GetCachePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetCachePolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) (*request.Request, *cloudfront.GetCachePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetCachePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) (*cloudfront.GetCachePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) *cloudfront.GetCachePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentity(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentityConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfig(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentityConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentityConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetCloudFrontOriginAccessIdentityOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetDistribution(_a0 *cloudfront.GetDistributionInput) (*cloudfront.GetDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) (*cloudfront.GetDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDistributionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetDistributionConfig(_a0 *cloudfront.GetDistributionConfigInput) (*cloudfront.GetDistributionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetDistributionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) (*cloudfront.GetDistributionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDistributionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetDistributionConfigRequest(_a0 *cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetDistributionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetDistributionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetDistributionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetDistributionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) (*cloudfront.GetDistributionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) *cloudfront.GetDistributionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetDistributionRequest(_a0 *cloudfront.GetDistributionInput) (*request.Request, *cloudfront.GetDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) (*request.Request, *cloudfront.GetDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionInput, _a2 ...request.Option) (*cloudfront.GetDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) (*cloudfront.GetDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) *cloudfront.GetDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryption provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryption(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetFieldLevelEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfig(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetFieldLevelEncryptionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfile provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfile(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfileConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfig(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfileConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfileConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetFieldLevelEncryptionProfileOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionRequest(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetFieldLevelEncryptionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFieldLevelEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetFieldLevelEncryptionWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetFieldLevelEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFunction(_a0 *cloudfront.GetFunctionInput) (*cloudfront.GetFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) (*cloudfront.GetFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) *cloudfront.GetFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetFunctionRequest(_a0 *cloudfront.GetFunctionInput) (*request.Request, *cloudfront.GetFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) (*request.Request, *cloudfront.GetFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetFunctionInput) *cloudfront.GetFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetFunctionWithContext(_a0 context.Context, _a1 *cloudfront.GetFunctionInput, _a2 ...request.Option) (*cloudfront.GetFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFunctionInput, ...request.Option) (*cloudfront.GetFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFunctionInput, ...request.Option) *cloudfront.GetFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInvalidation provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetInvalidation(_a0 *cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetInvalidationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInvalidationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetInvalidationRequest(_a0 *cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetInvalidationOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetInvalidationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetInvalidationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetInvalidationWithContext(_a0 context.Context, _a1 *cloudfront.GetInvalidationInput, _a2 ...request.Option) (*cloudfront.GetInvalidationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetInvalidationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) (*cloudfront.GetInvalidationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) *cloudfront.GetInvalidationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyGroup provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetKeyGroup(_a0 *cloudfront.GetKeyGroupInput) (*cloudfront.GetKeyGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) (*cloudfront.GetKeyGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) *cloudfront.GetKeyGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyGroupConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetKeyGroupConfig(_a0 *cloudfront.GetKeyGroupConfigInput) (*cloudfront.GetKeyGroupConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetKeyGroupConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) (*cloudfront.GetKeyGroupConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) *cloudfront.GetKeyGroupConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetKeyGroupConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyGroupConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetKeyGroupConfigRequest(_a0 *cloudfront.GetKeyGroupConfigInput) (*request.Request, *cloudfront.GetKeyGroupConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetKeyGroupConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) (*request.Request, *cloudfront.GetKeyGroupConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupConfigInput) *cloudfront.GetKeyGroupConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetKeyGroupConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetKeyGroupConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetKeyGroupConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetKeyGroupConfigInput, _a2 ...request.Option) (*cloudfront.GetKeyGroupConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetKeyGroupConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupConfigInput, ...request.Option) (*cloudfront.GetKeyGroupConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupConfigInput, ...request.Option) *cloudfront.GetKeyGroupConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetKeyGroupConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetKeyGroupConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetKeyGroupRequest(_a0 *cloudfront.GetKeyGroupInput) (*request.Request, *cloudfront.GetKeyGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetKeyGroupOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) (*request.Request, *cloudfront.GetKeyGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupInput) *cloudfront.GetKeyGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetKeyGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.GetKeyGroupInput, _a2 ...request.Option) (*cloudfront.GetKeyGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupInput, ...request.Option) (*cloudfront.GetKeyGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupInput, ...request.Option) *cloudfront.GetKeyGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetKeyGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMonitoringSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetMonitoringSubscription(_a0 *cloudfront.GetMonitoringSubscriptionInput) (*cloudfront.GetMonitoringSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) (*cloudfront.GetMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) *cloudfront.GetMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetMonitoringSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMonitoringSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetMonitoringSubscriptionRequest(_a0 *cloudfront.GetMonitoringSubscriptionInput) (*request.Request, *cloudfront.GetMonitoringSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetMonitoringSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) (*request.Request, *cloudfront.GetMonitoringSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetMonitoringSubscriptionInput) *cloudfront.GetMonitoringSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetMonitoringSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.GetMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.GetMonitoringSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetMonitoringSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetMonitoringSubscriptionInput, ...request.Option) (*cloudfront.GetMonitoringSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetMonitoringSubscriptionInput, ...request.Option) *cloudfront.GetMonitoringSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetMonitoringSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetMonitoringSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControl provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginAccessControl(_a0 *cloudfront.GetOriginAccessControlInput) (*cloudfront.GetOriginAccessControlOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlInput) (*cloudfront.GetOriginAccessControlOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlInput) *cloudfront.GetOriginAccessControlOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginAccessControlInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControlConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginAccessControlConfig(_a0 *cloudfront.GetOriginAccessControlConfigInput) (*cloudfront.GetOriginAccessControlConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetOriginAccessControlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlConfigInput) (*cloudfront.GetOriginAccessControlConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlConfigInput) *cloudfront.GetOriginAccessControlConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginAccessControlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginAccessControlConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControlConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginAccessControlConfigRequest(_a0 *cloudfront.GetOriginAccessControlConfigInput) (*request.Request, *cloudfront.GetOriginAccessControlConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetOriginAccessControlConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlConfigInput) (*request.Request, *cloudfront.GetOriginAccessControlConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginAccessControlConfigInput) *cloudfront.GetOriginAccessControlConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetOriginAccessControlConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControlConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetOriginAccessControlConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginAccessControlConfigInput, _a2 ...request.Option) (*cloudfront.GetOriginAccessControlConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetOriginAccessControlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginAccessControlConfigInput, ...request.Option) (*cloudfront.GetOriginAccessControlConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginAccessControlConfigInput, ...request.Option) *cloudfront.GetOriginAccessControlConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginAccessControlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginAccessControlConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControlRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginAccessControlRequest(_a0 *cloudfront.GetOriginAccessControlInput) (*request.Request, *cloudfront.GetOriginAccessControlOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetOriginAccessControlOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlInput) (*request.Request, *cloudfront.GetOriginAccessControlOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginAccessControlInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginAccessControlInput) *cloudfront.GetOriginAccessControlOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetOriginAccessControlOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOriginAccessControlWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetOriginAccessControlWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginAccessControlInput, _a2 ...request.Option) (*cloudfront.GetOriginAccessControlOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginAccessControlInput, ...request.Option) (*cloudfront.GetOriginAccessControlOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginAccessControlInput, ...request.Option) *cloudfront.GetOriginAccessControlOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginAccessControlInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginRequestPolicy(_a0 *cloudfront.GetOriginRequestPolicyInput) (*cloudfront.GetOriginRequestPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) (*cloudfront.GetOriginRequestPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfig(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetOriginRequestPolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) (*cloudfront.GetOriginRequestPolicyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigRequest(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*request.Request, *cloudfront.GetOriginRequestPolicyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetOriginRequestPolicyConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) (*request.Request, *cloudfront.GetOriginRequestPolicyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetOriginRequestPolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) (*cloudfront.GetOriginRequestPolicyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) *cloudfront.GetOriginRequestPolicyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetOriginRequestPolicyRequest(_a0 *cloudfront.GetOriginRequestPolicyInput) (*request.Request, *cloudfront.GetOriginRequestPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetOriginRequestPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) (*request.Request, *cloudfront.GetOriginRequestPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) (*cloudfront.GetOriginRequestPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) *cloudfront.GetOriginRequestPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetPublicKey(_a0 *cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKeyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetPublicKeyConfig(_a0 *cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetPublicKeyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKeyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetPublicKeyConfigRequest(_a0 *cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetPublicKeyConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetPublicKeyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPublicKeyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetPublicKeyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyConfigInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetPublicKeyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) *cloudfront.GetPublicKeyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetPublicKeyRequest(_a0 *cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetPublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) (*cloudfront.GetPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) *cloudfront.GetPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRealtimeLogConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetRealtimeLogConfig(_a0 *cloudfront.GetRealtimeLogConfigInput) (*cloudfront.GetRealtimeLogConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) (*cloudfront.GetRealtimeLogConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) *cloudfront.GetRealtimeLogConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetRealtimeLogConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRealtimeLogConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetRealtimeLogConfigRequest(_a0 *cloudfront.GetRealtimeLogConfigInput) (*request.Request, *cloudfront.GetRealtimeLogConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetRealtimeLogConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) (*request.Request, *cloudfront.GetRealtimeLogConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetRealtimeLogConfigInput) *cloudfront.GetRealtimeLogConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetRealtimeLogConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.GetRealtimeLogConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetRealtimeLogConfigInput, ...request.Option) (*cloudfront.GetRealtimeLogConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetRealtimeLogConfigInput, ...request.Option) *cloudfront.GetRealtimeLogConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetRealtimeLogConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicy(_a0 *cloudfront.GetResponseHeadersPolicyInput) (*cloudfront.GetResponseHeadersPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyInput) (*cloudfront.GetResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyInput) *cloudfront.GetResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetResponseHeadersPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicyConfig(_a0 *cloudfront.GetResponseHeadersPolicyConfigInput) (*cloudfront.GetResponseHeadersPolicyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetResponseHeadersPolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) (*cloudfront.GetResponseHeadersPolicyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) *cloudfront.GetResponseHeadersPolicyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetResponseHeadersPolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicyConfigRequest(_a0 *cloudfront.GetResponseHeadersPolicyConfigInput) (*request.Request, *cloudfront.GetResponseHeadersPolicyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetResponseHeadersPolicyConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) (*request.Request, *cloudfront.GetResponseHeadersPolicyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetResponseHeadersPolicyConfigInput) *cloudfront.GetResponseHeadersPolicyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetResponseHeadersPolicyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetResponseHeadersPolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetResponseHeadersPolicyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetResponseHeadersPolicyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetResponseHeadersPolicyConfigInput, ...request.Option) (*cloudfront.GetResponseHeadersPolicyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetResponseHeadersPolicyConfigInput, ...request.Option) *cloudfront.GetResponseHeadersPolicyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetResponseHeadersPolicyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetResponseHeadersPolicyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicyRequest(_a0 *cloudfront.GetResponseHeadersPolicyInput) (*request.Request, *cloudfront.GetResponseHeadersPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetResponseHeadersPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyInput) (*request.Request, *cloudfront.GetResponseHeadersPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetResponseHeadersPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetResponseHeadersPolicyInput) *cloudfront.GetResponseHeadersPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetResponseHeadersPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetResponseHeadersPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetResponseHeadersPolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetResponseHeadersPolicyInput, _a2 ...request.Option) (*cloudfront.GetResponseHeadersPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetResponseHeadersPolicyInput, ...request.Option) (*cloudfront.GetResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetResponseHeadersPolicyInput, ...request.Option) *cloudfront.GetResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetResponseHeadersPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStreamingDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetStreamingDistribution(_a0 *cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStreamingDistributionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetStreamingDistributionConfig(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*cloudfront.GetStreamingDistributionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.GetStreamingDistributionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) (*cloudfront.GetStreamingDistributionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStreamingDistributionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetStreamingDistributionConfigRequest(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*request.Request, *cloudfront.GetStreamingDistributionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetStreamingDistributionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) (*request.Request, *cloudfront.GetStreamingDistributionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStreamingDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetStreamingDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetStreamingDistributionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) (*cloudfront.GetStreamingDistributionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) *cloudfront.GetStreamingDistributionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStreamingDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) GetStreamingDistributionRequest(_a0 *cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.GetStreamingDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) GetStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.GetStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) *cloudfront.GetStreamingDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCachePolicies provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListCachePolicies(_a0 *cloudfront.ListCachePoliciesInput) (*cloudfront.ListCachePoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListCachePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) (*cloudfront.ListCachePoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCachePoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListCachePoliciesRequest(_a0 *cloudfront.ListCachePoliciesInput) (*request.Request, *cloudfront.ListCachePoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListCachePoliciesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) (*request.Request, *cloudfront.ListCachePoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListCachePoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCachePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListCachePoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListCachePoliciesInput, _a2 ...request.Option) (*cloudfront.ListCachePoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListCachePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) (*cloudfront.ListCachePoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) *cloudfront.ListCachePoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCloudFrontOriginAccessIdentities provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentities(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCloudFrontOriginAccessIdentitiesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPages(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a1 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCloudFrontOriginAccessIdentitiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCloudFrontOriginAccessIdentitiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesRequest(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*request.Request, *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*request.Request, *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCloudFrontOriginAccessIdentitiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 ...request.Option) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListConflictingAliases provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListConflictingAliases(_a0 *cloudfront.ListConflictingAliasesInput) (*cloudfront.ListConflictingAliasesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListConflictingAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListConflictingAliasesInput) (*cloudfront.ListConflictingAliasesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListConflictingAliasesInput) *cloudfront.ListConflictingAliasesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListConflictingAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListConflictingAliasesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListConflictingAliasesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListConflictingAliasesRequest(_a0 *cloudfront.ListConflictingAliasesInput) (*request.Request, *cloudfront.ListConflictingAliasesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListConflictingAliasesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListConflictingAliasesInput) (*request.Request, *cloudfront.ListConflictingAliasesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListConflictingAliasesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListConflictingAliasesInput) *cloudfront.ListConflictingAliasesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListConflictingAliasesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListConflictingAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListConflictingAliasesWithContext(_a0 context.Context, _a1 *cloudfront.ListConflictingAliasesInput, _a2 ...request.Option) (*cloudfront.ListConflictingAliasesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListConflictingAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListConflictingAliasesInput, ...request.Option) (*cloudfront.ListConflictingAliasesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListConflictingAliasesInput, ...request.Option) *cloudfront.ListConflictingAliasesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListConflictingAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListConflictingAliasesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributions provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributions(_a0 *cloudfront.ListDistributionsInput) (*cloudfront.ListDistributionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) (*cloudfront.ListDistributionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByCachePolicyId provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyId(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByCachePolicyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdRequest(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByCachePolicyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByCachePolicyIdOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByCachePolicyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByCachePolicyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByCachePolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByCachePolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByKeyGroup provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByKeyGroup(_a0 *cloudfront.ListDistributionsByKeyGroupInput) (*cloudfront.ListDistributionsByKeyGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) (*cloudfront.ListDistributionsByKeyGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) *cloudfront.ListDistributionsByKeyGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByKeyGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByKeyGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByKeyGroupRequest(_a0 *cloudfront.ListDistributionsByKeyGroupInput) (*request.Request, *cloudfront.ListDistributionsByKeyGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByKeyGroupOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) (*request.Request, *cloudfront.ListDistributionsByKeyGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByKeyGroupInput) *cloudfront.ListDistributionsByKeyGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByKeyGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByKeyGroupInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByKeyGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByKeyGroupInput, ...request.Option) (*cloudfront.ListDistributionsByKeyGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByKeyGroupInput, ...request.Option) *cloudfront.ListDistributionsByKeyGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByKeyGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByOriginRequestPolicyId provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyId(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByOriginRequestPolicyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdRequest(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByOriginRequestPolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByRealtimeLogConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfig(_a0 *cloudfront.ListDistributionsByRealtimeLogConfigInput) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByRealtimeLogConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfigRequest(_a0 *cloudfront.ListDistributionsByRealtimeLogConfigInput) (*request.Request, *cloudfront.ListDistributionsByRealtimeLogConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByRealtimeLogConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) (*request.Request, *cloudfront.ListDistributionsByRealtimeLogConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByRealtimeLogConfigInput, ...request.Option) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByRealtimeLogConfigInput, ...request.Option) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByRealtimeLogConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByResponseHeadersPolicyId provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByResponseHeadersPolicyId(_a0 *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) (*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) (*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByResponseHeadersPolicyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByResponseHeadersPolicyIdRequest(_a0 *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByResponseHeadersPolicyIdInput) *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByResponseHeadersPolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByResponseHeadersPolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput, ...request.Option) (*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByResponseHeadersPolicyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByResponseHeadersPolicyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByWebACLId provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByWebACLId(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*cloudfront.ListDistributionsByWebACLIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListDistributionsByWebACLIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) (*cloudfront.ListDistributionsByWebACLIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsByWebACLIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdRequest(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsByWebACLIdOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsByWebACLIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsByWebACLIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByWebACLIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsByWebACLIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) *cloudfront.ListDistributionsByWebACLIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDistributionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudFront) ListDistributionsPages(_a0 *cloudfront.ListDistributionsInput, _a1 func(*cloudfront.ListDistributionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudFront) ListDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 func(*cloudfront.ListDistributionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListDistributionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListDistributionsRequest(_a0 *cloudfront.ListDistributionsInput) (*request.Request, *cloudfront.ListDistributionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListDistributionsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) (*request.Request, *cloudfront.ListDistributionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListDistributionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 ...request.Option) (*cloudfront.ListDistributionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListDistributionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) (*cloudfront.ListDistributionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) *cloudfront.ListDistributionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigs(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsRequest(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListFieldLevelEncryptionConfigsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionConfigsInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionProfiles provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfiles(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionProfilesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesRequest(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListFieldLevelEncryptionProfilesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionProfilesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFieldLevelEncryptionProfilesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionProfilesInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctions provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFunctions(_a0 *cloudfront.ListFunctionsInput) (*cloudfront.ListFunctionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListFunctionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) (*cloudfront.ListFunctionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) *cloudfront.ListFunctionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFunctionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFunctionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListFunctionsRequest(_a0 *cloudfront.ListFunctionsInput) (*request.Request, *cloudfront.ListFunctionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListFunctionsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) (*request.Request, *cloudfront.ListFunctionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListFunctionsInput) *cloudfront.ListFunctionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListFunctionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFunctionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListFunctionsWithContext(_a0 context.Context, _a1 *cloudfront.ListFunctionsInput, _a2 ...request.Option) (*cloudfront.ListFunctionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListFunctionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFunctionsInput, ...request.Option) (*cloudfront.ListFunctionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFunctionsInput, ...request.Option) *cloudfront.ListFunctionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListFunctionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFunctionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInvalidations provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListInvalidations(_a0 *cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListInvalidationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInvalidationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudFront) ListInvalidationsPages(_a0 *cloudfront.ListInvalidationsInput, _a1 func(*cloudfront.ListInvalidationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInvalidationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudFront) ListInvalidationsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 func(*cloudfront.ListInvalidationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInvalidationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListInvalidationsRequest(_a0 *cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListInvalidationsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListInvalidationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListInvalidationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListInvalidationsWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 ...request.Option) (*cloudfront.ListInvalidationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListInvalidationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) (*cloudfront.ListInvalidationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) *cloudfront.ListInvalidationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeyGroups provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListKeyGroups(_a0 *cloudfront.ListKeyGroupsInput) (*cloudfront.ListKeyGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListKeyGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) (*cloudfront.ListKeyGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) *cloudfront.ListKeyGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListKeyGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListKeyGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeyGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListKeyGroupsRequest(_a0 *cloudfront.ListKeyGroupsInput) (*request.Request, *cloudfront.ListKeyGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListKeyGroupsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) (*request.Request, *cloudfront.ListKeyGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListKeyGroupsInput) *cloudfront.ListKeyGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListKeyGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListKeyGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListKeyGroupsWithContext(_a0 context.Context, _a1 *cloudfront.ListKeyGroupsInput, _a2 ...request.Option) (*cloudfront.ListKeyGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListKeyGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListKeyGroupsInput, ...request.Option) (*cloudfront.ListKeyGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListKeyGroupsInput, ...request.Option) *cloudfront.ListKeyGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListKeyGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListKeyGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginAccessControls provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListOriginAccessControls(_a0 *cloudfront.ListOriginAccessControlsInput) (*cloudfront.ListOriginAccessControlsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListOriginAccessControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginAccessControlsInput) (*cloudfront.ListOriginAccessControlsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginAccessControlsInput) *cloudfront.ListOriginAccessControlsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListOriginAccessControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginAccessControlsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginAccessControlsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListOriginAccessControlsRequest(_a0 *cloudfront.ListOriginAccessControlsInput) (*request.Request, *cloudfront.ListOriginAccessControlsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListOriginAccessControlsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginAccessControlsInput) (*request.Request, *cloudfront.ListOriginAccessControlsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginAccessControlsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginAccessControlsInput) *cloudfront.ListOriginAccessControlsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListOriginAccessControlsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListOriginAccessControlsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListOriginAccessControlsWithContext(_a0 context.Context, _a1 *cloudfront.ListOriginAccessControlsInput, _a2 ...request.Option) (*cloudfront.ListOriginAccessControlsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListOriginAccessControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginAccessControlsInput, ...request.Option) (*cloudfront.ListOriginAccessControlsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginAccessControlsInput, ...request.Option) *cloudfront.ListOriginAccessControlsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListOriginAccessControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListOriginAccessControlsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginRequestPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListOriginRequestPolicies(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*cloudfront.ListOriginRequestPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListOriginRequestPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) (*cloudfront.ListOriginRequestPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginRequestPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListOriginRequestPoliciesRequest(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*request.Request, *cloudfront.ListOriginRequestPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListOriginRequestPoliciesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) (*request.Request, *cloudfront.ListOriginRequestPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListOriginRequestPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListOriginRequestPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListOriginRequestPoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListOriginRequestPoliciesInput, _a2 ...request.Option) (*cloudfront.ListOriginRequestPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListOriginRequestPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) (*cloudfront.ListOriginRequestPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) *cloudfront.ListOriginRequestPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPublicKeys provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListPublicKeys(_a0 *cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPublicKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListPublicKeysRequest(_a0 *cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListPublicKeysOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListPublicKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPublicKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListPublicKeysWithContext(_a0 context.Context, _a1 *cloudfront.ListPublicKeysInput, _a2 ...request.Option) (*cloudfront.ListPublicKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) (*cloudfront.ListPublicKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) *cloudfront.ListPublicKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRealtimeLogConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListRealtimeLogConfigs(_a0 *cloudfront.ListRealtimeLogConfigsInput) (*cloudfront.ListRealtimeLogConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListRealtimeLogConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) (*cloudfront.ListRealtimeLogConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) *cloudfront.ListRealtimeLogConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListRealtimeLogConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListRealtimeLogConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRealtimeLogConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListRealtimeLogConfigsRequest(_a0 *cloudfront.ListRealtimeLogConfigsInput) (*request.Request, *cloudfront.ListRealtimeLogConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListRealtimeLogConfigsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) (*request.Request, *cloudfront.ListRealtimeLogConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListRealtimeLogConfigsInput) *cloudfront.ListRealtimeLogConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListRealtimeLogConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListRealtimeLogConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListRealtimeLogConfigsWithContext(_a0 context.Context, _a1 *cloudfront.ListRealtimeLogConfigsInput, _a2 ...request.Option) (*cloudfront.ListRealtimeLogConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListRealtimeLogConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListRealtimeLogConfigsInput, ...request.Option) (*cloudfront.ListRealtimeLogConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListRealtimeLogConfigsInput, ...request.Option) *cloudfront.ListRealtimeLogConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListRealtimeLogConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListRealtimeLogConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResponseHeadersPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListResponseHeadersPolicies(_a0 *cloudfront.ListResponseHeadersPoliciesInput) (*cloudfront.ListResponseHeadersPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListResponseHeadersPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListResponseHeadersPoliciesInput) (*cloudfront.ListResponseHeadersPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListResponseHeadersPoliciesInput) *cloudfront.ListResponseHeadersPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListResponseHeadersPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListResponseHeadersPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResponseHeadersPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListResponseHeadersPoliciesRequest(_a0 *cloudfront.ListResponseHeadersPoliciesInput) (*request.Request, *cloudfront.ListResponseHeadersPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListResponseHeadersPoliciesOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListResponseHeadersPoliciesInput) (*request.Request, *cloudfront.ListResponseHeadersPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListResponseHeadersPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListResponseHeadersPoliciesInput) *cloudfront.ListResponseHeadersPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListResponseHeadersPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListResponseHeadersPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListResponseHeadersPoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListResponseHeadersPoliciesInput, _a2 ...request.Option) (*cloudfront.ListResponseHeadersPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListResponseHeadersPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListResponseHeadersPoliciesInput, ...request.Option) (*cloudfront.ListResponseHeadersPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListResponseHeadersPoliciesInput, ...request.Option) *cloudfront.ListResponseHeadersPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListResponseHeadersPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListResponseHeadersPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStreamingDistributions provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListStreamingDistributions(_a0 *cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListStreamingDistributionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStreamingDistributionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudFront) ListStreamingDistributionsPages(_a0 *cloudfront.ListStreamingDistributionsInput, _a1 func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStreamingDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudFront) ListStreamingDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 func(*cloudfront.ListStreamingDistributionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStreamingDistributionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListStreamingDistributionsRequest(_a0 *cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListStreamingDistributionsOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListStreamingDistributionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStreamingDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListStreamingDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListStreamingDistributionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) *cloudfront.ListStreamingDistributionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListTagsForResource(_a0 *cloudfront.ListTagsForResourceInput) (*cloudfront.ListTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) (*cloudfront.ListTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) ListTagsForResourceRequest(_a0 *cloudfront.ListTagsForResourceInput) (*request.Request, *cloudfront.ListTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.ListTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) (*request.Request, *cloudfront.ListTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.ListTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) ListTagsForResourceWithContext(_a0 context.Context, _a1 *cloudfront.ListTagsForResourceInput, _a2 ...request.Option) (*cloudfront.ListTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) (*cloudfront.ListTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) *cloudfront.ListTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) PublishFunction(_a0 *cloudfront.PublishFunctionInput) (*cloudfront.PublishFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.PublishFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) (*cloudfront.PublishFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) *cloudfront.PublishFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.PublishFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.PublishFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) PublishFunctionRequest(_a0 *cloudfront.PublishFunctionInput) (*request.Request, *cloudfront.PublishFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.PublishFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) (*request.Request, *cloudfront.PublishFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.PublishFunctionInput) *cloudfront.PublishFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.PublishFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PublishFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) PublishFunctionWithContext(_a0 context.Context, _a1 *cloudfront.PublishFunctionInput, _a2 ...request.Option) (*cloudfront.PublishFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.PublishFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.PublishFunctionInput, ...request.Option) (*cloudfront.PublishFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.PublishFunctionInput, ...request.Option) *cloudfront.PublishFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.PublishFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.PublishFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) TagResource(_a0 *cloudfront.TagResourceInput) (*cloudfront.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) (*cloudfront.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) TagResourceRequest(_a0 *cloudfront.TagResourceInput) (*request.Request, *cloudfront.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) (*request.Request, *cloudfront.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) TagResourceWithContext(_a0 context.Context, _a1 *cloudfront.TagResourceInput, _a2 ...request.Option) (*cloudfront.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) (*cloudfront.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) *cloudfront.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) TestFunction(_a0 *cloudfront.TestFunctionInput) (*cloudfront.TestFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.TestFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) (*cloudfront.TestFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) *cloudfront.TestFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.TestFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.TestFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) TestFunctionRequest(_a0 *cloudfront.TestFunctionInput) (*request.Request, *cloudfront.TestFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.TestFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) (*request.Request, *cloudfront.TestFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.TestFunctionInput) *cloudfront.TestFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.TestFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) TestFunctionWithContext(_a0 context.Context, _a1 *cloudfront.TestFunctionInput, _a2 ...request.Option) (*cloudfront.TestFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.TestFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TestFunctionInput, ...request.Option) (*cloudfront.TestFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TestFunctionInput, ...request.Option) *cloudfront.TestFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.TestFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.TestFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UntagResource(_a0 *cloudfront.UntagResourceInput) (*cloudfront.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UntagResourceInput) (*cloudfront.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UntagResourceInput) *cloudfront.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UntagResourceRequest(_a0 *cloudfront.UntagResourceInput) (*request.Request, *cloudfront.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UntagResourceInput) (*request.Request, *cloudfront.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UntagResourceInput) *cloudfront.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UntagResourceWithContext(_a0 context.Context, _a1 *cloudfront.UntagResourceInput, _a2 ...request.Option) (*cloudfront.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UntagResourceInput, ...request.Option) (*cloudfront.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UntagResourceInput, ...request.Option) *cloudfront.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCachePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateCachePolicy(_a0 *cloudfront.UpdateCachePolicyInput) (*cloudfront.UpdateCachePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCachePolicyInput) (*cloudfront.UpdateCachePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCachePolicyInput) *cloudfront.UpdateCachePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateCachePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCachePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateCachePolicyRequest(_a0 *cloudfront.UpdateCachePolicyInput) (*request.Request, *cloudfront.UpdateCachePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateCachePolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCachePolicyInput) (*request.Request, *cloudfront.UpdateCachePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCachePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateCachePolicyInput) *cloudfront.UpdateCachePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateCachePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.UpdateCachePolicyInput, _a2 ...request.Option) (*cloudfront.UpdateCachePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateCachePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateCachePolicyInput, ...request.Option) (*cloudfront.UpdateCachePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateCachePolicyInput, ...request.Option) *cloudfront.UpdateCachePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateCachePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateCachePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateCloudFrontOriginAccessIdentity(_a0 *cloudfront.UpdateCloudFrontOriginAccessIdentityInput) (*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) (*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.UpdateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.UpdateCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateDistribution(_a0 *cloudfront.UpdateDistributionInput) (*cloudfront.UpdateDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateDistributionInput) (*cloudfront.UpdateDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateDistributionInput) *cloudfront.UpdateDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateDistributionRequest(_a0 *cloudfront.UpdateDistributionInput) (*request.Request, *cloudfront.UpdateDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateDistributionInput) (*request.Request, *cloudfront.UpdateDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateDistributionInput) *cloudfront.UpdateDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateDistributionWithContext(_a0 context.Context, _a1 *cloudfront.UpdateDistributionInput, _a2 ...request.Option) (*cloudfront.UpdateDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateDistributionInput, ...request.Option) (*cloudfront.UpdateDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateDistributionInput, ...request.Option) *cloudfront.UpdateDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionConfig(_a0 *cloudfront.UpdateFieldLevelEncryptionConfigInput) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) *cloudfront.UpdateFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionConfigRequest(_a0 *cloudfront.UpdateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateFieldLevelEncryptionConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFieldLevelEncryptionConfigInput) *cloudfront.UpdateFieldLevelEncryptionConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateFieldLevelEncryptionConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.UpdateFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateFieldLevelEncryptionConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.UpdateFieldLevelEncryptionConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFieldLevelEncryptionConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionProfile provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionProfile(_a0 *cloudfront.UpdateFieldLevelEncryptionProfileInput) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) *cloudfront.UpdateFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionProfileRequest(_a0 *cloudfront.UpdateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateFieldLevelEncryptionProfileOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFieldLevelEncryptionProfileInput) *cloudfront.UpdateFieldLevelEncryptionProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateFieldLevelEncryptionProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.UpdateFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateFieldLevelEncryptionProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.UpdateFieldLevelEncryptionProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFieldLevelEncryptionProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateFieldLevelEncryptionProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunction provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFunction(_a0 *cloudfront.UpdateFunctionInput) (*cloudfront.UpdateFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) (*cloudfront.UpdateFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) *cloudfront.UpdateFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateFunctionRequest(_a0 *cloudfront.UpdateFunctionInput) (*request.Request, *cloudfront.UpdateFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateFunctionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) (*request.Request, *cloudfront.UpdateFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFunctionInput) *cloudfront.UpdateFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateFunctionWithContext(_a0 context.Context, _a1 *cloudfront.UpdateFunctionInput, _a2 ...request.Option) (*cloudfront.UpdateFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFunctionInput, ...request.Option) (*cloudfront.UpdateFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFunctionInput, ...request.Option) *cloudfront.UpdateFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateKeyGroup provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateKeyGroup(_a0 *cloudfront.UpdateKeyGroupInput) (*cloudfront.UpdateKeyGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) (*cloudfront.UpdateKeyGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) *cloudfront.UpdateKeyGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateKeyGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateKeyGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateKeyGroupRequest(_a0 *cloudfront.UpdateKeyGroupInput) (*request.Request, *cloudfront.UpdateKeyGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateKeyGroupOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) (*request.Request, *cloudfront.UpdateKeyGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateKeyGroupInput) *cloudfront.UpdateKeyGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateKeyGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.UpdateKeyGroupInput, _a2 ...request.Option) (*cloudfront.UpdateKeyGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateKeyGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateKeyGroupInput, ...request.Option) (*cloudfront.UpdateKeyGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateKeyGroupInput, ...request.Option) *cloudfront.UpdateKeyGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateKeyGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateKeyGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOriginAccessControl provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateOriginAccessControl(_a0 *cloudfront.UpdateOriginAccessControlInput) (*cloudfront.UpdateOriginAccessControlOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginAccessControlInput) (*cloudfront.UpdateOriginAccessControlOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginAccessControlInput) *cloudfront.UpdateOriginAccessControlOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateOriginAccessControlInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOriginAccessControlRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateOriginAccessControlRequest(_a0 *cloudfront.UpdateOriginAccessControlInput) (*request.Request, *cloudfront.UpdateOriginAccessControlOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateOriginAccessControlOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginAccessControlInput) (*request.Request, *cloudfront.UpdateOriginAccessControlOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginAccessControlInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateOriginAccessControlInput) *cloudfront.UpdateOriginAccessControlOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateOriginAccessControlOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateOriginAccessControlWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateOriginAccessControlWithContext(_a0 context.Context, _a1 *cloudfront.UpdateOriginAccessControlInput, _a2 ...request.Option) (*cloudfront.UpdateOriginAccessControlOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateOriginAccessControlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateOriginAccessControlInput, ...request.Option) (*cloudfront.UpdateOriginAccessControlOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateOriginAccessControlInput, ...request.Option) *cloudfront.UpdateOriginAccessControlOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateOriginAccessControlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateOriginAccessControlInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOriginRequestPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateOriginRequestPolicy(_a0 *cloudfront.UpdateOriginRequestPolicyInput) (*cloudfront.UpdateOriginRequestPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginRequestPolicyInput) (*cloudfront.UpdateOriginRequestPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginRequestPolicyInput) *cloudfront.UpdateOriginRequestPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateOriginRequestPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOriginRequestPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateOriginRequestPolicyRequest(_a0 *cloudfront.UpdateOriginRequestPolicyInput) (*request.Request, *cloudfront.UpdateOriginRequestPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateOriginRequestPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginRequestPolicyInput) (*request.Request, *cloudfront.UpdateOriginRequestPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateOriginRequestPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateOriginRequestPolicyInput) *cloudfront.UpdateOriginRequestPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateOriginRequestPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.UpdateOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.UpdateOriginRequestPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateOriginRequestPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateOriginRequestPolicyInput, ...request.Option) (*cloudfront.UpdateOriginRequestPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateOriginRequestPolicyInput, ...request.Option) *cloudfront.UpdateOriginRequestPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateOriginRequestPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateOriginRequestPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdatePublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdatePublicKey(_a0 *cloudfront.UpdatePublicKeyInput) (*cloudfront.UpdatePublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdatePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdatePublicKeyInput) (*cloudfront.UpdatePublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdatePublicKeyInput) *cloudfront.UpdatePublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdatePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdatePublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdatePublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdatePublicKeyRequest(_a0 *cloudfront.UpdatePublicKeyInput) (*request.Request, *cloudfront.UpdatePublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdatePublicKeyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdatePublicKeyInput) (*request.Request, *cloudfront.UpdatePublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdatePublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdatePublicKeyInput) *cloudfront.UpdatePublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdatePublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdatePublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdatePublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.UpdatePublicKeyInput, _a2 ...request.Option) (*cloudfront.UpdatePublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdatePublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdatePublicKeyInput, ...request.Option) (*cloudfront.UpdatePublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdatePublicKeyInput, ...request.Option) *cloudfront.UpdatePublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdatePublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdatePublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRealtimeLogConfig provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateRealtimeLogConfig(_a0 *cloudfront.UpdateRealtimeLogConfigInput) (*cloudfront.UpdateRealtimeLogConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) (*cloudfront.UpdateRealtimeLogConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) *cloudfront.UpdateRealtimeLogConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateRealtimeLogConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRealtimeLogConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateRealtimeLogConfigRequest(_a0 *cloudfront.UpdateRealtimeLogConfigInput) (*request.Request, *cloudfront.UpdateRealtimeLogConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateRealtimeLogConfigOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) (*request.Request, *cloudfront.UpdateRealtimeLogConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateRealtimeLogConfigInput) *cloudfront.UpdateRealtimeLogConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateRealtimeLogConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.UpdateRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.UpdateRealtimeLogConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateRealtimeLogConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateRealtimeLogConfigInput, ...request.Option) (*cloudfront.UpdateRealtimeLogConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateRealtimeLogConfigInput, ...request.Option) *cloudfront.UpdateRealtimeLogConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateRealtimeLogConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateRealtimeLogConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateResponseHeadersPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateResponseHeadersPolicy(_a0 *cloudfront.UpdateResponseHeadersPolicyInput) (*cloudfront.UpdateResponseHeadersPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateResponseHeadersPolicyInput) (*cloudfront.UpdateResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateResponseHeadersPolicyInput) *cloudfront.UpdateResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateResponseHeadersPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateResponseHeadersPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateResponseHeadersPolicyRequest(_a0 *cloudfront.UpdateResponseHeadersPolicyInput) (*request.Request, *cloudfront.UpdateResponseHeadersPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateResponseHeadersPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateResponseHeadersPolicyInput) (*request.Request, *cloudfront.UpdateResponseHeadersPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateResponseHeadersPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateResponseHeadersPolicyInput) *cloudfront.UpdateResponseHeadersPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateResponseHeadersPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateResponseHeadersPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateResponseHeadersPolicyWithContext(_a0 context.Context, _a1 *cloudfront.UpdateResponseHeadersPolicyInput, _a2 ...request.Option) (*cloudfront.UpdateResponseHeadersPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateResponseHeadersPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateResponseHeadersPolicyInput, ...request.Option) (*cloudfront.UpdateResponseHeadersPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateResponseHeadersPolicyInput, ...request.Option) *cloudfront.UpdateResponseHeadersPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateResponseHeadersPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateResponseHeadersPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStreamingDistribution provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateStreamingDistribution(_a0 *cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudfront.UpdateStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateStreamingDistributionInput) *cloudfront.UpdateStreamingDistributionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateStreamingDistributionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStreamingDistributionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) UpdateStreamingDistributionRequest(_a0 *cloudfront.UpdateStreamingDistributionInput) (*request.Request, *cloudfront.UpdateStreamingDistributionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudfront.UpdateStreamingDistributionOutput
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateStreamingDistributionInput) (*request.Request, *cloudfront.UpdateStreamingDistributionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudfront.UpdateStreamingDistributionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudfront.UpdateStreamingDistributionInput) *cloudfront.UpdateStreamingDistributionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudfront.UpdateStreamingDistributionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) UpdateStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.UpdateStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.UpdateStreamingDistributionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudfront.UpdateStreamingDistributionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateStreamingDistributionInput, ...request.Option) (*cloudfront.UpdateStreamingDistributionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateStreamingDistributionInput, ...request.Option) *cloudfront.UpdateStreamingDistributionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudfront.UpdateStreamingDistributionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateStreamingDistributionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilDistributionDeployed provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) WaitUntilDistributionDeployed(_a0 *cloudfront.GetDistributionInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDistributionDeployedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) WaitUntilDistributionDeployedWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInvalidationCompleted provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) WaitUntilInvalidationCompleted(_a0 *cloudfront.GetInvalidationInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInvalidationCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) WaitUntilInvalidationCompletedWithContext(_a0 context.Context, _a1 *cloudfront.GetInvalidationInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStreamingDistributionDeployed provides a mock function with given fields: _a0
-func (_m *MockFakeCloudFront) WaitUntilStreamingDistributionDeployed(_a0 *cloudfront.GetStreamingDistributionInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStreamingDistributionDeployedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudFront) WaitUntilStreamingDistributionDeployedWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeCloudFront interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeCloudFront creates a new instance of MockFakeCloudFront. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeCloudFront(t mockConstructorTestingTNewMockFakeCloudFront) *MockFakeCloudFront {
- mock := &MockFakeCloudFront{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeCloudformation.go b/test/aws/mock_FakeCloudformation.go
deleted file mode 100644
index 0d70afeed..000000000
--- a/test/aws/mock_FakeCloudformation.go
+++ /dev/null
@@ -1,6615 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeCloudformation is an autogenerated mock type for the FakeCloudformation type
-type MockFakeCloudformation struct {
- mock.Mock
-}
-
-// ActivateType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ActivateType(_a0 *cloudformation.ActivateTypeInput) (*cloudformation.ActivateTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ActivateTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ActivateTypeInput) (*cloudformation.ActivateTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ActivateTypeInput) *cloudformation.ActivateTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ActivateTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ActivateTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ActivateTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ActivateTypeRequest(_a0 *cloudformation.ActivateTypeInput) (*request.Request, *cloudformation.ActivateTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ActivateTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ActivateTypeInput) (*request.Request, *cloudformation.ActivateTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ActivateTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ActivateTypeInput) *cloudformation.ActivateTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ActivateTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ActivateTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ActivateTypeWithContext(_a0 context.Context, _a1 *cloudformation.ActivateTypeInput, _a2 ...request.Option) (*cloudformation.ActivateTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ActivateTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ActivateTypeInput, ...request.Option) (*cloudformation.ActivateTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ActivateTypeInput, ...request.Option) *cloudformation.ActivateTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ActivateTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ActivateTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDescribeTypeConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) BatchDescribeTypeConfigurations(_a0 *cloudformation.BatchDescribeTypeConfigurationsInput) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.BatchDescribeTypeConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) *cloudformation.BatchDescribeTypeConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.BatchDescribeTypeConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDescribeTypeConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) BatchDescribeTypeConfigurationsRequest(_a0 *cloudformation.BatchDescribeTypeConfigurationsInput) (*request.Request, *cloudformation.BatchDescribeTypeConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.BatchDescribeTypeConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) (*request.Request, *cloudformation.BatchDescribeTypeConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.BatchDescribeTypeConfigurationsInput) *cloudformation.BatchDescribeTypeConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.BatchDescribeTypeConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchDescribeTypeConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) BatchDescribeTypeConfigurationsWithContext(_a0 context.Context, _a1 *cloudformation.BatchDescribeTypeConfigurationsInput, _a2 ...request.Option) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.BatchDescribeTypeConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.BatchDescribeTypeConfigurationsInput, ...request.Option) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.BatchDescribeTypeConfigurationsInput, ...request.Option) *cloudformation.BatchDescribeTypeConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.BatchDescribeTypeConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.BatchDescribeTypeConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelUpdateStack provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CancelUpdateStack(_a0 *cloudformation.CancelUpdateStackInput) (*cloudformation.CancelUpdateStackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.CancelUpdateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.CancelUpdateStackInput) (*cloudformation.CancelUpdateStackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CancelUpdateStackInput) *cloudformation.CancelUpdateStackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CancelUpdateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CancelUpdateStackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelUpdateStackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CancelUpdateStackRequest(_a0 *cloudformation.CancelUpdateStackInput) (*request.Request, *cloudformation.CancelUpdateStackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.CancelUpdateStackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.CancelUpdateStackInput) (*request.Request, *cloudformation.CancelUpdateStackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CancelUpdateStackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CancelUpdateStackInput) *cloudformation.CancelUpdateStackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.CancelUpdateStackOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelUpdateStackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) CancelUpdateStackWithContext(_a0 context.Context, _a1 *cloudformation.CancelUpdateStackInput, _a2 ...request.Option) (*cloudformation.CancelUpdateStackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.CancelUpdateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CancelUpdateStackInput, ...request.Option) (*cloudformation.CancelUpdateStackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CancelUpdateStackInput, ...request.Option) *cloudformation.CancelUpdateStackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CancelUpdateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.CancelUpdateStackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ContinueUpdateRollback provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ContinueUpdateRollback(_a0 *cloudformation.ContinueUpdateRollbackInput) (*cloudformation.ContinueUpdateRollbackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ContinueUpdateRollbackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ContinueUpdateRollbackInput) (*cloudformation.ContinueUpdateRollbackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ContinueUpdateRollbackInput) *cloudformation.ContinueUpdateRollbackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ContinueUpdateRollbackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ContinueUpdateRollbackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ContinueUpdateRollbackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ContinueUpdateRollbackRequest(_a0 *cloudformation.ContinueUpdateRollbackInput) (*request.Request, *cloudformation.ContinueUpdateRollbackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ContinueUpdateRollbackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ContinueUpdateRollbackInput) (*request.Request, *cloudformation.ContinueUpdateRollbackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ContinueUpdateRollbackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ContinueUpdateRollbackInput) *cloudformation.ContinueUpdateRollbackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ContinueUpdateRollbackOutput)
- }
- }
-
- return r0, r1
-}
-
-// ContinueUpdateRollbackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ContinueUpdateRollbackWithContext(_a0 context.Context, _a1 *cloudformation.ContinueUpdateRollbackInput, _a2 ...request.Option) (*cloudformation.ContinueUpdateRollbackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ContinueUpdateRollbackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ContinueUpdateRollbackInput, ...request.Option) (*cloudformation.ContinueUpdateRollbackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ContinueUpdateRollbackInput, ...request.Option) *cloudformation.ContinueUpdateRollbackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ContinueUpdateRollbackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ContinueUpdateRollbackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateChangeSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateChangeSet(_a0 *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.CreateChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateChangeSetInput) *cloudformation.CreateChangeSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateChangeSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateChangeSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateChangeSetRequest(_a0 *cloudformation.CreateChangeSetInput) (*request.Request, *cloudformation.CreateChangeSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.CreateChangeSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateChangeSetInput) (*request.Request, *cloudformation.CreateChangeSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateChangeSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateChangeSetInput) *cloudformation.CreateChangeSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.CreateChangeSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateChangeSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) CreateChangeSetWithContext(_a0 context.Context, _a1 *cloudformation.CreateChangeSetInput, _a2 ...request.Option) (*cloudformation.CreateChangeSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.CreateChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateChangeSetInput, ...request.Option) (*cloudformation.CreateChangeSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateChangeSetInput, ...request.Option) *cloudformation.CreateChangeSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.CreateChangeSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStack provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStack(_a0 *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.CreateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInput) *cloudformation.CreateStackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStackInstances provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStackInstances(_a0 *cloudformation.CreateStackInstancesInput) (*cloudformation.CreateStackInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.CreateStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInstancesInput) (*cloudformation.CreateStackInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInstancesInput) *cloudformation.CreateStackInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStackInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStackInstancesRequest(_a0 *cloudformation.CreateStackInstancesInput) (*request.Request, *cloudformation.CreateStackInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.CreateStackInstancesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInstancesInput) (*request.Request, *cloudformation.CreateStackInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackInstancesInput) *cloudformation.CreateStackInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.CreateStackInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStackInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) CreateStackInstancesWithContext(_a0 context.Context, _a1 *cloudformation.CreateStackInstancesInput, _a2 ...request.Option) (*cloudformation.CreateStackInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.CreateStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackInstancesInput, ...request.Option) (*cloudformation.CreateStackInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackInstancesInput, ...request.Option) *cloudformation.CreateStackInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.CreateStackInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStackRequest(_a0 *cloudformation.CreateStackInput) (*request.Request, *cloudformation.CreateStackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.CreateStackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInput) (*request.Request, *cloudformation.CreateStackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackInput) *cloudformation.CreateStackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.CreateStackOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStackSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStackSet(_a0 *cloudformation.CreateStackSetInput) (*cloudformation.CreateStackSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.CreateStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackSetInput) (*cloudformation.CreateStackSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackSetInput) *cloudformation.CreateStackSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStackSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) CreateStackSetRequest(_a0 *cloudformation.CreateStackSetInput) (*request.Request, *cloudformation.CreateStackSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.CreateStackSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackSetInput) (*request.Request, *cloudformation.CreateStackSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.CreateStackSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.CreateStackSetInput) *cloudformation.CreateStackSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.CreateStackSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStackSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) CreateStackSetWithContext(_a0 context.Context, _a1 *cloudformation.CreateStackSetInput, _a2 ...request.Option) (*cloudformation.CreateStackSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.CreateStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackSetInput, ...request.Option) (*cloudformation.CreateStackSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackSetInput, ...request.Option) *cloudformation.CreateStackSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.CreateStackSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) CreateStackWithContext(_a0 context.Context, _a1 *cloudformation.CreateStackInput, _a2 ...request.Option) (*cloudformation.CreateStackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.CreateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackInput, ...request.Option) (*cloudformation.CreateStackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.CreateStackInput, ...request.Option) *cloudformation.CreateStackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.CreateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.CreateStackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeactivateType(_a0 *cloudformation.DeactivateTypeInput) (*cloudformation.DeactivateTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeactivateTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeactivateTypeInput) (*cloudformation.DeactivateTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeactivateTypeInput) *cloudformation.DeactivateTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeactivateTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeactivateTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeactivateTypeRequest(_a0 *cloudformation.DeactivateTypeInput) (*request.Request, *cloudformation.DeactivateTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeactivateTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeactivateTypeInput) (*request.Request, *cloudformation.DeactivateTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeactivateTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeactivateTypeInput) *cloudformation.DeactivateTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeactivateTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeactivateTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeactivateTypeWithContext(_a0 context.Context, _a1 *cloudformation.DeactivateTypeInput, _a2 ...request.Option) (*cloudformation.DeactivateTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeactivateTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeactivateTypeInput, ...request.Option) (*cloudformation.DeactivateTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeactivateTypeInput, ...request.Option) *cloudformation.DeactivateTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeactivateTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeactivateTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteChangeSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteChangeSet(_a0 *cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeleteChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteChangeSetInput) *cloudformation.DeleteChangeSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteChangeSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteChangeSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteChangeSetRequest(_a0 *cloudformation.DeleteChangeSetInput) (*request.Request, *cloudformation.DeleteChangeSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeleteChangeSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteChangeSetInput) (*request.Request, *cloudformation.DeleteChangeSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteChangeSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteChangeSetInput) *cloudformation.DeleteChangeSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeleteChangeSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteChangeSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeleteChangeSetWithContext(_a0 context.Context, _a1 *cloudformation.DeleteChangeSetInput, _a2 ...request.Option) (*cloudformation.DeleteChangeSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeleteChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteChangeSetInput, ...request.Option) (*cloudformation.DeleteChangeSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteChangeSetInput, ...request.Option) *cloudformation.DeleteChangeSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeleteChangeSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStack provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStack(_a0 *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeleteStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInput) *cloudformation.DeleteStackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStackInstances provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStackInstances(_a0 *cloudformation.DeleteStackInstancesInput) (*cloudformation.DeleteStackInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeleteStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInstancesInput) (*cloudformation.DeleteStackInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInstancesInput) *cloudformation.DeleteStackInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStackInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStackInstancesRequest(_a0 *cloudformation.DeleteStackInstancesInput) (*request.Request, *cloudformation.DeleteStackInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeleteStackInstancesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInstancesInput) (*request.Request, *cloudformation.DeleteStackInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackInstancesInput) *cloudformation.DeleteStackInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeleteStackInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStackInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeleteStackInstancesWithContext(_a0 context.Context, _a1 *cloudformation.DeleteStackInstancesInput, _a2 ...request.Option) (*cloudformation.DeleteStackInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeleteStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackInstancesInput, ...request.Option) (*cloudformation.DeleteStackInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackInstancesInput, ...request.Option) *cloudformation.DeleteStackInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeleteStackInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStackRequest(_a0 *cloudformation.DeleteStackInput) (*request.Request, *cloudformation.DeleteStackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeleteStackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInput) (*request.Request, *cloudformation.DeleteStackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackInput) *cloudformation.DeleteStackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeleteStackOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStackSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStackSet(_a0 *cloudformation.DeleteStackSetInput) (*cloudformation.DeleteStackSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeleteStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackSetInput) (*cloudformation.DeleteStackSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackSetInput) *cloudformation.DeleteStackSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStackSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeleteStackSetRequest(_a0 *cloudformation.DeleteStackSetInput) (*request.Request, *cloudformation.DeleteStackSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeleteStackSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackSetInput) (*request.Request, *cloudformation.DeleteStackSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeleteStackSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeleteStackSetInput) *cloudformation.DeleteStackSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeleteStackSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStackSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeleteStackSetWithContext(_a0 context.Context, _a1 *cloudformation.DeleteStackSetInput, _a2 ...request.Option) (*cloudformation.DeleteStackSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeleteStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackSetInput, ...request.Option) (*cloudformation.DeleteStackSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackSetInput, ...request.Option) *cloudformation.DeleteStackSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeleteStackSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeleteStackWithContext(_a0 context.Context, _a1 *cloudformation.DeleteStackInput, _a2 ...request.Option) (*cloudformation.DeleteStackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeleteStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackInput, ...request.Option) (*cloudformation.DeleteStackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeleteStackInput, ...request.Option) *cloudformation.DeleteStackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeleteStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeleteStackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeregisterType(_a0 *cloudformation.DeregisterTypeInput) (*cloudformation.DeregisterTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DeregisterTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DeregisterTypeInput) (*cloudformation.DeregisterTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeregisterTypeInput) *cloudformation.DeregisterTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeregisterTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeregisterTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DeregisterTypeRequest(_a0 *cloudformation.DeregisterTypeInput) (*request.Request, *cloudformation.DeregisterTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DeregisterTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DeregisterTypeInput) (*request.Request, *cloudformation.DeregisterTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DeregisterTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DeregisterTypeInput) *cloudformation.DeregisterTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DeregisterTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DeregisterTypeWithContext(_a0 context.Context, _a1 *cloudformation.DeregisterTypeInput, _a2 ...request.Option) (*cloudformation.DeregisterTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DeregisterTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeregisterTypeInput, ...request.Option) (*cloudformation.DeregisterTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DeregisterTypeInput, ...request.Option) *cloudformation.DeregisterTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DeregisterTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DeregisterTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimits provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeAccountLimits(_a0 *cloudformation.DescribeAccountLimitsInput) (*cloudformation.DescribeAccountLimitsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeAccountLimitsInput) (*cloudformation.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeAccountLimitsInput) *cloudformation.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeAccountLimitsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) DescribeAccountLimitsPages(_a0 *cloudformation.DescribeAccountLimitsInput, _a1 func(*cloudformation.DescribeAccountLimitsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeAccountLimitsInput, func(*cloudformation.DescribeAccountLimitsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAccountLimitsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) DescribeAccountLimitsPagesWithContext(_a0 context.Context, _a1 *cloudformation.DescribeAccountLimitsInput, _a2 func(*cloudformation.DescribeAccountLimitsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeAccountLimitsInput, func(*cloudformation.DescribeAccountLimitsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAccountLimitsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeAccountLimitsRequest(_a0 *cloudformation.DescribeAccountLimitsInput) (*request.Request, *cloudformation.DescribeAccountLimitsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeAccountLimitsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeAccountLimitsInput) (*request.Request, *cloudformation.DescribeAccountLimitsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeAccountLimitsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeAccountLimitsInput) *cloudformation.DescribeAccountLimitsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeAccountLimitsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeAccountLimitsWithContext(_a0 context.Context, _a1 *cloudformation.DescribeAccountLimitsInput, _a2 ...request.Option) (*cloudformation.DescribeAccountLimitsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeAccountLimitsInput, ...request.Option) (*cloudformation.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeAccountLimitsInput, ...request.Option) *cloudformation.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeAccountLimitsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeChangeSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeChangeSet(_a0 *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetInput) *cloudformation.DescribeChangeSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeChangeSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeChangeSetHooks provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeChangeSetHooks(_a0 *cloudformation.DescribeChangeSetHooksInput) (*cloudformation.DescribeChangeSetHooksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeChangeSetHooksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetHooksInput) (*cloudformation.DescribeChangeSetHooksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetHooksInput) *cloudformation.DescribeChangeSetHooksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeChangeSetHooksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeChangeSetHooksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeChangeSetHooksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeChangeSetHooksRequest(_a0 *cloudformation.DescribeChangeSetHooksInput) (*request.Request, *cloudformation.DescribeChangeSetHooksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeChangeSetHooksOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetHooksInput) (*request.Request, *cloudformation.DescribeChangeSetHooksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetHooksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeChangeSetHooksInput) *cloudformation.DescribeChangeSetHooksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeChangeSetHooksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeChangeSetHooksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeChangeSetHooksWithContext(_a0 context.Context, _a1 *cloudformation.DescribeChangeSetHooksInput, _a2 ...request.Option) (*cloudformation.DescribeChangeSetHooksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeChangeSetHooksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeChangeSetHooksInput, ...request.Option) (*cloudformation.DescribeChangeSetHooksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeChangeSetHooksInput, ...request.Option) *cloudformation.DescribeChangeSetHooksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeChangeSetHooksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeChangeSetHooksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeChangeSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeChangeSetRequest(_a0 *cloudformation.DescribeChangeSetInput) (*request.Request, *cloudformation.DescribeChangeSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeChangeSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetInput) (*request.Request, *cloudformation.DescribeChangeSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeChangeSetInput) *cloudformation.DescribeChangeSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeChangeSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeChangeSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeChangeSetWithContext(_a0 context.Context, _a1 *cloudformation.DescribeChangeSetInput, _a2 ...request.Option) (*cloudformation.DescribeChangeSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeChangeSetInput, ...request.Option) (*cloudformation.DescribeChangeSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeChangeSetInput, ...request.Option) *cloudformation.DescribeChangeSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeChangeSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePublisher provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribePublisher(_a0 *cloudformation.DescribePublisherInput) (*cloudformation.DescribePublisherOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribePublisherOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribePublisherInput) (*cloudformation.DescribePublisherOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribePublisherInput) *cloudformation.DescribePublisherOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribePublisherOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribePublisherInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePublisherRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribePublisherRequest(_a0 *cloudformation.DescribePublisherInput) (*request.Request, *cloudformation.DescribePublisherOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribePublisherOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribePublisherInput) (*request.Request, *cloudformation.DescribePublisherOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribePublisherInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribePublisherInput) *cloudformation.DescribePublisherOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribePublisherOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePublisherWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribePublisherWithContext(_a0 context.Context, _a1 *cloudformation.DescribePublisherInput, _a2 ...request.Option) (*cloudformation.DescribePublisherOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribePublisherOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribePublisherInput, ...request.Option) (*cloudformation.DescribePublisherOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribePublisherInput, ...request.Option) *cloudformation.DescribePublisherOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribePublisherOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribePublisherInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackDriftDetectionStatus provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackDriftDetectionStatus(_a0 *cloudformation.DescribeStackDriftDetectionStatusInput) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackDriftDetectionStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) *cloudformation.DescribeStackDriftDetectionStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackDriftDetectionStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackDriftDetectionStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackDriftDetectionStatusRequest(_a0 *cloudformation.DescribeStackDriftDetectionStatusInput) (*request.Request, *cloudformation.DescribeStackDriftDetectionStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackDriftDetectionStatusOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) (*request.Request, *cloudformation.DescribeStackDriftDetectionStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackDriftDetectionStatusInput) *cloudformation.DescribeStackDriftDetectionStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackDriftDetectionStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackDriftDetectionStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackDriftDetectionStatusWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackDriftDetectionStatusInput, _a2 ...request.Option) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackDriftDetectionStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackDriftDetectionStatusInput, ...request.Option) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackDriftDetectionStatusInput, ...request.Option) *cloudformation.DescribeStackDriftDetectionStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackDriftDetectionStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackDriftDetectionStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackEvents provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackEvents(_a0 *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackEventsInput) *cloudformation.DescribeStackEventsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackEventsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackEventsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) DescribeStackEventsPages(_a0 *cloudformation.DescribeStackEventsInput, _a1 func(*cloudformation.DescribeStackEventsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackEventsInput, func(*cloudformation.DescribeStackEventsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStackEventsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) DescribeStackEventsPagesWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackEventsInput, _a2 func(*cloudformation.DescribeStackEventsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackEventsInput, func(*cloudformation.DescribeStackEventsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStackEventsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackEventsRequest(_a0 *cloudformation.DescribeStackEventsInput) (*request.Request, *cloudformation.DescribeStackEventsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackEventsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackEventsInput) (*request.Request, *cloudformation.DescribeStackEventsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackEventsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackEventsInput) *cloudformation.DescribeStackEventsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackEventsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackEventsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackEventsWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackEventsInput, _a2 ...request.Option) (*cloudformation.DescribeStackEventsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackEventsInput, ...request.Option) (*cloudformation.DescribeStackEventsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackEventsInput, ...request.Option) *cloudformation.DescribeStackEventsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackEventsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackInstance provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackInstance(_a0 *cloudformation.DescribeStackInstanceInput) (*cloudformation.DescribeStackInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackInstanceInput) (*cloudformation.DescribeStackInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackInstanceInput) *cloudformation.DescribeStackInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackInstanceRequest(_a0 *cloudformation.DescribeStackInstanceInput) (*request.Request, *cloudformation.DescribeStackInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackInstanceOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackInstanceInput) (*request.Request, *cloudformation.DescribeStackInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackInstanceInput) *cloudformation.DescribeStackInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackInstanceWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackInstanceInput, _a2 ...request.Option) (*cloudformation.DescribeStackInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackInstanceInput, ...request.Option) (*cloudformation.DescribeStackInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackInstanceInput, ...request.Option) *cloudformation.DescribeStackInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResource provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResource(_a0 *cloudformation.DescribeStackResourceInput) (*cloudformation.DescribeStackResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceInput) (*cloudformation.DescribeStackResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceInput) *cloudformation.DescribeStackResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResourceDrifts provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResourceDrifts(_a0 *cloudformation.DescribeStackResourceDriftsInput) (*cloudformation.DescribeStackResourceDriftsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackResourceDriftsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceDriftsInput) (*cloudformation.DescribeStackResourceDriftsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceDriftsInput) *cloudformation.DescribeStackResourceDriftsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourceDriftsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourceDriftsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResourceDriftsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) DescribeStackResourceDriftsPages(_a0 *cloudformation.DescribeStackResourceDriftsInput, _a1 func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceDriftsInput, func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStackResourceDriftsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) DescribeStackResourceDriftsPagesWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackResourceDriftsInput, _a2 func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourceDriftsInput, func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStackResourceDriftsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResourceDriftsRequest(_a0 *cloudformation.DescribeStackResourceDriftsInput) (*request.Request, *cloudformation.DescribeStackResourceDriftsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackResourceDriftsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceDriftsInput) (*request.Request, *cloudformation.DescribeStackResourceDriftsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceDriftsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourceDriftsInput) *cloudformation.DescribeStackResourceDriftsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackResourceDriftsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackResourceDriftsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackResourceDriftsWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackResourceDriftsInput, _a2 ...request.Option) (*cloudformation.DescribeStackResourceDriftsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackResourceDriftsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourceDriftsInput, ...request.Option) (*cloudformation.DescribeStackResourceDriftsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourceDriftsInput, ...request.Option) *cloudformation.DescribeStackResourceDriftsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourceDriftsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackResourceDriftsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResourceRequest(_a0 *cloudformation.DescribeStackResourceInput) (*request.Request, *cloudformation.DescribeStackResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackResourceOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceInput) (*request.Request, *cloudformation.DescribeStackResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourceInput) *cloudformation.DescribeStackResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackResourceWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackResourceInput, _a2 ...request.Option) (*cloudformation.DescribeStackResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourceInput, ...request.Option) (*cloudformation.DescribeStackResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourceInput, ...request.Option) *cloudformation.DescribeStackResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResources provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResources(_a0 *cloudformation.DescribeStackResourcesInput) (*cloudformation.DescribeStackResourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourcesInput) (*cloudformation.DescribeStackResourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourcesInput) *cloudformation.DescribeStackResourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackResourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackResourcesRequest(_a0 *cloudformation.DescribeStackResourcesInput) (*request.Request, *cloudformation.DescribeStackResourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackResourcesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourcesInput) (*request.Request, *cloudformation.DescribeStackResourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackResourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackResourcesInput) *cloudformation.DescribeStackResourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackResourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackResourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackResourcesWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackResourcesInput, _a2 ...request.Option) (*cloudformation.DescribeStackResourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourcesInput, ...request.Option) (*cloudformation.DescribeStackResourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackResourcesInput, ...request.Option) *cloudformation.DescribeStackResourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackResourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackSet(_a0 *cloudformation.DescribeStackSetInput) (*cloudformation.DescribeStackSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetInput) (*cloudformation.DescribeStackSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetInput) *cloudformation.DescribeStackSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackSetOperation provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackSetOperation(_a0 *cloudformation.DescribeStackSetOperationInput) (*cloudformation.DescribeStackSetOperationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStackSetOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetOperationInput) (*cloudformation.DescribeStackSetOperationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetOperationInput) *cloudformation.DescribeStackSetOperationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackSetOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackSetOperationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackSetOperationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackSetOperationRequest(_a0 *cloudformation.DescribeStackSetOperationInput) (*request.Request, *cloudformation.DescribeStackSetOperationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackSetOperationOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetOperationInput) (*request.Request, *cloudformation.DescribeStackSetOperationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetOperationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackSetOperationInput) *cloudformation.DescribeStackSetOperationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackSetOperationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackSetOperationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackSetOperationWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackSetOperationInput, _a2 ...request.Option) (*cloudformation.DescribeStackSetOperationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackSetOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackSetOperationInput, ...request.Option) (*cloudformation.DescribeStackSetOperationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackSetOperationInput, ...request.Option) *cloudformation.DescribeStackSetOperationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackSetOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackSetOperationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStackSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStackSetRequest(_a0 *cloudformation.DescribeStackSetInput) (*request.Request, *cloudformation.DescribeStackSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStackSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetInput) (*request.Request, *cloudformation.DescribeStackSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStackSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStackSetInput) *cloudformation.DescribeStackSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStackSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStackSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStackSetWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStackSetInput, _a2 ...request.Option) (*cloudformation.DescribeStackSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackSetInput, ...request.Option) (*cloudformation.DescribeStackSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStackSetInput, ...request.Option) *cloudformation.DescribeStackSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStackSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStacks provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStacks(_a0 *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeStacksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) *cloudformation.DescribeStacksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStacksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStacksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStacksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) DescribeStacksPages(_a0 *cloudformation.DescribeStacksInput, _a1 func(*cloudformation.DescribeStacksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput, func(*cloudformation.DescribeStacksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStacksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) DescribeStacksPagesWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 func(*cloudformation.DescribeStacksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, func(*cloudformation.DescribeStacksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStacksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeStacksRequest(_a0 *cloudformation.DescribeStacksInput) (*request.Request, *cloudformation.DescribeStacksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeStacksOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) (*request.Request, *cloudformation.DescribeStacksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeStacksInput) *cloudformation.DescribeStacksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeStacksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStacksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeStacksWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.Option) (*cloudformation.DescribeStacksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeStacksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.Option) (*cloudformation.DescribeStacksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.Option) *cloudformation.DescribeStacksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeStacksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeType(_a0 *cloudformation.DescribeTypeInput) (*cloudformation.DescribeTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeInput) (*cloudformation.DescribeTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeInput) *cloudformation.DescribeTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTypeRegistration provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeTypeRegistration(_a0 *cloudformation.DescribeTypeRegistrationInput) (*cloudformation.DescribeTypeRegistrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DescribeTypeRegistrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeRegistrationInput) (*cloudformation.DescribeTypeRegistrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeRegistrationInput) *cloudformation.DescribeTypeRegistrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeTypeRegistrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeTypeRegistrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTypeRegistrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeTypeRegistrationRequest(_a0 *cloudformation.DescribeTypeRegistrationInput) (*request.Request, *cloudformation.DescribeTypeRegistrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeTypeRegistrationOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeRegistrationInput) (*request.Request, *cloudformation.DescribeTypeRegistrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeRegistrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeTypeRegistrationInput) *cloudformation.DescribeTypeRegistrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeTypeRegistrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTypeRegistrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeTypeRegistrationWithContext(_a0 context.Context, _a1 *cloudformation.DescribeTypeRegistrationInput, _a2 ...request.Option) (*cloudformation.DescribeTypeRegistrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeTypeRegistrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeTypeRegistrationInput, ...request.Option) (*cloudformation.DescribeTypeRegistrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeTypeRegistrationInput, ...request.Option) *cloudformation.DescribeTypeRegistrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeTypeRegistrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeTypeRegistrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DescribeTypeRequest(_a0 *cloudformation.DescribeTypeInput) (*request.Request, *cloudformation.DescribeTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DescribeTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeInput) (*request.Request, *cloudformation.DescribeTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DescribeTypeInput) *cloudformation.DescribeTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DescribeTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DescribeTypeWithContext(_a0 context.Context, _a1 *cloudformation.DescribeTypeInput, _a2 ...request.Option) (*cloudformation.DescribeTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DescribeTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeTypeInput, ...request.Option) (*cloudformation.DescribeTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeTypeInput, ...request.Option) *cloudformation.DescribeTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DescribeTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DescribeTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackDrift provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackDrift(_a0 *cloudformation.DetectStackDriftInput) (*cloudformation.DetectStackDriftOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DetectStackDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackDriftInput) (*cloudformation.DetectStackDriftOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackDriftInput) *cloudformation.DetectStackDriftOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackDriftInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackDriftRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackDriftRequest(_a0 *cloudformation.DetectStackDriftInput) (*request.Request, *cloudformation.DetectStackDriftOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DetectStackDriftOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackDriftInput) (*request.Request, *cloudformation.DetectStackDriftOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackDriftInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackDriftInput) *cloudformation.DetectStackDriftOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DetectStackDriftOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetectStackDriftWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DetectStackDriftWithContext(_a0 context.Context, _a1 *cloudformation.DetectStackDriftInput, _a2 ...request.Option) (*cloudformation.DetectStackDriftOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DetectStackDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackDriftInput, ...request.Option) (*cloudformation.DetectStackDriftOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackDriftInput, ...request.Option) *cloudformation.DetectStackDriftOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DetectStackDriftInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackResourceDrift provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackResourceDrift(_a0 *cloudformation.DetectStackResourceDriftInput) (*cloudformation.DetectStackResourceDriftOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DetectStackResourceDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackResourceDriftInput) (*cloudformation.DetectStackResourceDriftOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackResourceDriftInput) *cloudformation.DetectStackResourceDriftOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackResourceDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackResourceDriftInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackResourceDriftRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackResourceDriftRequest(_a0 *cloudformation.DetectStackResourceDriftInput) (*request.Request, *cloudformation.DetectStackResourceDriftOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DetectStackResourceDriftOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackResourceDriftInput) (*request.Request, *cloudformation.DetectStackResourceDriftOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackResourceDriftInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackResourceDriftInput) *cloudformation.DetectStackResourceDriftOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DetectStackResourceDriftOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetectStackResourceDriftWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DetectStackResourceDriftWithContext(_a0 context.Context, _a1 *cloudformation.DetectStackResourceDriftInput, _a2 ...request.Option) (*cloudformation.DetectStackResourceDriftOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DetectStackResourceDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackResourceDriftInput, ...request.Option) (*cloudformation.DetectStackResourceDriftOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackResourceDriftInput, ...request.Option) *cloudformation.DetectStackResourceDriftOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackResourceDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DetectStackResourceDriftInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackSetDrift provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackSetDrift(_a0 *cloudformation.DetectStackSetDriftInput) (*cloudformation.DetectStackSetDriftOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.DetectStackSetDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackSetDriftInput) (*cloudformation.DetectStackSetDriftOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackSetDriftInput) *cloudformation.DetectStackSetDriftOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackSetDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackSetDriftInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetectStackSetDriftRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) DetectStackSetDriftRequest(_a0 *cloudformation.DetectStackSetDriftInput) (*request.Request, *cloudformation.DetectStackSetDriftOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.DetectStackSetDriftOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackSetDriftInput) (*request.Request, *cloudformation.DetectStackSetDriftOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.DetectStackSetDriftInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.DetectStackSetDriftInput) *cloudformation.DetectStackSetDriftOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.DetectStackSetDriftOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetectStackSetDriftWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) DetectStackSetDriftWithContext(_a0 context.Context, _a1 *cloudformation.DetectStackSetDriftInput, _a2 ...request.Option) (*cloudformation.DetectStackSetDriftOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.DetectStackSetDriftOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackSetDriftInput, ...request.Option) (*cloudformation.DetectStackSetDriftOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DetectStackSetDriftInput, ...request.Option) *cloudformation.DetectStackSetDriftOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.DetectStackSetDriftOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.DetectStackSetDriftInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EstimateTemplateCost provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) EstimateTemplateCost(_a0 *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.EstimateTemplateCostOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.EstimateTemplateCostInput) *cloudformation.EstimateTemplateCostOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.EstimateTemplateCostOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.EstimateTemplateCostInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EstimateTemplateCostRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) EstimateTemplateCostRequest(_a0 *cloudformation.EstimateTemplateCostInput) (*request.Request, *cloudformation.EstimateTemplateCostOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.EstimateTemplateCostOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.EstimateTemplateCostInput) (*request.Request, *cloudformation.EstimateTemplateCostOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.EstimateTemplateCostInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.EstimateTemplateCostInput) *cloudformation.EstimateTemplateCostOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.EstimateTemplateCostOutput)
- }
- }
-
- return r0, r1
-}
-
-// EstimateTemplateCostWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) EstimateTemplateCostWithContext(_a0 context.Context, _a1 *cloudformation.EstimateTemplateCostInput, _a2 ...request.Option) (*cloudformation.EstimateTemplateCostOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.EstimateTemplateCostOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.EstimateTemplateCostInput, ...request.Option) (*cloudformation.EstimateTemplateCostOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.EstimateTemplateCostInput, ...request.Option) *cloudformation.EstimateTemplateCostOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.EstimateTemplateCostOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.EstimateTemplateCostInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteChangeSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ExecuteChangeSet(_a0 *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ExecuteChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ExecuteChangeSetInput) *cloudformation.ExecuteChangeSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ExecuteChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ExecuteChangeSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteChangeSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ExecuteChangeSetRequest(_a0 *cloudformation.ExecuteChangeSetInput) (*request.Request, *cloudformation.ExecuteChangeSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ExecuteChangeSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ExecuteChangeSetInput) (*request.Request, *cloudformation.ExecuteChangeSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ExecuteChangeSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ExecuteChangeSetInput) *cloudformation.ExecuteChangeSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ExecuteChangeSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExecuteChangeSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ExecuteChangeSetWithContext(_a0 context.Context, _a1 *cloudformation.ExecuteChangeSetInput, _a2 ...request.Option) (*cloudformation.ExecuteChangeSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ExecuteChangeSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ExecuteChangeSetInput, ...request.Option) (*cloudformation.ExecuteChangeSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ExecuteChangeSetInput, ...request.Option) *cloudformation.ExecuteChangeSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ExecuteChangeSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ExecuteChangeSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStackPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetStackPolicy(_a0 *cloudformation.GetStackPolicyInput) (*cloudformation.GetStackPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.GetStackPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.GetStackPolicyInput) (*cloudformation.GetStackPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetStackPolicyInput) *cloudformation.GetStackPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetStackPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetStackPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStackPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetStackPolicyRequest(_a0 *cloudformation.GetStackPolicyInput) (*request.Request, *cloudformation.GetStackPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.GetStackPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.GetStackPolicyInput) (*request.Request, *cloudformation.GetStackPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetStackPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetStackPolicyInput) *cloudformation.GetStackPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.GetStackPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStackPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) GetStackPolicyWithContext(_a0 context.Context, _a1 *cloudformation.GetStackPolicyInput, _a2 ...request.Option) (*cloudformation.GetStackPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.GetStackPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetStackPolicyInput, ...request.Option) (*cloudformation.GetStackPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetStackPolicyInput, ...request.Option) *cloudformation.GetStackPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetStackPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.GetStackPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetTemplate(_a0 *cloudformation.GetTemplateInput) (*cloudformation.GetTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.GetTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateInput) (*cloudformation.GetTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateInput) *cloudformation.GetTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetTemplateRequest(_a0 *cloudformation.GetTemplateInput) (*request.Request, *cloudformation.GetTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.GetTemplateOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateInput) (*request.Request, *cloudformation.GetTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetTemplateInput) *cloudformation.GetTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.GetTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTemplateSummary provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetTemplateSummary(_a0 *cloudformation.GetTemplateSummaryInput) (*cloudformation.GetTemplateSummaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.GetTemplateSummaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateSummaryInput) (*cloudformation.GetTemplateSummaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateSummaryInput) *cloudformation.GetTemplateSummaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetTemplateSummaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetTemplateSummaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTemplateSummaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) GetTemplateSummaryRequest(_a0 *cloudformation.GetTemplateSummaryInput) (*request.Request, *cloudformation.GetTemplateSummaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.GetTemplateSummaryOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateSummaryInput) (*request.Request, *cloudformation.GetTemplateSummaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.GetTemplateSummaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.GetTemplateSummaryInput) *cloudformation.GetTemplateSummaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.GetTemplateSummaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTemplateSummaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) GetTemplateSummaryWithContext(_a0 context.Context, _a1 *cloudformation.GetTemplateSummaryInput, _a2 ...request.Option) (*cloudformation.GetTemplateSummaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.GetTemplateSummaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetTemplateSummaryInput, ...request.Option) (*cloudformation.GetTemplateSummaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetTemplateSummaryInput, ...request.Option) *cloudformation.GetTemplateSummaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetTemplateSummaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.GetTemplateSummaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) GetTemplateWithContext(_a0 context.Context, _a1 *cloudformation.GetTemplateInput, _a2 ...request.Option) (*cloudformation.GetTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.GetTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetTemplateInput, ...request.Option) (*cloudformation.GetTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.GetTemplateInput, ...request.Option) *cloudformation.GetTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.GetTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.GetTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportStacksToStackSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ImportStacksToStackSet(_a0 *cloudformation.ImportStacksToStackSetInput) (*cloudformation.ImportStacksToStackSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ImportStacksToStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ImportStacksToStackSetInput) (*cloudformation.ImportStacksToStackSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ImportStacksToStackSetInput) *cloudformation.ImportStacksToStackSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ImportStacksToStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ImportStacksToStackSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportStacksToStackSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ImportStacksToStackSetRequest(_a0 *cloudformation.ImportStacksToStackSetInput) (*request.Request, *cloudformation.ImportStacksToStackSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ImportStacksToStackSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ImportStacksToStackSetInput) (*request.Request, *cloudformation.ImportStacksToStackSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ImportStacksToStackSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ImportStacksToStackSetInput) *cloudformation.ImportStacksToStackSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ImportStacksToStackSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportStacksToStackSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ImportStacksToStackSetWithContext(_a0 context.Context, _a1 *cloudformation.ImportStacksToStackSetInput, _a2 ...request.Option) (*cloudformation.ImportStacksToStackSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ImportStacksToStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ImportStacksToStackSetInput, ...request.Option) (*cloudformation.ImportStacksToStackSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ImportStacksToStackSetInput, ...request.Option) *cloudformation.ImportStacksToStackSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ImportStacksToStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ImportStacksToStackSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListChangeSets provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListChangeSets(_a0 *cloudformation.ListChangeSetsInput) (*cloudformation.ListChangeSetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListChangeSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListChangeSetsInput) (*cloudformation.ListChangeSetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListChangeSetsInput) *cloudformation.ListChangeSetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListChangeSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListChangeSetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListChangeSetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListChangeSetsPages(_a0 *cloudformation.ListChangeSetsInput, _a1 func(*cloudformation.ListChangeSetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListChangeSetsInput, func(*cloudformation.ListChangeSetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListChangeSetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListChangeSetsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListChangeSetsInput, _a2 func(*cloudformation.ListChangeSetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListChangeSetsInput, func(*cloudformation.ListChangeSetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListChangeSetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListChangeSetsRequest(_a0 *cloudformation.ListChangeSetsInput) (*request.Request, *cloudformation.ListChangeSetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListChangeSetsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListChangeSetsInput) (*request.Request, *cloudformation.ListChangeSetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListChangeSetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListChangeSetsInput) *cloudformation.ListChangeSetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListChangeSetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListChangeSetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListChangeSetsWithContext(_a0 context.Context, _a1 *cloudformation.ListChangeSetsInput, _a2 ...request.Option) (*cloudformation.ListChangeSetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListChangeSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListChangeSetsInput, ...request.Option) (*cloudformation.ListChangeSetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListChangeSetsInput, ...request.Option) *cloudformation.ListChangeSetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListChangeSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListChangeSetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListExports provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListExports(_a0 *cloudformation.ListExportsInput) (*cloudformation.ListExportsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListExportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListExportsInput) (*cloudformation.ListExportsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListExportsInput) *cloudformation.ListExportsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListExportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListExportsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListExportsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListExportsPages(_a0 *cloudformation.ListExportsInput, _a1 func(*cloudformation.ListExportsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListExportsInput, func(*cloudformation.ListExportsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListExportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListExportsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListExportsInput, _a2 func(*cloudformation.ListExportsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListExportsInput, func(*cloudformation.ListExportsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListExportsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListExportsRequest(_a0 *cloudformation.ListExportsInput) (*request.Request, *cloudformation.ListExportsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListExportsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListExportsInput) (*request.Request, *cloudformation.ListExportsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListExportsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListExportsInput) *cloudformation.ListExportsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListExportsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListExportsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListExportsWithContext(_a0 context.Context, _a1 *cloudformation.ListExportsInput, _a2 ...request.Option) (*cloudformation.ListExportsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListExportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListExportsInput, ...request.Option) (*cloudformation.ListExportsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListExportsInput, ...request.Option) *cloudformation.ListExportsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListExportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListExportsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImports provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListImports(_a0 *cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListImportsInput) *cloudformation.ListImportsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListImportsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImportsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListImportsPages(_a0 *cloudformation.ListImportsInput, _a1 func(*cloudformation.ListImportsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListImportsInput, func(*cloudformation.ListImportsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListImportsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListImportsInput, _a2 func(*cloudformation.ListImportsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListImportsInput, func(*cloudformation.ListImportsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListImportsRequest(_a0 *cloudformation.ListImportsInput) (*request.Request, *cloudformation.ListImportsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListImportsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListImportsInput) (*request.Request, *cloudformation.ListImportsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListImportsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListImportsInput) *cloudformation.ListImportsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListImportsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImportsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListImportsWithContext(_a0 context.Context, _a1 *cloudformation.ListImportsInput, _a2 ...request.Option) (*cloudformation.ListImportsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListImportsInput, ...request.Option) (*cloudformation.ListImportsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListImportsInput, ...request.Option) *cloudformation.ListImportsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListImportsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackInstances provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackInstances(_a0 *cloudformation.ListStackInstancesInput) (*cloudformation.ListStackInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackInstancesInput) (*cloudformation.ListStackInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackInstancesInput) *cloudformation.ListStackInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStackInstancesPages(_a0 *cloudformation.ListStackInstancesInput, _a1 func(*cloudformation.ListStackInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackInstancesInput, func(*cloudformation.ListStackInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStackInstancesPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackInstancesInput, _a2 func(*cloudformation.ListStackInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackInstancesInput, func(*cloudformation.ListStackInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackInstancesRequest(_a0 *cloudformation.ListStackInstancesInput) (*request.Request, *cloudformation.ListStackInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStackInstancesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackInstancesInput) (*request.Request, *cloudformation.ListStackInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackInstancesInput) *cloudformation.ListStackInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStackInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStackInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStackInstancesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackInstancesInput, _a2 ...request.Option) (*cloudformation.ListStackInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackInstancesInput, ...request.Option) (*cloudformation.ListStackInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackInstancesInput, ...request.Option) *cloudformation.ListStackInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStackInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackResources provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackResources(_a0 *cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStackResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackResourcesInput) *cloudformation.ListStackResourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackResourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackResourcesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStackResourcesPages(_a0 *cloudformation.ListStackResourcesInput, _a1 func(*cloudformation.ListStackResourcesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackResourcesInput, func(*cloudformation.ListStackResourcesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackResourcesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStackResourcesPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackResourcesInput, _a2 func(*cloudformation.ListStackResourcesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackResourcesInput, func(*cloudformation.ListStackResourcesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackResourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackResourcesRequest(_a0 *cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStackResourcesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackResourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackResourcesInput) *cloudformation.ListStackResourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStackResourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStackResourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStackResourcesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackResourcesInput, _a2 ...request.Option) (*cloudformation.ListStackResourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStackResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackResourcesInput, ...request.Option) (*cloudformation.ListStackResourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackResourcesInput, ...request.Option) *cloudformation.ListStackResourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStackResourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSetOperationResults provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSetOperationResults(_a0 *cloudformation.ListStackSetOperationResultsInput) (*cloudformation.ListStackSetOperationResultsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStackSetOperationResultsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationResultsInput) (*cloudformation.ListStackSetOperationResultsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationResultsInput) *cloudformation.ListStackSetOperationResultsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetOperationResultsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetOperationResultsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSetOperationResultsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStackSetOperationResultsPages(_a0 *cloudformation.ListStackSetOperationResultsInput, _a1 func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationResultsInput, func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetOperationResultsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStackSetOperationResultsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetOperationResultsInput, _a2 func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationResultsInput, func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetOperationResultsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSetOperationResultsRequest(_a0 *cloudformation.ListStackSetOperationResultsInput) (*request.Request, *cloudformation.ListStackSetOperationResultsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStackSetOperationResultsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationResultsInput) (*request.Request, *cloudformation.ListStackSetOperationResultsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationResultsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetOperationResultsInput) *cloudformation.ListStackSetOperationResultsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStackSetOperationResultsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStackSetOperationResultsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStackSetOperationResultsWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetOperationResultsInput, _a2 ...request.Option) (*cloudformation.ListStackSetOperationResultsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStackSetOperationResultsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationResultsInput, ...request.Option) (*cloudformation.ListStackSetOperationResultsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationResultsInput, ...request.Option) *cloudformation.ListStackSetOperationResultsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetOperationResultsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStackSetOperationResultsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSetOperations provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSetOperations(_a0 *cloudformation.ListStackSetOperationsInput) (*cloudformation.ListStackSetOperationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStackSetOperationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationsInput) (*cloudformation.ListStackSetOperationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationsInput) *cloudformation.ListStackSetOperationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetOperationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetOperationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSetOperationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStackSetOperationsPages(_a0 *cloudformation.ListStackSetOperationsInput, _a1 func(*cloudformation.ListStackSetOperationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationsInput, func(*cloudformation.ListStackSetOperationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetOperationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStackSetOperationsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetOperationsInput, _a2 func(*cloudformation.ListStackSetOperationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationsInput, func(*cloudformation.ListStackSetOperationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetOperationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSetOperationsRequest(_a0 *cloudformation.ListStackSetOperationsInput) (*request.Request, *cloudformation.ListStackSetOperationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStackSetOperationsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationsInput) (*request.Request, *cloudformation.ListStackSetOperationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetOperationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetOperationsInput) *cloudformation.ListStackSetOperationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStackSetOperationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStackSetOperationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStackSetOperationsWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetOperationsInput, _a2 ...request.Option) (*cloudformation.ListStackSetOperationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStackSetOperationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationsInput, ...request.Option) (*cloudformation.ListStackSetOperationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetOperationsInput, ...request.Option) *cloudformation.ListStackSetOperationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetOperationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStackSetOperationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSets provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSets(_a0 *cloudformation.ListStackSetsInput) (*cloudformation.ListStackSetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStackSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetsInput) (*cloudformation.ListStackSetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetsInput) *cloudformation.ListStackSetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStackSetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStackSetsPages(_a0 *cloudformation.ListStackSetsInput, _a1 func(*cloudformation.ListStackSetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetsInput, func(*cloudformation.ListStackSetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStackSetsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetsInput, _a2 func(*cloudformation.ListStackSetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetsInput, func(*cloudformation.ListStackSetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStackSetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStackSetsRequest(_a0 *cloudformation.ListStackSetsInput) (*request.Request, *cloudformation.ListStackSetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStackSetsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetsInput) (*request.Request, *cloudformation.ListStackSetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStackSetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStackSetsInput) *cloudformation.ListStackSetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStackSetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStackSetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStackSetsWithContext(_a0 context.Context, _a1 *cloudformation.ListStackSetsInput, _a2 ...request.Option) (*cloudformation.ListStackSetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStackSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetsInput, ...request.Option) (*cloudformation.ListStackSetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStackSetsInput, ...request.Option) *cloudformation.ListStackSetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStackSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStackSetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStacks provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStacks(_a0 *cloudformation.ListStacksInput) (*cloudformation.ListStacksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListStacksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStacksInput) (*cloudformation.ListStacksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStacksInput) *cloudformation.ListStacksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStacksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStacksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStacksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListStacksPages(_a0 *cloudformation.ListStacksInput, _a1 func(*cloudformation.ListStacksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStacksInput, func(*cloudformation.ListStacksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStacksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListStacksPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListStacksInput, _a2 func(*cloudformation.ListStacksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStacksInput, func(*cloudformation.ListStacksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStacksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListStacksRequest(_a0 *cloudformation.ListStacksInput) (*request.Request, *cloudformation.ListStacksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListStacksOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStacksInput) (*request.Request, *cloudformation.ListStacksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListStacksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListStacksInput) *cloudformation.ListStacksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListStacksOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStacksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListStacksWithContext(_a0 context.Context, _a1 *cloudformation.ListStacksInput, _a2 ...request.Option) (*cloudformation.ListStacksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListStacksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStacksInput, ...request.Option) (*cloudformation.ListStacksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListStacksInput, ...request.Option) *cloudformation.ListStacksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListStacksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListStacksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypeRegistrations provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypeRegistrations(_a0 *cloudformation.ListTypeRegistrationsInput) (*cloudformation.ListTypeRegistrationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListTypeRegistrationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeRegistrationsInput) (*cloudformation.ListTypeRegistrationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeRegistrationsInput) *cloudformation.ListTypeRegistrationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypeRegistrationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypeRegistrationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypeRegistrationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListTypeRegistrationsPages(_a0 *cloudformation.ListTypeRegistrationsInput, _a1 func(*cloudformation.ListTypeRegistrationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeRegistrationsInput, func(*cloudformation.ListTypeRegistrationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypeRegistrationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListTypeRegistrationsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListTypeRegistrationsInput, _a2 func(*cloudformation.ListTypeRegistrationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeRegistrationsInput, func(*cloudformation.ListTypeRegistrationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypeRegistrationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypeRegistrationsRequest(_a0 *cloudformation.ListTypeRegistrationsInput) (*request.Request, *cloudformation.ListTypeRegistrationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListTypeRegistrationsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeRegistrationsInput) (*request.Request, *cloudformation.ListTypeRegistrationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeRegistrationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypeRegistrationsInput) *cloudformation.ListTypeRegistrationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListTypeRegistrationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTypeRegistrationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListTypeRegistrationsWithContext(_a0 context.Context, _a1 *cloudformation.ListTypeRegistrationsInput, _a2 ...request.Option) (*cloudformation.ListTypeRegistrationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListTypeRegistrationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeRegistrationsInput, ...request.Option) (*cloudformation.ListTypeRegistrationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeRegistrationsInput, ...request.Option) *cloudformation.ListTypeRegistrationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypeRegistrationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListTypeRegistrationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypeVersions provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypeVersions(_a0 *cloudformation.ListTypeVersionsInput) (*cloudformation.ListTypeVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListTypeVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeVersionsInput) (*cloudformation.ListTypeVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeVersionsInput) *cloudformation.ListTypeVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypeVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypeVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypeVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListTypeVersionsPages(_a0 *cloudformation.ListTypeVersionsInput, _a1 func(*cloudformation.ListTypeVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeVersionsInput, func(*cloudformation.ListTypeVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypeVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListTypeVersionsPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListTypeVersionsInput, _a2 func(*cloudformation.ListTypeVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeVersionsInput, func(*cloudformation.ListTypeVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypeVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypeVersionsRequest(_a0 *cloudformation.ListTypeVersionsInput) (*request.Request, *cloudformation.ListTypeVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListTypeVersionsOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeVersionsInput) (*request.Request, *cloudformation.ListTypeVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypeVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypeVersionsInput) *cloudformation.ListTypeVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListTypeVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTypeVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListTypeVersionsWithContext(_a0 context.Context, _a1 *cloudformation.ListTypeVersionsInput, _a2 ...request.Option) (*cloudformation.ListTypeVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListTypeVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeVersionsInput, ...request.Option) (*cloudformation.ListTypeVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypeVersionsInput, ...request.Option) *cloudformation.ListTypeVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypeVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListTypeVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypes provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypes(_a0 *cloudformation.ListTypesInput) (*cloudformation.ListTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ListTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypesInput) (*cloudformation.ListTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypesInput) *cloudformation.ListTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTypesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudformation) ListTypesPages(_a0 *cloudformation.ListTypesInput, _a1 func(*cloudformation.ListTypesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypesInput, func(*cloudformation.ListTypesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudformation) ListTypesPagesWithContext(_a0 context.Context, _a1 *cloudformation.ListTypesInput, _a2 func(*cloudformation.ListTypesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypesInput, func(*cloudformation.ListTypesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ListTypesRequest(_a0 *cloudformation.ListTypesInput) (*request.Request, *cloudformation.ListTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ListTypesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypesInput) (*request.Request, *cloudformation.ListTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ListTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ListTypesInput) *cloudformation.ListTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ListTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ListTypesWithContext(_a0 context.Context, _a1 *cloudformation.ListTypesInput, _a2 ...request.Option) (*cloudformation.ListTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ListTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypesInput, ...request.Option) (*cloudformation.ListTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ListTypesInput, ...request.Option) *cloudformation.ListTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ListTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ListTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) PublishType(_a0 *cloudformation.PublishTypeInput) (*cloudformation.PublishTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.PublishTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.PublishTypeInput) (*cloudformation.PublishTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.PublishTypeInput) *cloudformation.PublishTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.PublishTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.PublishTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) PublishTypeRequest(_a0 *cloudformation.PublishTypeInput) (*request.Request, *cloudformation.PublishTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.PublishTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.PublishTypeInput) (*request.Request, *cloudformation.PublishTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.PublishTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.PublishTypeInput) *cloudformation.PublishTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.PublishTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// PublishTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) PublishTypeWithContext(_a0 context.Context, _a1 *cloudformation.PublishTypeInput, _a2 ...request.Option) (*cloudformation.PublishTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.PublishTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.PublishTypeInput, ...request.Option) (*cloudformation.PublishTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.PublishTypeInput, ...request.Option) *cloudformation.PublishTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.PublishTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.PublishTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RecordHandlerProgress provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RecordHandlerProgress(_a0 *cloudformation.RecordHandlerProgressInput) (*cloudformation.RecordHandlerProgressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.RecordHandlerProgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.RecordHandlerProgressInput) (*cloudformation.RecordHandlerProgressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RecordHandlerProgressInput) *cloudformation.RecordHandlerProgressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RecordHandlerProgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RecordHandlerProgressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RecordHandlerProgressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RecordHandlerProgressRequest(_a0 *cloudformation.RecordHandlerProgressInput) (*request.Request, *cloudformation.RecordHandlerProgressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.RecordHandlerProgressOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.RecordHandlerProgressInput) (*request.Request, *cloudformation.RecordHandlerProgressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RecordHandlerProgressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RecordHandlerProgressInput) *cloudformation.RecordHandlerProgressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.RecordHandlerProgressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RecordHandlerProgressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) RecordHandlerProgressWithContext(_a0 context.Context, _a1 *cloudformation.RecordHandlerProgressInput, _a2 ...request.Option) (*cloudformation.RecordHandlerProgressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.RecordHandlerProgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RecordHandlerProgressInput, ...request.Option) (*cloudformation.RecordHandlerProgressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RecordHandlerProgressInput, ...request.Option) *cloudformation.RecordHandlerProgressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RecordHandlerProgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.RecordHandlerProgressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterPublisher provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RegisterPublisher(_a0 *cloudformation.RegisterPublisherInput) (*cloudformation.RegisterPublisherOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.RegisterPublisherOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterPublisherInput) (*cloudformation.RegisterPublisherOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterPublisherInput) *cloudformation.RegisterPublisherOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RegisterPublisherOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RegisterPublisherInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterPublisherRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RegisterPublisherRequest(_a0 *cloudformation.RegisterPublisherInput) (*request.Request, *cloudformation.RegisterPublisherOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.RegisterPublisherOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterPublisherInput) (*request.Request, *cloudformation.RegisterPublisherOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterPublisherInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RegisterPublisherInput) *cloudformation.RegisterPublisherOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.RegisterPublisherOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterPublisherWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) RegisterPublisherWithContext(_a0 context.Context, _a1 *cloudformation.RegisterPublisherInput, _a2 ...request.Option) (*cloudformation.RegisterPublisherOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.RegisterPublisherOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RegisterPublisherInput, ...request.Option) (*cloudformation.RegisterPublisherOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RegisterPublisherInput, ...request.Option) *cloudformation.RegisterPublisherOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RegisterPublisherOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.RegisterPublisherInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RegisterType(_a0 *cloudformation.RegisterTypeInput) (*cloudformation.RegisterTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.RegisterTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterTypeInput) (*cloudformation.RegisterTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterTypeInput) *cloudformation.RegisterTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RegisterTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RegisterTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RegisterTypeRequest(_a0 *cloudformation.RegisterTypeInput) (*request.Request, *cloudformation.RegisterTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.RegisterTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterTypeInput) (*request.Request, *cloudformation.RegisterTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RegisterTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RegisterTypeInput) *cloudformation.RegisterTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.RegisterTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) RegisterTypeWithContext(_a0 context.Context, _a1 *cloudformation.RegisterTypeInput, _a2 ...request.Option) (*cloudformation.RegisterTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.RegisterTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RegisterTypeInput, ...request.Option) (*cloudformation.RegisterTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RegisterTypeInput, ...request.Option) *cloudformation.RegisterTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RegisterTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.RegisterTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RollbackStack provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RollbackStack(_a0 *cloudformation.RollbackStackInput) (*cloudformation.RollbackStackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.RollbackStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.RollbackStackInput) (*cloudformation.RollbackStackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RollbackStackInput) *cloudformation.RollbackStackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RollbackStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RollbackStackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RollbackStackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) RollbackStackRequest(_a0 *cloudformation.RollbackStackInput) (*request.Request, *cloudformation.RollbackStackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.RollbackStackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.RollbackStackInput) (*request.Request, *cloudformation.RollbackStackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.RollbackStackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.RollbackStackInput) *cloudformation.RollbackStackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.RollbackStackOutput)
- }
- }
-
- return r0, r1
-}
-
-// RollbackStackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) RollbackStackWithContext(_a0 context.Context, _a1 *cloudformation.RollbackStackInput, _a2 ...request.Option) (*cloudformation.RollbackStackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.RollbackStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RollbackStackInput, ...request.Option) (*cloudformation.RollbackStackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.RollbackStackInput, ...request.Option) *cloudformation.RollbackStackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.RollbackStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.RollbackStackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetStackPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetStackPolicy(_a0 *cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.SetStackPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetStackPolicyInput) *cloudformation.SetStackPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetStackPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetStackPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetStackPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetStackPolicyRequest(_a0 *cloudformation.SetStackPolicyInput) (*request.Request, *cloudformation.SetStackPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.SetStackPolicyOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.SetStackPolicyInput) (*request.Request, *cloudformation.SetStackPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetStackPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetStackPolicyInput) *cloudformation.SetStackPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.SetStackPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetStackPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) SetStackPolicyWithContext(_a0 context.Context, _a1 *cloudformation.SetStackPolicyInput, _a2 ...request.Option) (*cloudformation.SetStackPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.SetStackPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetStackPolicyInput, ...request.Option) (*cloudformation.SetStackPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetStackPolicyInput, ...request.Option) *cloudformation.SetStackPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetStackPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.SetStackPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTypeConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetTypeConfiguration(_a0 *cloudformation.SetTypeConfigurationInput) (*cloudformation.SetTypeConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.SetTypeConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeConfigurationInput) (*cloudformation.SetTypeConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeConfigurationInput) *cloudformation.SetTypeConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetTypeConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetTypeConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTypeConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetTypeConfigurationRequest(_a0 *cloudformation.SetTypeConfigurationInput) (*request.Request, *cloudformation.SetTypeConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.SetTypeConfigurationOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeConfigurationInput) (*request.Request, *cloudformation.SetTypeConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetTypeConfigurationInput) *cloudformation.SetTypeConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.SetTypeConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetTypeConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) SetTypeConfigurationWithContext(_a0 context.Context, _a1 *cloudformation.SetTypeConfigurationInput, _a2 ...request.Option) (*cloudformation.SetTypeConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.SetTypeConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetTypeConfigurationInput, ...request.Option) (*cloudformation.SetTypeConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetTypeConfigurationInput, ...request.Option) *cloudformation.SetTypeConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetTypeConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.SetTypeConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTypeDefaultVersion provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetTypeDefaultVersion(_a0 *cloudformation.SetTypeDefaultVersionInput) (*cloudformation.SetTypeDefaultVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.SetTypeDefaultVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeDefaultVersionInput) (*cloudformation.SetTypeDefaultVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeDefaultVersionInput) *cloudformation.SetTypeDefaultVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetTypeDefaultVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetTypeDefaultVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTypeDefaultVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SetTypeDefaultVersionRequest(_a0 *cloudformation.SetTypeDefaultVersionInput) (*request.Request, *cloudformation.SetTypeDefaultVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.SetTypeDefaultVersionOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeDefaultVersionInput) (*request.Request, *cloudformation.SetTypeDefaultVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SetTypeDefaultVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SetTypeDefaultVersionInput) *cloudformation.SetTypeDefaultVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.SetTypeDefaultVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetTypeDefaultVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) SetTypeDefaultVersionWithContext(_a0 context.Context, _a1 *cloudformation.SetTypeDefaultVersionInput, _a2 ...request.Option) (*cloudformation.SetTypeDefaultVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.SetTypeDefaultVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetTypeDefaultVersionInput, ...request.Option) (*cloudformation.SetTypeDefaultVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SetTypeDefaultVersionInput, ...request.Option) *cloudformation.SetTypeDefaultVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SetTypeDefaultVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.SetTypeDefaultVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SignalResource provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SignalResource(_a0 *cloudformation.SignalResourceInput) (*cloudformation.SignalResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.SignalResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.SignalResourceInput) (*cloudformation.SignalResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SignalResourceInput) *cloudformation.SignalResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SignalResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SignalResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SignalResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) SignalResourceRequest(_a0 *cloudformation.SignalResourceInput) (*request.Request, *cloudformation.SignalResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.SignalResourceOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.SignalResourceInput) (*request.Request, *cloudformation.SignalResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.SignalResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.SignalResourceInput) *cloudformation.SignalResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.SignalResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// SignalResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) SignalResourceWithContext(_a0 context.Context, _a1 *cloudformation.SignalResourceInput, _a2 ...request.Option) (*cloudformation.SignalResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.SignalResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SignalResourceInput, ...request.Option) (*cloudformation.SignalResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.SignalResourceInput, ...request.Option) *cloudformation.SignalResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.SignalResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.SignalResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopStackSetOperation provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) StopStackSetOperation(_a0 *cloudformation.StopStackSetOperationInput) (*cloudformation.StopStackSetOperationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.StopStackSetOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.StopStackSetOperationInput) (*cloudformation.StopStackSetOperationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.StopStackSetOperationInput) *cloudformation.StopStackSetOperationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.StopStackSetOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.StopStackSetOperationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopStackSetOperationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) StopStackSetOperationRequest(_a0 *cloudformation.StopStackSetOperationInput) (*request.Request, *cloudformation.StopStackSetOperationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.StopStackSetOperationOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.StopStackSetOperationInput) (*request.Request, *cloudformation.StopStackSetOperationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.StopStackSetOperationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.StopStackSetOperationInput) *cloudformation.StopStackSetOperationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.StopStackSetOperationOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopStackSetOperationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) StopStackSetOperationWithContext(_a0 context.Context, _a1 *cloudformation.StopStackSetOperationInput, _a2 ...request.Option) (*cloudformation.StopStackSetOperationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.StopStackSetOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.StopStackSetOperationInput, ...request.Option) (*cloudformation.StopStackSetOperationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.StopStackSetOperationInput, ...request.Option) *cloudformation.StopStackSetOperationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.StopStackSetOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.StopStackSetOperationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestType provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) TestType(_a0 *cloudformation.TestTypeInput) (*cloudformation.TestTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.TestTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.TestTypeInput) (*cloudformation.TestTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.TestTypeInput) *cloudformation.TestTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.TestTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.TestTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) TestTypeRequest(_a0 *cloudformation.TestTypeInput) (*request.Request, *cloudformation.TestTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.TestTypeOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.TestTypeInput) (*request.Request, *cloudformation.TestTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.TestTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.TestTypeInput) *cloudformation.TestTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.TestTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) TestTypeWithContext(_a0 context.Context, _a1 *cloudformation.TestTypeInput, _a2 ...request.Option) (*cloudformation.TestTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.TestTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.TestTypeInput, ...request.Option) (*cloudformation.TestTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.TestTypeInput, ...request.Option) *cloudformation.TestTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.TestTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.TestTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStack provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStack(_a0 *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.UpdateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInput) *cloudformation.UpdateStackOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStackInstances provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStackInstances(_a0 *cloudformation.UpdateStackInstancesInput) (*cloudformation.UpdateStackInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.UpdateStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInstancesInput) (*cloudformation.UpdateStackInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInstancesInput) *cloudformation.UpdateStackInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStackInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStackInstancesRequest(_a0 *cloudformation.UpdateStackInstancesInput) (*request.Request, *cloudformation.UpdateStackInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.UpdateStackInstancesOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInstancesInput) (*request.Request, *cloudformation.UpdateStackInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackInstancesInput) *cloudformation.UpdateStackInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.UpdateStackInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStackInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) UpdateStackInstancesWithContext(_a0 context.Context, _a1 *cloudformation.UpdateStackInstancesInput, _a2 ...request.Option) (*cloudformation.UpdateStackInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.UpdateStackInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackInstancesInput, ...request.Option) (*cloudformation.UpdateStackInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackInstancesInput, ...request.Option) *cloudformation.UpdateStackInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.UpdateStackInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStackRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStackRequest(_a0 *cloudformation.UpdateStackInput) (*request.Request, *cloudformation.UpdateStackOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.UpdateStackOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInput) (*request.Request, *cloudformation.UpdateStackOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackInput) *cloudformation.UpdateStackOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.UpdateStackOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStackSet provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStackSet(_a0 *cloudformation.UpdateStackSetInput) (*cloudformation.UpdateStackSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.UpdateStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackSetInput) (*cloudformation.UpdateStackSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackSetInput) *cloudformation.UpdateStackSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStackSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateStackSetRequest(_a0 *cloudformation.UpdateStackSetInput) (*request.Request, *cloudformation.UpdateStackSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.UpdateStackSetOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackSetInput) (*request.Request, *cloudformation.UpdateStackSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateStackSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateStackSetInput) *cloudformation.UpdateStackSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.UpdateStackSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateStackSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) UpdateStackSetWithContext(_a0 context.Context, _a1 *cloudformation.UpdateStackSetInput, _a2 ...request.Option) (*cloudformation.UpdateStackSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.UpdateStackSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackSetInput, ...request.Option) (*cloudformation.UpdateStackSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackSetInput, ...request.Option) *cloudformation.UpdateStackSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.UpdateStackSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateStackWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) UpdateStackWithContext(_a0 context.Context, _a1 *cloudformation.UpdateStackInput, _a2 ...request.Option) (*cloudformation.UpdateStackOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.UpdateStackOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackInput, ...request.Option) (*cloudformation.UpdateStackOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateStackInput, ...request.Option) *cloudformation.UpdateStackOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateStackOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.UpdateStackInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTerminationProtection provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateTerminationProtection(_a0 *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.UpdateTerminationProtectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateTerminationProtectionInput) *cloudformation.UpdateTerminationProtectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateTerminationProtectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateTerminationProtectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTerminationProtectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) UpdateTerminationProtectionRequest(_a0 *cloudformation.UpdateTerminationProtectionInput) (*request.Request, *cloudformation.UpdateTerminationProtectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.UpdateTerminationProtectionOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateTerminationProtectionInput) (*request.Request, *cloudformation.UpdateTerminationProtectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.UpdateTerminationProtectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.UpdateTerminationProtectionInput) *cloudformation.UpdateTerminationProtectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.UpdateTerminationProtectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTerminationProtectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) UpdateTerminationProtectionWithContext(_a0 context.Context, _a1 *cloudformation.UpdateTerminationProtectionInput, _a2 ...request.Option) (*cloudformation.UpdateTerminationProtectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.UpdateTerminationProtectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateTerminationProtectionInput, ...request.Option) (*cloudformation.UpdateTerminationProtectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.UpdateTerminationProtectionInput, ...request.Option) *cloudformation.UpdateTerminationProtectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.UpdateTerminationProtectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.UpdateTerminationProtectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ValidateTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ValidateTemplate(_a0 *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudformation.ValidateTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ValidateTemplateInput) *cloudformation.ValidateTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ValidateTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ValidateTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ValidateTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) ValidateTemplateRequest(_a0 *cloudformation.ValidateTemplateInput) (*request.Request, *cloudformation.ValidateTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudformation.ValidateTemplateOutput
- if rf, ok := ret.Get(0).(func(*cloudformation.ValidateTemplateInput) (*request.Request, *cloudformation.ValidateTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudformation.ValidateTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudformation.ValidateTemplateInput) *cloudformation.ValidateTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudformation.ValidateTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// ValidateTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) ValidateTemplateWithContext(_a0 context.Context, _a1 *cloudformation.ValidateTemplateInput, _a2 ...request.Option) (*cloudformation.ValidateTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudformation.ValidateTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ValidateTemplateInput, ...request.Option) (*cloudformation.ValidateTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.ValidateTemplateInput, ...request.Option) *cloudformation.ValidateTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudformation.ValidateTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudformation.ValidateTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilChangeSetCreateComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilChangeSetCreateComplete(_a0 *cloudformation.DescribeChangeSetInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeChangeSetInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilChangeSetCreateCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilChangeSetCreateCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeChangeSetInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeChangeSetInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackCreateComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackCreateComplete(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackCreateCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackCreateCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackDeleteComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackDeleteComplete(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackDeleteCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackDeleteCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackExists provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackExists(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackExistsWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackImportComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackImportComplete(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackImportCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackImportCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackRollbackComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackRollbackComplete(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackRollbackCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackRollbackCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackUpdateComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilStackUpdateComplete(_a0 *cloudformation.DescribeStacksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeStacksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilStackUpdateCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilStackUpdateCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeStacksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTypeRegistrationComplete provides a mock function with given fields: _a0
-func (_m *MockFakeCloudformation) WaitUntilTypeRegistrationComplete(_a0 *cloudformation.DescribeTypeRegistrationInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudformation.DescribeTypeRegistrationInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTypeRegistrationCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudformation) WaitUntilTypeRegistrationCompleteWithContext(_a0 context.Context, _a1 *cloudformation.DescribeTypeRegistrationInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudformation.DescribeTypeRegistrationInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeCloudformation interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeCloudformation creates a new instance of MockFakeCloudformation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeCloudformation(t mockConstructorTestingTNewMockFakeCloudformation) *MockFakeCloudformation {
- mock := &MockFakeCloudformation{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeCloudtrail.go b/test/aws/mock_FakeCloudtrail.go
deleted file mode 100644
index 533055d3f..000000000
--- a/test/aws/mock_FakeCloudtrail.go
+++ /dev/null
@@ -1,3515 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- cloudtrail "github.com/aws/aws-sdk-go/service/cloudtrail"
-
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeCloudtrail is an autogenerated mock type for the FakeCloudtrail type
-type MockFakeCloudtrail struct {
- mock.Mock
-}
-
-// AddTags provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) AddTags(_a0 *cloudtrail.AddTagsInput) (*cloudtrail.AddTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.AddTagsInput) (*cloudtrail.AddTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.AddTagsInput) *cloudtrail.AddTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.AddTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) AddTagsRequest(_a0 *cloudtrail.AddTagsInput) (*request.Request, *cloudtrail.AddTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.AddTagsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.AddTagsInput) (*request.Request, *cloudtrail.AddTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.AddTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.AddTagsInput) *cloudtrail.AddTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.AddTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) AddTagsWithContext(_a0 context.Context, _a1 *cloudtrail.AddTagsInput, _a2 ...request.Option) (*cloudtrail.AddTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.AddTagsInput, ...request.Option) (*cloudtrail.AddTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.AddTagsInput, ...request.Option) *cloudtrail.AddTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.AddTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelQuery provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CancelQuery(_a0 *cloudtrail.CancelQueryInput) (*cloudtrail.CancelQueryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.CancelQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.CancelQueryInput) (*cloudtrail.CancelQueryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CancelQueryInput) *cloudtrail.CancelQueryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CancelQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CancelQueryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelQueryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CancelQueryRequest(_a0 *cloudtrail.CancelQueryInput) (*request.Request, *cloudtrail.CancelQueryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.CancelQueryOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.CancelQueryInput) (*request.Request, *cloudtrail.CancelQueryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CancelQueryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CancelQueryInput) *cloudtrail.CancelQueryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.CancelQueryOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelQueryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) CancelQueryWithContext(_a0 context.Context, _a1 *cloudtrail.CancelQueryInput, _a2 ...request.Option) (*cloudtrail.CancelQueryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.CancelQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CancelQueryInput, ...request.Option) (*cloudtrail.CancelQueryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CancelQueryInput, ...request.Option) *cloudtrail.CancelQueryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CancelQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.CancelQueryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventDataStore provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CreateEventDataStore(_a0 *cloudtrail.CreateEventDataStoreInput) (*cloudtrail.CreateEventDataStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.CreateEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateEventDataStoreInput) (*cloudtrail.CreateEventDataStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateEventDataStoreInput) *cloudtrail.CreateEventDataStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CreateEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CreateEventDataStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventDataStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CreateEventDataStoreRequest(_a0 *cloudtrail.CreateEventDataStoreInput) (*request.Request, *cloudtrail.CreateEventDataStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.CreateEventDataStoreOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateEventDataStoreInput) (*request.Request, *cloudtrail.CreateEventDataStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateEventDataStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CreateEventDataStoreInput) *cloudtrail.CreateEventDataStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.CreateEventDataStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateEventDataStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) CreateEventDataStoreWithContext(_a0 context.Context, _a1 *cloudtrail.CreateEventDataStoreInput, _a2 ...request.Option) (*cloudtrail.CreateEventDataStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.CreateEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CreateEventDataStoreInput, ...request.Option) (*cloudtrail.CreateEventDataStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CreateEventDataStoreInput, ...request.Option) *cloudtrail.CreateEventDataStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CreateEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.CreateEventDataStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrail provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CreateTrail(_a0 *cloudtrail.CreateTrailInput) (*cloudtrail.CreateTrailOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.CreateTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateTrailInput) (*cloudtrail.CreateTrailOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateTrailInput) *cloudtrail.CreateTrailOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CreateTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CreateTrailInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrailRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) CreateTrailRequest(_a0 *cloudtrail.CreateTrailInput) (*request.Request, *cloudtrail.CreateTrailOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.CreateTrailOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateTrailInput) (*request.Request, *cloudtrail.CreateTrailOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.CreateTrailInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.CreateTrailInput) *cloudtrail.CreateTrailOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.CreateTrailOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrailWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) CreateTrailWithContext(_a0 context.Context, _a1 *cloudtrail.CreateTrailInput, _a2 ...request.Option) (*cloudtrail.CreateTrailOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.CreateTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CreateTrailInput, ...request.Option) (*cloudtrail.CreateTrailOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.CreateTrailInput, ...request.Option) *cloudtrail.CreateTrailOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.CreateTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.CreateTrailInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventDataStore provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DeleteEventDataStore(_a0 *cloudtrail.DeleteEventDataStoreInput) (*cloudtrail.DeleteEventDataStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.DeleteEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteEventDataStoreInput) (*cloudtrail.DeleteEventDataStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteEventDataStoreInput) *cloudtrail.DeleteEventDataStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DeleteEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DeleteEventDataStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventDataStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DeleteEventDataStoreRequest(_a0 *cloudtrail.DeleteEventDataStoreInput) (*request.Request, *cloudtrail.DeleteEventDataStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.DeleteEventDataStoreOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteEventDataStoreInput) (*request.Request, *cloudtrail.DeleteEventDataStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteEventDataStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DeleteEventDataStoreInput) *cloudtrail.DeleteEventDataStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.DeleteEventDataStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteEventDataStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) DeleteEventDataStoreWithContext(_a0 context.Context, _a1 *cloudtrail.DeleteEventDataStoreInput, _a2 ...request.Option) (*cloudtrail.DeleteEventDataStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.DeleteEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DeleteEventDataStoreInput, ...request.Option) (*cloudtrail.DeleteEventDataStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DeleteEventDataStoreInput, ...request.Option) *cloudtrail.DeleteEventDataStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DeleteEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.DeleteEventDataStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrail provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DeleteTrail(_a0 *cloudtrail.DeleteTrailInput) (*cloudtrail.DeleteTrailOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.DeleteTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteTrailInput) (*cloudtrail.DeleteTrailOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteTrailInput) *cloudtrail.DeleteTrailOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DeleteTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DeleteTrailInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrailRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DeleteTrailRequest(_a0 *cloudtrail.DeleteTrailInput) (*request.Request, *cloudtrail.DeleteTrailOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.DeleteTrailOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteTrailInput) (*request.Request, *cloudtrail.DeleteTrailOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DeleteTrailInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DeleteTrailInput) *cloudtrail.DeleteTrailOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.DeleteTrailOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrailWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) DeleteTrailWithContext(_a0 context.Context, _a1 *cloudtrail.DeleteTrailInput, _a2 ...request.Option) (*cloudtrail.DeleteTrailOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.DeleteTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DeleteTrailInput, ...request.Option) (*cloudtrail.DeleteTrailOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DeleteTrailInput, ...request.Option) *cloudtrail.DeleteTrailOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DeleteTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.DeleteTrailInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeQuery provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DescribeQuery(_a0 *cloudtrail.DescribeQueryInput) (*cloudtrail.DescribeQueryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.DescribeQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeQueryInput) (*cloudtrail.DescribeQueryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeQueryInput) *cloudtrail.DescribeQueryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DescribeQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DescribeQueryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeQueryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DescribeQueryRequest(_a0 *cloudtrail.DescribeQueryInput) (*request.Request, *cloudtrail.DescribeQueryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.DescribeQueryOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeQueryInput) (*request.Request, *cloudtrail.DescribeQueryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeQueryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DescribeQueryInput) *cloudtrail.DescribeQueryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.DescribeQueryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeQueryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) DescribeQueryWithContext(_a0 context.Context, _a1 *cloudtrail.DescribeQueryInput, _a2 ...request.Option) (*cloudtrail.DescribeQueryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.DescribeQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DescribeQueryInput, ...request.Option) (*cloudtrail.DescribeQueryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DescribeQueryInput, ...request.Option) *cloudtrail.DescribeQueryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DescribeQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.DescribeQueryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrails provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DescribeTrails(_a0 *cloudtrail.DescribeTrailsInput) (*cloudtrail.DescribeTrailsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.DescribeTrailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeTrailsInput) (*cloudtrail.DescribeTrailsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeTrailsInput) *cloudtrail.DescribeTrailsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DescribeTrailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DescribeTrailsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrailsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) DescribeTrailsRequest(_a0 *cloudtrail.DescribeTrailsInput) (*request.Request, *cloudtrail.DescribeTrailsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.DescribeTrailsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeTrailsInput) (*request.Request, *cloudtrail.DescribeTrailsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.DescribeTrailsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.DescribeTrailsInput) *cloudtrail.DescribeTrailsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.DescribeTrailsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTrailsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) DescribeTrailsWithContext(_a0 context.Context, _a1 *cloudtrail.DescribeTrailsInput, _a2 ...request.Option) (*cloudtrail.DescribeTrailsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.DescribeTrailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DescribeTrailsInput, ...request.Option) (*cloudtrail.DescribeTrailsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.DescribeTrailsInput, ...request.Option) *cloudtrail.DescribeTrailsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.DescribeTrailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.DescribeTrailsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetChannel provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetChannel(_a0 *cloudtrail.GetChannelInput) (*cloudtrail.GetChannelOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetChannelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetChannelInput) (*cloudtrail.GetChannelOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetChannelInput) *cloudtrail.GetChannelOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetChannelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetChannelInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetChannelRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetChannelRequest(_a0 *cloudtrail.GetChannelInput) (*request.Request, *cloudtrail.GetChannelOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetChannelOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetChannelInput) (*request.Request, *cloudtrail.GetChannelOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetChannelInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetChannelInput) *cloudtrail.GetChannelOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetChannelOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetChannelWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetChannelWithContext(_a0 context.Context, _a1 *cloudtrail.GetChannelInput, _a2 ...request.Option) (*cloudtrail.GetChannelOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetChannelOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetChannelInput, ...request.Option) (*cloudtrail.GetChannelOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetChannelInput, ...request.Option) *cloudtrail.GetChannelOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetChannelOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetChannelInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventDataStore provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetEventDataStore(_a0 *cloudtrail.GetEventDataStoreInput) (*cloudtrail.GetEventDataStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventDataStoreInput) (*cloudtrail.GetEventDataStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventDataStoreInput) *cloudtrail.GetEventDataStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetEventDataStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventDataStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetEventDataStoreRequest(_a0 *cloudtrail.GetEventDataStoreInput) (*request.Request, *cloudtrail.GetEventDataStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetEventDataStoreOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventDataStoreInput) (*request.Request, *cloudtrail.GetEventDataStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventDataStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetEventDataStoreInput) *cloudtrail.GetEventDataStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetEventDataStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetEventDataStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetEventDataStoreWithContext(_a0 context.Context, _a1 *cloudtrail.GetEventDataStoreInput, _a2 ...request.Option) (*cloudtrail.GetEventDataStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetEventDataStoreInput, ...request.Option) (*cloudtrail.GetEventDataStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetEventDataStoreInput, ...request.Option) *cloudtrail.GetEventDataStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetEventDataStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventSelectors provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetEventSelectors(_a0 *cloudtrail.GetEventSelectorsInput) (*cloudtrail.GetEventSelectorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetEventSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventSelectorsInput) (*cloudtrail.GetEventSelectorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventSelectorsInput) *cloudtrail.GetEventSelectorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetEventSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetEventSelectorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventSelectorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetEventSelectorsRequest(_a0 *cloudtrail.GetEventSelectorsInput) (*request.Request, *cloudtrail.GetEventSelectorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetEventSelectorsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventSelectorsInput) (*request.Request, *cloudtrail.GetEventSelectorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetEventSelectorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetEventSelectorsInput) *cloudtrail.GetEventSelectorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetEventSelectorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetEventSelectorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetEventSelectorsWithContext(_a0 context.Context, _a1 *cloudtrail.GetEventSelectorsInput, _a2 ...request.Option) (*cloudtrail.GetEventSelectorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetEventSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetEventSelectorsInput, ...request.Option) (*cloudtrail.GetEventSelectorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetEventSelectorsInput, ...request.Option) *cloudtrail.GetEventSelectorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetEventSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetEventSelectorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetImport provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetImport(_a0 *cloudtrail.GetImportInput) (*cloudtrail.GetImportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetImportInput) (*cloudtrail.GetImportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetImportInput) *cloudtrail.GetImportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetImportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetImportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetImportRequest(_a0 *cloudtrail.GetImportInput) (*request.Request, *cloudtrail.GetImportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetImportOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetImportInput) (*request.Request, *cloudtrail.GetImportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetImportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetImportInput) *cloudtrail.GetImportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetImportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetImportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetImportWithContext(_a0 context.Context, _a1 *cloudtrail.GetImportInput, _a2 ...request.Option) (*cloudtrail.GetImportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetImportInput, ...request.Option) (*cloudtrail.GetImportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetImportInput, ...request.Option) *cloudtrail.GetImportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetImportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInsightSelectors provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetInsightSelectors(_a0 *cloudtrail.GetInsightSelectorsInput) (*cloudtrail.GetInsightSelectorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetInsightSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetInsightSelectorsInput) (*cloudtrail.GetInsightSelectorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetInsightSelectorsInput) *cloudtrail.GetInsightSelectorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetInsightSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetInsightSelectorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInsightSelectorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetInsightSelectorsRequest(_a0 *cloudtrail.GetInsightSelectorsInput) (*request.Request, *cloudtrail.GetInsightSelectorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetInsightSelectorsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetInsightSelectorsInput) (*request.Request, *cloudtrail.GetInsightSelectorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetInsightSelectorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetInsightSelectorsInput) *cloudtrail.GetInsightSelectorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetInsightSelectorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetInsightSelectorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetInsightSelectorsWithContext(_a0 context.Context, _a1 *cloudtrail.GetInsightSelectorsInput, _a2 ...request.Option) (*cloudtrail.GetInsightSelectorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetInsightSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetInsightSelectorsInput, ...request.Option) (*cloudtrail.GetInsightSelectorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetInsightSelectorsInput, ...request.Option) *cloudtrail.GetInsightSelectorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetInsightSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetInsightSelectorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueryResults provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetQueryResults(_a0 *cloudtrail.GetQueryResultsInput) (*cloudtrail.GetQueryResultsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetQueryResultsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetQueryResultsInput) (*cloudtrail.GetQueryResultsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetQueryResultsInput) *cloudtrail.GetQueryResultsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetQueryResultsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetQueryResultsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueryResultsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) GetQueryResultsPages(_a0 *cloudtrail.GetQueryResultsInput, _a1 func(*cloudtrail.GetQueryResultsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetQueryResultsInput, func(*cloudtrail.GetQueryResultsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetQueryResultsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) GetQueryResultsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.GetQueryResultsInput, _a2 func(*cloudtrail.GetQueryResultsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetQueryResultsInput, func(*cloudtrail.GetQueryResultsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetQueryResultsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetQueryResultsRequest(_a0 *cloudtrail.GetQueryResultsInput) (*request.Request, *cloudtrail.GetQueryResultsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetQueryResultsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetQueryResultsInput) (*request.Request, *cloudtrail.GetQueryResultsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetQueryResultsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetQueryResultsInput) *cloudtrail.GetQueryResultsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetQueryResultsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetQueryResultsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetQueryResultsWithContext(_a0 context.Context, _a1 *cloudtrail.GetQueryResultsInput, _a2 ...request.Option) (*cloudtrail.GetQueryResultsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetQueryResultsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetQueryResultsInput, ...request.Option) (*cloudtrail.GetQueryResultsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetQueryResultsInput, ...request.Option) *cloudtrail.GetQueryResultsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetQueryResultsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetQueryResultsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrail provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetTrail(_a0 *cloudtrail.GetTrailInput) (*cloudtrail.GetTrailOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailInput) (*cloudtrail.GetTrailOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailInput) *cloudtrail.GetTrailOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetTrailInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrailRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetTrailRequest(_a0 *cloudtrail.GetTrailInput) (*request.Request, *cloudtrail.GetTrailOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetTrailOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailInput) (*request.Request, *cloudtrail.GetTrailOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetTrailInput) *cloudtrail.GetTrailOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetTrailOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTrailStatus provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetTrailStatus(_a0 *cloudtrail.GetTrailStatusInput) (*cloudtrail.GetTrailStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.GetTrailStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailStatusInput) (*cloudtrail.GetTrailStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailStatusInput) *cloudtrail.GetTrailStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetTrailStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetTrailStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrailStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) GetTrailStatusRequest(_a0 *cloudtrail.GetTrailStatusInput) (*request.Request, *cloudtrail.GetTrailStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.GetTrailStatusOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailStatusInput) (*request.Request, *cloudtrail.GetTrailStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.GetTrailStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.GetTrailStatusInput) *cloudtrail.GetTrailStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.GetTrailStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTrailStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetTrailStatusWithContext(_a0 context.Context, _a1 *cloudtrail.GetTrailStatusInput, _a2 ...request.Option) (*cloudtrail.GetTrailStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetTrailStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetTrailStatusInput, ...request.Option) (*cloudtrail.GetTrailStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetTrailStatusInput, ...request.Option) *cloudtrail.GetTrailStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetTrailStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetTrailStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrailWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) GetTrailWithContext(_a0 context.Context, _a1 *cloudtrail.GetTrailInput, _a2 ...request.Option) (*cloudtrail.GetTrailOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.GetTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetTrailInput, ...request.Option) (*cloudtrail.GetTrailOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.GetTrailInput, ...request.Option) *cloudtrail.GetTrailOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.GetTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.GetTrailInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListChannels provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListChannels(_a0 *cloudtrail.ListChannelsInput) (*cloudtrail.ListChannelsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListChannelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListChannelsInput) (*cloudtrail.ListChannelsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListChannelsInput) *cloudtrail.ListChannelsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListChannelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListChannelsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListChannelsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListChannelsPages(_a0 *cloudtrail.ListChannelsInput, _a1 func(*cloudtrail.ListChannelsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListChannelsInput, func(*cloudtrail.ListChannelsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListChannelsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListChannelsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListChannelsInput, _a2 func(*cloudtrail.ListChannelsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListChannelsInput, func(*cloudtrail.ListChannelsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListChannelsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListChannelsRequest(_a0 *cloudtrail.ListChannelsInput) (*request.Request, *cloudtrail.ListChannelsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListChannelsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListChannelsInput) (*request.Request, *cloudtrail.ListChannelsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListChannelsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListChannelsInput) *cloudtrail.ListChannelsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListChannelsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListChannelsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListChannelsWithContext(_a0 context.Context, _a1 *cloudtrail.ListChannelsInput, _a2 ...request.Option) (*cloudtrail.ListChannelsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListChannelsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListChannelsInput, ...request.Option) (*cloudtrail.ListChannelsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListChannelsInput, ...request.Option) *cloudtrail.ListChannelsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListChannelsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListChannelsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEventDataStores provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListEventDataStores(_a0 *cloudtrail.ListEventDataStoresInput) (*cloudtrail.ListEventDataStoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListEventDataStoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListEventDataStoresInput) (*cloudtrail.ListEventDataStoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListEventDataStoresInput) *cloudtrail.ListEventDataStoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListEventDataStoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListEventDataStoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEventDataStoresPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListEventDataStoresPages(_a0 *cloudtrail.ListEventDataStoresInput, _a1 func(*cloudtrail.ListEventDataStoresOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListEventDataStoresInput, func(*cloudtrail.ListEventDataStoresOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEventDataStoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListEventDataStoresPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListEventDataStoresInput, _a2 func(*cloudtrail.ListEventDataStoresOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListEventDataStoresInput, func(*cloudtrail.ListEventDataStoresOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEventDataStoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListEventDataStoresRequest(_a0 *cloudtrail.ListEventDataStoresInput) (*request.Request, *cloudtrail.ListEventDataStoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListEventDataStoresOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListEventDataStoresInput) (*request.Request, *cloudtrail.ListEventDataStoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListEventDataStoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListEventDataStoresInput) *cloudtrail.ListEventDataStoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListEventDataStoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListEventDataStoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListEventDataStoresWithContext(_a0 context.Context, _a1 *cloudtrail.ListEventDataStoresInput, _a2 ...request.Option) (*cloudtrail.ListEventDataStoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListEventDataStoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListEventDataStoresInput, ...request.Option) (*cloudtrail.ListEventDataStoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListEventDataStoresInput, ...request.Option) *cloudtrail.ListEventDataStoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListEventDataStoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListEventDataStoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImportFailures provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListImportFailures(_a0 *cloudtrail.ListImportFailuresInput) (*cloudtrail.ListImportFailuresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListImportFailuresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportFailuresInput) (*cloudtrail.ListImportFailuresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportFailuresInput) *cloudtrail.ListImportFailuresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListImportFailuresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListImportFailuresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImportFailuresPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListImportFailuresPages(_a0 *cloudtrail.ListImportFailuresInput, _a1 func(*cloudtrail.ListImportFailuresOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportFailuresInput, func(*cloudtrail.ListImportFailuresOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportFailuresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListImportFailuresPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListImportFailuresInput, _a2 func(*cloudtrail.ListImportFailuresOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportFailuresInput, func(*cloudtrail.ListImportFailuresOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportFailuresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListImportFailuresRequest(_a0 *cloudtrail.ListImportFailuresInput) (*request.Request, *cloudtrail.ListImportFailuresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListImportFailuresOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportFailuresInput) (*request.Request, *cloudtrail.ListImportFailuresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportFailuresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListImportFailuresInput) *cloudtrail.ListImportFailuresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListImportFailuresOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImportFailuresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListImportFailuresWithContext(_a0 context.Context, _a1 *cloudtrail.ListImportFailuresInput, _a2 ...request.Option) (*cloudtrail.ListImportFailuresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListImportFailuresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportFailuresInput, ...request.Option) (*cloudtrail.ListImportFailuresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportFailuresInput, ...request.Option) *cloudtrail.ListImportFailuresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListImportFailuresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListImportFailuresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImports provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListImports(_a0 *cloudtrail.ListImportsInput) (*cloudtrail.ListImportsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportsInput) (*cloudtrail.ListImportsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportsInput) *cloudtrail.ListImportsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListImportsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImportsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListImportsPages(_a0 *cloudtrail.ListImportsInput, _a1 func(*cloudtrail.ListImportsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportsInput, func(*cloudtrail.ListImportsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListImportsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListImportsInput, _a2 func(*cloudtrail.ListImportsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportsInput, func(*cloudtrail.ListImportsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListImportsRequest(_a0 *cloudtrail.ListImportsInput) (*request.Request, *cloudtrail.ListImportsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListImportsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportsInput) (*request.Request, *cloudtrail.ListImportsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListImportsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListImportsInput) *cloudtrail.ListImportsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListImportsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImportsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListImportsWithContext(_a0 context.Context, _a1 *cloudtrail.ListImportsInput, _a2 ...request.Option) (*cloudtrail.ListImportsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportsInput, ...request.Option) (*cloudtrail.ListImportsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListImportsInput, ...request.Option) *cloudtrail.ListImportsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListImportsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPublicKeys provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListPublicKeys(_a0 *cloudtrail.ListPublicKeysInput) (*cloudtrail.ListPublicKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListPublicKeysInput) (*cloudtrail.ListPublicKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListPublicKeysInput) *cloudtrail.ListPublicKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListPublicKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPublicKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListPublicKeysPages(_a0 *cloudtrail.ListPublicKeysInput, _a1 func(*cloudtrail.ListPublicKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListPublicKeysInput, func(*cloudtrail.ListPublicKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPublicKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListPublicKeysPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListPublicKeysInput, _a2 func(*cloudtrail.ListPublicKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListPublicKeysInput, func(*cloudtrail.ListPublicKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPublicKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListPublicKeysRequest(_a0 *cloudtrail.ListPublicKeysInput) (*request.Request, *cloudtrail.ListPublicKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListPublicKeysOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListPublicKeysInput) (*request.Request, *cloudtrail.ListPublicKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListPublicKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListPublicKeysInput) *cloudtrail.ListPublicKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListPublicKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPublicKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListPublicKeysWithContext(_a0 context.Context, _a1 *cloudtrail.ListPublicKeysInput, _a2 ...request.Option) (*cloudtrail.ListPublicKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListPublicKeysInput, ...request.Option) (*cloudtrail.ListPublicKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListPublicKeysInput, ...request.Option) *cloudtrail.ListPublicKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListPublicKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueries provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListQueries(_a0 *cloudtrail.ListQueriesInput) (*cloudtrail.ListQueriesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListQueriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListQueriesInput) (*cloudtrail.ListQueriesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListQueriesInput) *cloudtrail.ListQueriesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListQueriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListQueriesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueriesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListQueriesPages(_a0 *cloudtrail.ListQueriesInput, _a1 func(*cloudtrail.ListQueriesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListQueriesInput, func(*cloudtrail.ListQueriesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueriesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListQueriesPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListQueriesInput, _a2 func(*cloudtrail.ListQueriesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListQueriesInput, func(*cloudtrail.ListQueriesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueriesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListQueriesRequest(_a0 *cloudtrail.ListQueriesInput) (*request.Request, *cloudtrail.ListQueriesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListQueriesOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListQueriesInput) (*request.Request, *cloudtrail.ListQueriesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListQueriesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListQueriesInput) *cloudtrail.ListQueriesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListQueriesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListQueriesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListQueriesWithContext(_a0 context.Context, _a1 *cloudtrail.ListQueriesInput, _a2 ...request.Option) (*cloudtrail.ListQueriesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListQueriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListQueriesInput, ...request.Option) (*cloudtrail.ListQueriesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListQueriesInput, ...request.Option) *cloudtrail.ListQueriesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListQueriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListQueriesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTags provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListTags(_a0 *cloudtrail.ListTagsInput) (*cloudtrail.ListTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTagsInput) (*cloudtrail.ListTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTagsInput) *cloudtrail.ListTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListTagsPages(_a0 *cloudtrail.ListTagsInput, _a1 func(*cloudtrail.ListTagsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTagsInput, func(*cloudtrail.ListTagsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListTagsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListTagsInput, _a2 func(*cloudtrail.ListTagsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTagsInput, func(*cloudtrail.ListTagsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListTagsRequest(_a0 *cloudtrail.ListTagsInput) (*request.Request, *cloudtrail.ListTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListTagsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTagsInput) (*request.Request, *cloudtrail.ListTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListTagsInput) *cloudtrail.ListTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListTagsWithContext(_a0 context.Context, _a1 *cloudtrail.ListTagsInput, _a2 ...request.Option) (*cloudtrail.ListTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTagsInput, ...request.Option) (*cloudtrail.ListTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTagsInput, ...request.Option) *cloudtrail.ListTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrails provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListTrails(_a0 *cloudtrail.ListTrailsInput) (*cloudtrail.ListTrailsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.ListTrailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTrailsInput) (*cloudtrail.ListTrailsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTrailsInput) *cloudtrail.ListTrailsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListTrailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListTrailsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrailsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) ListTrailsPages(_a0 *cloudtrail.ListTrailsInput, _a1 func(*cloudtrail.ListTrailsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTrailsInput, func(*cloudtrail.ListTrailsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTrailsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) ListTrailsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.ListTrailsInput, _a2 func(*cloudtrail.ListTrailsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTrailsInput, func(*cloudtrail.ListTrailsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTrailsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) ListTrailsRequest(_a0 *cloudtrail.ListTrailsInput) (*request.Request, *cloudtrail.ListTrailsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.ListTrailsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTrailsInput) (*request.Request, *cloudtrail.ListTrailsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.ListTrailsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.ListTrailsInput) *cloudtrail.ListTrailsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.ListTrailsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrailsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) ListTrailsWithContext(_a0 context.Context, _a1 *cloudtrail.ListTrailsInput, _a2 ...request.Option) (*cloudtrail.ListTrailsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.ListTrailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTrailsInput, ...request.Option) (*cloudtrail.ListTrailsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.ListTrailsInput, ...request.Option) *cloudtrail.ListTrailsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.ListTrailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.ListTrailsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// LookupEvents provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) LookupEvents(_a0 *cloudtrail.LookupEventsInput) (*cloudtrail.LookupEventsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.LookupEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.LookupEventsInput) (*cloudtrail.LookupEventsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.LookupEventsInput) *cloudtrail.LookupEventsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.LookupEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.LookupEventsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// LookupEventsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeCloudtrail) LookupEventsPages(_a0 *cloudtrail.LookupEventsInput, _a1 func(*cloudtrail.LookupEventsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.LookupEventsInput, func(*cloudtrail.LookupEventsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// LookupEventsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeCloudtrail) LookupEventsPagesWithContext(_a0 context.Context, _a1 *cloudtrail.LookupEventsInput, _a2 func(*cloudtrail.LookupEventsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.LookupEventsInput, func(*cloudtrail.LookupEventsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// LookupEventsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) LookupEventsRequest(_a0 *cloudtrail.LookupEventsInput) (*request.Request, *cloudtrail.LookupEventsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.LookupEventsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.LookupEventsInput) (*request.Request, *cloudtrail.LookupEventsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.LookupEventsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.LookupEventsInput) *cloudtrail.LookupEventsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.LookupEventsOutput)
- }
- }
-
- return r0, r1
-}
-
-// LookupEventsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) LookupEventsWithContext(_a0 context.Context, _a1 *cloudtrail.LookupEventsInput, _a2 ...request.Option) (*cloudtrail.LookupEventsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.LookupEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.LookupEventsInput, ...request.Option) (*cloudtrail.LookupEventsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.LookupEventsInput, ...request.Option) *cloudtrail.LookupEventsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.LookupEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.LookupEventsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutEventSelectors provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) PutEventSelectors(_a0 *cloudtrail.PutEventSelectorsInput) (*cloudtrail.PutEventSelectorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.PutEventSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutEventSelectorsInput) (*cloudtrail.PutEventSelectorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutEventSelectorsInput) *cloudtrail.PutEventSelectorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.PutEventSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.PutEventSelectorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutEventSelectorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) PutEventSelectorsRequest(_a0 *cloudtrail.PutEventSelectorsInput) (*request.Request, *cloudtrail.PutEventSelectorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.PutEventSelectorsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutEventSelectorsInput) (*request.Request, *cloudtrail.PutEventSelectorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutEventSelectorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.PutEventSelectorsInput) *cloudtrail.PutEventSelectorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.PutEventSelectorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutEventSelectorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) PutEventSelectorsWithContext(_a0 context.Context, _a1 *cloudtrail.PutEventSelectorsInput, _a2 ...request.Option) (*cloudtrail.PutEventSelectorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.PutEventSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.PutEventSelectorsInput, ...request.Option) (*cloudtrail.PutEventSelectorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.PutEventSelectorsInput, ...request.Option) *cloudtrail.PutEventSelectorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.PutEventSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.PutEventSelectorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutInsightSelectors provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) PutInsightSelectors(_a0 *cloudtrail.PutInsightSelectorsInput) (*cloudtrail.PutInsightSelectorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.PutInsightSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutInsightSelectorsInput) (*cloudtrail.PutInsightSelectorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutInsightSelectorsInput) *cloudtrail.PutInsightSelectorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.PutInsightSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.PutInsightSelectorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutInsightSelectorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) PutInsightSelectorsRequest(_a0 *cloudtrail.PutInsightSelectorsInput) (*request.Request, *cloudtrail.PutInsightSelectorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.PutInsightSelectorsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutInsightSelectorsInput) (*request.Request, *cloudtrail.PutInsightSelectorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.PutInsightSelectorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.PutInsightSelectorsInput) *cloudtrail.PutInsightSelectorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.PutInsightSelectorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutInsightSelectorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) PutInsightSelectorsWithContext(_a0 context.Context, _a1 *cloudtrail.PutInsightSelectorsInput, _a2 ...request.Option) (*cloudtrail.PutInsightSelectorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.PutInsightSelectorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.PutInsightSelectorsInput, ...request.Option) (*cloudtrail.PutInsightSelectorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.PutInsightSelectorsInput, ...request.Option) *cloudtrail.PutInsightSelectorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.PutInsightSelectorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.PutInsightSelectorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTags provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) RemoveTags(_a0 *cloudtrail.RemoveTagsInput) (*cloudtrail.RemoveTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.RemoveTagsInput) (*cloudtrail.RemoveTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.RemoveTagsInput) *cloudtrail.RemoveTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.RemoveTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) RemoveTagsRequest(_a0 *cloudtrail.RemoveTagsInput) (*request.Request, *cloudtrail.RemoveTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.RemoveTagsOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.RemoveTagsInput) (*request.Request, *cloudtrail.RemoveTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.RemoveTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.RemoveTagsInput) *cloudtrail.RemoveTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.RemoveTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) RemoveTagsWithContext(_a0 context.Context, _a1 *cloudtrail.RemoveTagsInput, _a2 ...request.Option) (*cloudtrail.RemoveTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.RemoveTagsInput, ...request.Option) (*cloudtrail.RemoveTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.RemoveTagsInput, ...request.Option) *cloudtrail.RemoveTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.RemoveTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreEventDataStore provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) RestoreEventDataStore(_a0 *cloudtrail.RestoreEventDataStoreInput) (*cloudtrail.RestoreEventDataStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.RestoreEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.RestoreEventDataStoreInput) (*cloudtrail.RestoreEventDataStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.RestoreEventDataStoreInput) *cloudtrail.RestoreEventDataStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.RestoreEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.RestoreEventDataStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreEventDataStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) RestoreEventDataStoreRequest(_a0 *cloudtrail.RestoreEventDataStoreInput) (*request.Request, *cloudtrail.RestoreEventDataStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.RestoreEventDataStoreOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.RestoreEventDataStoreInput) (*request.Request, *cloudtrail.RestoreEventDataStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.RestoreEventDataStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.RestoreEventDataStoreInput) *cloudtrail.RestoreEventDataStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.RestoreEventDataStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreEventDataStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) RestoreEventDataStoreWithContext(_a0 context.Context, _a1 *cloudtrail.RestoreEventDataStoreInput, _a2 ...request.Option) (*cloudtrail.RestoreEventDataStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.RestoreEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.RestoreEventDataStoreInput, ...request.Option) (*cloudtrail.RestoreEventDataStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.RestoreEventDataStoreInput, ...request.Option) *cloudtrail.RestoreEventDataStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.RestoreEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.RestoreEventDataStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartImport provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartImport(_a0 *cloudtrail.StartImportInput) (*cloudtrail.StartImportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.StartImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartImportInput) (*cloudtrail.StartImportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartImportInput) *cloudtrail.StartImportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartImportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartImportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartImportRequest(_a0 *cloudtrail.StartImportInput) (*request.Request, *cloudtrail.StartImportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.StartImportOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartImportInput) (*request.Request, *cloudtrail.StartImportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartImportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartImportInput) *cloudtrail.StartImportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.StartImportOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartImportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) StartImportWithContext(_a0 context.Context, _a1 *cloudtrail.StartImportInput, _a2 ...request.Option) (*cloudtrail.StartImportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.StartImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartImportInput, ...request.Option) (*cloudtrail.StartImportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartImportInput, ...request.Option) *cloudtrail.StartImportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.StartImportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartLogging provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartLogging(_a0 *cloudtrail.StartLoggingInput) (*cloudtrail.StartLoggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.StartLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartLoggingInput) (*cloudtrail.StartLoggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartLoggingInput) *cloudtrail.StartLoggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartLoggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartLoggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartLoggingRequest(_a0 *cloudtrail.StartLoggingInput) (*request.Request, *cloudtrail.StartLoggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.StartLoggingOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartLoggingInput) (*request.Request, *cloudtrail.StartLoggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartLoggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartLoggingInput) *cloudtrail.StartLoggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.StartLoggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartLoggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) StartLoggingWithContext(_a0 context.Context, _a1 *cloudtrail.StartLoggingInput, _a2 ...request.Option) (*cloudtrail.StartLoggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.StartLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartLoggingInput, ...request.Option) (*cloudtrail.StartLoggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartLoggingInput, ...request.Option) *cloudtrail.StartLoggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.StartLoggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartQuery provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartQuery(_a0 *cloudtrail.StartQueryInput) (*cloudtrail.StartQueryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.StartQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartQueryInput) (*cloudtrail.StartQueryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartQueryInput) *cloudtrail.StartQueryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartQueryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartQueryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StartQueryRequest(_a0 *cloudtrail.StartQueryInput) (*request.Request, *cloudtrail.StartQueryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.StartQueryOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartQueryInput) (*request.Request, *cloudtrail.StartQueryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StartQueryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StartQueryInput) *cloudtrail.StartQueryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.StartQueryOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartQueryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) StartQueryWithContext(_a0 context.Context, _a1 *cloudtrail.StartQueryInput, _a2 ...request.Option) (*cloudtrail.StartQueryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.StartQueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartQueryInput, ...request.Option) (*cloudtrail.StartQueryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StartQueryInput, ...request.Option) *cloudtrail.StartQueryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StartQueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.StartQueryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopImport provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StopImport(_a0 *cloudtrail.StopImportInput) (*cloudtrail.StopImportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.StopImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopImportInput) (*cloudtrail.StopImportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopImportInput) *cloudtrail.StopImportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StopImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StopImportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopImportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StopImportRequest(_a0 *cloudtrail.StopImportInput) (*request.Request, *cloudtrail.StopImportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.StopImportOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopImportInput) (*request.Request, *cloudtrail.StopImportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopImportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StopImportInput) *cloudtrail.StopImportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.StopImportOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopImportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) StopImportWithContext(_a0 context.Context, _a1 *cloudtrail.StopImportInput, _a2 ...request.Option) (*cloudtrail.StopImportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.StopImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StopImportInput, ...request.Option) (*cloudtrail.StopImportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StopImportInput, ...request.Option) *cloudtrail.StopImportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StopImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.StopImportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopLogging provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StopLogging(_a0 *cloudtrail.StopLoggingInput) (*cloudtrail.StopLoggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.StopLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopLoggingInput) (*cloudtrail.StopLoggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopLoggingInput) *cloudtrail.StopLoggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StopLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StopLoggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopLoggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) StopLoggingRequest(_a0 *cloudtrail.StopLoggingInput) (*request.Request, *cloudtrail.StopLoggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.StopLoggingOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopLoggingInput) (*request.Request, *cloudtrail.StopLoggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.StopLoggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.StopLoggingInput) *cloudtrail.StopLoggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.StopLoggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopLoggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) StopLoggingWithContext(_a0 context.Context, _a1 *cloudtrail.StopLoggingInput, _a2 ...request.Option) (*cloudtrail.StopLoggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.StopLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StopLoggingInput, ...request.Option) (*cloudtrail.StopLoggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.StopLoggingInput, ...request.Option) *cloudtrail.StopLoggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.StopLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.StopLoggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateEventDataStore provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) UpdateEventDataStore(_a0 *cloudtrail.UpdateEventDataStoreInput) (*cloudtrail.UpdateEventDataStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.UpdateEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateEventDataStoreInput) (*cloudtrail.UpdateEventDataStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateEventDataStoreInput) *cloudtrail.UpdateEventDataStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.UpdateEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.UpdateEventDataStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateEventDataStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) UpdateEventDataStoreRequest(_a0 *cloudtrail.UpdateEventDataStoreInput) (*request.Request, *cloudtrail.UpdateEventDataStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.UpdateEventDataStoreOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateEventDataStoreInput) (*request.Request, *cloudtrail.UpdateEventDataStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateEventDataStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.UpdateEventDataStoreInput) *cloudtrail.UpdateEventDataStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.UpdateEventDataStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateEventDataStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) UpdateEventDataStoreWithContext(_a0 context.Context, _a1 *cloudtrail.UpdateEventDataStoreInput, _a2 ...request.Option) (*cloudtrail.UpdateEventDataStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.UpdateEventDataStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.UpdateEventDataStoreInput, ...request.Option) (*cloudtrail.UpdateEventDataStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.UpdateEventDataStoreInput, ...request.Option) *cloudtrail.UpdateEventDataStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.UpdateEventDataStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.UpdateEventDataStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrail provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) UpdateTrail(_a0 *cloudtrail.UpdateTrailInput) (*cloudtrail.UpdateTrailOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *cloudtrail.UpdateTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateTrailInput) (*cloudtrail.UpdateTrailOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateTrailInput) *cloudtrail.UpdateTrailOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.UpdateTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.UpdateTrailInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrailRequest provides a mock function with given fields: _a0
-func (_m *MockFakeCloudtrail) UpdateTrailRequest(_a0 *cloudtrail.UpdateTrailInput) (*request.Request, *cloudtrail.UpdateTrailOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *cloudtrail.UpdateTrailOutput
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateTrailInput) (*request.Request, *cloudtrail.UpdateTrailOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*cloudtrail.UpdateTrailInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*cloudtrail.UpdateTrailInput) *cloudtrail.UpdateTrailOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*cloudtrail.UpdateTrailOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTrailWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeCloudtrail) UpdateTrailWithContext(_a0 context.Context, _a1 *cloudtrail.UpdateTrailInput, _a2 ...request.Option) (*cloudtrail.UpdateTrailOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *cloudtrail.UpdateTrailOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.UpdateTrailInput, ...request.Option) (*cloudtrail.UpdateTrailOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *cloudtrail.UpdateTrailInput, ...request.Option) *cloudtrail.UpdateTrailOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*cloudtrail.UpdateTrailOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *cloudtrail.UpdateTrailInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeCloudtrail interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeCloudtrail creates a new instance of MockFakeCloudtrail. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeCloudtrail(t mockConstructorTestingTNewMockFakeCloudtrail) *MockFakeCloudtrail {
- mock := &MockFakeCloudtrail{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeDynamoDB.go b/test/aws/mock_FakeDynamoDB.go
deleted file mode 100644
index d7fd59dcf..000000000
--- a/test/aws/mock_FakeDynamoDB.go
+++ /dev/null
@@ -1,4958 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- dynamodb "github.com/aws/aws-sdk-go/service/dynamodb"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeDynamoDB is an autogenerated mock type for the FakeDynamoDB type
-type MockFakeDynamoDB struct {
- mock.Mock
-}
-
-// BatchExecuteStatement provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchExecuteStatement(_a0 *dynamodb.BatchExecuteStatementInput) (*dynamodb.BatchExecuteStatementOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.BatchExecuteStatementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) (*dynamodb.BatchExecuteStatementOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) *dynamodb.BatchExecuteStatementOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchExecuteStatementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchExecuteStatementInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchExecuteStatementRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchExecuteStatementRequest(_a0 *dynamodb.BatchExecuteStatementInput) (*request.Request, *dynamodb.BatchExecuteStatementOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.BatchExecuteStatementOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) (*request.Request, *dynamodb.BatchExecuteStatementOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchExecuteStatementInput) *dynamodb.BatchExecuteStatementOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.BatchExecuteStatementOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchExecuteStatementWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) BatchExecuteStatementWithContext(_a0 context.Context, _a1 *dynamodb.BatchExecuteStatementInput, _a2 ...request.Option) (*dynamodb.BatchExecuteStatementOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.BatchExecuteStatementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchExecuteStatementInput, ...request.Option) (*dynamodb.BatchExecuteStatementOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchExecuteStatementInput, ...request.Option) *dynamodb.BatchExecuteStatementOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchExecuteStatementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.BatchExecuteStatementInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchGetItem(_a0 *dynamodb.BatchGetItemInput) (*dynamodb.BatchGetItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.BatchGetItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchGetItemInput) (*dynamodb.BatchGetItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchGetItemInput) *dynamodb.BatchGetItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchGetItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchGetItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetItemPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) BatchGetItemPages(_a0 *dynamodb.BatchGetItemInput, _a1 func(*dynamodb.BatchGetItemOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchGetItemInput, func(*dynamodb.BatchGetItemOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// BatchGetItemPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) BatchGetItemPagesWithContext(_a0 context.Context, _a1 *dynamodb.BatchGetItemInput, _a2 func(*dynamodb.BatchGetItemOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchGetItemInput, func(*dynamodb.BatchGetItemOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// BatchGetItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchGetItemRequest(_a0 *dynamodb.BatchGetItemInput) (*request.Request, *dynamodb.BatchGetItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.BatchGetItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchGetItemInput) (*request.Request, *dynamodb.BatchGetItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchGetItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchGetItemInput) *dynamodb.BatchGetItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.BatchGetItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchGetItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) BatchGetItemWithContext(_a0 context.Context, _a1 *dynamodb.BatchGetItemInput, _a2 ...request.Option) (*dynamodb.BatchGetItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.BatchGetItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchGetItemInput, ...request.Option) (*dynamodb.BatchGetItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchGetItemInput, ...request.Option) *dynamodb.BatchGetItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchGetItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.BatchGetItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchWriteItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchWriteItem(_a0 *dynamodb.BatchWriteItemInput) (*dynamodb.BatchWriteItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.BatchWriteItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchWriteItemInput) (*dynamodb.BatchWriteItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchWriteItemInput) *dynamodb.BatchWriteItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchWriteItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchWriteItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchWriteItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) BatchWriteItemRequest(_a0 *dynamodb.BatchWriteItemInput) (*request.Request, *dynamodb.BatchWriteItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.BatchWriteItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchWriteItemInput) (*request.Request, *dynamodb.BatchWriteItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.BatchWriteItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.BatchWriteItemInput) *dynamodb.BatchWriteItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.BatchWriteItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchWriteItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) BatchWriteItemWithContext(_a0 context.Context, _a1 *dynamodb.BatchWriteItemInput, _a2 ...request.Option) (*dynamodb.BatchWriteItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.BatchWriteItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchWriteItemInput, ...request.Option) (*dynamodb.BatchWriteItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchWriteItemInput, ...request.Option) *dynamodb.BatchWriteItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.BatchWriteItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.BatchWriteItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBackup provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateBackup(_a0 *dynamodb.CreateBackupInput) (*dynamodb.CreateBackupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.CreateBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateBackupInput) (*dynamodb.CreateBackupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateBackupInput) *dynamodb.CreateBackupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateBackupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBackupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateBackupRequest(_a0 *dynamodb.CreateBackupInput) (*request.Request, *dynamodb.CreateBackupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.CreateBackupOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateBackupInput) (*request.Request, *dynamodb.CreateBackupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateBackupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateBackupInput) *dynamodb.CreateBackupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.CreateBackupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateBackupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) CreateBackupWithContext(_a0 context.Context, _a1 *dynamodb.CreateBackupInput, _a2 ...request.Option) (*dynamodb.CreateBackupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.CreateBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateBackupInput, ...request.Option) (*dynamodb.CreateBackupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateBackupInput, ...request.Option) *dynamodb.CreateBackupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.CreateBackupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateGlobalTable(_a0 *dynamodb.CreateGlobalTableInput) (*dynamodb.CreateGlobalTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.CreateGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateGlobalTableInput) (*dynamodb.CreateGlobalTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateGlobalTableInput) *dynamodb.CreateGlobalTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateGlobalTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateGlobalTableRequest(_a0 *dynamodb.CreateGlobalTableInput) (*request.Request, *dynamodb.CreateGlobalTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.CreateGlobalTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateGlobalTableInput) (*request.Request, *dynamodb.CreateGlobalTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateGlobalTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateGlobalTableInput) *dynamodb.CreateGlobalTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.CreateGlobalTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateGlobalTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) CreateGlobalTableWithContext(_a0 context.Context, _a1 *dynamodb.CreateGlobalTableInput, _a2 ...request.Option) (*dynamodb.CreateGlobalTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.CreateGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateGlobalTableInput, ...request.Option) (*dynamodb.CreateGlobalTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateGlobalTableInput, ...request.Option) *dynamodb.CreateGlobalTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.CreateGlobalTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateTable(_a0 *dynamodb.CreateTableInput) (*dynamodb.CreateTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.CreateTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateTableInput) (*dynamodb.CreateTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateTableInput) *dynamodb.CreateTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) CreateTableRequest(_a0 *dynamodb.CreateTableInput) (*request.Request, *dynamodb.CreateTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.CreateTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateTableInput) (*request.Request, *dynamodb.CreateTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.CreateTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.CreateTableInput) *dynamodb.CreateTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.CreateTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) CreateTableWithContext(_a0 context.Context, _a1 *dynamodb.CreateTableInput, _a2 ...request.Option) (*dynamodb.CreateTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.CreateTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateTableInput, ...request.Option) (*dynamodb.CreateTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.CreateTableInput, ...request.Option) *dynamodb.CreateTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.CreateTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.CreateTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBackup provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteBackup(_a0 *dynamodb.DeleteBackupInput) (*dynamodb.DeleteBackupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DeleteBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteBackupInput) (*dynamodb.DeleteBackupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteBackupInput) *dynamodb.DeleteBackupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteBackupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBackupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteBackupRequest(_a0 *dynamodb.DeleteBackupInput) (*request.Request, *dynamodb.DeleteBackupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DeleteBackupOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteBackupInput) (*request.Request, *dynamodb.DeleteBackupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteBackupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteBackupInput) *dynamodb.DeleteBackupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DeleteBackupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBackupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DeleteBackupWithContext(_a0 context.Context, _a1 *dynamodb.DeleteBackupInput, _a2 ...request.Option) (*dynamodb.DeleteBackupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DeleteBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteBackupInput, ...request.Option) (*dynamodb.DeleteBackupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteBackupInput, ...request.Option) *dynamodb.DeleteBackupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DeleteBackupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteItem(_a0 *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DeleteItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteItemInput) *dynamodb.DeleteItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteItemRequest(_a0 *dynamodb.DeleteItemInput) (*request.Request, *dynamodb.DeleteItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DeleteItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteItemInput) (*request.Request, *dynamodb.DeleteItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteItemInput) *dynamodb.DeleteItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DeleteItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DeleteItemWithContext(_a0 context.Context, _a1 *dynamodb.DeleteItemInput, _a2 ...request.Option) (*dynamodb.DeleteItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DeleteItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteItemInput, ...request.Option) (*dynamodb.DeleteItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteItemInput, ...request.Option) *dynamodb.DeleteItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DeleteItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteTable(_a0 *dynamodb.DeleteTableInput) (*dynamodb.DeleteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DeleteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteTableInput) (*dynamodb.DeleteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteTableInput) *dynamodb.DeleteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DeleteTableRequest(_a0 *dynamodb.DeleteTableInput) (*request.Request, *dynamodb.DeleteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DeleteTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteTableInput) (*request.Request, *dynamodb.DeleteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DeleteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DeleteTableInput) *dynamodb.DeleteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DeleteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DeleteTableWithContext(_a0 context.Context, _a1 *dynamodb.DeleteTableInput, _a2 ...request.Option) (*dynamodb.DeleteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DeleteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteTableInput, ...request.Option) (*dynamodb.DeleteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DeleteTableInput, ...request.Option) *dynamodb.DeleteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DeleteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DeleteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeBackup provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeBackup(_a0 *dynamodb.DescribeBackupInput) (*dynamodb.DescribeBackupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeBackupInput) (*dynamodb.DescribeBackupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeBackupInput) *dynamodb.DescribeBackupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeBackupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeBackupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeBackupRequest(_a0 *dynamodb.DescribeBackupInput) (*request.Request, *dynamodb.DescribeBackupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeBackupOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeBackupInput) (*request.Request, *dynamodb.DescribeBackupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeBackupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeBackupInput) *dynamodb.DescribeBackupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeBackupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeBackupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeBackupWithContext(_a0 context.Context, _a1 *dynamodb.DescribeBackupInput, _a2 ...request.Option) (*dynamodb.DescribeBackupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeBackupInput, ...request.Option) (*dynamodb.DescribeBackupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeBackupInput, ...request.Option) *dynamodb.DescribeBackupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeBackupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeContinuousBackups provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeContinuousBackups(_a0 *dynamodb.DescribeContinuousBackupsInput) (*dynamodb.DescribeContinuousBackupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeContinuousBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContinuousBackupsInput) (*dynamodb.DescribeContinuousBackupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContinuousBackupsInput) *dynamodb.DescribeContinuousBackupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeContinuousBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeContinuousBackupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeContinuousBackupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeContinuousBackupsRequest(_a0 *dynamodb.DescribeContinuousBackupsInput) (*request.Request, *dynamodb.DescribeContinuousBackupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeContinuousBackupsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContinuousBackupsInput) (*request.Request, *dynamodb.DescribeContinuousBackupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContinuousBackupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeContinuousBackupsInput) *dynamodb.DescribeContinuousBackupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeContinuousBackupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeContinuousBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeContinuousBackupsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeContinuousBackupsInput, _a2 ...request.Option) (*dynamodb.DescribeContinuousBackupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeContinuousBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeContinuousBackupsInput, ...request.Option) (*dynamodb.DescribeContinuousBackupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeContinuousBackupsInput, ...request.Option) *dynamodb.DescribeContinuousBackupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeContinuousBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeContinuousBackupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeContributorInsights provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeContributorInsights(_a0 *dynamodb.DescribeContributorInsightsInput) (*dynamodb.DescribeContributorInsightsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContributorInsightsInput) (*dynamodb.DescribeContributorInsightsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContributorInsightsInput) *dynamodb.DescribeContributorInsightsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeContributorInsightsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeContributorInsightsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeContributorInsightsRequest(_a0 *dynamodb.DescribeContributorInsightsInput) (*request.Request, *dynamodb.DescribeContributorInsightsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeContributorInsightsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContributorInsightsInput) (*request.Request, *dynamodb.DescribeContributorInsightsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeContributorInsightsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeContributorInsightsInput) *dynamodb.DescribeContributorInsightsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeContributorInsightsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeContributorInsightsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeContributorInsightsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeContributorInsightsInput, _a2 ...request.Option) (*dynamodb.DescribeContributorInsightsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeContributorInsightsInput, ...request.Option) (*dynamodb.DescribeContributorInsightsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeContributorInsightsInput, ...request.Option) *dynamodb.DescribeContributorInsightsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeContributorInsightsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeEndpoints(_a0 *dynamodb.DescribeEndpointsInput) (*dynamodb.DescribeEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeEndpointsInput) (*dynamodb.DescribeEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeEndpointsInput) *dynamodb.DescribeEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeEndpointsRequest(_a0 *dynamodb.DescribeEndpointsInput) (*request.Request, *dynamodb.DescribeEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeEndpointsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeEndpointsInput) (*request.Request, *dynamodb.DescribeEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeEndpointsInput) *dynamodb.DescribeEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeEndpointsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeEndpointsInput, _a2 ...request.Option) (*dynamodb.DescribeEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeEndpointsInput, ...request.Option) (*dynamodb.DescribeEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeEndpointsInput, ...request.Option) *dynamodb.DescribeEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExport provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeExport(_a0 *dynamodb.DescribeExportInput) (*dynamodb.DescribeExportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeExportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) (*dynamodb.DescribeExportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) *dynamodb.DescribeExportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeExportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeExportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeExportRequest(_a0 *dynamodb.DescribeExportInput) (*request.Request, *dynamodb.DescribeExportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeExportOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) (*request.Request, *dynamodb.DescribeExportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeExportInput) *dynamodb.DescribeExportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeExportOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeExportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeExportWithContext(_a0 context.Context, _a1 *dynamodb.DescribeExportInput, _a2 ...request.Option) (*dynamodb.DescribeExportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeExportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeExportInput, ...request.Option) (*dynamodb.DescribeExportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeExportInput, ...request.Option) *dynamodb.DescribeExportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeExportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeExportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeGlobalTable(_a0 *dynamodb.DescribeGlobalTableInput) (*dynamodb.DescribeGlobalTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableInput) (*dynamodb.DescribeGlobalTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableInput) *dynamodb.DescribeGlobalTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeGlobalTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeGlobalTableRequest(_a0 *dynamodb.DescribeGlobalTableInput) (*request.Request, *dynamodb.DescribeGlobalTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeGlobalTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableInput) (*request.Request, *dynamodb.DescribeGlobalTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeGlobalTableInput) *dynamodb.DescribeGlobalTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeGlobalTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTableSettings provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeGlobalTableSettings(_a0 *dynamodb.DescribeGlobalTableSettingsInput) (*dynamodb.DescribeGlobalTableSettingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeGlobalTableSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableSettingsInput) (*dynamodb.DescribeGlobalTableSettingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableSettingsInput) *dynamodb.DescribeGlobalTableSettingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeGlobalTableSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeGlobalTableSettingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTableSettingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeGlobalTableSettingsRequest(_a0 *dynamodb.DescribeGlobalTableSettingsInput) (*request.Request, *dynamodb.DescribeGlobalTableSettingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeGlobalTableSettingsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableSettingsInput) (*request.Request, *dynamodb.DescribeGlobalTableSettingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeGlobalTableSettingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeGlobalTableSettingsInput) *dynamodb.DescribeGlobalTableSettingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeGlobalTableSettingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTableSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeGlobalTableSettingsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeGlobalTableSettingsInput, _a2 ...request.Option) (*dynamodb.DescribeGlobalTableSettingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeGlobalTableSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeGlobalTableSettingsInput, ...request.Option) (*dynamodb.DescribeGlobalTableSettingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeGlobalTableSettingsInput, ...request.Option) *dynamodb.DescribeGlobalTableSettingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeGlobalTableSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeGlobalTableSettingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeGlobalTableWithContext(_a0 context.Context, _a1 *dynamodb.DescribeGlobalTableInput, _a2 ...request.Option) (*dynamodb.DescribeGlobalTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeGlobalTableInput, ...request.Option) (*dynamodb.DescribeGlobalTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeGlobalTableInput, ...request.Option) *dynamodb.DescribeGlobalTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeGlobalTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImport provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeImport(_a0 *dynamodb.DescribeImportInput) (*dynamodb.DescribeImportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeImportInput) (*dynamodb.DescribeImportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeImportInput) *dynamodb.DescribeImportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeImportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeImportRequest(_a0 *dynamodb.DescribeImportInput) (*request.Request, *dynamodb.DescribeImportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeImportOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeImportInput) (*request.Request, *dynamodb.DescribeImportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeImportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeImportInput) *dynamodb.DescribeImportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeImportOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeImportWithContext(_a0 context.Context, _a1 *dynamodb.DescribeImportInput, _a2 ...request.Option) (*dynamodb.DescribeImportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeImportInput, ...request.Option) (*dynamodb.DescribeImportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeImportInput, ...request.Option) *dynamodb.DescribeImportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeImportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKinesisStreamingDestination provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestination(_a0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKinesisStreamingDestinationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestinationRequest(_a0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DescribeKinesisStreamingDestinationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeKinesisStreamingDestinationOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DescribeKinesisStreamingDestinationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeKinesisStreamingDestinationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.DescribeKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeKinesisStreamingDestinationInput, ...request.Option) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeKinesisStreamingDestinationInput, ...request.Option) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeKinesisStreamingDestinationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLimits provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeLimits(_a0 *dynamodb.DescribeLimitsInput) (*dynamodb.DescribeLimitsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeLimitsInput) (*dynamodb.DescribeLimitsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeLimitsInput) *dynamodb.DescribeLimitsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeLimitsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLimitsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeLimitsRequest(_a0 *dynamodb.DescribeLimitsInput) (*request.Request, *dynamodb.DescribeLimitsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeLimitsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeLimitsInput) (*request.Request, *dynamodb.DescribeLimitsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeLimitsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeLimitsInput) *dynamodb.DescribeLimitsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeLimitsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLimitsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeLimitsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeLimitsInput, _a2 ...request.Option) (*dynamodb.DescribeLimitsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeLimitsInput, ...request.Option) (*dynamodb.DescribeLimitsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeLimitsInput, ...request.Option) *dynamodb.DescribeLimitsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeLimitsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTable(_a0 *dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) *dynamodb.DescribeTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTableReplicaAutoScaling provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTableReplicaAutoScaling(_a0 *dynamodb.DescribeTableReplicaAutoScalingInput) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeTableReplicaAutoScalingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) *dynamodb.DescribeTableReplicaAutoScalingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTableReplicaAutoScalingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTableReplicaAutoScalingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTableReplicaAutoScalingRequest(_a0 *dynamodb.DescribeTableReplicaAutoScalingInput) (*request.Request, *dynamodb.DescribeTableReplicaAutoScalingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeTableReplicaAutoScalingOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) (*request.Request, *dynamodb.DescribeTableReplicaAutoScalingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTableReplicaAutoScalingInput) *dynamodb.DescribeTableReplicaAutoScalingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeTableReplicaAutoScalingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTableReplicaAutoScalingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeTableReplicaAutoScalingWithContext(_a0 context.Context, _a1 *dynamodb.DescribeTableReplicaAutoScalingInput, _a2 ...request.Option) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeTableReplicaAutoScalingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableReplicaAutoScalingInput, ...request.Option) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableReplicaAutoScalingInput, ...request.Option) *dynamodb.DescribeTableReplicaAutoScalingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTableReplicaAutoScalingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeTableReplicaAutoScalingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTableRequest(_a0 *dynamodb.DescribeTableInput) (*request.Request, *dynamodb.DescribeTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) (*request.Request, *dynamodb.DescribeTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTableInput) *dynamodb.DescribeTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeTableWithContext(_a0 context.Context, _a1 *dynamodb.DescribeTableInput, _a2 ...request.Option) (*dynamodb.DescribeTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableInput, ...request.Option) (*dynamodb.DescribeTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableInput, ...request.Option) *dynamodb.DescribeTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTimeToLive provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTimeToLive(_a0 *dynamodb.DescribeTimeToLiveInput) (*dynamodb.DescribeTimeToLiveOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DescribeTimeToLiveOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTimeToLiveInput) (*dynamodb.DescribeTimeToLiveOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTimeToLiveInput) *dynamodb.DescribeTimeToLiveOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTimeToLiveOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTimeToLiveInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTimeToLiveRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DescribeTimeToLiveRequest(_a0 *dynamodb.DescribeTimeToLiveInput) (*request.Request, *dynamodb.DescribeTimeToLiveOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DescribeTimeToLiveOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTimeToLiveInput) (*request.Request, *dynamodb.DescribeTimeToLiveOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTimeToLiveInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DescribeTimeToLiveInput) *dynamodb.DescribeTimeToLiveOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DescribeTimeToLiveOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTimeToLiveWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DescribeTimeToLiveWithContext(_a0 context.Context, _a1 *dynamodb.DescribeTimeToLiveInput, _a2 ...request.Option) (*dynamodb.DescribeTimeToLiveOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DescribeTimeToLiveOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTimeToLiveInput, ...request.Option) (*dynamodb.DescribeTimeToLiveOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTimeToLiveInput, ...request.Option) *dynamodb.DescribeTimeToLiveOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DescribeTimeToLiveOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeTimeToLiveInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKinesisStreamingDestination provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestination(_a0 *dynamodb.DisableKinesisStreamingDestinationInput) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.DisableKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) (*dynamodb.DisableKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *dynamodb.DisableKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DisableKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DisableKinesisStreamingDestinationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKinesisStreamingDestinationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestinationRequest(_a0 *dynamodb.DisableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DisableKinesisStreamingDestinationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.DisableKinesisStreamingDestinationOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DisableKinesisStreamingDestinationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *dynamodb.DisableKinesisStreamingDestinationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.DisableKinesisStreamingDestinationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.DisableKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.DisableKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DisableKinesisStreamingDestinationInput, ...request.Option) (*dynamodb.DisableKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DisableKinesisStreamingDestinationInput, ...request.Option) *dynamodb.DisableKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.DisableKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DisableKinesisStreamingDestinationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKinesisStreamingDestination provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestination(_a0 *dynamodb.EnableKinesisStreamingDestinationInput) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.EnableKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) (*dynamodb.EnableKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *dynamodb.EnableKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.EnableKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.EnableKinesisStreamingDestinationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKinesisStreamingDestinationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestinationRequest(_a0 *dynamodb.EnableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.EnableKinesisStreamingDestinationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.EnableKinesisStreamingDestinationOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.EnableKinesisStreamingDestinationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *dynamodb.EnableKinesisStreamingDestinationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.EnableKinesisStreamingDestinationOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.EnableKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.EnableKinesisStreamingDestinationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.EnableKinesisStreamingDestinationInput, ...request.Option) (*dynamodb.EnableKinesisStreamingDestinationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.EnableKinesisStreamingDestinationInput, ...request.Option) *dynamodb.EnableKinesisStreamingDestinationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.EnableKinesisStreamingDestinationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.EnableKinesisStreamingDestinationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteStatement provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExecuteStatement(_a0 *dynamodb.ExecuteStatementInput) (*dynamodb.ExecuteStatementOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ExecuteStatementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) (*dynamodb.ExecuteStatementOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) *dynamodb.ExecuteStatementOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExecuteStatementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteStatementInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteStatementRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExecuteStatementRequest(_a0 *dynamodb.ExecuteStatementInput) (*request.Request, *dynamodb.ExecuteStatementOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ExecuteStatementOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) (*request.Request, *dynamodb.ExecuteStatementOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteStatementInput) *dynamodb.ExecuteStatementOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ExecuteStatementOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExecuteStatementWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ExecuteStatementWithContext(_a0 context.Context, _a1 *dynamodb.ExecuteStatementInput, _a2 ...request.Option) (*dynamodb.ExecuteStatementOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ExecuteStatementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteStatementInput, ...request.Option) (*dynamodb.ExecuteStatementOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteStatementInput, ...request.Option) *dynamodb.ExecuteStatementOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExecuteStatementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExecuteStatementInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteTransaction provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExecuteTransaction(_a0 *dynamodb.ExecuteTransactionInput) (*dynamodb.ExecuteTransactionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ExecuteTransactionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) (*dynamodb.ExecuteTransactionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) *dynamodb.ExecuteTransactionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExecuteTransactionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteTransactionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExecuteTransactionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExecuteTransactionRequest(_a0 *dynamodb.ExecuteTransactionInput) (*request.Request, *dynamodb.ExecuteTransactionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ExecuteTransactionOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) (*request.Request, *dynamodb.ExecuteTransactionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteTransactionInput) *dynamodb.ExecuteTransactionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ExecuteTransactionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExecuteTransactionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ExecuteTransactionWithContext(_a0 context.Context, _a1 *dynamodb.ExecuteTransactionInput, _a2 ...request.Option) (*dynamodb.ExecuteTransactionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ExecuteTransactionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteTransactionInput, ...request.Option) (*dynamodb.ExecuteTransactionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteTransactionInput, ...request.Option) *dynamodb.ExecuteTransactionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExecuteTransactionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExecuteTransactionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportTableToPointInTime provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExportTableToPointInTime(_a0 *dynamodb.ExportTableToPointInTimeInput) (*dynamodb.ExportTableToPointInTimeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ExportTableToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) (*dynamodb.ExportTableToPointInTimeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) *dynamodb.ExportTableToPointInTimeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExportTableToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExportTableToPointInTimeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportTableToPointInTimeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ExportTableToPointInTimeRequest(_a0 *dynamodb.ExportTableToPointInTimeInput) (*request.Request, *dynamodb.ExportTableToPointInTimeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ExportTableToPointInTimeOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) (*request.Request, *dynamodb.ExportTableToPointInTimeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ExportTableToPointInTimeInput) *dynamodb.ExportTableToPointInTimeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ExportTableToPointInTimeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportTableToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ExportTableToPointInTimeWithContext(_a0 context.Context, _a1 *dynamodb.ExportTableToPointInTimeInput, _a2 ...request.Option) (*dynamodb.ExportTableToPointInTimeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ExportTableToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExportTableToPointInTimeInput, ...request.Option) (*dynamodb.ExportTableToPointInTimeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExportTableToPointInTimeInput, ...request.Option) *dynamodb.ExportTableToPointInTimeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ExportTableToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExportTableToPointInTimeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) GetItem(_a0 *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.GetItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.GetItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) GetItemRequest(_a0 *dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.GetItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.GetItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) GetItemWithContext(_a0 context.Context, _a1 *dynamodb.GetItemInput, _a2 ...request.Option) (*dynamodb.GetItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.GetItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) (*dynamodb.GetItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) *dynamodb.GetItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.GetItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ImportTable(_a0 *dynamodb.ImportTableInput) (*dynamodb.ImportTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ImportTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ImportTableInput) (*dynamodb.ImportTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ImportTableInput) *dynamodb.ImportTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ImportTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ImportTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ImportTableRequest(_a0 *dynamodb.ImportTableInput) (*request.Request, *dynamodb.ImportTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ImportTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ImportTableInput) (*request.Request, *dynamodb.ImportTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ImportTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ImportTableInput) *dynamodb.ImportTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ImportTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ImportTableWithContext(_a0 context.Context, _a1 *dynamodb.ImportTableInput, _a2 ...request.Option) (*dynamodb.ImportTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ImportTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ImportTableInput, ...request.Option) (*dynamodb.ImportTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ImportTableInput, ...request.Option) *dynamodb.ImportTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ImportTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ImportTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBackups provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListBackups(_a0 *dynamodb.ListBackupsInput) (*dynamodb.ListBackupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) (*dynamodb.ListBackupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBackupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListBackupsRequest(_a0 *dynamodb.ListBackupsInput) (*request.Request, *dynamodb.ListBackupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListBackupsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) (*request.Request, *dynamodb.ListBackupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListBackupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListBackupsWithContext(_a0 context.Context, _a1 *dynamodb.ListBackupsInput, _a2 ...request.Option) (*dynamodb.ListBackupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) (*dynamodb.ListBackupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) *dynamodb.ListBackupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListContributorInsights provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListContributorInsights(_a0 *dynamodb.ListContributorInsightsInput) (*dynamodb.ListContributorInsightsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) (*dynamodb.ListContributorInsightsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) *dynamodb.ListContributorInsightsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListContributorInsightsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListContributorInsightsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) ListContributorInsightsPages(_a0 *dynamodb.ListContributorInsightsInput, _a1 func(*dynamodb.ListContributorInsightsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListContributorInsightsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) ListContributorInsightsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListContributorInsightsInput, _a2 func(*dynamodb.ListContributorInsightsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListContributorInsightsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListContributorInsightsRequest(_a0 *dynamodb.ListContributorInsightsInput) (*request.Request, *dynamodb.ListContributorInsightsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListContributorInsightsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) (*request.Request, *dynamodb.ListContributorInsightsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListContributorInsightsInput) *dynamodb.ListContributorInsightsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListContributorInsightsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListContributorInsightsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListContributorInsightsWithContext(_a0 context.Context, _a1 *dynamodb.ListContributorInsightsInput, _a2 ...request.Option) (*dynamodb.ListContributorInsightsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListContributorInsightsInput, ...request.Option) (*dynamodb.ListContributorInsightsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListContributorInsightsInput, ...request.Option) *dynamodb.ListContributorInsightsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListContributorInsightsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListExports provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListExports(_a0 *dynamodb.ListExportsInput) (*dynamodb.ListExportsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListExportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) (*dynamodb.ListExportsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) *dynamodb.ListExportsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListExportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListExportsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListExportsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) ListExportsPages(_a0 *dynamodb.ListExportsInput, _a1 func(*dynamodb.ListExportsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput, func(*dynamodb.ListExportsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListExportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) ListExportsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListExportsInput, _a2 func(*dynamodb.ListExportsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListExportsInput, func(*dynamodb.ListExportsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListExportsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListExportsRequest(_a0 *dynamodb.ListExportsInput) (*request.Request, *dynamodb.ListExportsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListExportsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) (*request.Request, *dynamodb.ListExportsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListExportsInput) *dynamodb.ListExportsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListExportsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListExportsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListExportsWithContext(_a0 context.Context, _a1 *dynamodb.ListExportsInput, _a2 ...request.Option) (*dynamodb.ListExportsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListExportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListExportsInput, ...request.Option) (*dynamodb.ListExportsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListExportsInput, ...request.Option) *dynamodb.ListExportsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListExportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListExportsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGlobalTables provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListGlobalTables(_a0 *dynamodb.ListGlobalTablesInput) (*dynamodb.ListGlobalTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListGlobalTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListGlobalTablesInput) (*dynamodb.ListGlobalTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListGlobalTablesInput) *dynamodb.ListGlobalTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListGlobalTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListGlobalTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGlobalTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListGlobalTablesRequest(_a0 *dynamodb.ListGlobalTablesInput) (*request.Request, *dynamodb.ListGlobalTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListGlobalTablesOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListGlobalTablesInput) (*request.Request, *dynamodb.ListGlobalTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListGlobalTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListGlobalTablesInput) *dynamodb.ListGlobalTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListGlobalTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListGlobalTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListGlobalTablesWithContext(_a0 context.Context, _a1 *dynamodb.ListGlobalTablesInput, _a2 ...request.Option) (*dynamodb.ListGlobalTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListGlobalTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListGlobalTablesInput, ...request.Option) (*dynamodb.ListGlobalTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListGlobalTablesInput, ...request.Option) *dynamodb.ListGlobalTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListGlobalTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListGlobalTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImports provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListImports(_a0 *dynamodb.ListImportsInput) (*dynamodb.ListImportsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListImportsInput) (*dynamodb.ListImportsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListImportsInput) *dynamodb.ListImportsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListImportsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImportsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) ListImportsPages(_a0 *dynamodb.ListImportsInput, _a1 func(*dynamodb.ListImportsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListImportsInput, func(*dynamodb.ListImportsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) ListImportsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListImportsInput, _a2 func(*dynamodb.ListImportsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListImportsInput, func(*dynamodb.ListImportsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImportsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListImportsRequest(_a0 *dynamodb.ListImportsInput) (*request.Request, *dynamodb.ListImportsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListImportsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListImportsInput) (*request.Request, *dynamodb.ListImportsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListImportsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListImportsInput) *dynamodb.ListImportsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListImportsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImportsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListImportsWithContext(_a0 context.Context, _a1 *dynamodb.ListImportsInput, _a2 ...request.Option) (*dynamodb.ListImportsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListImportsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListImportsInput, ...request.Option) (*dynamodb.ListImportsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListImportsInput, ...request.Option) *dynamodb.ListImportsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListImportsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListImportsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTables provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListTables(_a0 *dynamodb.ListTablesInput) (*dynamodb.ListTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTablesInput) (*dynamodb.ListTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTablesInput) *dynamodb.ListTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTablesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) ListTablesPages(_a0 *dynamodb.ListTablesInput, _a1 func(*dynamodb.ListTablesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTablesInput, func(*dynamodb.ListTablesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) ListTablesPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListTablesInput, _a2 func(*dynamodb.ListTablesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListTablesInput, func(*dynamodb.ListTablesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListTablesRequest(_a0 *dynamodb.ListTablesInput) (*request.Request, *dynamodb.ListTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListTablesOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTablesInput) (*request.Request, *dynamodb.ListTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListTablesInput) *dynamodb.ListTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListTablesWithContext(_a0 context.Context, _a1 *dynamodb.ListTablesInput, _a2 ...request.Option) (*dynamodb.ListTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListTablesInput, ...request.Option) (*dynamodb.ListTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListTablesInput, ...request.Option) *dynamodb.ListTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsOfResource provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListTagsOfResource(_a0 *dynamodb.ListTagsOfResourceInput) (*dynamodb.ListTagsOfResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ListTagsOfResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTagsOfResourceInput) (*dynamodb.ListTagsOfResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTagsOfResourceInput) *dynamodb.ListTagsOfResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListTagsOfResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListTagsOfResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsOfResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ListTagsOfResourceRequest(_a0 *dynamodb.ListTagsOfResourceInput) (*request.Request, *dynamodb.ListTagsOfResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ListTagsOfResourceOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTagsOfResourceInput) (*request.Request, *dynamodb.ListTagsOfResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ListTagsOfResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ListTagsOfResourceInput) *dynamodb.ListTagsOfResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ListTagsOfResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsOfResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ListTagsOfResourceWithContext(_a0 context.Context, _a1 *dynamodb.ListTagsOfResourceInput, _a2 ...request.Option) (*dynamodb.ListTagsOfResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ListTagsOfResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListTagsOfResourceInput, ...request.Option) (*dynamodb.ListTagsOfResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListTagsOfResourceInput, ...request.Option) *dynamodb.ListTagsOfResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ListTagsOfResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListTagsOfResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) PutItem(_a0 *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.PutItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.PutItemInput) *dynamodb.PutItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.PutItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.PutItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) PutItemRequest(_a0 *dynamodb.PutItemInput) (*request.Request, *dynamodb.PutItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.PutItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.PutItemInput) (*request.Request, *dynamodb.PutItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.PutItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.PutItemInput) *dynamodb.PutItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.PutItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) PutItemWithContext(_a0 context.Context, _a1 *dynamodb.PutItemInput, _a2 ...request.Option) (*dynamodb.PutItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.PutItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.PutItemInput, ...request.Option) (*dynamodb.PutItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.PutItemInput, ...request.Option) *dynamodb.PutItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.PutItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.PutItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Query provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) Query(_a0 *dynamodb.QueryInput) (*dynamodb.QueryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.QueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.QueryInput) (*dynamodb.QueryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.QueryInput) *dynamodb.QueryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.QueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.QueryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// QueryPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) QueryPages(_a0 *dynamodb.QueryInput, _a1 func(*dynamodb.QueryOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.QueryInput, func(*dynamodb.QueryOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// QueryPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) QueryPagesWithContext(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 func(*dynamodb.QueryOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.QueryInput, func(*dynamodb.QueryOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// QueryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) QueryRequest(_a0 *dynamodb.QueryInput) (*request.Request, *dynamodb.QueryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.QueryOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.QueryInput) (*request.Request, *dynamodb.QueryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.QueryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.QueryInput) *dynamodb.QueryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.QueryOutput)
- }
- }
-
- return r0, r1
-}
-
-// QueryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) QueryWithContext(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 ...request.Option) (*dynamodb.QueryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.QueryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.QueryInput, ...request.Option) (*dynamodb.QueryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.QueryInput, ...request.Option) *dynamodb.QueryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.QueryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.QueryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreTableFromBackup provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) RestoreTableFromBackup(_a0 *dynamodb.RestoreTableFromBackupInput) (*dynamodb.RestoreTableFromBackupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.RestoreTableFromBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableFromBackupInput) (*dynamodb.RestoreTableFromBackupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableFromBackupInput) *dynamodb.RestoreTableFromBackupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.RestoreTableFromBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.RestoreTableFromBackupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreTableFromBackupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) RestoreTableFromBackupRequest(_a0 *dynamodb.RestoreTableFromBackupInput) (*request.Request, *dynamodb.RestoreTableFromBackupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.RestoreTableFromBackupOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableFromBackupInput) (*request.Request, *dynamodb.RestoreTableFromBackupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableFromBackupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.RestoreTableFromBackupInput) *dynamodb.RestoreTableFromBackupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.RestoreTableFromBackupOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreTableFromBackupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) RestoreTableFromBackupWithContext(_a0 context.Context, _a1 *dynamodb.RestoreTableFromBackupInput, _a2 ...request.Option) (*dynamodb.RestoreTableFromBackupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.RestoreTableFromBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.RestoreTableFromBackupInput, ...request.Option) (*dynamodb.RestoreTableFromBackupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.RestoreTableFromBackupInput, ...request.Option) *dynamodb.RestoreTableFromBackupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.RestoreTableFromBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.RestoreTableFromBackupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreTableToPointInTime provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) RestoreTableToPointInTime(_a0 *dynamodb.RestoreTableToPointInTimeInput) (*dynamodb.RestoreTableToPointInTimeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.RestoreTableToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableToPointInTimeInput) (*dynamodb.RestoreTableToPointInTimeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableToPointInTimeInput) *dynamodb.RestoreTableToPointInTimeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.RestoreTableToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.RestoreTableToPointInTimeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreTableToPointInTimeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) RestoreTableToPointInTimeRequest(_a0 *dynamodb.RestoreTableToPointInTimeInput) (*request.Request, *dynamodb.RestoreTableToPointInTimeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.RestoreTableToPointInTimeOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableToPointInTimeInput) (*request.Request, *dynamodb.RestoreTableToPointInTimeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.RestoreTableToPointInTimeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.RestoreTableToPointInTimeInput) *dynamodb.RestoreTableToPointInTimeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.RestoreTableToPointInTimeOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreTableToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) RestoreTableToPointInTimeWithContext(_a0 context.Context, _a1 *dynamodb.RestoreTableToPointInTimeInput, _a2 ...request.Option) (*dynamodb.RestoreTableToPointInTimeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.RestoreTableToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.RestoreTableToPointInTimeInput, ...request.Option) (*dynamodb.RestoreTableToPointInTimeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.RestoreTableToPointInTimeInput, ...request.Option) *dynamodb.RestoreTableToPointInTimeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.RestoreTableToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.RestoreTableToPointInTimeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Scan provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) Scan(_a0 *dynamodb.ScanInput) (*dynamodb.ScanOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.ScanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ScanInput) (*dynamodb.ScanOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ScanInput) *dynamodb.ScanOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ScanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ScanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ScanPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeDynamoDB) ScanPages(_a0 *dynamodb.ScanInput, _a1 func(*dynamodb.ScanOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.ScanInput, func(*dynamodb.ScanOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ScanPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeDynamoDB) ScanPagesWithContext(_a0 context.Context, _a1 *dynamodb.ScanInput, _a2 func(*dynamodb.ScanOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ScanInput, func(*dynamodb.ScanOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ScanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) ScanRequest(_a0 *dynamodb.ScanInput) (*request.Request, *dynamodb.ScanOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.ScanOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.ScanInput) (*request.Request, *dynamodb.ScanOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.ScanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.ScanInput) *dynamodb.ScanOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.ScanOutput)
- }
- }
-
- return r0, r1
-}
-
-// ScanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) ScanWithContext(_a0 context.Context, _a1 *dynamodb.ScanInput, _a2 ...request.Option) (*dynamodb.ScanOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.ScanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ScanInput, ...request.Option) (*dynamodb.ScanOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ScanInput, ...request.Option) *dynamodb.ScanOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.ScanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ScanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TagResource(_a0 *dynamodb.TagResourceInput) (*dynamodb.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.TagResourceInput) (*dynamodb.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TagResourceInput) *dynamodb.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TagResourceRequest(_a0 *dynamodb.TagResourceInput) (*request.Request, *dynamodb.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.TagResourceInput) (*request.Request, *dynamodb.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TagResourceInput) *dynamodb.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) TagResourceWithContext(_a0 context.Context, _a1 *dynamodb.TagResourceInput, _a2 ...request.Option) (*dynamodb.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TagResourceInput, ...request.Option) (*dynamodb.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TagResourceInput, ...request.Option) *dynamodb.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TransactGetItems provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TransactGetItems(_a0 *dynamodb.TransactGetItemsInput) (*dynamodb.TransactGetItemsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.TransactGetItemsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactGetItemsInput) (*dynamodb.TransactGetItemsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactGetItemsInput) *dynamodb.TransactGetItemsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TransactGetItemsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TransactGetItemsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TransactGetItemsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TransactGetItemsRequest(_a0 *dynamodb.TransactGetItemsInput) (*request.Request, *dynamodb.TransactGetItemsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.TransactGetItemsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactGetItemsInput) (*request.Request, *dynamodb.TransactGetItemsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactGetItemsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TransactGetItemsInput) *dynamodb.TransactGetItemsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.TransactGetItemsOutput)
- }
- }
-
- return r0, r1
-}
-
-// TransactGetItemsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) TransactGetItemsWithContext(_a0 context.Context, _a1 *dynamodb.TransactGetItemsInput, _a2 ...request.Option) (*dynamodb.TransactGetItemsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.TransactGetItemsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TransactGetItemsInput, ...request.Option) (*dynamodb.TransactGetItemsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TransactGetItemsInput, ...request.Option) *dynamodb.TransactGetItemsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TransactGetItemsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.TransactGetItemsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TransactWriteItems provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TransactWriteItems(_a0 *dynamodb.TransactWriteItemsInput) (*dynamodb.TransactWriteItemsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.TransactWriteItemsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactWriteItemsInput) (*dynamodb.TransactWriteItemsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactWriteItemsInput) *dynamodb.TransactWriteItemsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TransactWriteItemsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TransactWriteItemsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TransactWriteItemsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) TransactWriteItemsRequest(_a0 *dynamodb.TransactWriteItemsInput) (*request.Request, *dynamodb.TransactWriteItemsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.TransactWriteItemsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactWriteItemsInput) (*request.Request, *dynamodb.TransactWriteItemsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.TransactWriteItemsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.TransactWriteItemsInput) *dynamodb.TransactWriteItemsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.TransactWriteItemsOutput)
- }
- }
-
- return r0, r1
-}
-
-// TransactWriteItemsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) TransactWriteItemsWithContext(_a0 context.Context, _a1 *dynamodb.TransactWriteItemsInput, _a2 ...request.Option) (*dynamodb.TransactWriteItemsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.TransactWriteItemsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TransactWriteItemsInput, ...request.Option) (*dynamodb.TransactWriteItemsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.TransactWriteItemsInput, ...request.Option) *dynamodb.TransactWriteItemsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.TransactWriteItemsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.TransactWriteItemsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UntagResource(_a0 *dynamodb.UntagResourceInput) (*dynamodb.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UntagResourceInput) (*dynamodb.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UntagResourceInput) *dynamodb.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UntagResourceRequest(_a0 *dynamodb.UntagResourceInput) (*request.Request, *dynamodb.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UntagResourceInput) (*request.Request, *dynamodb.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UntagResourceInput) *dynamodb.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UntagResourceWithContext(_a0 context.Context, _a1 *dynamodb.UntagResourceInput, _a2 ...request.Option) (*dynamodb.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UntagResourceInput, ...request.Option) (*dynamodb.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UntagResourceInput, ...request.Option) *dynamodb.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateContinuousBackups provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateContinuousBackups(_a0 *dynamodb.UpdateContinuousBackupsInput) (*dynamodb.UpdateContinuousBackupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateContinuousBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContinuousBackupsInput) (*dynamodb.UpdateContinuousBackupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContinuousBackupsInput) *dynamodb.UpdateContinuousBackupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateContinuousBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateContinuousBackupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateContinuousBackupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateContinuousBackupsRequest(_a0 *dynamodb.UpdateContinuousBackupsInput) (*request.Request, *dynamodb.UpdateContinuousBackupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateContinuousBackupsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContinuousBackupsInput) (*request.Request, *dynamodb.UpdateContinuousBackupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContinuousBackupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateContinuousBackupsInput) *dynamodb.UpdateContinuousBackupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateContinuousBackupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateContinuousBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateContinuousBackupsWithContext(_a0 context.Context, _a1 *dynamodb.UpdateContinuousBackupsInput, _a2 ...request.Option) (*dynamodb.UpdateContinuousBackupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateContinuousBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateContinuousBackupsInput, ...request.Option) (*dynamodb.UpdateContinuousBackupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateContinuousBackupsInput, ...request.Option) *dynamodb.UpdateContinuousBackupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateContinuousBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateContinuousBackupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateContributorInsights provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateContributorInsights(_a0 *dynamodb.UpdateContributorInsightsInput) (*dynamodb.UpdateContributorInsightsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContributorInsightsInput) (*dynamodb.UpdateContributorInsightsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContributorInsightsInput) *dynamodb.UpdateContributorInsightsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateContributorInsightsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateContributorInsightsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateContributorInsightsRequest(_a0 *dynamodb.UpdateContributorInsightsInput) (*request.Request, *dynamodb.UpdateContributorInsightsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateContributorInsightsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContributorInsightsInput) (*request.Request, *dynamodb.UpdateContributorInsightsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateContributorInsightsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateContributorInsightsInput) *dynamodb.UpdateContributorInsightsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateContributorInsightsOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateContributorInsightsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateContributorInsightsWithContext(_a0 context.Context, _a1 *dynamodb.UpdateContributorInsightsInput, _a2 ...request.Option) (*dynamodb.UpdateContributorInsightsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateContributorInsightsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateContributorInsightsInput, ...request.Option) (*dynamodb.UpdateContributorInsightsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateContributorInsightsInput, ...request.Option) *dynamodb.UpdateContributorInsightsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateContributorInsightsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateContributorInsightsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateGlobalTable(_a0 *dynamodb.UpdateGlobalTableInput) (*dynamodb.UpdateGlobalTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableInput) (*dynamodb.UpdateGlobalTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableInput) *dynamodb.UpdateGlobalTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateGlobalTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateGlobalTableRequest(_a0 *dynamodb.UpdateGlobalTableInput) (*request.Request, *dynamodb.UpdateGlobalTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateGlobalTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableInput) (*request.Request, *dynamodb.UpdateGlobalTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateGlobalTableInput) *dynamodb.UpdateGlobalTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateGlobalTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTableSettings provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateGlobalTableSettings(_a0 *dynamodb.UpdateGlobalTableSettingsInput) (*dynamodb.UpdateGlobalTableSettingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateGlobalTableSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableSettingsInput) (*dynamodb.UpdateGlobalTableSettingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableSettingsInput) *dynamodb.UpdateGlobalTableSettingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateGlobalTableSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateGlobalTableSettingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTableSettingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateGlobalTableSettingsRequest(_a0 *dynamodb.UpdateGlobalTableSettingsInput) (*request.Request, *dynamodb.UpdateGlobalTableSettingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateGlobalTableSettingsOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableSettingsInput) (*request.Request, *dynamodb.UpdateGlobalTableSettingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateGlobalTableSettingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateGlobalTableSettingsInput) *dynamodb.UpdateGlobalTableSettingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateGlobalTableSettingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTableSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateGlobalTableSettingsWithContext(_a0 context.Context, _a1 *dynamodb.UpdateGlobalTableSettingsInput, _a2 ...request.Option) (*dynamodb.UpdateGlobalTableSettingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateGlobalTableSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateGlobalTableSettingsInput, ...request.Option) (*dynamodb.UpdateGlobalTableSettingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateGlobalTableSettingsInput, ...request.Option) *dynamodb.UpdateGlobalTableSettingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateGlobalTableSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateGlobalTableSettingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGlobalTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateGlobalTableWithContext(_a0 context.Context, _a1 *dynamodb.UpdateGlobalTableInput, _a2 ...request.Option) (*dynamodb.UpdateGlobalTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateGlobalTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateGlobalTableInput, ...request.Option) (*dynamodb.UpdateGlobalTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateGlobalTableInput, ...request.Option) *dynamodb.UpdateGlobalTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateGlobalTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateGlobalTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateItem provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateItem(_a0 *dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateItemInput) *dynamodb.UpdateItemOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateItemInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateItemRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateItemRequest(_a0 *dynamodb.UpdateItemInput) (*request.Request, *dynamodb.UpdateItemOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateItemOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateItemInput) (*request.Request, *dynamodb.UpdateItemOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateItemInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateItemInput) *dynamodb.UpdateItemOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateItemOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateItemWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateItemWithContext(_a0 context.Context, _a1 *dynamodb.UpdateItemInput, _a2 ...request.Option) (*dynamodb.UpdateItemOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateItemOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateItemInput, ...request.Option) (*dynamodb.UpdateItemOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateItemInput, ...request.Option) *dynamodb.UpdateItemOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateItemOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateItemInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTable provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTable(_a0 *dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableInput) *dynamodb.UpdateTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTableReplicaAutoScaling provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTableReplicaAutoScaling(_a0 *dynamodb.UpdateTableReplicaAutoScalingInput) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateTableReplicaAutoScalingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) *dynamodb.UpdateTableReplicaAutoScalingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTableReplicaAutoScalingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTableReplicaAutoScalingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTableReplicaAutoScalingRequest(_a0 *dynamodb.UpdateTableReplicaAutoScalingInput) (*request.Request, *dynamodb.UpdateTableReplicaAutoScalingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateTableReplicaAutoScalingOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) (*request.Request, *dynamodb.UpdateTableReplicaAutoScalingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTableReplicaAutoScalingInput) *dynamodb.UpdateTableReplicaAutoScalingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateTableReplicaAutoScalingOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTableReplicaAutoScalingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateTableReplicaAutoScalingWithContext(_a0 context.Context, _a1 *dynamodb.UpdateTableReplicaAutoScalingInput, _a2 ...request.Option) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateTableReplicaAutoScalingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTableReplicaAutoScalingInput, ...request.Option) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTableReplicaAutoScalingInput, ...request.Option) *dynamodb.UpdateTableReplicaAutoScalingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTableReplicaAutoScalingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateTableReplicaAutoScalingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTableRequest(_a0 *dynamodb.UpdateTableInput) (*request.Request, *dynamodb.UpdateTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateTableOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableInput) (*request.Request, *dynamodb.UpdateTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTableInput) *dynamodb.UpdateTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateTableWithContext(_a0 context.Context, _a1 *dynamodb.UpdateTableInput, _a2 ...request.Option) (*dynamodb.UpdateTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTableInput, ...request.Option) (*dynamodb.UpdateTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTableInput, ...request.Option) *dynamodb.UpdateTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTimeToLive provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTimeToLive(_a0 *dynamodb.UpdateTimeToLiveInput) (*dynamodb.UpdateTimeToLiveOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *dynamodb.UpdateTimeToLiveOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTimeToLiveInput) (*dynamodb.UpdateTimeToLiveOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTimeToLiveInput) *dynamodb.UpdateTimeToLiveOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTimeToLiveOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTimeToLiveInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTimeToLiveRequest provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) UpdateTimeToLiveRequest(_a0 *dynamodb.UpdateTimeToLiveInput) (*request.Request, *dynamodb.UpdateTimeToLiveOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *dynamodb.UpdateTimeToLiveOutput
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTimeToLiveInput) (*request.Request, *dynamodb.UpdateTimeToLiveOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*dynamodb.UpdateTimeToLiveInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*dynamodb.UpdateTimeToLiveInput) *dynamodb.UpdateTimeToLiveOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*dynamodb.UpdateTimeToLiveOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTimeToLiveWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) UpdateTimeToLiveWithContext(_a0 context.Context, _a1 *dynamodb.UpdateTimeToLiveInput, _a2 ...request.Option) (*dynamodb.UpdateTimeToLiveOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *dynamodb.UpdateTimeToLiveOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTimeToLiveInput, ...request.Option) (*dynamodb.UpdateTimeToLiveOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.UpdateTimeToLiveInput, ...request.Option) *dynamodb.UpdateTimeToLiveOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*dynamodb.UpdateTimeToLiveOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.UpdateTimeToLiveInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilTableExists provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) WaitUntilTableExists(_a0 *dynamodb.DescribeTableInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTableExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) WaitUntilTableExistsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeTableInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTableNotExists provides a mock function with given fields: _a0
-func (_m *MockFakeDynamoDB) WaitUntilTableNotExists(_a0 *dynamodb.DescribeTableInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*dynamodb.DescribeTableInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTableNotExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeDynamoDB) WaitUntilTableNotExistsWithContext(_a0 context.Context, _a1 *dynamodb.DescribeTableInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeTableInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeDynamoDB interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeDynamoDB creates a new instance of MockFakeDynamoDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeDynamoDB(t mockConstructorTestingTNewMockFakeDynamoDB) *MockFakeDynamoDB {
- mock := &MockFakeDynamoDB{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeEC2.go b/test/aws/mock_FakeEC2.go
deleted file mode 100644
index 6c143ea45..000000000
--- a/test/aws/mock_FakeEC2.go
+++ /dev/null
@@ -1,52611 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- ec2 "github.com/aws/aws-sdk-go/service/ec2"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeEC2 is an autogenerated mock type for the FakeEC2 type
-type MockFakeEC2 struct {
- mock.Mock
-}
-
-// AcceptReservedInstancesExchangeQuote provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptReservedInstancesExchangeQuote(_a0 *ec2.AcceptReservedInstancesExchangeQuoteInput) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptReservedInstancesExchangeQuoteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptReservedInstancesExchangeQuoteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptReservedInstancesExchangeQuoteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptReservedInstancesExchangeQuoteRequest(_a0 *ec2.AcceptReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.AcceptReservedInstancesExchangeQuoteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptReservedInstancesExchangeQuoteOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.AcceptReservedInstancesExchangeQuoteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptReservedInstancesExchangeQuoteOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptReservedInstancesExchangeQuoteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptReservedInstancesExchangeQuoteWithContext(_a0 context.Context, _a1 *ec2.AcceptReservedInstancesExchangeQuoteInput, _a2 ...request.Option) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptReservedInstancesExchangeQuoteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptReservedInstancesExchangeQuoteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayMulticastDomainAssociations(_a0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...request.Option) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayPeeringAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayPeeringAttachment(_a0 *ec2.AcceptTransitGatewayPeeringAttachmentInput) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayPeeringAttachmentRequest(_a0 *ec2.AcceptTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayPeeringAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptTransitGatewayPeeringAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayPeeringAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...request.Option) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayVpcAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayVpcAttachment(_a0 *ec2.AcceptTransitGatewayVpcAttachmentInput) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptTransitGatewayVpcAttachmentRequest(_a0 *ec2.AcceptTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayVpcAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptTransitGatewayVpcAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayVpcAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptTransitGatewayVpcAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptVpcEndpointConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptVpcEndpointConnections(_a0 *ec2.AcceptVpcEndpointConnectionsInput) (*ec2.AcceptVpcEndpointConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) (*ec2.AcceptVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) *ec2.AcceptVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcEndpointConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptVpcEndpointConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptVpcEndpointConnectionsRequest(_a0 *ec2.AcceptVpcEndpointConnectionsInput) (*request.Request, *ec2.AcceptVpcEndpointConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptVpcEndpointConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) (*request.Request, *ec2.AcceptVpcEndpointConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcEndpointConnectionsInput) *ec2.AcceptVpcEndpointConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptVpcEndpointConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.AcceptVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.AcceptVpcEndpointConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) (*ec2.AcceptVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) *ec2.AcceptVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptVpcPeeringConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptVpcPeeringConnection(_a0 *ec2.AcceptVpcPeeringConnectionInput) (*ec2.AcceptVpcPeeringConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AcceptVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) (*ec2.AcceptVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) *ec2.AcceptVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcPeeringConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AcceptVpcPeeringConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AcceptVpcPeeringConnectionRequest(_a0 *ec2.AcceptVpcPeeringConnectionInput) (*request.Request, *ec2.AcceptVpcPeeringConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AcceptVpcPeeringConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) (*request.Request, *ec2.AcceptVpcPeeringConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcPeeringConnectionInput) *ec2.AcceptVpcPeeringConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AcceptVpcPeeringConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AcceptVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AcceptVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.AcceptVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.AcceptVpcPeeringConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AcceptVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) (*ec2.AcceptVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) *ec2.AcceptVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AcceptVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AdvertiseByoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AdvertiseByoipCidr(_a0 *ec2.AdvertiseByoipCidrInput) (*ec2.AdvertiseByoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AdvertiseByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) (*ec2.AdvertiseByoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) *ec2.AdvertiseByoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AdvertiseByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AdvertiseByoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AdvertiseByoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AdvertiseByoipCidrRequest(_a0 *ec2.AdvertiseByoipCidrInput) (*request.Request, *ec2.AdvertiseByoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AdvertiseByoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) (*request.Request, *ec2.AdvertiseByoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AdvertiseByoipCidrInput) *ec2.AdvertiseByoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AdvertiseByoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// AdvertiseByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AdvertiseByoipCidrWithContext(_a0 context.Context, _a1 *ec2.AdvertiseByoipCidrInput, _a2 ...request.Option) (*ec2.AdvertiseByoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AdvertiseByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) (*ec2.AdvertiseByoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) *ec2.AdvertiseByoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AdvertiseByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateAddress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateAddress(_a0 *ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AllocateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) *ec2.AllocateAddressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateAddressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateAddressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateAddressRequest(_a0 *ec2.AllocateAddressInput) (*request.Request, *ec2.AllocateAddressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AllocateAddressOutput
- if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) (*request.Request, *ec2.AllocateAddressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateAddressInput) *ec2.AllocateAddressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AllocateAddressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AllocateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AllocateAddressWithContext(_a0 context.Context, _a1 *ec2.AllocateAddressInput, _a2 ...request.Option) (*ec2.AllocateAddressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AllocateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateAddressInput, ...request.Option) (*ec2.AllocateAddressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateAddressInput, ...request.Option) *ec2.AllocateAddressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateAddressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateHosts provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateHosts(_a0 *ec2.AllocateHostsInput) (*ec2.AllocateHostsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AllocateHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) (*ec2.AllocateHostsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) *ec2.AllocateHostsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateHostsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateHostsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateHostsRequest(_a0 *ec2.AllocateHostsInput) (*request.Request, *ec2.AllocateHostsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AllocateHostsOutput
- if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) (*request.Request, *ec2.AllocateHostsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateHostsInput) *ec2.AllocateHostsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AllocateHostsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AllocateHostsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AllocateHostsWithContext(_a0 context.Context, _a1 *ec2.AllocateHostsInput, _a2 ...request.Option) (*ec2.AllocateHostsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AllocateHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateHostsInput, ...request.Option) (*ec2.AllocateHostsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateHostsInput, ...request.Option) *ec2.AllocateHostsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateHostsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateIpamPoolCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateIpamPoolCidr(_a0 *ec2.AllocateIpamPoolCidrInput) (*ec2.AllocateIpamPoolCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AllocateIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) (*ec2.AllocateIpamPoolCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) *ec2.AllocateIpamPoolCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateIpamPoolCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AllocateIpamPoolCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AllocateIpamPoolCidrRequest(_a0 *ec2.AllocateIpamPoolCidrInput) (*request.Request, *ec2.AllocateIpamPoolCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AllocateIpamPoolCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) (*request.Request, *ec2.AllocateIpamPoolCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AllocateIpamPoolCidrInput) *ec2.AllocateIpamPoolCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AllocateIpamPoolCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// AllocateIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AllocateIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.AllocateIpamPoolCidrInput, _a2 ...request.Option) (*ec2.AllocateIpamPoolCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AllocateIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...request.Option) (*ec2.AllocateIpamPoolCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...request.Option) *ec2.AllocateIpamPoolCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AllocateIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToClientVpnTargetNetwork provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ApplySecurityGroupsToClientVpnTargetNetwork(_a0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToClientVpnTargetNetworkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ApplySecurityGroupsToClientVpnTargetNetworkRequest(_a0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*request.Request, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput
- if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*request.Request, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput)
- }
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ApplySecurityGroupsToClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...request.Option) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...request.Option) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssignIpv6Addresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssignIpv6Addresses(_a0 *ec2.AssignIpv6AddressesInput) (*ec2.AssignIpv6AddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssignIpv6AddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) (*ec2.AssignIpv6AddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) *ec2.AssignIpv6AddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssignIpv6AddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssignIpv6AddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssignIpv6AddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssignIpv6AddressesRequest(_a0 *ec2.AssignIpv6AddressesInput) (*request.Request, *ec2.AssignIpv6AddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssignIpv6AddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) (*request.Request, *ec2.AssignIpv6AddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssignIpv6AddressesInput) *ec2.AssignIpv6AddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssignIpv6AddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssignIpv6AddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssignIpv6AddressesWithContext(_a0 context.Context, _a1 *ec2.AssignIpv6AddressesInput, _a2 ...request.Option) (*ec2.AssignIpv6AddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssignIpv6AddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...request.Option) (*ec2.AssignIpv6AddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...request.Option) *ec2.AssignIpv6AddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssignIpv6AddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssignPrivateIpAddresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssignPrivateIpAddresses(_a0 *ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssignPrivateIpAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) *ec2.AssignPrivateIpAddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssignPrivateIpAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssignPrivateIpAddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssignPrivateIpAddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssignPrivateIpAddressesRequest(_a0 *ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssignPrivateIpAddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssignPrivateIpAddressesInput) *ec2.AssignPrivateIpAddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssignPrivateIpAddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssignPrivateIpAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssignPrivateIpAddressesWithContext(_a0 context.Context, _a1 *ec2.AssignPrivateIpAddressesInput, _a2 ...request.Option) (*ec2.AssignPrivateIpAddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssignPrivateIpAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) (*ec2.AssignPrivateIpAddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) *ec2.AssignPrivateIpAddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssignPrivateIpAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateAddress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateAddress(_a0 *ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) *ec2.AssociateAddressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateAddressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateAddressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateAddressRequest(_a0 *ec2.AssociateAddressInput) (*request.Request, *ec2.AssociateAddressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateAddressOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) (*request.Request, *ec2.AssociateAddressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateAddressInput) *ec2.AssociateAddressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateAddressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateAddressWithContext(_a0 context.Context, _a1 *ec2.AssociateAddressInput, _a2 ...request.Option) (*ec2.AssociateAddressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateAddressInput, ...request.Option) (*ec2.AssociateAddressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateAddressInput, ...request.Option) *ec2.AssociateAddressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateAddressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateClientVpnTargetNetwork provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateClientVpnTargetNetwork(_a0 *ec2.AssociateClientVpnTargetNetworkInput) (*ec2.AssociateClientVpnTargetNetworkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) (*ec2.AssociateClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) *ec2.AssociateClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateClientVpnTargetNetworkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateClientVpnTargetNetworkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateClientVpnTargetNetworkRequest(_a0 *ec2.AssociateClientVpnTargetNetworkInput) (*request.Request, *ec2.AssociateClientVpnTargetNetworkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateClientVpnTargetNetworkOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) (*request.Request, *ec2.AssociateClientVpnTargetNetworkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateClientVpnTargetNetworkInput) *ec2.AssociateClientVpnTargetNetworkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateClientVpnTargetNetworkOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.AssociateClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.AssociateClientVpnTargetNetworkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...request.Option) (*ec2.AssociateClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...request.Option) *ec2.AssociateClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateDhcpOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateDhcpOptions(_a0 *ec2.AssociateDhcpOptionsInput) (*ec2.AssociateDhcpOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) (*ec2.AssociateDhcpOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) *ec2.AssociateDhcpOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateDhcpOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateDhcpOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateDhcpOptionsRequest(_a0 *ec2.AssociateDhcpOptionsInput) (*request.Request, *ec2.AssociateDhcpOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateDhcpOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) (*request.Request, *ec2.AssociateDhcpOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateDhcpOptionsInput) *ec2.AssociateDhcpOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateDhcpOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.AssociateDhcpOptionsInput, _a2 ...request.Option) (*ec2.AssociateDhcpOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...request.Option) (*ec2.AssociateDhcpOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...request.Option) *ec2.AssociateDhcpOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateEnclaveCertificateIamRole provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateEnclaveCertificateIamRole(_a0 *ec2.AssociateEnclaveCertificateIamRoleInput) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateEnclaveCertificateIamRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateEnclaveCertificateIamRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateEnclaveCertificateIamRoleRequest(_a0 *ec2.AssociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.AssociateEnclaveCertificateIamRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateEnclaveCertificateIamRoleOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.AssociateEnclaveCertificateIamRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateEnclaveCertificateIamRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateEnclaveCertificateIamRoleWithContext(_a0 context.Context, _a1 *ec2.AssociateEnclaveCertificateIamRoleInput, _a2 ...request.Option) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateEnclaveCertificateIamRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...request.Option) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...request.Option) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateIamInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateIamInstanceProfile(_a0 *ec2.AssociateIamInstanceProfileInput) (*ec2.AssociateIamInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateIamInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) (*ec2.AssociateIamInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) *ec2.AssociateIamInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateIamInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateIamInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateIamInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateIamInstanceProfileRequest(_a0 *ec2.AssociateIamInstanceProfileInput) (*request.Request, *ec2.AssociateIamInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateIamInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) (*request.Request, *ec2.AssociateIamInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateIamInstanceProfileInput) *ec2.AssociateIamInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateIamInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateIamInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateIamInstanceProfileWithContext(_a0 context.Context, _a1 *ec2.AssociateIamInstanceProfileInput, _a2 ...request.Option) (*ec2.AssociateIamInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateIamInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...request.Option) (*ec2.AssociateIamInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...request.Option) *ec2.AssociateIamInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateIamInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateInstanceEventWindow provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateInstanceEventWindow(_a0 *ec2.AssociateInstanceEventWindowInput) (*ec2.AssociateInstanceEventWindowOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) (*ec2.AssociateInstanceEventWindowOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) *ec2.AssociateInstanceEventWindowOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateInstanceEventWindowInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateInstanceEventWindowRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateInstanceEventWindowRequest(_a0 *ec2.AssociateInstanceEventWindowInput) (*request.Request, *ec2.AssociateInstanceEventWindowOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateInstanceEventWindowOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) (*request.Request, *ec2.AssociateInstanceEventWindowOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateInstanceEventWindowInput) *ec2.AssociateInstanceEventWindowOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateInstanceEventWindowOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.AssociateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.AssociateInstanceEventWindowOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...request.Option) (*ec2.AssociateInstanceEventWindowOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...request.Option) *ec2.AssociateInstanceEventWindowOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateRouteTable(_a0 *ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) *ec2.AssociateRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateRouteTableRequest(_a0 *ec2.AssociateRouteTableInput) (*request.Request, *ec2.AssociateRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) (*request.Request, *ec2.AssociateRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateRouteTableInput) *ec2.AssociateRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateRouteTableWithContext(_a0 context.Context, _a1 *ec2.AssociateRouteTableInput, _a2 ...request.Option) (*ec2.AssociateRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateRouteTableInput, ...request.Option) (*ec2.AssociateRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateRouteTableInput, ...request.Option) *ec2.AssociateRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateSubnetCidrBlock provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateSubnetCidrBlock(_a0 *ec2.AssociateSubnetCidrBlockInput) (*ec2.AssociateSubnetCidrBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateSubnetCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) (*ec2.AssociateSubnetCidrBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) *ec2.AssociateSubnetCidrBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateSubnetCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateSubnetCidrBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateSubnetCidrBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateSubnetCidrBlockRequest(_a0 *ec2.AssociateSubnetCidrBlockInput) (*request.Request, *ec2.AssociateSubnetCidrBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateSubnetCidrBlockOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) (*request.Request, *ec2.AssociateSubnetCidrBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateSubnetCidrBlockInput) *ec2.AssociateSubnetCidrBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateSubnetCidrBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateSubnetCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateSubnetCidrBlockWithContext(_a0 context.Context, _a1 *ec2.AssociateSubnetCidrBlockInput, _a2 ...request.Option) (*ec2.AssociateSubnetCidrBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateSubnetCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) (*ec2.AssociateSubnetCidrBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) *ec2.AssociateSubnetCidrBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateSubnetCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayMulticastDomain provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayMulticastDomain(_a0 *ec2.AssociateTransitGatewayMulticastDomainInput) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayMulticastDomainRequest(_a0 *ec2.AssociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.AssociateTransitGatewayMulticastDomainOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateTransitGatewayMulticastDomainOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.AssociateTransitGatewayMulticastDomainOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.AssociateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...request.Option) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayPolicyTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayPolicyTable(_a0 *ec2.AssociateTransitGatewayPolicyTableInput) (*ec2.AssociateTransitGatewayPolicyTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayPolicyTableInput) (*ec2.AssociateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayPolicyTableInput) *ec2.AssociateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayPolicyTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayPolicyTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayPolicyTableRequest(_a0 *ec2.AssociateTransitGatewayPolicyTableInput) (*request.Request, *ec2.AssociateTransitGatewayPolicyTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateTransitGatewayPolicyTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayPolicyTableInput) (*request.Request, *ec2.AssociateTransitGatewayPolicyTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayPolicyTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayPolicyTableInput) *ec2.AssociateTransitGatewayPolicyTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateTransitGatewayPolicyTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayPolicyTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateTransitGatewayPolicyTableWithContext(_a0 context.Context, _a1 *ec2.AssociateTransitGatewayPolicyTableInput, _a2 ...request.Option) (*ec2.AssociateTransitGatewayPolicyTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayPolicyTableInput, ...request.Option) (*ec2.AssociateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayPolicyTableInput, ...request.Option) *ec2.AssociateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayPolicyTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayRouteTable(_a0 *ec2.AssociateTransitGatewayRouteTableInput) (*ec2.AssociateTransitGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) (*ec2.AssociateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) *ec2.AssociateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTransitGatewayRouteTableRequest(_a0 *ec2.AssociateTransitGatewayRouteTableInput) (*request.Request, *ec2.AssociateTransitGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateTransitGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) (*request.Request, *ec2.AssociateTransitGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayRouteTableInput) *ec2.AssociateTransitGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateTransitGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.AssociateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.AssociateTransitGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) (*ec2.AssociateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) *ec2.AssociateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTrunkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTrunkInterface(_a0 *ec2.AssociateTrunkInterfaceInput) (*ec2.AssociateTrunkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateTrunkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) (*ec2.AssociateTrunkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) *ec2.AssociateTrunkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTrunkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTrunkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateTrunkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateTrunkInterfaceRequest(_a0 *ec2.AssociateTrunkInterfaceInput) (*request.Request, *ec2.AssociateTrunkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateTrunkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) (*request.Request, *ec2.AssociateTrunkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateTrunkInterfaceInput) *ec2.AssociateTrunkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateTrunkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateTrunkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateTrunkInterfaceWithContext(_a0 context.Context, _a1 *ec2.AssociateTrunkInterfaceInput, _a2 ...request.Option) (*ec2.AssociateTrunkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateTrunkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...request.Option) (*ec2.AssociateTrunkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...request.Option) *ec2.AssociateTrunkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateTrunkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateVpcCidrBlock provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateVpcCidrBlock(_a0 *ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AssociateVpcCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) *ec2.AssociateVpcCidrBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateVpcCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateVpcCidrBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateVpcCidrBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AssociateVpcCidrBlockRequest(_a0 *ec2.AssociateVpcCidrBlockInput) (*request.Request, *ec2.AssociateVpcCidrBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AssociateVpcCidrBlockOutput
- if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) (*request.Request, *ec2.AssociateVpcCidrBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AssociateVpcCidrBlockInput) *ec2.AssociateVpcCidrBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AssociateVpcCidrBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateVpcCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AssociateVpcCidrBlockWithContext(_a0 context.Context, _a1 *ec2.AssociateVpcCidrBlockInput, _a2 ...request.Option) (*ec2.AssociateVpcCidrBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AssociateVpcCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) (*ec2.AssociateVpcCidrBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) *ec2.AssociateVpcCidrBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AssociateVpcCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachClassicLinkVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachClassicLinkVpc(_a0 *ec2.AttachClassicLinkVpcInput) (*ec2.AttachClassicLinkVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AttachClassicLinkVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) (*ec2.AttachClassicLinkVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) *ec2.AttachClassicLinkVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachClassicLinkVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachClassicLinkVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachClassicLinkVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachClassicLinkVpcRequest(_a0 *ec2.AttachClassicLinkVpcInput) (*request.Request, *ec2.AttachClassicLinkVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AttachClassicLinkVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) (*request.Request, *ec2.AttachClassicLinkVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachClassicLinkVpcInput) *ec2.AttachClassicLinkVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AttachClassicLinkVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachClassicLinkVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AttachClassicLinkVpcWithContext(_a0 context.Context, _a1 *ec2.AttachClassicLinkVpcInput, _a2 ...request.Option) (*ec2.AttachClassicLinkVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AttachClassicLinkVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...request.Option) (*ec2.AttachClassicLinkVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...request.Option) *ec2.AttachClassicLinkVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachClassicLinkVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachInternetGateway(_a0 *ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AttachInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) *ec2.AttachInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachInternetGatewayRequest(_a0 *ec2.AttachInternetGatewayInput) (*request.Request, *ec2.AttachInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AttachInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) (*request.Request, *ec2.AttachInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachInternetGatewayInput) *ec2.AttachInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AttachInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AttachInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.AttachInternetGatewayInput, _a2 ...request.Option) (*ec2.AttachInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AttachInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachInternetGatewayInput, ...request.Option) (*ec2.AttachInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachInternetGatewayInput, ...request.Option) *ec2.AttachInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachNetworkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachNetworkInterface(_a0 *ec2.AttachNetworkInterfaceInput) (*ec2.AttachNetworkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AttachNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) (*ec2.AttachNetworkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) *ec2.AttachNetworkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachNetworkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachNetworkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachNetworkInterfaceRequest(_a0 *ec2.AttachNetworkInterfaceInput) (*request.Request, *ec2.AttachNetworkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AttachNetworkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) (*request.Request, *ec2.AttachNetworkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachNetworkInterfaceInput) *ec2.AttachNetworkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AttachNetworkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AttachNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.AttachNetworkInterfaceInput, _a2 ...request.Option) (*ec2.AttachNetworkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AttachNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...request.Option) (*ec2.AttachNetworkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...request.Option) *ec2.AttachNetworkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachVolume(_a0 *ec2.AttachVolumeInput) (*ec2.VolumeAttachment, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.VolumeAttachment
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) (*ec2.VolumeAttachment, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) *ec2.VolumeAttachment); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.VolumeAttachment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachVolumeRequest(_a0 *ec2.AttachVolumeInput) (*request.Request, *ec2.VolumeAttachment) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.VolumeAttachment
- if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) (*request.Request, *ec2.VolumeAttachment)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachVolumeInput) *ec2.VolumeAttachment); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.VolumeAttachment)
- }
- }
-
- return r0, r1
-}
-
-// AttachVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AttachVolumeWithContext(_a0 context.Context, _a1 *ec2.AttachVolumeInput, _a2 ...request.Option) (*ec2.VolumeAttachment, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.VolumeAttachment
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVolumeInput, ...request.Option) (*ec2.VolumeAttachment, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVolumeInput, ...request.Option) *ec2.VolumeAttachment); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.VolumeAttachment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachVpnGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachVpnGateway(_a0 *ec2.AttachVpnGatewayInput) (*ec2.AttachVpnGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AttachVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) (*ec2.AttachVpnGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) *ec2.AttachVpnGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachVpnGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachVpnGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AttachVpnGatewayRequest(_a0 *ec2.AttachVpnGatewayInput) (*request.Request, *ec2.AttachVpnGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AttachVpnGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) (*request.Request, *ec2.AttachVpnGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AttachVpnGatewayInput) *ec2.AttachVpnGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AttachVpnGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AttachVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.AttachVpnGatewayInput, _a2 ...request.Option) (*ec2.AttachVpnGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AttachVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVpnGatewayInput, ...request.Option) (*ec2.AttachVpnGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVpnGatewayInput, ...request.Option) *ec2.AttachVpnGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AttachVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVpnGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeClientVpnIngress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeClientVpnIngress(_a0 *ec2.AuthorizeClientVpnIngressInput) (*ec2.AuthorizeClientVpnIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AuthorizeClientVpnIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) (*ec2.AuthorizeClientVpnIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) *ec2.AuthorizeClientVpnIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeClientVpnIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeClientVpnIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeClientVpnIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeClientVpnIngressRequest(_a0 *ec2.AuthorizeClientVpnIngressInput) (*request.Request, *ec2.AuthorizeClientVpnIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AuthorizeClientVpnIngressOutput
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) (*request.Request, *ec2.AuthorizeClientVpnIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeClientVpnIngressInput) *ec2.AuthorizeClientVpnIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AuthorizeClientVpnIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AuthorizeClientVpnIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AuthorizeClientVpnIngressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeClientVpnIngressInput, _a2 ...request.Option) (*ec2.AuthorizeClientVpnIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AuthorizeClientVpnIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...request.Option) (*ec2.AuthorizeClientVpnIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...request.Option) *ec2.AuthorizeClientVpnIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeClientVpnIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupEgress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeSecurityGroupEgress(_a0 *ec2.AuthorizeSecurityGroupEgressInput) (*ec2.AuthorizeSecurityGroupEgressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AuthorizeSecurityGroupEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) (*ec2.AuthorizeSecurityGroupEgressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) *ec2.AuthorizeSecurityGroupEgressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupEgressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupEgressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeSecurityGroupEgressRequest(_a0 *ec2.AuthorizeSecurityGroupEgressInput) (*request.Request, *ec2.AuthorizeSecurityGroupEgressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AuthorizeSecurityGroupEgressOutput
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) (*request.Request, *ec2.AuthorizeSecurityGroupEgressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupEgressInput) *ec2.AuthorizeSecurityGroupEgressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AuthorizeSecurityGroupEgressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupEgressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AuthorizeSecurityGroupEgressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeSecurityGroupEgressInput, _a2 ...request.Option) (*ec2.AuthorizeSecurityGroupEgressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AuthorizeSecurityGroupEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...request.Option) (*ec2.AuthorizeSecurityGroupEgressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...request.Option) *ec2.AuthorizeSecurityGroupEgressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeSecurityGroupIngress(_a0 *ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.AuthorizeSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) *ec2.AuthorizeSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) AuthorizeSecurityGroupIngressRequest(_a0 *ec2.AuthorizeSecurityGroupIngressInput) (*request.Request, *ec2.AuthorizeSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.AuthorizeSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) (*request.Request, *ec2.AuthorizeSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupIngressInput) *ec2.AuthorizeSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.AuthorizeSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AuthorizeSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) AuthorizeSecurityGroupIngressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeSecurityGroupIngressInput, _a2 ...request.Option) (*ec2.AuthorizeSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.AuthorizeSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...request.Option) (*ec2.AuthorizeSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...request.Option) *ec2.AuthorizeSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BundleInstance provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) BundleInstance(_a0 *ec2.BundleInstanceInput) (*ec2.BundleInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.BundleInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) (*ec2.BundleInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) *ec2.BundleInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.BundleInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.BundleInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BundleInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) BundleInstanceRequest(_a0 *ec2.BundleInstanceInput) (*request.Request, *ec2.BundleInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.BundleInstanceOutput
- if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) (*request.Request, *ec2.BundleInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.BundleInstanceInput) *ec2.BundleInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.BundleInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// BundleInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) BundleInstanceWithContext(_a0 context.Context, _a1 *ec2.BundleInstanceInput, _a2 ...request.Option) (*ec2.BundleInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.BundleInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.BundleInstanceInput, ...request.Option) (*ec2.BundleInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.BundleInstanceInput, ...request.Option) *ec2.BundleInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.BundleInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.BundleInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelBundleTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelBundleTask(_a0 *ec2.CancelBundleTaskInput) (*ec2.CancelBundleTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelBundleTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) (*ec2.CancelBundleTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) *ec2.CancelBundleTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelBundleTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelBundleTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelBundleTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelBundleTaskRequest(_a0 *ec2.CancelBundleTaskInput) (*request.Request, *ec2.CancelBundleTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelBundleTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) (*request.Request, *ec2.CancelBundleTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelBundleTaskInput) *ec2.CancelBundleTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelBundleTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelBundleTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelBundleTaskWithContext(_a0 context.Context, _a1 *ec2.CancelBundleTaskInput, _a2 ...request.Option) (*ec2.CancelBundleTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelBundleTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelBundleTaskInput, ...request.Option) (*ec2.CancelBundleTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelBundleTaskInput, ...request.Option) *ec2.CancelBundleTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelBundleTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelBundleTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelCapacityReservation(_a0 *ec2.CancelCapacityReservationInput) (*ec2.CancelCapacityReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) (*ec2.CancelCapacityReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) *ec2.CancelCapacityReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservationFleets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelCapacityReservationFleets(_a0 *ec2.CancelCapacityReservationFleetsInput) (*ec2.CancelCapacityReservationFleetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelCapacityReservationFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) (*ec2.CancelCapacityReservationFleetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) *ec2.CancelCapacityReservationFleetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelCapacityReservationFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationFleetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservationFleetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelCapacityReservationFleetsRequest(_a0 *ec2.CancelCapacityReservationFleetsInput) (*request.Request, *ec2.CancelCapacityReservationFleetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelCapacityReservationFleetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) (*request.Request, *ec2.CancelCapacityReservationFleetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationFleetsInput) *ec2.CancelCapacityReservationFleetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelCapacityReservationFleetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservationFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelCapacityReservationFleetsWithContext(_a0 context.Context, _a1 *ec2.CancelCapacityReservationFleetsInput, _a2 ...request.Option) (*ec2.CancelCapacityReservationFleetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelCapacityReservationFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...request.Option) (*ec2.CancelCapacityReservationFleetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...request.Option) *ec2.CancelCapacityReservationFleetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelCapacityReservationFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelCapacityReservationRequest(_a0 *ec2.CancelCapacityReservationInput) (*request.Request, *ec2.CancelCapacityReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelCapacityReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) (*request.Request, *ec2.CancelCapacityReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationInput) *ec2.CancelCapacityReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelCapacityReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.CancelCapacityReservationInput, _a2 ...request.Option) (*ec2.CancelCapacityReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationInput, ...request.Option) (*ec2.CancelCapacityReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationInput, ...request.Option) *ec2.CancelCapacityReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelConversionTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelConversionTask(_a0 *ec2.CancelConversionTaskInput) (*ec2.CancelConversionTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelConversionTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) (*ec2.CancelConversionTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) *ec2.CancelConversionTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelConversionTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelConversionTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelConversionTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelConversionTaskRequest(_a0 *ec2.CancelConversionTaskInput) (*request.Request, *ec2.CancelConversionTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelConversionTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) (*request.Request, *ec2.CancelConversionTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelConversionTaskInput) *ec2.CancelConversionTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelConversionTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelConversionTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelConversionTaskWithContext(_a0 context.Context, _a1 *ec2.CancelConversionTaskInput, _a2 ...request.Option) (*ec2.CancelConversionTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelConversionTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelConversionTaskInput, ...request.Option) (*ec2.CancelConversionTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelConversionTaskInput, ...request.Option) *ec2.CancelConversionTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelConversionTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelConversionTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelExportTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelExportTask(_a0 *ec2.CancelExportTaskInput) (*ec2.CancelExportTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) (*ec2.CancelExportTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) *ec2.CancelExportTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelExportTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelExportTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelExportTaskRequest(_a0 *ec2.CancelExportTaskInput) (*request.Request, *ec2.CancelExportTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelExportTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) (*request.Request, *ec2.CancelExportTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelExportTaskInput) *ec2.CancelExportTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelExportTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelExportTaskWithContext(_a0 context.Context, _a1 *ec2.CancelExportTaskInput, _a2 ...request.Option) (*ec2.CancelExportTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelExportTaskInput, ...request.Option) (*ec2.CancelExportTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelExportTaskInput, ...request.Option) *ec2.CancelExportTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelExportTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelImportTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelImportTask(_a0 *ec2.CancelImportTaskInput) (*ec2.CancelImportTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelImportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) (*ec2.CancelImportTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) *ec2.CancelImportTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelImportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelImportTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelImportTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelImportTaskRequest(_a0 *ec2.CancelImportTaskInput) (*request.Request, *ec2.CancelImportTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelImportTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) (*request.Request, *ec2.CancelImportTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelImportTaskInput) *ec2.CancelImportTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelImportTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelImportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelImportTaskWithContext(_a0 context.Context, _a1 *ec2.CancelImportTaskInput, _a2 ...request.Option) (*ec2.CancelImportTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelImportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelImportTaskInput, ...request.Option) (*ec2.CancelImportTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelImportTaskInput, ...request.Option) *ec2.CancelImportTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelImportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelImportTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelReservedInstancesListing provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelReservedInstancesListing(_a0 *ec2.CancelReservedInstancesListingInput) (*ec2.CancelReservedInstancesListingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelReservedInstancesListingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) (*ec2.CancelReservedInstancesListingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) *ec2.CancelReservedInstancesListingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelReservedInstancesListingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelReservedInstancesListingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelReservedInstancesListingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelReservedInstancesListingRequest(_a0 *ec2.CancelReservedInstancesListingInput) (*request.Request, *ec2.CancelReservedInstancesListingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelReservedInstancesListingOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) (*request.Request, *ec2.CancelReservedInstancesListingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelReservedInstancesListingInput) *ec2.CancelReservedInstancesListingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelReservedInstancesListingOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelReservedInstancesListingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelReservedInstancesListingWithContext(_a0 context.Context, _a1 *ec2.CancelReservedInstancesListingInput, _a2 ...request.Option) (*ec2.CancelReservedInstancesListingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelReservedInstancesListingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...request.Option) (*ec2.CancelReservedInstancesListingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...request.Option) *ec2.CancelReservedInstancesListingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelReservedInstancesListingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelSpotFleetRequests provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelSpotFleetRequests(_a0 *ec2.CancelSpotFleetRequestsInput) (*ec2.CancelSpotFleetRequestsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelSpotFleetRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) (*ec2.CancelSpotFleetRequestsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) *ec2.CancelSpotFleetRequestsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelSpotFleetRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelSpotFleetRequestsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelSpotFleetRequestsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelSpotFleetRequestsRequest(_a0 *ec2.CancelSpotFleetRequestsInput) (*request.Request, *ec2.CancelSpotFleetRequestsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelSpotFleetRequestsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) (*request.Request, *ec2.CancelSpotFleetRequestsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelSpotFleetRequestsInput) *ec2.CancelSpotFleetRequestsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelSpotFleetRequestsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelSpotFleetRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelSpotFleetRequestsWithContext(_a0 context.Context, _a1 *ec2.CancelSpotFleetRequestsInput, _a2 ...request.Option) (*ec2.CancelSpotFleetRequestsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelSpotFleetRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...request.Option) (*ec2.CancelSpotFleetRequestsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...request.Option) *ec2.CancelSpotFleetRequestsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelSpotFleetRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelSpotInstanceRequests provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelSpotInstanceRequests(_a0 *ec2.CancelSpotInstanceRequestsInput) (*ec2.CancelSpotInstanceRequestsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CancelSpotInstanceRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) (*ec2.CancelSpotInstanceRequestsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) *ec2.CancelSpotInstanceRequestsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelSpotInstanceRequestsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelSpotInstanceRequestsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CancelSpotInstanceRequestsRequest(_a0 *ec2.CancelSpotInstanceRequestsInput) (*request.Request, *ec2.CancelSpotInstanceRequestsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CancelSpotInstanceRequestsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) (*request.Request, *ec2.CancelSpotInstanceRequestsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CancelSpotInstanceRequestsInput) *ec2.CancelSpotInstanceRequestsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CancelSpotInstanceRequestsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelSpotInstanceRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CancelSpotInstanceRequestsWithContext(_a0 context.Context, _a1 *ec2.CancelSpotInstanceRequestsInput, _a2 ...request.Option) (*ec2.CancelSpotInstanceRequestsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CancelSpotInstanceRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...request.Option) (*ec2.CancelSpotInstanceRequestsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...request.Option) *ec2.CancelSpotInstanceRequestsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfirmProductInstance provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ConfirmProductInstance(_a0 *ec2.ConfirmProductInstanceInput) (*ec2.ConfirmProductInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ConfirmProductInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) (*ec2.ConfirmProductInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) *ec2.ConfirmProductInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ConfirmProductInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ConfirmProductInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfirmProductInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ConfirmProductInstanceRequest(_a0 *ec2.ConfirmProductInstanceInput) (*request.Request, *ec2.ConfirmProductInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ConfirmProductInstanceOutput
- if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) (*request.Request, *ec2.ConfirmProductInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ConfirmProductInstanceInput) *ec2.ConfirmProductInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ConfirmProductInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ConfirmProductInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ConfirmProductInstanceWithContext(_a0 context.Context, _a1 *ec2.ConfirmProductInstanceInput, _a2 ...request.Option) (*ec2.ConfirmProductInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ConfirmProductInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...request.Option) (*ec2.ConfirmProductInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...request.Option) *ec2.ConfirmProductInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ConfirmProductInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyFpgaImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopyFpgaImage(_a0 *ec2.CopyFpgaImageInput) (*ec2.CopyFpgaImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CopyFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) (*ec2.CopyFpgaImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) *ec2.CopyFpgaImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopyFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopyFpgaImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyFpgaImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopyFpgaImageRequest(_a0 *ec2.CopyFpgaImageInput) (*request.Request, *ec2.CopyFpgaImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CopyFpgaImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) (*request.Request, *ec2.CopyFpgaImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopyFpgaImageInput) *ec2.CopyFpgaImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CopyFpgaImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CopyFpgaImageWithContext(_a0 context.Context, _a1 *ec2.CopyFpgaImageInput, _a2 ...request.Option) (*ec2.CopyFpgaImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CopyFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyFpgaImageInput, ...request.Option) (*ec2.CopyFpgaImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyFpgaImageInput, ...request.Option) *ec2.CopyFpgaImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopyFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyFpgaImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopyImage(_a0 *ec2.CopyImageInput) (*ec2.CopyImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CopyImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) (*ec2.CopyImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) *ec2.CopyImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopyImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopyImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopyImageRequest(_a0 *ec2.CopyImageInput) (*request.Request, *ec2.CopyImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CopyImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) (*request.Request, *ec2.CopyImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopyImageInput) *ec2.CopyImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CopyImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CopyImageWithContext(_a0 context.Context, _a1 *ec2.CopyImageInput, _a2 ...request.Option) (*ec2.CopyImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CopyImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyImageInput, ...request.Option) (*ec2.CopyImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyImageInput, ...request.Option) *ec2.CopyImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopyImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopySnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopySnapshot(_a0 *ec2.CopySnapshotInput) (*ec2.CopySnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CopySnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) (*ec2.CopySnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) *ec2.CopySnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopySnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopySnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopySnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CopySnapshotRequest(_a0 *ec2.CopySnapshotInput) (*request.Request, *ec2.CopySnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CopySnapshotOutput
- if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) (*request.Request, *ec2.CopySnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CopySnapshotInput) *ec2.CopySnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CopySnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopySnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CopySnapshotWithContext(_a0 context.Context, _a1 *ec2.CopySnapshotInput, _a2 ...request.Option) (*ec2.CopySnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CopySnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopySnapshotInput, ...request.Option) (*ec2.CopySnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopySnapshotInput, ...request.Option) *ec2.CopySnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CopySnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopySnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCapacityReservation(_a0 *ec2.CreateCapacityReservationInput) (*ec2.CreateCapacityReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) (*ec2.CreateCapacityReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) *ec2.CreateCapacityReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservationFleet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCapacityReservationFleet(_a0 *ec2.CreateCapacityReservationFleetInput) (*ec2.CreateCapacityReservationFleetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCapacityReservationFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) (*ec2.CreateCapacityReservationFleetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) *ec2.CreateCapacityReservationFleetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCapacityReservationFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationFleetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservationFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCapacityReservationFleetRequest(_a0 *ec2.CreateCapacityReservationFleetInput) (*request.Request, *ec2.CreateCapacityReservationFleetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCapacityReservationFleetOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) (*request.Request, *ec2.CreateCapacityReservationFleetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationFleetInput) *ec2.CreateCapacityReservationFleetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCapacityReservationFleetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservationFleetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCapacityReservationFleetWithContext(_a0 context.Context, _a1 *ec2.CreateCapacityReservationFleetInput, _a2 ...request.Option) (*ec2.CreateCapacityReservationFleetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCapacityReservationFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...request.Option) (*ec2.CreateCapacityReservationFleetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...request.Option) *ec2.CreateCapacityReservationFleetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCapacityReservationFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCapacityReservationRequest(_a0 *ec2.CreateCapacityReservationInput) (*request.Request, *ec2.CreateCapacityReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCapacityReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) (*request.Request, *ec2.CreateCapacityReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationInput) *ec2.CreateCapacityReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCapacityReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.CreateCapacityReservationInput, _a2 ...request.Option) (*ec2.CreateCapacityReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationInput, ...request.Option) (*ec2.CreateCapacityReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationInput, ...request.Option) *ec2.CreateCapacityReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCarrierGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCarrierGateway(_a0 *ec2.CreateCarrierGatewayInput) (*ec2.CreateCarrierGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCarrierGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) (*ec2.CreateCarrierGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) *ec2.CreateCarrierGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCarrierGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCarrierGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCarrierGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCarrierGatewayRequest(_a0 *ec2.CreateCarrierGatewayInput) (*request.Request, *ec2.CreateCarrierGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCarrierGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) (*request.Request, *ec2.CreateCarrierGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCarrierGatewayInput) *ec2.CreateCarrierGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCarrierGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCarrierGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCarrierGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateCarrierGatewayInput, _a2 ...request.Option) (*ec2.CreateCarrierGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCarrierGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...request.Option) (*ec2.CreateCarrierGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...request.Option) *ec2.CreateCarrierGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCarrierGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateClientVpnEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateClientVpnEndpoint(_a0 *ec2.CreateClientVpnEndpointInput) (*ec2.CreateClientVpnEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) (*ec2.CreateClientVpnEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) *ec2.CreateClientVpnEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateClientVpnEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateClientVpnEndpointRequest(_a0 *ec2.CreateClientVpnEndpointInput) (*request.Request, *ec2.CreateClientVpnEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateClientVpnEndpointOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) (*request.Request, *ec2.CreateClientVpnEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnEndpointInput) *ec2.CreateClientVpnEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateClientVpnEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.CreateClientVpnEndpointInput, _a2 ...request.Option) (*ec2.CreateClientVpnEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...request.Option) (*ec2.CreateClientVpnEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...request.Option) *ec2.CreateClientVpnEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateClientVpnRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateClientVpnRoute(_a0 *ec2.CreateClientVpnRouteInput) (*ec2.CreateClientVpnRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateClientVpnRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) (*ec2.CreateClientVpnRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) *ec2.CreateClientVpnRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateClientVpnRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateClientVpnRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateClientVpnRouteRequest(_a0 *ec2.CreateClientVpnRouteInput) (*request.Request, *ec2.CreateClientVpnRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateClientVpnRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) (*request.Request, *ec2.CreateClientVpnRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnRouteInput) *ec2.CreateClientVpnRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateClientVpnRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateClientVpnRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateClientVpnRouteWithContext(_a0 context.Context, _a1 *ec2.CreateClientVpnRouteInput, _a2 ...request.Option) (*ec2.CreateClientVpnRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateClientVpnRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) (*ec2.CreateClientVpnRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) *ec2.CreateClientVpnRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateClientVpnRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCoipCidr(_a0 *ec2.CreateCoipCidrInput) (*ec2.CreateCoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipCidrInput) (*ec2.CreateCoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipCidrInput) *ec2.CreateCoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCoipCidrRequest(_a0 *ec2.CreateCoipCidrInput) (*request.Request, *ec2.CreateCoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipCidrInput) (*request.Request, *ec2.CreateCoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCoipCidrInput) *ec2.CreateCoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCoipCidrWithContext(_a0 context.Context, _a1 *ec2.CreateCoipCidrInput, _a2 ...request.Option) (*ec2.CreateCoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCoipCidrInput, ...request.Option) (*ec2.CreateCoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCoipCidrInput, ...request.Option) *ec2.CreateCoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCoipPool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCoipPool(_a0 *ec2.CreateCoipPoolInput) (*ec2.CreateCoipPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCoipPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipPoolInput) (*ec2.CreateCoipPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipPoolInput) *ec2.CreateCoipPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCoipPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCoipPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCoipPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCoipPoolRequest(_a0 *ec2.CreateCoipPoolInput) (*request.Request, *ec2.CreateCoipPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCoipPoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipPoolInput) (*request.Request, *ec2.CreateCoipPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCoipPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCoipPoolInput) *ec2.CreateCoipPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCoipPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCoipPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCoipPoolWithContext(_a0 context.Context, _a1 *ec2.CreateCoipPoolInput, _a2 ...request.Option) (*ec2.CreateCoipPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCoipPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCoipPoolInput, ...request.Option) (*ec2.CreateCoipPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCoipPoolInput, ...request.Option) *ec2.CreateCoipPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCoipPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCoipPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomerGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCustomerGateway(_a0 *ec2.CreateCustomerGatewayInput) (*ec2.CreateCustomerGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateCustomerGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) (*ec2.CreateCustomerGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) *ec2.CreateCustomerGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCustomerGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCustomerGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomerGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateCustomerGatewayRequest(_a0 *ec2.CreateCustomerGatewayInput) (*request.Request, *ec2.CreateCustomerGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateCustomerGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) (*request.Request, *ec2.CreateCustomerGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateCustomerGatewayInput) *ec2.CreateCustomerGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateCustomerGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCustomerGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateCustomerGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateCustomerGatewayInput, _a2 ...request.Option) (*ec2.CreateCustomerGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateCustomerGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) (*ec2.CreateCustomerGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) *ec2.CreateCustomerGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateCustomerGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDefaultSubnet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDefaultSubnet(_a0 *ec2.CreateDefaultSubnetInput) (*ec2.CreateDefaultSubnetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateDefaultSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) (*ec2.CreateDefaultSubnetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) *ec2.CreateDefaultSubnetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDefaultSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultSubnetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDefaultSubnetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDefaultSubnetRequest(_a0 *ec2.CreateDefaultSubnetInput) (*request.Request, *ec2.CreateDefaultSubnetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateDefaultSubnetOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) (*request.Request, *ec2.CreateDefaultSubnetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultSubnetInput) *ec2.CreateDefaultSubnetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateDefaultSubnetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDefaultSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateDefaultSubnetWithContext(_a0 context.Context, _a1 *ec2.CreateDefaultSubnetInput, _a2 ...request.Option) (*ec2.CreateDefaultSubnetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateDefaultSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...request.Option) (*ec2.CreateDefaultSubnetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...request.Option) *ec2.CreateDefaultSubnetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDefaultSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDefaultVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDefaultVpc(_a0 *ec2.CreateDefaultVpcInput) (*ec2.CreateDefaultVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateDefaultVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) (*ec2.CreateDefaultVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) *ec2.CreateDefaultVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDefaultVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDefaultVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDefaultVpcRequest(_a0 *ec2.CreateDefaultVpcInput) (*request.Request, *ec2.CreateDefaultVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateDefaultVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) (*request.Request, *ec2.CreateDefaultVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultVpcInput) *ec2.CreateDefaultVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateDefaultVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDefaultVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateDefaultVpcWithContext(_a0 context.Context, _a1 *ec2.CreateDefaultVpcInput, _a2 ...request.Option) (*ec2.CreateDefaultVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateDefaultVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultVpcInput, ...request.Option) (*ec2.CreateDefaultVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultVpcInput, ...request.Option) *ec2.CreateDefaultVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDefaultVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDhcpOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDhcpOptions(_a0 *ec2.CreateDhcpOptionsInput) (*ec2.CreateDhcpOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) (*ec2.CreateDhcpOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) *ec2.CreateDhcpOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDhcpOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDhcpOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateDhcpOptionsRequest(_a0 *ec2.CreateDhcpOptionsInput) (*request.Request, *ec2.CreateDhcpOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateDhcpOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) (*request.Request, *ec2.CreateDhcpOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateDhcpOptionsInput) *ec2.CreateDhcpOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateDhcpOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.CreateDhcpOptionsInput, _a2 ...request.Option) (*ec2.CreateDhcpOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...request.Option) (*ec2.CreateDhcpOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...request.Option) *ec2.CreateDhcpOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEgressOnlyInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateEgressOnlyInternetGateway(_a0 *ec2.CreateEgressOnlyInternetGatewayInput) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateEgressOnlyInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) (*ec2.CreateEgressOnlyInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *ec2.CreateEgressOnlyInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateEgressOnlyInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateEgressOnlyInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEgressOnlyInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateEgressOnlyInternetGatewayRequest(_a0 *ec2.CreateEgressOnlyInternetGatewayInput) (*request.Request, *ec2.CreateEgressOnlyInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateEgressOnlyInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) (*request.Request, *ec2.CreateEgressOnlyInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *ec2.CreateEgressOnlyInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateEgressOnlyInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateEgressOnlyInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateEgressOnlyInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateEgressOnlyInternetGatewayInput, _a2 ...request.Option) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateEgressOnlyInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...request.Option) (*ec2.CreateEgressOnlyInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...request.Option) *ec2.CreateEgressOnlyInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateEgressOnlyInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFleet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFleet(_a0 *ec2.CreateFleetInput) (*ec2.CreateFleetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) (*ec2.CreateFleetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) *ec2.CreateFleetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFleetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFleetRequest(_a0 *ec2.CreateFleetInput) (*request.Request, *ec2.CreateFleetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateFleetOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) (*request.Request, *ec2.CreateFleetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFleetInput) *ec2.CreateFleetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateFleetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFleetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateFleetWithContext(_a0 context.Context, _a1 *ec2.CreateFleetInput, _a2 ...request.Option) (*ec2.CreateFleetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFleetInput, ...request.Option) (*ec2.CreateFleetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFleetInput, ...request.Option) *ec2.CreateFleetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFleetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFlowLogs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFlowLogs(_a0 *ec2.CreateFlowLogsInput) (*ec2.CreateFlowLogsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) (*ec2.CreateFlowLogsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) *ec2.CreateFlowLogsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFlowLogsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFlowLogsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFlowLogsRequest(_a0 *ec2.CreateFlowLogsInput) (*request.Request, *ec2.CreateFlowLogsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateFlowLogsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) (*request.Request, *ec2.CreateFlowLogsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFlowLogsInput) *ec2.CreateFlowLogsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateFlowLogsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateFlowLogsWithContext(_a0 context.Context, _a1 *ec2.CreateFlowLogsInput, _a2 ...request.Option) (*ec2.CreateFlowLogsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFlowLogsInput, ...request.Option) (*ec2.CreateFlowLogsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFlowLogsInput, ...request.Option) *ec2.CreateFlowLogsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFlowLogsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFpgaImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFpgaImage(_a0 *ec2.CreateFpgaImageInput) (*ec2.CreateFpgaImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) (*ec2.CreateFpgaImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) *ec2.CreateFpgaImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFpgaImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFpgaImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateFpgaImageRequest(_a0 *ec2.CreateFpgaImageInput) (*request.Request, *ec2.CreateFpgaImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateFpgaImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) (*request.Request, *ec2.CreateFpgaImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateFpgaImageInput) *ec2.CreateFpgaImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateFpgaImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateFpgaImageWithContext(_a0 context.Context, _a1 *ec2.CreateFpgaImageInput, _a2 ...request.Option) (*ec2.CreateFpgaImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFpgaImageInput, ...request.Option) (*ec2.CreateFpgaImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFpgaImageInput, ...request.Option) *ec2.CreateFpgaImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFpgaImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateImage(_a0 *ec2.CreateImageInput) (*ec2.CreateImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) (*ec2.CreateImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) *ec2.CreateImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateImageRequest(_a0 *ec2.CreateImageInput) (*request.Request, *ec2.CreateImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) (*request.Request, *ec2.CreateImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateImageInput) *ec2.CreateImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateImageWithContext(_a0 context.Context, _a1 *ec2.CreateImageInput, _a2 ...request.Option) (*ec2.CreateImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateImageInput, ...request.Option) (*ec2.CreateImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateImageInput, ...request.Option) *ec2.CreateImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceEventWindow provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInstanceEventWindow(_a0 *ec2.CreateInstanceEventWindowInput) (*ec2.CreateInstanceEventWindowOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) (*ec2.CreateInstanceEventWindowOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) *ec2.CreateInstanceEventWindowOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceEventWindowInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceEventWindowRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInstanceEventWindowRequest(_a0 *ec2.CreateInstanceEventWindowInput) (*request.Request, *ec2.CreateInstanceEventWindowOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateInstanceEventWindowOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) (*request.Request, *ec2.CreateInstanceEventWindowOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceEventWindowInput) *ec2.CreateInstanceEventWindowOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateInstanceEventWindowOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.CreateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.CreateInstanceEventWindowOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...request.Option) (*ec2.CreateInstanceEventWindowOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...request.Option) *ec2.CreateInstanceEventWindowOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceExportTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInstanceExportTask(_a0 *ec2.CreateInstanceExportTaskInput) (*ec2.CreateInstanceExportTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateInstanceExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) (*ec2.CreateInstanceExportTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) *ec2.CreateInstanceExportTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInstanceExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceExportTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceExportTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInstanceExportTaskRequest(_a0 *ec2.CreateInstanceExportTaskInput) (*request.Request, *ec2.CreateInstanceExportTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateInstanceExportTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) (*request.Request, *ec2.CreateInstanceExportTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceExportTaskInput) *ec2.CreateInstanceExportTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateInstanceExportTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateInstanceExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateInstanceExportTaskWithContext(_a0 context.Context, _a1 *ec2.CreateInstanceExportTaskInput, _a2 ...request.Option) (*ec2.CreateInstanceExportTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateInstanceExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...request.Option) (*ec2.CreateInstanceExportTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...request.Option) *ec2.CreateInstanceExportTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInstanceExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInternetGateway(_a0 *ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) *ec2.CreateInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateInternetGatewayRequest(_a0 *ec2.CreateInternetGatewayInput) (*request.Request, *ec2.CreateInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) (*request.Request, *ec2.CreateInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateInternetGatewayInput) *ec2.CreateInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateInternetGatewayInput, _a2 ...request.Option) (*ec2.CreateInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInternetGatewayInput, ...request.Option) (*ec2.CreateInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInternetGatewayInput, ...request.Option) *ec2.CreateInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpam provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpam(_a0 *ec2.CreateIpamInput) (*ec2.CreateIpamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) (*ec2.CreateIpamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) *ec2.CreateIpamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpamPool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpamPool(_a0 *ec2.CreateIpamPoolInput) (*ec2.CreateIpamPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) (*ec2.CreateIpamPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) *ec2.CreateIpamPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpamPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpamPoolRequest(_a0 *ec2.CreateIpamPoolInput) (*request.Request, *ec2.CreateIpamPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateIpamPoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) (*request.Request, *ec2.CreateIpamPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamPoolInput) *ec2.CreateIpamPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateIpamPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateIpamPoolWithContext(_a0 context.Context, _a1 *ec2.CreateIpamPoolInput, _a2 ...request.Option) (*ec2.CreateIpamPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamPoolInput, ...request.Option) (*ec2.CreateIpamPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamPoolInput, ...request.Option) *ec2.CreateIpamPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpamRequest(_a0 *ec2.CreateIpamInput) (*request.Request, *ec2.CreateIpamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateIpamOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) (*request.Request, *ec2.CreateIpamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamInput) *ec2.CreateIpamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateIpamOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateIpamScope provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpamScope(_a0 *ec2.CreateIpamScopeInput) (*ec2.CreateIpamScopeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) (*ec2.CreateIpamScopeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) *ec2.CreateIpamScopeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamScopeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpamScopeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateIpamScopeRequest(_a0 *ec2.CreateIpamScopeInput) (*request.Request, *ec2.CreateIpamScopeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateIpamScopeOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) (*request.Request, *ec2.CreateIpamScopeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateIpamScopeInput) *ec2.CreateIpamScopeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateIpamScopeOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateIpamScopeWithContext(_a0 context.Context, _a1 *ec2.CreateIpamScopeInput, _a2 ...request.Option) (*ec2.CreateIpamScopeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamScopeInput, ...request.Option) (*ec2.CreateIpamScopeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamScopeInput, ...request.Option) *ec2.CreateIpamScopeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamScopeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateIpamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateIpamWithContext(_a0 context.Context, _a1 *ec2.CreateIpamInput, _a2 ...request.Option) (*ec2.CreateIpamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamInput, ...request.Option) (*ec2.CreateIpamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamInput, ...request.Option) *ec2.CreateIpamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeyPair provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateKeyPair(_a0 *ec2.CreateKeyPairInput) (*ec2.CreateKeyPairOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) (*ec2.CreateKeyPairOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) *ec2.CreateKeyPairOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateKeyPairInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeyPairRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateKeyPairRequest(_a0 *ec2.CreateKeyPairInput) (*request.Request, *ec2.CreateKeyPairOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateKeyPairOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) (*request.Request, *ec2.CreateKeyPairOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateKeyPairInput) *ec2.CreateKeyPairOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateKeyPairOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateKeyPairWithContext(_a0 context.Context, _a1 *ec2.CreateKeyPairInput, _a2 ...request.Option) (*ec2.CreateKeyPairOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateKeyPairInput, ...request.Option) (*ec2.CreateKeyPairOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateKeyPairInput, ...request.Option) *ec2.CreateKeyPairOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateKeyPairInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLaunchTemplate(_a0 *ec2.CreateLaunchTemplateInput) (*ec2.CreateLaunchTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) (*ec2.CreateLaunchTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) *ec2.CreateLaunchTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLaunchTemplateRequest(_a0 *ec2.CreateLaunchTemplateInput) (*request.Request, *ec2.CreateLaunchTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLaunchTemplateOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) (*request.Request, *ec2.CreateLaunchTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateInput) *ec2.CreateLaunchTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLaunchTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplateVersion provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLaunchTemplateVersion(_a0 *ec2.CreateLaunchTemplateVersionInput) (*ec2.CreateLaunchTemplateVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLaunchTemplateVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) (*ec2.CreateLaunchTemplateVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) *ec2.CreateLaunchTemplateVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLaunchTemplateVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplateVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLaunchTemplateVersionRequest(_a0 *ec2.CreateLaunchTemplateVersionInput) (*request.Request, *ec2.CreateLaunchTemplateVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLaunchTemplateVersionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) (*request.Request, *ec2.CreateLaunchTemplateVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateVersionInput) *ec2.CreateLaunchTemplateVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLaunchTemplateVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplateVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLaunchTemplateVersionWithContext(_a0 context.Context, _a1 *ec2.CreateLaunchTemplateVersionInput, _a2 ...request.Option) (*ec2.CreateLaunchTemplateVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLaunchTemplateVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...request.Option) (*ec2.CreateLaunchTemplateVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...request.Option) *ec2.CreateLaunchTemplateVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLaunchTemplateVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.CreateLaunchTemplateInput, _a2 ...request.Option) (*ec2.CreateLaunchTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...request.Option) (*ec2.CreateLaunchTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...request.Option) *ec2.CreateLaunchTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRoute(_a0 *ec2.CreateLocalGatewayRouteInput) (*ec2.CreateLocalGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) (*ec2.CreateLocalGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) *ec2.CreateLocalGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteRequest(_a0 *ec2.CreateLocalGatewayRouteInput) (*request.Request, *ec2.CreateLocalGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLocalGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) (*request.Request, *ec2.CreateLocalGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteInput) *ec2.CreateLocalGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTable(_a0 *ec2.CreateLocalGatewayRouteTableInput) (*ec2.CreateLocalGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLocalGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableInput) (*ec2.CreateLocalGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableInput) *ec2.CreateLocalGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableRequest(_a0 *ec2.CreateLocalGatewayRouteTableInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLocalGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableInput) *ec2.CreateLocalGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_a0 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(_a0 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVpcAssociation(_a0 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVpcAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVpcAssociationRequest(_a0 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableVpcAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableVpcAssociationWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLocalGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteTableInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLocalGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableInput, ...request.Option) (*ec2.CreateLocalGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableInput, ...request.Option) *ec2.CreateLocalGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLocalGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateLocalGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) (*ec2.CreateLocalGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) *ec2.CreateLocalGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateManagedPrefixList provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateManagedPrefixList(_a0 *ec2.CreateManagedPrefixListInput) (*ec2.CreateManagedPrefixListOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) (*ec2.CreateManagedPrefixListOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) *ec2.CreateManagedPrefixListOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateManagedPrefixListInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateManagedPrefixListRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateManagedPrefixListRequest(_a0 *ec2.CreateManagedPrefixListInput) (*request.Request, *ec2.CreateManagedPrefixListOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateManagedPrefixListOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) (*request.Request, *ec2.CreateManagedPrefixListOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateManagedPrefixListInput) *ec2.CreateManagedPrefixListOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateManagedPrefixListOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.CreateManagedPrefixListInput, _a2 ...request.Option) (*ec2.CreateManagedPrefixListOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...request.Option) (*ec2.CreateManagedPrefixListOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...request.Option) *ec2.CreateManagedPrefixListOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNatGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNatGateway(_a0 *ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNatGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) *ec2.CreateNatGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNatGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNatGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNatGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNatGatewayRequest(_a0 *ec2.CreateNatGatewayInput) (*request.Request, *ec2.CreateNatGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNatGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) (*request.Request, *ec2.CreateNatGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNatGatewayInput) *ec2.CreateNatGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNatGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNatGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNatGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateNatGatewayInput, _a2 ...request.Option) (*ec2.CreateNatGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNatGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNatGatewayInput, ...request.Option) (*ec2.CreateNatGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNatGatewayInput, ...request.Option) *ec2.CreateNatGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNatGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNatGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkAcl provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkAcl(_a0 *ec2.CreateNetworkAclInput) (*ec2.CreateNetworkAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) (*ec2.CreateNetworkAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) *ec2.CreateNetworkAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkAclEntry provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkAclEntry(_a0 *ec2.CreateNetworkAclEntryInput) (*ec2.CreateNetworkAclEntryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) (*ec2.CreateNetworkAclEntryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) *ec2.CreateNetworkAclEntryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclEntryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkAclEntryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkAclEntryRequest(_a0 *ec2.CreateNetworkAclEntryInput) (*request.Request, *ec2.CreateNetworkAclEntryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkAclEntryOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) (*request.Request, *ec2.CreateNetworkAclEntryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclEntryInput) *ec2.CreateNetworkAclEntryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkAclEntryOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkAclEntryInput, _a2 ...request.Option) (*ec2.CreateNetworkAclEntryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...request.Option) (*ec2.CreateNetworkAclEntryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...request.Option) *ec2.CreateNetworkAclEntryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkAclRequest(_a0 *ec2.CreateNetworkAclInput) (*request.Request, *ec2.CreateNetworkAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkAclOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) (*request.Request, *ec2.CreateNetworkAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclInput) *ec2.CreateNetworkAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkAclWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkAclInput, _a2 ...request.Option) (*ec2.CreateNetworkAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclInput, ...request.Option) (*ec2.CreateNetworkAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclInput, ...request.Option) *ec2.CreateNetworkAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsAccessScope provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInsightsAccessScope(_a0 *ec2.CreateNetworkInsightsAccessScopeInput) (*ec2.CreateNetworkInsightsAccessScopeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkInsightsAccessScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) (*ec2.CreateNetworkInsightsAccessScopeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *ec2.CreateNetworkInsightsAccessScopeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInsightsAccessScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsAccessScopeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsAccessScopeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInsightsAccessScopeRequest(_a0 *ec2.CreateNetworkInsightsAccessScopeInput) (*request.Request, *ec2.CreateNetworkInsightsAccessScopeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkInsightsAccessScopeOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) (*request.Request, *ec2.CreateNetworkInsightsAccessScopeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *ec2.CreateNetworkInsightsAccessScopeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkInsightsAccessScopeOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsAccessScopeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkInsightsAccessScopeWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInsightsAccessScopeInput, _a2 ...request.Option) (*ec2.CreateNetworkInsightsAccessScopeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkInsightsAccessScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...request.Option) (*ec2.CreateNetworkInsightsAccessScopeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...request.Option) *ec2.CreateNetworkInsightsAccessScopeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInsightsAccessScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsPath provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInsightsPath(_a0 *ec2.CreateNetworkInsightsPathInput) (*ec2.CreateNetworkInsightsPathOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkInsightsPathOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) (*ec2.CreateNetworkInsightsPathOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) *ec2.CreateNetworkInsightsPathOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInsightsPathOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsPathInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsPathRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInsightsPathRequest(_a0 *ec2.CreateNetworkInsightsPathInput) (*request.Request, *ec2.CreateNetworkInsightsPathOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkInsightsPathOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) (*request.Request, *ec2.CreateNetworkInsightsPathOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsPathInput) *ec2.CreateNetworkInsightsPathOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkInsightsPathOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkInsightsPathWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkInsightsPathWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInsightsPathInput, _a2 ...request.Option) (*ec2.CreateNetworkInsightsPathOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkInsightsPathOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...request.Option) (*ec2.CreateNetworkInsightsPathOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...request.Option) *ec2.CreateNetworkInsightsPathOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInsightsPathOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInterface(_a0 *ec2.CreateNetworkInterfaceInput) (*ec2.CreateNetworkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) (*ec2.CreateNetworkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) *ec2.CreateNetworkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterfacePermission provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInterfacePermission(_a0 *ec2.CreateNetworkInterfacePermissionInput) (*ec2.CreateNetworkInterfacePermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateNetworkInterfacePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) (*ec2.CreateNetworkInterfacePermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) *ec2.CreateNetworkInterfacePermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInterfacePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfacePermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterfacePermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInterfacePermissionRequest(_a0 *ec2.CreateNetworkInterfacePermissionInput) (*request.Request, *ec2.CreateNetworkInterfacePermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkInterfacePermissionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) (*request.Request, *ec2.CreateNetworkInterfacePermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfacePermissionInput) *ec2.CreateNetworkInterfacePermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkInterfacePermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterfacePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkInterfacePermissionWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInterfacePermissionInput, _a2 ...request.Option) (*ec2.CreateNetworkInterfacePermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkInterfacePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...request.Option) (*ec2.CreateNetworkInterfacePermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...request.Option) *ec2.CreateNetworkInterfacePermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInterfacePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateNetworkInterfaceRequest(_a0 *ec2.CreateNetworkInterfaceInput) (*request.Request, *ec2.CreateNetworkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateNetworkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) (*request.Request, *ec2.CreateNetworkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfaceInput) *ec2.CreateNetworkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateNetworkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInterfaceInput, _a2 ...request.Option) (*ec2.CreateNetworkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...request.Option) (*ec2.CreateNetworkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...request.Option) *ec2.CreateNetworkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlacementGroup provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreatePlacementGroup(_a0 *ec2.CreatePlacementGroupInput) (*ec2.CreatePlacementGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreatePlacementGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) (*ec2.CreatePlacementGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) *ec2.CreatePlacementGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreatePlacementGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreatePlacementGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlacementGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreatePlacementGroupRequest(_a0 *ec2.CreatePlacementGroupInput) (*request.Request, *ec2.CreatePlacementGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreatePlacementGroupOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) (*request.Request, *ec2.CreatePlacementGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreatePlacementGroupInput) *ec2.CreatePlacementGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreatePlacementGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePlacementGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreatePlacementGroupWithContext(_a0 context.Context, _a1 *ec2.CreatePlacementGroupInput, _a2 ...request.Option) (*ec2.CreatePlacementGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreatePlacementGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePlacementGroupInput, ...request.Option) (*ec2.CreatePlacementGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePlacementGroupInput, ...request.Option) *ec2.CreatePlacementGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreatePlacementGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePlacementGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePublicIpv4Pool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreatePublicIpv4Pool(_a0 *ec2.CreatePublicIpv4PoolInput) (*ec2.CreatePublicIpv4PoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreatePublicIpv4PoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) (*ec2.CreatePublicIpv4PoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) *ec2.CreatePublicIpv4PoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreatePublicIpv4PoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreatePublicIpv4PoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePublicIpv4PoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreatePublicIpv4PoolRequest(_a0 *ec2.CreatePublicIpv4PoolInput) (*request.Request, *ec2.CreatePublicIpv4PoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreatePublicIpv4PoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) (*request.Request, *ec2.CreatePublicIpv4PoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreatePublicIpv4PoolInput) *ec2.CreatePublicIpv4PoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreatePublicIpv4PoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePublicIpv4PoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreatePublicIpv4PoolWithContext(_a0 context.Context, _a1 *ec2.CreatePublicIpv4PoolInput, _a2 ...request.Option) (*ec2.CreatePublicIpv4PoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreatePublicIpv4PoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...request.Option) (*ec2.CreatePublicIpv4PoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...request.Option) *ec2.CreatePublicIpv4PoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreatePublicIpv4PoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReplaceRootVolumeTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateReplaceRootVolumeTask(_a0 *ec2.CreateReplaceRootVolumeTaskInput) (*ec2.CreateReplaceRootVolumeTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateReplaceRootVolumeTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) (*ec2.CreateReplaceRootVolumeTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) *ec2.CreateReplaceRootVolumeTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateReplaceRootVolumeTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateReplaceRootVolumeTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReplaceRootVolumeTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateReplaceRootVolumeTaskRequest(_a0 *ec2.CreateReplaceRootVolumeTaskInput) (*request.Request, *ec2.CreateReplaceRootVolumeTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateReplaceRootVolumeTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) (*request.Request, *ec2.CreateReplaceRootVolumeTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateReplaceRootVolumeTaskInput) *ec2.CreateReplaceRootVolumeTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateReplaceRootVolumeTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateReplaceRootVolumeTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateReplaceRootVolumeTaskWithContext(_a0 context.Context, _a1 *ec2.CreateReplaceRootVolumeTaskInput, _a2 ...request.Option) (*ec2.CreateReplaceRootVolumeTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateReplaceRootVolumeTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...request.Option) (*ec2.CreateReplaceRootVolumeTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...request.Option) *ec2.CreateReplaceRootVolumeTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateReplaceRootVolumeTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReservedInstancesListing provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateReservedInstancesListing(_a0 *ec2.CreateReservedInstancesListingInput) (*ec2.CreateReservedInstancesListingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateReservedInstancesListingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) (*ec2.CreateReservedInstancesListingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) *ec2.CreateReservedInstancesListingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateReservedInstancesListingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateReservedInstancesListingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReservedInstancesListingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateReservedInstancesListingRequest(_a0 *ec2.CreateReservedInstancesListingInput) (*request.Request, *ec2.CreateReservedInstancesListingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateReservedInstancesListingOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) (*request.Request, *ec2.CreateReservedInstancesListingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateReservedInstancesListingInput) *ec2.CreateReservedInstancesListingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateReservedInstancesListingOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateReservedInstancesListingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateReservedInstancesListingWithContext(_a0 context.Context, _a1 *ec2.CreateReservedInstancesListingInput, _a2 ...request.Option) (*ec2.CreateReservedInstancesListingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateReservedInstancesListingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) (*ec2.CreateReservedInstancesListingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) *ec2.CreateReservedInstancesListingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateReservedInstancesListingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRestoreImageTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRestoreImageTask(_a0 *ec2.CreateRestoreImageTaskInput) (*ec2.CreateRestoreImageTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateRestoreImageTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) (*ec2.CreateRestoreImageTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) *ec2.CreateRestoreImageTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRestoreImageTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRestoreImageTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRestoreImageTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRestoreImageTaskRequest(_a0 *ec2.CreateRestoreImageTaskInput) (*request.Request, *ec2.CreateRestoreImageTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateRestoreImageTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) (*request.Request, *ec2.CreateRestoreImageTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRestoreImageTaskInput) *ec2.CreateRestoreImageTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateRestoreImageTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRestoreImageTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateRestoreImageTaskWithContext(_a0 context.Context, _a1 *ec2.CreateRestoreImageTaskInput, _a2 ...request.Option) (*ec2.CreateRestoreImageTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateRestoreImageTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) (*ec2.CreateRestoreImageTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) *ec2.CreateRestoreImageTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRestoreImageTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRoute(_a0 *ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) *ec2.CreateRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRouteRequest(_a0 *ec2.CreateRouteInput) (*request.Request, *ec2.CreateRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) (*request.Request, *ec2.CreateRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRouteInput) *ec2.CreateRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRouteTable(_a0 *ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) *ec2.CreateRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateRouteTableRequest(_a0 *ec2.CreateRouteTableInput) (*request.Request, *ec2.CreateRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) (*request.Request, *ec2.CreateRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateRouteTableInput) *ec2.CreateRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateRouteTableWithContext(_a0 context.Context, _a1 *ec2.CreateRouteTableInput, _a2 ...request.Option) (*ec2.CreateRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteTableInput, ...request.Option) (*ec2.CreateRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteTableInput, ...request.Option) *ec2.CreateRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateRouteWithContext(_a0 context.Context, _a1 *ec2.CreateRouteInput, _a2 ...request.Option) (*ec2.CreateRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteInput, ...request.Option) (*ec2.CreateRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteInput, ...request.Option) *ec2.CreateRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSecurityGroup(_a0 *ec2.CreateSecurityGroupInput) (*ec2.CreateSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) (*ec2.CreateSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) *ec2.CreateSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSecurityGroupRequest(_a0 *ec2.CreateSecurityGroupInput) (*request.Request, *ec2.CreateSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) (*request.Request, *ec2.CreateSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSecurityGroupInput) *ec2.CreateSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSecurityGroupWithContext(_a0 context.Context, _a1 *ec2.CreateSecurityGroupInput, _a2 ...request.Option) (*ec2.CreateSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSecurityGroupInput, ...request.Option) (*ec2.CreateSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSecurityGroupInput, ...request.Option) *ec2.CreateSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSnapshot(_a0 *ec2.CreateSnapshotInput) (*ec2.Snapshot, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.Snapshot
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) (*ec2.Snapshot, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) *ec2.Snapshot); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Snapshot)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSnapshotRequest(_a0 *ec2.CreateSnapshotInput) (*request.Request, *ec2.Snapshot) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.Snapshot
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) (*request.Request, *ec2.Snapshot)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotInput) *ec2.Snapshot); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.Snapshot)
- }
- }
-
- return r0, r1
-}
-
-// CreateSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSnapshotWithContext(_a0 context.Context, _a1 *ec2.CreateSnapshotInput, _a2 ...request.Option) (*ec2.Snapshot, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.Snapshot
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotInput, ...request.Option) (*ec2.Snapshot, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotInput, ...request.Option) *ec2.Snapshot); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Snapshot)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshots provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSnapshots(_a0 *ec2.CreateSnapshotsInput) (*ec2.CreateSnapshotsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) (*ec2.CreateSnapshotsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) *ec2.CreateSnapshotsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshotsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSnapshotsRequest(_a0 *ec2.CreateSnapshotsInput) (*request.Request, *ec2.CreateSnapshotsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateSnapshotsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) (*request.Request, *ec2.CreateSnapshotsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotsInput) *ec2.CreateSnapshotsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateSnapshotsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSnapshotsWithContext(_a0 context.Context, _a1 *ec2.CreateSnapshotsInput, _a2 ...request.Option) (*ec2.CreateSnapshotsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotsInput, ...request.Option) (*ec2.CreateSnapshotsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotsInput, ...request.Option) *ec2.CreateSnapshotsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSpotDatafeedSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSpotDatafeedSubscription(_a0 *ec2.CreateSpotDatafeedSubscriptionInput) (*ec2.CreateSpotDatafeedSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) (*ec2.CreateSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *ec2.CreateSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSpotDatafeedSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSpotDatafeedSubscriptionRequest(_a0 *ec2.CreateSpotDatafeedSubscriptionInput) (*request.Request, *ec2.CreateSpotDatafeedSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateSpotDatafeedSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) (*request.Request, *ec2.CreateSpotDatafeedSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *ec2.CreateSpotDatafeedSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateSpotDatafeedSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.CreateSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.CreateSpotDatafeedSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) (*ec2.CreateSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) *ec2.CreateSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStoreImageTask provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateStoreImageTask(_a0 *ec2.CreateStoreImageTaskInput) (*ec2.CreateStoreImageTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateStoreImageTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) (*ec2.CreateStoreImageTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) *ec2.CreateStoreImageTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateStoreImageTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateStoreImageTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateStoreImageTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateStoreImageTaskRequest(_a0 *ec2.CreateStoreImageTaskInput) (*request.Request, *ec2.CreateStoreImageTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateStoreImageTaskOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) (*request.Request, *ec2.CreateStoreImageTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateStoreImageTaskInput) *ec2.CreateStoreImageTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateStoreImageTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateStoreImageTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateStoreImageTaskWithContext(_a0 context.Context, _a1 *ec2.CreateStoreImageTaskInput, _a2 ...request.Option) (*ec2.CreateStoreImageTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateStoreImageTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) (*ec2.CreateStoreImageTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) *ec2.CreateStoreImageTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateStoreImageTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSubnet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSubnet(_a0 *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) *ec2.CreateSubnetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSubnetCidrReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSubnetCidrReservation(_a0 *ec2.CreateSubnetCidrReservationInput) (*ec2.CreateSubnetCidrReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateSubnetCidrReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) (*ec2.CreateSubnetCidrReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) *ec2.CreateSubnetCidrReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSubnetCidrReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetCidrReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSubnetCidrReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSubnetCidrReservationRequest(_a0 *ec2.CreateSubnetCidrReservationInput) (*request.Request, *ec2.CreateSubnetCidrReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateSubnetCidrReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) (*request.Request, *ec2.CreateSubnetCidrReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetCidrReservationInput) *ec2.CreateSubnetCidrReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateSubnetCidrReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSubnetCidrReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSubnetCidrReservationWithContext(_a0 context.Context, _a1 *ec2.CreateSubnetCidrReservationInput, _a2 ...request.Option) (*ec2.CreateSubnetCidrReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateSubnetCidrReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...request.Option) (*ec2.CreateSubnetCidrReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...request.Option) *ec2.CreateSubnetCidrReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSubnetCidrReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSubnetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateSubnetRequest(_a0 *ec2.CreateSubnetInput) (*request.Request, *ec2.CreateSubnetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateSubnetOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) (*request.Request, *ec2.CreateSubnetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetInput) *ec2.CreateSubnetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateSubnetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateSubnetWithContext(_a0 context.Context, _a1 *ec2.CreateSubnetInput, _a2 ...request.Option) (*ec2.CreateSubnetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetInput, ...request.Option) (*ec2.CreateSubnetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetInput, ...request.Option) *ec2.CreateSubnetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTags provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTags(_a0 *ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) *ec2.CreateTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTagsRequest(_a0 *ec2.CreateTagsInput) (*request.Request, *ec2.CreateTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTagsOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) (*request.Request, *ec2.CreateTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTagsInput) *ec2.CreateTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTagsWithContext(_a0 context.Context, _a1 *ec2.CreateTagsInput, _a2 ...request.Option) (*ec2.CreateTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTagsInput, ...request.Option) (*ec2.CreateTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTagsInput, ...request.Option) *ec2.CreateTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilter provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorFilter(_a0 *ec2.CreateTrafficMirrorFilterInput) (*ec2.CreateTrafficMirrorFilterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTrafficMirrorFilterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) (*ec2.CreateTrafficMirrorFilterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) *ec2.CreateTrafficMirrorFilterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorFilterRequest(_a0 *ec2.CreateTrafficMirrorFilterInput) (*request.Request, *ec2.CreateTrafficMirrorFilterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTrafficMirrorFilterOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) (*request.Request, *ec2.CreateTrafficMirrorFilterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterInput) *ec2.CreateTrafficMirrorFilterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTrafficMirrorFilterOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilterRule provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorFilterRule(_a0 *ec2.CreateTrafficMirrorFilterRuleInput) (*ec2.CreateTrafficMirrorFilterRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) (*ec2.CreateTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *ec2.CreateTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorFilterRuleRequest(_a0 *ec2.CreateTrafficMirrorFilterRuleInput) (*request.Request, *ec2.CreateTrafficMirrorFilterRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTrafficMirrorFilterRuleOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) (*request.Request, *ec2.CreateTrafficMirrorFilterRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *ec2.CreateTrafficMirrorFilterRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTrafficMirrorFilterRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorFilterRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...request.Option) (*ec2.CreateTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...request.Option) *ec2.CreateTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorFilterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTrafficMirrorFilterWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorFilterInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorFilterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTrafficMirrorFilterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...request.Option) (*ec2.CreateTrafficMirrorFilterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...request.Option) *ec2.CreateTrafficMirrorFilterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorSession provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorSession(_a0 *ec2.CreateTrafficMirrorSessionInput) (*ec2.CreateTrafficMirrorSessionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) (*ec2.CreateTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) *ec2.CreateTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorSessionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorSessionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorSessionRequest(_a0 *ec2.CreateTrafficMirrorSessionInput) (*request.Request, *ec2.CreateTrafficMirrorSessionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTrafficMirrorSessionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) (*request.Request, *ec2.CreateTrafficMirrorSessionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorSessionInput) *ec2.CreateTrafficMirrorSessionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTrafficMirrorSessionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorSessionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...request.Option) (*ec2.CreateTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...request.Option) *ec2.CreateTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorTarget provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorTarget(_a0 *ec2.CreateTrafficMirrorTargetInput) (*ec2.CreateTrafficMirrorTargetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTrafficMirrorTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) (*ec2.CreateTrafficMirrorTargetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) *ec2.CreateTrafficMirrorTargetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorTargetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorTargetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTrafficMirrorTargetRequest(_a0 *ec2.CreateTrafficMirrorTargetInput) (*request.Request, *ec2.CreateTrafficMirrorTargetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTrafficMirrorTargetOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) (*request.Request, *ec2.CreateTrafficMirrorTargetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorTargetInput) *ec2.CreateTrafficMirrorTargetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTrafficMirrorTargetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficMirrorTargetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTrafficMirrorTargetWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorTargetInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorTargetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTrafficMirrorTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...request.Option) (*ec2.CreateTrafficMirrorTargetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...request.Option) *ec2.CreateTrafficMirrorTargetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTrafficMirrorTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGateway(_a0 *ec2.CreateTransitGatewayInput) (*ec2.CreateTransitGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) (*ec2.CreateTransitGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) *ec2.CreateTransitGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnect provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayConnect(_a0 *ec2.CreateTransitGatewayConnectInput) (*ec2.CreateTransitGatewayConnectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayConnectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) (*ec2.CreateTransitGatewayConnectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) *ec2.CreateTransitGatewayConnectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnectPeer provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayConnectPeer(_a0 *ec2.CreateTransitGatewayConnectPeerInput) (*ec2.CreateTransitGatewayConnectPeerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayConnectPeerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) (*ec2.CreateTransitGatewayConnectPeerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) *ec2.CreateTransitGatewayConnectPeerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectPeerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectPeerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnectPeerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayConnectPeerRequest(_a0 *ec2.CreateTransitGatewayConnectPeerInput) (*request.Request, *ec2.CreateTransitGatewayConnectPeerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayConnectPeerOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) (*request.Request, *ec2.CreateTransitGatewayConnectPeerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectPeerInput) *ec2.CreateTransitGatewayConnectPeerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayConnectPeerOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnectPeerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayConnectPeerWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayConnectPeerInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayConnectPeerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayConnectPeerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...request.Option) (*ec2.CreateTransitGatewayConnectPeerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...request.Option) *ec2.CreateTransitGatewayConnectPeerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectPeerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayConnectRequest(_a0 *ec2.CreateTransitGatewayConnectInput) (*request.Request, *ec2.CreateTransitGatewayConnectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayConnectOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) (*request.Request, *ec2.CreateTransitGatewayConnectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectInput) *ec2.CreateTransitGatewayConnectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayConnectOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayConnectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayConnectWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayConnectInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayConnectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayConnectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...request.Option) (*ec2.CreateTransitGatewayConnectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...request.Option) *ec2.CreateTransitGatewayConnectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayMulticastDomain provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayMulticastDomain(_a0 *ec2.CreateTransitGatewayMulticastDomainInput) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) (*ec2.CreateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *ec2.CreateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayMulticastDomainInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayMulticastDomainRequest(_a0 *ec2.CreateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.CreateTransitGatewayMulticastDomainOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayMulticastDomainOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.CreateTransitGatewayMulticastDomainOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *ec2.CreateTransitGatewayMulticastDomainOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayMulticastDomainOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...request.Option) (*ec2.CreateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.CreateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPeeringAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPeeringAttachment(_a0 *ec2.CreateTransitGatewayPeeringAttachmentInput) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPeeringAttachmentRequest(_a0 *ec2.CreateTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayPeeringAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayPeeringAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayPeeringAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...request.Option) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPolicyTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPolicyTable(_a0 *ec2.CreateTransitGatewayPolicyTableInput) (*ec2.CreateTransitGatewayPolicyTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPolicyTableInput) (*ec2.CreateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPolicyTableInput) *ec2.CreateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPolicyTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPolicyTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPolicyTableRequest(_a0 *ec2.CreateTransitGatewayPolicyTableInput) (*request.Request, *ec2.CreateTransitGatewayPolicyTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayPolicyTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPolicyTableInput) (*request.Request, *ec2.CreateTransitGatewayPolicyTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPolicyTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPolicyTableInput) *ec2.CreateTransitGatewayPolicyTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayPolicyTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPolicyTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayPolicyTableWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayPolicyTableInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayPolicyTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPolicyTableInput, ...request.Option) (*ec2.CreateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPolicyTableInput, ...request.Option) *ec2.CreateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPolicyTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPrefixListReference provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPrefixListReference(_a0 *ec2.CreateTransitGatewayPrefixListReferenceInput) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayPrefixListReferenceRequest(_a0 *ec2.CreateTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.CreateTransitGatewayPrefixListReferenceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayPrefixListReferenceOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.CreateTransitGatewayPrefixListReferenceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...request.Option) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRequest(_a0 *ec2.CreateTransitGatewayInput) (*request.Request, *ec2.CreateTransitGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) (*request.Request, *ec2.CreateTransitGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayInput) *ec2.CreateTransitGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRoute(_a0 *ec2.CreateTransitGatewayRouteInput) (*ec2.CreateTransitGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) (*ec2.CreateTransitGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) *ec2.CreateTransitGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRouteRequest(_a0 *ec2.CreateTransitGatewayRouteInput) (*request.Request, *ec2.CreateTransitGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) (*request.Request, *ec2.CreateTransitGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteInput) *ec2.CreateTransitGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTable(_a0 *ec2.CreateTransitGatewayRouteTableInput) (*ec2.CreateTransitGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) (*ec2.CreateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) *ec2.CreateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTableAnnouncement provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTableAnnouncement(_a0 *ec2.CreateTransitGatewayRouteTableAnnouncementInput) (*ec2.CreateTransitGatewayRouteTableAnnouncementOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayRouteTableAnnouncementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) (*ec2.CreateTransitGatewayRouteTableAnnouncementOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) *ec2.CreateTransitGatewayRouteTableAnnouncementOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTableAnnouncementRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTableAnnouncementRequest(_a0 *ec2.CreateTransitGatewayRouteTableAnnouncementInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableAnnouncementOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayRouteTableAnnouncementOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableAnnouncementOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableAnnouncementInput) *ec2.CreateTransitGatewayRouteTableAnnouncementOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTableAnnouncementWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTableAnnouncementWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayRouteTableAnnouncementInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayRouteTableAnnouncementOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayRouteTableAnnouncementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableAnnouncementInput, ...request.Option) (*ec2.CreateTransitGatewayRouteTableAnnouncementOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableAnnouncementInput, ...request.Option) *ec2.CreateTransitGatewayRouteTableAnnouncementOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteTableAnnouncementInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTableRequest(_a0 *ec2.CreateTransitGatewayRouteTableInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableInput) *ec2.CreateTransitGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) (*ec2.CreateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) *ec2.CreateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) (*ec2.CreateTransitGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) *ec2.CreateTransitGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayVpcAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayVpcAttachment(_a0 *ec2.CreateTransitGatewayVpcAttachmentInput) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateTransitGatewayVpcAttachmentRequest(_a0 *ec2.CreateTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayVpcAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateTransitGatewayVpcAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayVpcAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateTransitGatewayVpcAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayInput, ...request.Option) (*ec2.CreateTransitGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayInput, ...request.Option) *ec2.CreateTransitGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVolume(_a0 *ec2.CreateVolumeInput) (*ec2.Volume, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.Volume
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) (*ec2.Volume, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) *ec2.Volume); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Volume)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVolumeRequest(_a0 *ec2.CreateVolumeInput) (*request.Request, *ec2.Volume) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.Volume
- if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) (*request.Request, *ec2.Volume)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVolumeInput) *ec2.Volume); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.Volume)
- }
- }
-
- return r0, r1
-}
-
-// CreateVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVolumeWithContext(_a0 context.Context, _a1 *ec2.CreateVolumeInput, _a2 ...request.Option) (*ec2.Volume, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.Volume
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVolumeInput, ...request.Option) (*ec2.Volume, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVolumeInput, ...request.Option) *ec2.Volume); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Volume)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpc(_a0 *ec2.CreateVpcInput) (*ec2.CreateVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) (*ec2.CreateVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) *ec2.CreateVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpoint(_a0 *ec2.CreateVpcEndpointInput) (*ec2.CreateVpcEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpcEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) (*ec2.CreateVpcEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) *ec2.CreateVpcEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointConnectionNotification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpointConnectionNotification(_a0 *ec2.CreateVpcEndpointConnectionNotificationInput) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpcEndpointConnectionNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointConnectionNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointConnectionNotificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpointConnectionNotificationRequest(_a0 *ec2.CreateVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.CreateVpcEndpointConnectionNotificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpcEndpointConnectionNotificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.CreateVpcEndpointConnectionNotificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpcEndpointConnectionNotificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointConnectionNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpcEndpointConnectionNotificationWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointConnectionNotificationInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpcEndpointConnectionNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...request.Option) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...request.Option) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointConnectionNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpointRequest(_a0 *ec2.CreateVpcEndpointInput) (*request.Request, *ec2.CreateVpcEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpcEndpointOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) (*request.Request, *ec2.CreateVpcEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointInput) *ec2.CreateVpcEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpcEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointServiceConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpointServiceConfiguration(_a0 *ec2.CreateVpcEndpointServiceConfigurationInput) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpcEndpointServiceConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointServiceConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointServiceConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcEndpointServiceConfigurationRequest(_a0 *ec2.CreateVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.CreateVpcEndpointServiceConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpcEndpointServiceConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.CreateVpcEndpointServiceConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpcEndpointServiceConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointServiceConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpcEndpointServiceConfigurationWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointServiceConfigurationInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpcEndpointServiceConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...request.Option) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...request.Option) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointServiceConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpcEndpointWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpcEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) (*ec2.CreateVpcEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) *ec2.CreateVpcEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcPeeringConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcPeeringConnection(_a0 *ec2.CreateVpcPeeringConnectionInput) (*ec2.CreateVpcPeeringConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) (*ec2.CreateVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) *ec2.CreateVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcPeeringConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcPeeringConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcPeeringConnectionRequest(_a0 *ec2.CreateVpcPeeringConnectionInput) (*request.Request, *ec2.CreateVpcPeeringConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpcPeeringConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) (*request.Request, *ec2.CreateVpcPeeringConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcPeeringConnectionInput) *ec2.CreateVpcPeeringConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpcPeeringConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.CreateVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.CreateVpcPeeringConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...request.Option) (*ec2.CreateVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...request.Option) *ec2.CreateVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpcRequest(_a0 *ec2.CreateVpcInput) (*request.Request, *ec2.CreateVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) (*request.Request, *ec2.CreateVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpcInput) *ec2.CreateVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpcWithContext(_a0 context.Context, _a1 *ec2.CreateVpcInput, _a2 ...request.Option) (*ec2.CreateVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcInput, ...request.Option) (*ec2.CreateVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcInput, ...request.Option) *ec2.CreateVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnConnection(_a0 *ec2.CreateVpnConnectionInput) (*ec2.CreateVpnConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) (*ec2.CreateVpnConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) *ec2.CreateVpnConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnConnectionRequest(_a0 *ec2.CreateVpnConnectionInput) (*request.Request, *ec2.CreateVpnConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpnConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) (*request.Request, *ec2.CreateVpnConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionInput) *ec2.CreateVpnConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpnConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpnConnectionRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnConnectionRoute(_a0 *ec2.CreateVpnConnectionRouteInput) (*ec2.CreateVpnConnectionRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpnConnectionRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) (*ec2.CreateVpnConnectionRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) *ec2.CreateVpnConnectionRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnConnectionRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnConnectionRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnConnectionRouteRequest(_a0 *ec2.CreateVpnConnectionRouteInput) (*request.Request, *ec2.CreateVpnConnectionRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpnConnectionRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) (*request.Request, *ec2.CreateVpnConnectionRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionRouteInput) *ec2.CreateVpnConnectionRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpnConnectionRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpnConnectionRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpnConnectionRouteWithContext(_a0 context.Context, _a1 *ec2.CreateVpnConnectionRouteInput, _a2 ...request.Option) (*ec2.CreateVpnConnectionRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpnConnectionRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...request.Option) (*ec2.CreateVpnConnectionRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...request.Option) *ec2.CreateVpnConnectionRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnConnectionRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.CreateVpnConnectionInput, _a2 ...request.Option) (*ec2.CreateVpnConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionInput, ...request.Option) (*ec2.CreateVpnConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionInput, ...request.Option) *ec2.CreateVpnConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnGateway(_a0 *ec2.CreateVpnGatewayInput) (*ec2.CreateVpnGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.CreateVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) (*ec2.CreateVpnGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) *ec2.CreateVpnGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVpnGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) CreateVpnGatewayRequest(_a0 *ec2.CreateVpnGatewayInput) (*request.Request, *ec2.CreateVpnGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.CreateVpnGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) (*request.Request, *ec2.CreateVpnGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.CreateVpnGatewayInput) *ec2.CreateVpnGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.CreateVpnGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) CreateVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateVpnGatewayInput, _a2 ...request.Option) (*ec2.CreateVpnGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.CreateVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnGatewayInput, ...request.Option) (*ec2.CreateVpnGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnGatewayInput, ...request.Option) *ec2.CreateVpnGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.CreateVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCarrierGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCarrierGateway(_a0 *ec2.DeleteCarrierGatewayInput) (*ec2.DeleteCarrierGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteCarrierGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) (*ec2.DeleteCarrierGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) *ec2.DeleteCarrierGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCarrierGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCarrierGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCarrierGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCarrierGatewayRequest(_a0 *ec2.DeleteCarrierGatewayInput) (*request.Request, *ec2.DeleteCarrierGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteCarrierGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) (*request.Request, *ec2.DeleteCarrierGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCarrierGatewayInput) *ec2.DeleteCarrierGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteCarrierGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCarrierGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteCarrierGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteCarrierGatewayInput, _a2 ...request.Option) (*ec2.DeleteCarrierGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteCarrierGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...request.Option) (*ec2.DeleteCarrierGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...request.Option) *ec2.DeleteCarrierGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCarrierGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteClientVpnEndpoint(_a0 *ec2.DeleteClientVpnEndpointInput) (*ec2.DeleteClientVpnEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) (*ec2.DeleteClientVpnEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) *ec2.DeleteClientVpnEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteClientVpnEndpointRequest(_a0 *ec2.DeleteClientVpnEndpointInput) (*request.Request, *ec2.DeleteClientVpnEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteClientVpnEndpointOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) (*request.Request, *ec2.DeleteClientVpnEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnEndpointInput) *ec2.DeleteClientVpnEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteClientVpnEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.DeleteClientVpnEndpointInput, _a2 ...request.Option) (*ec2.DeleteClientVpnEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...request.Option) (*ec2.DeleteClientVpnEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...request.Option) *ec2.DeleteClientVpnEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteClientVpnRoute(_a0 *ec2.DeleteClientVpnRouteInput) (*ec2.DeleteClientVpnRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteClientVpnRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) (*ec2.DeleteClientVpnRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) *ec2.DeleteClientVpnRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteClientVpnRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteClientVpnRouteRequest(_a0 *ec2.DeleteClientVpnRouteInput) (*request.Request, *ec2.DeleteClientVpnRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteClientVpnRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) (*request.Request, *ec2.DeleteClientVpnRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnRouteInput) *ec2.DeleteClientVpnRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteClientVpnRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteClientVpnRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteClientVpnRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteClientVpnRouteInput, _a2 ...request.Option) (*ec2.DeleteClientVpnRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteClientVpnRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) (*ec2.DeleteClientVpnRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) *ec2.DeleteClientVpnRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteClientVpnRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCoipCidr(_a0 *ec2.DeleteCoipCidrInput) (*ec2.DeleteCoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteCoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipCidrInput) (*ec2.DeleteCoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipCidrInput) *ec2.DeleteCoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCoipCidrRequest(_a0 *ec2.DeleteCoipCidrInput) (*request.Request, *ec2.DeleteCoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteCoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipCidrInput) (*request.Request, *ec2.DeleteCoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCoipCidrInput) *ec2.DeleteCoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteCoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteCoipCidrWithContext(_a0 context.Context, _a1 *ec2.DeleteCoipCidrInput, _a2 ...request.Option) (*ec2.DeleteCoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteCoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCoipCidrInput, ...request.Option) (*ec2.DeleteCoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCoipCidrInput, ...request.Option) *ec2.DeleteCoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCoipPool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCoipPool(_a0 *ec2.DeleteCoipPoolInput) (*ec2.DeleteCoipPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteCoipPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipPoolInput) (*ec2.DeleteCoipPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipPoolInput) *ec2.DeleteCoipPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCoipPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCoipPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCoipPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCoipPoolRequest(_a0 *ec2.DeleteCoipPoolInput) (*request.Request, *ec2.DeleteCoipPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteCoipPoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipPoolInput) (*request.Request, *ec2.DeleteCoipPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCoipPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCoipPoolInput) *ec2.DeleteCoipPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteCoipPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCoipPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteCoipPoolWithContext(_a0 context.Context, _a1 *ec2.DeleteCoipPoolInput, _a2 ...request.Option) (*ec2.DeleteCoipPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteCoipPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCoipPoolInput, ...request.Option) (*ec2.DeleteCoipPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCoipPoolInput, ...request.Option) *ec2.DeleteCoipPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCoipPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCoipPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomerGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCustomerGateway(_a0 *ec2.DeleteCustomerGatewayInput) (*ec2.DeleteCustomerGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteCustomerGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) (*ec2.DeleteCustomerGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) *ec2.DeleteCustomerGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCustomerGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCustomerGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomerGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteCustomerGatewayRequest(_a0 *ec2.DeleteCustomerGatewayInput) (*request.Request, *ec2.DeleteCustomerGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteCustomerGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) (*request.Request, *ec2.DeleteCustomerGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteCustomerGatewayInput) *ec2.DeleteCustomerGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteCustomerGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCustomerGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteCustomerGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteCustomerGatewayInput, _a2 ...request.Option) (*ec2.DeleteCustomerGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteCustomerGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) (*ec2.DeleteCustomerGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) *ec2.DeleteCustomerGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteCustomerGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDhcpOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteDhcpOptions(_a0 *ec2.DeleteDhcpOptionsInput) (*ec2.DeleteDhcpOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) (*ec2.DeleteDhcpOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) *ec2.DeleteDhcpOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteDhcpOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDhcpOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteDhcpOptionsRequest(_a0 *ec2.DeleteDhcpOptionsInput) (*request.Request, *ec2.DeleteDhcpOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteDhcpOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) (*request.Request, *ec2.DeleteDhcpOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteDhcpOptionsInput) *ec2.DeleteDhcpOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteDhcpOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.DeleteDhcpOptionsInput, _a2 ...request.Option) (*ec2.DeleteDhcpOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...request.Option) (*ec2.DeleteDhcpOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...request.Option) *ec2.DeleteDhcpOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEgressOnlyInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteEgressOnlyInternetGateway(_a0 *ec2.DeleteEgressOnlyInternetGatewayInput) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteEgressOnlyInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteEgressOnlyInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEgressOnlyInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteEgressOnlyInternetGatewayRequest(_a0 *ec2.DeleteEgressOnlyInternetGatewayInput) (*request.Request, *ec2.DeleteEgressOnlyInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteEgressOnlyInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) (*request.Request, *ec2.DeleteEgressOnlyInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteEgressOnlyInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteEgressOnlyInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteEgressOnlyInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteEgressOnlyInternetGatewayInput, _a2 ...request.Option) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteEgressOnlyInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...request.Option) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...request.Option) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteEgressOnlyInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFleets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFleets(_a0 *ec2.DeleteFleetsInput) (*ec2.DeleteFleetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) (*ec2.DeleteFleetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) *ec2.DeleteFleetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFleetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFleetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFleetsRequest(_a0 *ec2.DeleteFleetsInput) (*request.Request, *ec2.DeleteFleetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteFleetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) (*request.Request, *ec2.DeleteFleetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFleetsInput) *ec2.DeleteFleetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteFleetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteFleetsWithContext(_a0 context.Context, _a1 *ec2.DeleteFleetsInput, _a2 ...request.Option) (*ec2.DeleteFleetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFleetsInput, ...request.Option) (*ec2.DeleteFleetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFleetsInput, ...request.Option) *ec2.DeleteFleetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFleetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFlowLogs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFlowLogs(_a0 *ec2.DeleteFlowLogsInput) (*ec2.DeleteFlowLogsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) (*ec2.DeleteFlowLogsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) *ec2.DeleteFlowLogsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFlowLogsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFlowLogsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFlowLogsRequest(_a0 *ec2.DeleteFlowLogsInput) (*request.Request, *ec2.DeleteFlowLogsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteFlowLogsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) (*request.Request, *ec2.DeleteFlowLogsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFlowLogsInput) *ec2.DeleteFlowLogsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteFlowLogsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteFlowLogsWithContext(_a0 context.Context, _a1 *ec2.DeleteFlowLogsInput, _a2 ...request.Option) (*ec2.DeleteFlowLogsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFlowLogsInput, ...request.Option) (*ec2.DeleteFlowLogsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFlowLogsInput, ...request.Option) *ec2.DeleteFlowLogsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFlowLogsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFpgaImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFpgaImage(_a0 *ec2.DeleteFpgaImageInput) (*ec2.DeleteFpgaImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) (*ec2.DeleteFpgaImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) *ec2.DeleteFpgaImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFpgaImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFpgaImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteFpgaImageRequest(_a0 *ec2.DeleteFpgaImageInput) (*request.Request, *ec2.DeleteFpgaImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteFpgaImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) (*request.Request, *ec2.DeleteFpgaImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteFpgaImageInput) *ec2.DeleteFpgaImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteFpgaImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteFpgaImageWithContext(_a0 context.Context, _a1 *ec2.DeleteFpgaImageInput, _a2 ...request.Option) (*ec2.DeleteFpgaImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteFpgaImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFpgaImageInput, ...request.Option) (*ec2.DeleteFpgaImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFpgaImageInput, ...request.Option) *ec2.DeleteFpgaImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteFpgaImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFpgaImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInstanceEventWindow provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteInstanceEventWindow(_a0 *ec2.DeleteInstanceEventWindowInput) (*ec2.DeleteInstanceEventWindowOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) (*ec2.DeleteInstanceEventWindowOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) *ec2.DeleteInstanceEventWindowOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteInstanceEventWindowInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInstanceEventWindowRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteInstanceEventWindowRequest(_a0 *ec2.DeleteInstanceEventWindowInput) (*request.Request, *ec2.DeleteInstanceEventWindowOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteInstanceEventWindowOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) (*request.Request, *ec2.DeleteInstanceEventWindowOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteInstanceEventWindowInput) *ec2.DeleteInstanceEventWindowOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteInstanceEventWindowOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.DeleteInstanceEventWindowInput, _a2 ...request.Option) (*ec2.DeleteInstanceEventWindowOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...request.Option) (*ec2.DeleteInstanceEventWindowOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...request.Option) *ec2.DeleteInstanceEventWindowOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteInternetGateway(_a0 *ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) *ec2.DeleteInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteInternetGatewayRequest(_a0 *ec2.DeleteInternetGatewayInput) (*request.Request, *ec2.DeleteInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) (*request.Request, *ec2.DeleteInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteInternetGatewayInput) *ec2.DeleteInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteInternetGatewayInput, _a2 ...request.Option) (*ec2.DeleteInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...request.Option) (*ec2.DeleteInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...request.Option) *ec2.DeleteInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpam provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpam(_a0 *ec2.DeleteIpamInput) (*ec2.DeleteIpamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) (*ec2.DeleteIpamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) *ec2.DeleteIpamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpamPool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpamPool(_a0 *ec2.DeleteIpamPoolInput) (*ec2.DeleteIpamPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) (*ec2.DeleteIpamPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) *ec2.DeleteIpamPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpamPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpamPoolRequest(_a0 *ec2.DeleteIpamPoolInput) (*request.Request, *ec2.DeleteIpamPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteIpamPoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) (*request.Request, *ec2.DeleteIpamPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamPoolInput) *ec2.DeleteIpamPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteIpamPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteIpamPoolWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamPoolInput, _a2 ...request.Option) (*ec2.DeleteIpamPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamPoolInput, ...request.Option) (*ec2.DeleteIpamPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamPoolInput, ...request.Option) *ec2.DeleteIpamPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpamRequest(_a0 *ec2.DeleteIpamInput) (*request.Request, *ec2.DeleteIpamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteIpamOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) (*request.Request, *ec2.DeleteIpamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamInput) *ec2.DeleteIpamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteIpamOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIpamScope provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpamScope(_a0 *ec2.DeleteIpamScopeInput) (*ec2.DeleteIpamScopeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) (*ec2.DeleteIpamScopeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) *ec2.DeleteIpamScopeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamScopeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpamScopeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteIpamScopeRequest(_a0 *ec2.DeleteIpamScopeInput) (*request.Request, *ec2.DeleteIpamScopeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteIpamScopeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) (*request.Request, *ec2.DeleteIpamScopeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamScopeInput) *ec2.DeleteIpamScopeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteIpamScopeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteIpamScopeWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamScopeInput, _a2 ...request.Option) (*ec2.DeleteIpamScopeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamScopeInput, ...request.Option) (*ec2.DeleteIpamScopeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamScopeInput, ...request.Option) *ec2.DeleteIpamScopeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamScopeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteIpamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteIpamWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamInput, _a2 ...request.Option) (*ec2.DeleteIpamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamInput, ...request.Option) (*ec2.DeleteIpamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamInput, ...request.Option) *ec2.DeleteIpamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeyPair provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteKeyPair(_a0 *ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) *ec2.DeleteKeyPairOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteKeyPairInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeyPairRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteKeyPairRequest(_a0 *ec2.DeleteKeyPairInput) (*request.Request, *ec2.DeleteKeyPairOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteKeyPairOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) (*request.Request, *ec2.DeleteKeyPairOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteKeyPairInput) *ec2.DeleteKeyPairOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteKeyPairOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteKeyPairWithContext(_a0 context.Context, _a1 *ec2.DeleteKeyPairInput, _a2 ...request.Option) (*ec2.DeleteKeyPairOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteKeyPairInput, ...request.Option) (*ec2.DeleteKeyPairOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteKeyPairInput, ...request.Option) *ec2.DeleteKeyPairOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteKeyPairInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLaunchTemplate(_a0 *ec2.DeleteLaunchTemplateInput) (*ec2.DeleteLaunchTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) (*ec2.DeleteLaunchTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) *ec2.DeleteLaunchTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLaunchTemplateRequest(_a0 *ec2.DeleteLaunchTemplateInput) (*request.Request, *ec2.DeleteLaunchTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLaunchTemplateOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) (*request.Request, *ec2.DeleteLaunchTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateInput) *ec2.DeleteLaunchTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLaunchTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplateVersions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLaunchTemplateVersions(_a0 *ec2.DeleteLaunchTemplateVersionsInput) (*ec2.DeleteLaunchTemplateVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLaunchTemplateVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) (*ec2.DeleteLaunchTemplateVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) *ec2.DeleteLaunchTemplateVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplateVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLaunchTemplateVersionsRequest(_a0 *ec2.DeleteLaunchTemplateVersionsInput) (*request.Request, *ec2.DeleteLaunchTemplateVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLaunchTemplateVersionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) (*request.Request, *ec2.DeleteLaunchTemplateVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateVersionsInput) *ec2.DeleteLaunchTemplateVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLaunchTemplateVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplateVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLaunchTemplateVersionsWithContext(_a0 context.Context, _a1 *ec2.DeleteLaunchTemplateVersionsInput, _a2 ...request.Option) (*ec2.DeleteLaunchTemplateVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLaunchTemplateVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...request.Option) (*ec2.DeleteLaunchTemplateVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...request.Option) *ec2.DeleteLaunchTemplateVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.DeleteLaunchTemplateInput, _a2 ...request.Option) (*ec2.DeleteLaunchTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...request.Option) (*ec2.DeleteLaunchTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...request.Option) *ec2.DeleteLaunchTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRoute(_a0 *ec2.DeleteLocalGatewayRouteInput) (*ec2.DeleteLocalGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) (*ec2.DeleteLocalGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) *ec2.DeleteLocalGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteRequest(_a0 *ec2.DeleteLocalGatewayRouteInput) (*request.Request, *ec2.DeleteLocalGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLocalGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) (*request.Request, *ec2.DeleteLocalGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteInput) *ec2.DeleteLocalGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTable(_a0 *ec2.DeleteLocalGatewayRouteTableInput) (*ec2.DeleteLocalGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableInput) (*ec2.DeleteLocalGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableInput) *ec2.DeleteLocalGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableRequest(_a0 *ec2.DeleteLocalGatewayRouteTableInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLocalGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableInput) *ec2.DeleteLocalGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_a0 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(_a0 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVpcAssociation(_a0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVpcAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVpcAssociationRequest(_a0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableVpcAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableVpcAssociationWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteTableInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLocalGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableInput, ...request.Option) *ec2.DeleteLocalGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLocalGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteLocalGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) (*ec2.DeleteLocalGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) *ec2.DeleteLocalGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteManagedPrefixList provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteManagedPrefixList(_a0 *ec2.DeleteManagedPrefixListInput) (*ec2.DeleteManagedPrefixListOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) (*ec2.DeleteManagedPrefixListOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) *ec2.DeleteManagedPrefixListOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteManagedPrefixListInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteManagedPrefixListRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteManagedPrefixListRequest(_a0 *ec2.DeleteManagedPrefixListInput) (*request.Request, *ec2.DeleteManagedPrefixListOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteManagedPrefixListOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) (*request.Request, *ec2.DeleteManagedPrefixListOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteManagedPrefixListInput) *ec2.DeleteManagedPrefixListOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteManagedPrefixListOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.DeleteManagedPrefixListInput, _a2 ...request.Option) (*ec2.DeleteManagedPrefixListOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...request.Option) (*ec2.DeleteManagedPrefixListOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...request.Option) *ec2.DeleteManagedPrefixListOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNatGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNatGateway(_a0 *ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNatGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) *ec2.DeleteNatGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNatGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNatGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNatGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNatGatewayRequest(_a0 *ec2.DeleteNatGatewayInput) (*request.Request, *ec2.DeleteNatGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNatGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) (*request.Request, *ec2.DeleteNatGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNatGatewayInput) *ec2.DeleteNatGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNatGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNatGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNatGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteNatGatewayInput, _a2 ...request.Option) (*ec2.DeleteNatGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNatGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNatGatewayInput, ...request.Option) (*ec2.DeleteNatGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNatGatewayInput, ...request.Option) *ec2.DeleteNatGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNatGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNatGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAcl provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkAcl(_a0 *ec2.DeleteNetworkAclInput) (*ec2.DeleteNetworkAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) (*ec2.DeleteNetworkAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) *ec2.DeleteNetworkAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAclEntry provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkAclEntry(_a0 *ec2.DeleteNetworkAclEntryInput) (*ec2.DeleteNetworkAclEntryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) (*ec2.DeleteNetworkAclEntryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) *ec2.DeleteNetworkAclEntryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclEntryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAclEntryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkAclEntryRequest(_a0 *ec2.DeleteNetworkAclEntryInput) (*request.Request, *ec2.DeleteNetworkAclEntryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkAclEntryOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) (*request.Request, *ec2.DeleteNetworkAclEntryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclEntryInput) *ec2.DeleteNetworkAclEntryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkAclEntryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkAclEntryInput, _a2 ...request.Option) (*ec2.DeleteNetworkAclEntryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...request.Option) (*ec2.DeleteNetworkAclEntryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...request.Option) *ec2.DeleteNetworkAclEntryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkAclRequest(_a0 *ec2.DeleteNetworkAclInput) (*request.Request, *ec2.DeleteNetworkAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkAclOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) (*request.Request, *ec2.DeleteNetworkAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclInput) *ec2.DeleteNetworkAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkAclWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkAclInput, _a2 ...request.Option) (*ec2.DeleteNetworkAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclInput, ...request.Option) (*ec2.DeleteNetworkAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclInput, ...request.Option) *ec2.DeleteNetworkAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScope provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScope(_a0 *ec2.DeleteNetworkInsightsAccessScopeInput) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInsightsAccessScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScopeAnalysis(_a0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScopeAnalysisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScopeAnalysisRequest(_a0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScopeAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScopeAnalysisWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...request.Option) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScopeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScopeRequest(_a0 *ec2.DeleteNetworkInsightsAccessScopeInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInsightsAccessScopeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAccessScopeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAccessScopeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInsightsAccessScopeWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAccessScopeInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInsightsAccessScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...request.Option) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAnalysis provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAnalysis(_a0 *ec2.DeleteNetworkInsightsAnalysisInput) (*ec2.DeleteNetworkInsightsAnalysisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInsightsAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) (*ec2.DeleteNetworkInsightsAnalysisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *ec2.DeleteNetworkInsightsAnalysisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAnalysisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAnalysisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsAnalysisRequest(_a0 *ec2.DeleteNetworkInsightsAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAnalysisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInsightsAnalysisOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAnalysisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *ec2.DeleteNetworkInsightsAnalysisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAnalysisOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInsightsAnalysisWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAnalysisInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAnalysisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInsightsAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...request.Option) (*ec2.DeleteNetworkInsightsAnalysisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...request.Option) *ec2.DeleteNetworkInsightsAnalysisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsPath provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsPath(_a0 *ec2.DeleteNetworkInsightsPathInput) (*ec2.DeleteNetworkInsightsPathOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInsightsPathOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) (*ec2.DeleteNetworkInsightsPathOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) *ec2.DeleteNetworkInsightsPathOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsPathOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsPathInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsPathRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInsightsPathRequest(_a0 *ec2.DeleteNetworkInsightsPathInput) (*request.Request, *ec2.DeleteNetworkInsightsPathOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInsightsPathOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) (*request.Request, *ec2.DeleteNetworkInsightsPathOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsPathInput) *ec2.DeleteNetworkInsightsPathOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsPathOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInsightsPathWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInsightsPathWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsPathInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsPathOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInsightsPathOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...request.Option) (*ec2.DeleteNetworkInsightsPathOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...request.Option) *ec2.DeleteNetworkInsightsPathOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsPathOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInterface(_a0 *ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) *ec2.DeleteNetworkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterfacePermission provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInterfacePermission(_a0 *ec2.DeleteNetworkInterfacePermissionInput) (*ec2.DeleteNetworkInterfacePermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteNetworkInterfacePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) (*ec2.DeleteNetworkInterfacePermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) *ec2.DeleteNetworkInterfacePermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInterfacePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfacePermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterfacePermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInterfacePermissionRequest(_a0 *ec2.DeleteNetworkInterfacePermissionInput) (*request.Request, *ec2.DeleteNetworkInterfacePermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInterfacePermissionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) (*request.Request, *ec2.DeleteNetworkInterfacePermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfacePermissionInput) *ec2.DeleteNetworkInterfacePermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInterfacePermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterfacePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInterfacePermissionWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInterfacePermissionInput, _a2 ...request.Option) (*ec2.DeleteNetworkInterfacePermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInterfacePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...request.Option) (*ec2.DeleteNetworkInterfacePermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...request.Option) *ec2.DeleteNetworkInterfacePermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInterfacePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteNetworkInterfaceRequest(_a0 *ec2.DeleteNetworkInterfaceInput) (*request.Request, *ec2.DeleteNetworkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteNetworkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) (*request.Request, *ec2.DeleteNetworkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfaceInput) *ec2.DeleteNetworkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteNetworkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInterfaceInput, _a2 ...request.Option) (*ec2.DeleteNetworkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...request.Option) (*ec2.DeleteNetworkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...request.Option) *ec2.DeleteNetworkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePlacementGroup provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeletePlacementGroup(_a0 *ec2.DeletePlacementGroupInput) (*ec2.DeletePlacementGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeletePlacementGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) (*ec2.DeletePlacementGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) *ec2.DeletePlacementGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeletePlacementGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeletePlacementGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePlacementGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeletePlacementGroupRequest(_a0 *ec2.DeletePlacementGroupInput) (*request.Request, *ec2.DeletePlacementGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeletePlacementGroupOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) (*request.Request, *ec2.DeletePlacementGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeletePlacementGroupInput) *ec2.DeletePlacementGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeletePlacementGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePlacementGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeletePlacementGroupWithContext(_a0 context.Context, _a1 *ec2.DeletePlacementGroupInput, _a2 ...request.Option) (*ec2.DeletePlacementGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeletePlacementGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePlacementGroupInput, ...request.Option) (*ec2.DeletePlacementGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePlacementGroupInput, ...request.Option) *ec2.DeletePlacementGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeletePlacementGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePlacementGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicIpv4Pool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeletePublicIpv4Pool(_a0 *ec2.DeletePublicIpv4PoolInput) (*ec2.DeletePublicIpv4PoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeletePublicIpv4PoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) (*ec2.DeletePublicIpv4PoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) *ec2.DeletePublicIpv4PoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeletePublicIpv4PoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeletePublicIpv4PoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicIpv4PoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeletePublicIpv4PoolRequest(_a0 *ec2.DeletePublicIpv4PoolInput) (*request.Request, *ec2.DeletePublicIpv4PoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeletePublicIpv4PoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) (*request.Request, *ec2.DeletePublicIpv4PoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeletePublicIpv4PoolInput) *ec2.DeletePublicIpv4PoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeletePublicIpv4PoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePublicIpv4PoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeletePublicIpv4PoolWithContext(_a0 context.Context, _a1 *ec2.DeletePublicIpv4PoolInput, _a2 ...request.Option) (*ec2.DeletePublicIpv4PoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeletePublicIpv4PoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...request.Option) (*ec2.DeletePublicIpv4PoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...request.Option) *ec2.DeletePublicIpv4PoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeletePublicIpv4PoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueuedReservedInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteQueuedReservedInstances(_a0 *ec2.DeleteQueuedReservedInstancesInput) (*ec2.DeleteQueuedReservedInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteQueuedReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) (*ec2.DeleteQueuedReservedInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) *ec2.DeleteQueuedReservedInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteQueuedReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteQueuedReservedInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueuedReservedInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteQueuedReservedInstancesRequest(_a0 *ec2.DeleteQueuedReservedInstancesInput) (*request.Request, *ec2.DeleteQueuedReservedInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteQueuedReservedInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) (*request.Request, *ec2.DeleteQueuedReservedInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteQueuedReservedInstancesInput) *ec2.DeleteQueuedReservedInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteQueuedReservedInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteQueuedReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteQueuedReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.DeleteQueuedReservedInstancesInput, _a2 ...request.Option) (*ec2.DeleteQueuedReservedInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteQueuedReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...request.Option) (*ec2.DeleteQueuedReservedInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...request.Option) *ec2.DeleteQueuedReservedInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteQueuedReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteRoute(_a0 *ec2.DeleteRouteInput) (*ec2.DeleteRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) (*ec2.DeleteRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) *ec2.DeleteRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteRouteRequest(_a0 *ec2.DeleteRouteInput) (*request.Request, *ec2.DeleteRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) (*request.Request, *ec2.DeleteRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteInput) *ec2.DeleteRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteRouteTable(_a0 *ec2.DeleteRouteTableInput) (*ec2.DeleteRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) (*ec2.DeleteRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) *ec2.DeleteRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteRouteTableRequest(_a0 *ec2.DeleteRouteTableInput) (*request.Request, *ec2.DeleteRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) (*request.Request, *ec2.DeleteRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteTableInput) *ec2.DeleteRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteRouteTableWithContext(_a0 context.Context, _a1 *ec2.DeleteRouteTableInput, _a2 ...request.Option) (*ec2.DeleteRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteTableInput, ...request.Option) (*ec2.DeleteRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteTableInput, ...request.Option) *ec2.DeleteRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteRouteInput, _a2 ...request.Option) (*ec2.DeleteRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteInput, ...request.Option) (*ec2.DeleteRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteInput, ...request.Option) *ec2.DeleteRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSecurityGroup(_a0 *ec2.DeleteSecurityGroupInput) (*ec2.DeleteSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) (*ec2.DeleteSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) *ec2.DeleteSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSecurityGroupRequest(_a0 *ec2.DeleteSecurityGroupInput) (*request.Request, *ec2.DeleteSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) (*request.Request, *ec2.DeleteSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSecurityGroupInput) *ec2.DeleteSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteSecurityGroupWithContext(_a0 context.Context, _a1 *ec2.DeleteSecurityGroupInput, _a2 ...request.Option) (*ec2.DeleteSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...request.Option) (*ec2.DeleteSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...request.Option) *ec2.DeleteSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSnapshot(_a0 *ec2.DeleteSnapshotInput) (*ec2.DeleteSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) (*ec2.DeleteSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) *ec2.DeleteSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSnapshotRequest(_a0 *ec2.DeleteSnapshotInput) (*request.Request, *ec2.DeleteSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteSnapshotOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) (*request.Request, *ec2.DeleteSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSnapshotInput) *ec2.DeleteSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteSnapshotWithContext(_a0 context.Context, _a1 *ec2.DeleteSnapshotInput, _a2 ...request.Option) (*ec2.DeleteSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSnapshotInput, ...request.Option) (*ec2.DeleteSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSnapshotInput, ...request.Option) *ec2.DeleteSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSpotDatafeedSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSpotDatafeedSubscription(_a0 *ec2.DeleteSpotDatafeedSubscriptionInput) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSpotDatafeedSubscriptionRequest(_a0 *ec2.DeleteSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DeleteSpotDatafeedSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteSpotDatafeedSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DeleteSpotDatafeedSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteSpotDatafeedSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.DeleteSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...request.Option) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...request.Option) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSubnet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSubnet(_a0 *ec2.DeleteSubnetInput) (*ec2.DeleteSubnetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) (*ec2.DeleteSubnetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) *ec2.DeleteSubnetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSubnetCidrReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSubnetCidrReservation(_a0 *ec2.DeleteSubnetCidrReservationInput) (*ec2.DeleteSubnetCidrReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteSubnetCidrReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) (*ec2.DeleteSubnetCidrReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) *ec2.DeleteSubnetCidrReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSubnetCidrReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetCidrReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSubnetCidrReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSubnetCidrReservationRequest(_a0 *ec2.DeleteSubnetCidrReservationInput) (*request.Request, *ec2.DeleteSubnetCidrReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteSubnetCidrReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) (*request.Request, *ec2.DeleteSubnetCidrReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetCidrReservationInput) *ec2.DeleteSubnetCidrReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteSubnetCidrReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSubnetCidrReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteSubnetCidrReservationWithContext(_a0 context.Context, _a1 *ec2.DeleteSubnetCidrReservationInput, _a2 ...request.Option) (*ec2.DeleteSubnetCidrReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteSubnetCidrReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...request.Option) (*ec2.DeleteSubnetCidrReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...request.Option) *ec2.DeleteSubnetCidrReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSubnetCidrReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSubnetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteSubnetRequest(_a0 *ec2.DeleteSubnetInput) (*request.Request, *ec2.DeleteSubnetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteSubnetOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) (*request.Request, *ec2.DeleteSubnetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetInput) *ec2.DeleteSubnetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteSubnetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteSubnetWithContext(_a0 context.Context, _a1 *ec2.DeleteSubnetInput, _a2 ...request.Option) (*ec2.DeleteSubnetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteSubnetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetInput, ...request.Option) (*ec2.DeleteSubnetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetInput, ...request.Option) *ec2.DeleteSubnetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteSubnetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTags provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTags(_a0 *ec2.DeleteTagsInput) (*ec2.DeleteTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) (*ec2.DeleteTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) *ec2.DeleteTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTagsRequest(_a0 *ec2.DeleteTagsInput) (*request.Request, *ec2.DeleteTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTagsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) (*request.Request, *ec2.DeleteTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTagsInput) *ec2.DeleteTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTagsWithContext(_a0 context.Context, _a1 *ec2.DeleteTagsInput, _a2 ...request.Option) (*ec2.DeleteTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTagsInput, ...request.Option) (*ec2.DeleteTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTagsInput, ...request.Option) *ec2.DeleteTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilter provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilter(_a0 *ec2.DeleteTrafficMirrorFilterInput) (*ec2.DeleteTrafficMirrorFilterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTrafficMirrorFilterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) (*ec2.DeleteTrafficMirrorFilterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) *ec2.DeleteTrafficMirrorFilterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilterRequest(_a0 *ec2.DeleteTrafficMirrorFilterInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTrafficMirrorFilterOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterInput) *ec2.DeleteTrafficMirrorFilterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorFilterOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilterRule provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilterRule(_a0 *ec2.DeleteTrafficMirrorFilterRuleInput) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilterRuleRequest(_a0 *ec2.DeleteTrafficMirrorFilterRuleInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTrafficMirrorFilterRuleOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorFilterRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...request.Option) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...request.Option) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorFilterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTrafficMirrorFilterWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorFilterInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorFilterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTrafficMirrorFilterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...request.Option) (*ec2.DeleteTrafficMirrorFilterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...request.Option) *ec2.DeleteTrafficMirrorFilterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorSession provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorSession(_a0 *ec2.DeleteTrafficMirrorSessionInput) (*ec2.DeleteTrafficMirrorSessionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) (*ec2.DeleteTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) *ec2.DeleteTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorSessionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorSessionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorSessionRequest(_a0 *ec2.DeleteTrafficMirrorSessionInput) (*request.Request, *ec2.DeleteTrafficMirrorSessionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTrafficMirrorSessionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) (*request.Request, *ec2.DeleteTrafficMirrorSessionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorSessionInput) *ec2.DeleteTrafficMirrorSessionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorSessionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorSessionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...request.Option) (*ec2.DeleteTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...request.Option) *ec2.DeleteTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorTarget provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorTarget(_a0 *ec2.DeleteTrafficMirrorTargetInput) (*ec2.DeleteTrafficMirrorTargetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTrafficMirrorTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) (*ec2.DeleteTrafficMirrorTargetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) *ec2.DeleteTrafficMirrorTargetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorTargetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorTargetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTrafficMirrorTargetRequest(_a0 *ec2.DeleteTrafficMirrorTargetInput) (*request.Request, *ec2.DeleteTrafficMirrorTargetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTrafficMirrorTargetOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) (*request.Request, *ec2.DeleteTrafficMirrorTargetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorTargetInput) *ec2.DeleteTrafficMirrorTargetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorTargetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficMirrorTargetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTrafficMirrorTargetWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorTargetInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorTargetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTrafficMirrorTargetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...request.Option) (*ec2.DeleteTrafficMirrorTargetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...request.Option) *ec2.DeleteTrafficMirrorTargetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorTargetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGateway(_a0 *ec2.DeleteTransitGatewayInput) (*ec2.DeleteTransitGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) (*ec2.DeleteTransitGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) *ec2.DeleteTransitGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnect provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayConnect(_a0 *ec2.DeleteTransitGatewayConnectInput) (*ec2.DeleteTransitGatewayConnectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayConnectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) (*ec2.DeleteTransitGatewayConnectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) *ec2.DeleteTransitGatewayConnectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnectPeer provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayConnectPeer(_a0 *ec2.DeleteTransitGatewayConnectPeerInput) (*ec2.DeleteTransitGatewayConnectPeerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayConnectPeerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) (*ec2.DeleteTransitGatewayConnectPeerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *ec2.DeleteTransitGatewayConnectPeerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectPeerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectPeerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnectPeerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayConnectPeerRequest(_a0 *ec2.DeleteTransitGatewayConnectPeerInput) (*request.Request, *ec2.DeleteTransitGatewayConnectPeerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayConnectPeerOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) (*request.Request, *ec2.DeleteTransitGatewayConnectPeerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *ec2.DeleteTransitGatewayConnectPeerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayConnectPeerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnectPeerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayConnectPeerWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayConnectPeerInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayConnectPeerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayConnectPeerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...request.Option) (*ec2.DeleteTransitGatewayConnectPeerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...request.Option) *ec2.DeleteTransitGatewayConnectPeerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectPeerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayConnectRequest(_a0 *ec2.DeleteTransitGatewayConnectInput) (*request.Request, *ec2.DeleteTransitGatewayConnectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayConnectOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) (*request.Request, *ec2.DeleteTransitGatewayConnectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectInput) *ec2.DeleteTransitGatewayConnectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayConnectOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayConnectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayConnectWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayConnectInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayConnectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayConnectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...request.Option) (*ec2.DeleteTransitGatewayConnectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...request.Option) *ec2.DeleteTransitGatewayConnectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayMulticastDomain provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayMulticastDomain(_a0 *ec2.DeleteTransitGatewayMulticastDomainInput) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayMulticastDomainRequest(_a0 *ec2.DeleteTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DeleteTransitGatewayMulticastDomainOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayMulticastDomainOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DeleteTransitGatewayMulticastDomainOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayMulticastDomainOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...request.Option) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...request.Option) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPeeringAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPeeringAttachment(_a0 *ec2.DeleteTransitGatewayPeeringAttachmentInput) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPeeringAttachmentRequest(_a0 *ec2.DeleteTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayPeeringAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayPeeringAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayPeeringAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...request.Option) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPolicyTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPolicyTable(_a0 *ec2.DeleteTransitGatewayPolicyTableInput) (*ec2.DeleteTransitGatewayPolicyTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPolicyTableInput) (*ec2.DeleteTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPolicyTableInput) *ec2.DeleteTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPolicyTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPolicyTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPolicyTableRequest(_a0 *ec2.DeleteTransitGatewayPolicyTableInput) (*request.Request, *ec2.DeleteTransitGatewayPolicyTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayPolicyTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPolicyTableInput) (*request.Request, *ec2.DeleteTransitGatewayPolicyTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPolicyTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPolicyTableInput) *ec2.DeleteTransitGatewayPolicyTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayPolicyTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPolicyTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayPolicyTableWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayPolicyTableInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayPolicyTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPolicyTableInput, ...request.Option) (*ec2.DeleteTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPolicyTableInput, ...request.Option) *ec2.DeleteTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPolicyTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPrefixListReference provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPrefixListReference(_a0 *ec2.DeleteTransitGatewayPrefixListReferenceInput) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayPrefixListReferenceRequest(_a0 *ec2.DeleteTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.DeleteTransitGatewayPrefixListReferenceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayPrefixListReferenceOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.DeleteTransitGatewayPrefixListReferenceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...request.Option) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRequest(_a0 *ec2.DeleteTransitGatewayInput) (*request.Request, *ec2.DeleteTransitGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) (*request.Request, *ec2.DeleteTransitGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayInput) *ec2.DeleteTransitGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRoute(_a0 *ec2.DeleteTransitGatewayRouteInput) (*ec2.DeleteTransitGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) (*ec2.DeleteTransitGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) *ec2.DeleteTransitGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteRequest(_a0 *ec2.DeleteTransitGatewayRouteInput) (*request.Request, *ec2.DeleteTransitGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) (*request.Request, *ec2.DeleteTransitGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteInput) *ec2.DeleteTransitGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTable(_a0 *ec2.DeleteTransitGatewayRouteTableInput) (*ec2.DeleteTransitGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) (*ec2.DeleteTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) *ec2.DeleteTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTableAnnouncement provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTableAnnouncement(_a0 *ec2.DeleteTransitGatewayRouteTableAnnouncementInput) (*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) (*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTableAnnouncementRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTableAnnouncementRequest(_a0 *ec2.DeleteTransitGatewayRouteTableAnnouncementInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableAnnouncementInput) *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTableAnnouncementWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTableAnnouncementWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayRouteTableAnnouncementInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableAnnouncementInput, ...request.Option) (*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableAnnouncementInput, ...request.Option) *ec2.DeleteTransitGatewayRouteTableAnnouncementOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableAnnouncementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableAnnouncementInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTableRequest(_a0 *ec2.DeleteTransitGatewayRouteTableInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableInput) *ec2.DeleteTransitGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) (*ec2.DeleteTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) *ec2.DeleteTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) (*ec2.DeleteTransitGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) *ec2.DeleteTransitGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayVpcAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayVpcAttachment(_a0 *ec2.DeleteTransitGatewayVpcAttachmentInput) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteTransitGatewayVpcAttachmentRequest(_a0 *ec2.DeleteTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayVpcAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteTransitGatewayVpcAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayVpcAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteTransitGatewayVpcAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) (*ec2.DeleteTransitGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) *ec2.DeleteTransitGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVolume(_a0 *ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) *ec2.DeleteVolumeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVolumeRequest(_a0 *ec2.DeleteVolumeInput) (*request.Request, *ec2.DeleteVolumeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVolumeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) (*request.Request, *ec2.DeleteVolumeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVolumeInput) *ec2.DeleteVolumeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVolumeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVolumeWithContext(_a0 context.Context, _a1 *ec2.DeleteVolumeInput, _a2 ...request.Option) (*ec2.DeleteVolumeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVolumeInput, ...request.Option) (*ec2.DeleteVolumeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVolumeInput, ...request.Option) *ec2.DeleteVolumeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpc(_a0 *ec2.DeleteVpcInput) (*ec2.DeleteVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) (*ec2.DeleteVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) *ec2.DeleteVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointConnectionNotifications provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpointConnectionNotifications(_a0 *ec2.DeleteVpcEndpointConnectionNotificationsInput) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpcEndpointConnectionNotificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointConnectionNotificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpointConnectionNotificationsRequest(_a0 *ec2.DeleteVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DeleteVpcEndpointConnectionNotificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpcEndpointConnectionNotificationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DeleteVpcEndpointConnectionNotificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointConnectionNotificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpcEndpointConnectionNotificationsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointConnectionNotificationsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpcEndpointConnectionNotificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...request.Option) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...request.Option) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointServiceConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpointServiceConfigurations(_a0 *ec2.DeleteVpcEndpointServiceConfigurationsInput) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpcEndpointServiceConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointServiceConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpointServiceConfigurationsRequest(_a0 *ec2.DeleteVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DeleteVpcEndpointServiceConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpcEndpointServiceConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DeleteVpcEndpointServiceConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointServiceConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpcEndpointServiceConfigurationsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointServiceConfigurationsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpcEndpointServiceConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...request.Option) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...request.Option) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpoints(_a0 *ec2.DeleteVpcEndpointsInput) (*ec2.DeleteVpcEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpcEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) (*ec2.DeleteVpcEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) *ec2.DeleteVpcEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcEndpointsRequest(_a0 *ec2.DeleteVpcEndpointsInput) (*request.Request, *ec2.DeleteVpcEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpcEndpointsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) (*request.Request, *ec2.DeleteVpcEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointsInput) *ec2.DeleteVpcEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpcEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpcEndpointsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpcEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...request.Option) (*ec2.DeleteVpcEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...request.Option) *ec2.DeleteVpcEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcPeeringConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcPeeringConnection(_a0 *ec2.DeleteVpcPeeringConnectionInput) (*ec2.DeleteVpcPeeringConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) (*ec2.DeleteVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) *ec2.DeleteVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcPeeringConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcPeeringConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcPeeringConnectionRequest(_a0 *ec2.DeleteVpcPeeringConnectionInput) (*request.Request, *ec2.DeleteVpcPeeringConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpcPeeringConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) (*request.Request, *ec2.DeleteVpcPeeringConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcPeeringConnectionInput) *ec2.DeleteVpcPeeringConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpcPeeringConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.DeleteVpcPeeringConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...request.Option) (*ec2.DeleteVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...request.Option) *ec2.DeleteVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpcRequest(_a0 *ec2.DeleteVpcInput) (*request.Request, *ec2.DeleteVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) (*request.Request, *ec2.DeleteVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcInput) *ec2.DeleteVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpcWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcInput, _a2 ...request.Option) (*ec2.DeleteVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcInput, ...request.Option) (*ec2.DeleteVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcInput, ...request.Option) *ec2.DeleteVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnConnection(_a0 *ec2.DeleteVpnConnectionInput) (*ec2.DeleteVpnConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) (*ec2.DeleteVpnConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) *ec2.DeleteVpnConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnConnectionRequest(_a0 *ec2.DeleteVpnConnectionInput) (*request.Request, *ec2.DeleteVpnConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpnConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) (*request.Request, *ec2.DeleteVpnConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionInput) *ec2.DeleteVpnConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpnConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnectionRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnConnectionRoute(_a0 *ec2.DeleteVpnConnectionRouteInput) (*ec2.DeleteVpnConnectionRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpnConnectionRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) (*ec2.DeleteVpnConnectionRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) *ec2.DeleteVpnConnectionRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnConnectionRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnectionRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnConnectionRouteRequest(_a0 *ec2.DeleteVpnConnectionRouteInput) (*request.Request, *ec2.DeleteVpnConnectionRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpnConnectionRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) (*request.Request, *ec2.DeleteVpnConnectionRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionRouteInput) *ec2.DeleteVpnConnectionRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpnConnectionRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnectionRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpnConnectionRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnConnectionRouteInput, _a2 ...request.Option) (*ec2.DeleteVpnConnectionRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpnConnectionRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...request.Option) (*ec2.DeleteVpnConnectionRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...request.Option) *ec2.DeleteVpnConnectionRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnConnectionRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnConnectionInput, _a2 ...request.Option) (*ec2.DeleteVpnConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...request.Option) (*ec2.DeleteVpnConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...request.Option) *ec2.DeleteVpnConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnGateway(_a0 *ec2.DeleteVpnGatewayInput) (*ec2.DeleteVpnGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeleteVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) (*ec2.DeleteVpnGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) *ec2.DeleteVpnGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVpnGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeleteVpnGatewayRequest(_a0 *ec2.DeleteVpnGatewayInput) (*request.Request, *ec2.DeleteVpnGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeleteVpnGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) (*request.Request, *ec2.DeleteVpnGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnGatewayInput) *ec2.DeleteVpnGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeleteVpnGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeleteVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnGatewayInput, _a2 ...request.Option) (*ec2.DeleteVpnGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeleteVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) (*ec2.DeleteVpnGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) *ec2.DeleteVpnGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeleteVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionByoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionByoipCidr(_a0 *ec2.DeprovisionByoipCidrInput) (*ec2.DeprovisionByoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeprovisionByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) (*ec2.DeprovisionByoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) *ec2.DeprovisionByoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionByoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionByoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionByoipCidrRequest(_a0 *ec2.DeprovisionByoipCidrInput) (*request.Request, *ec2.DeprovisionByoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeprovisionByoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) (*request.Request, *ec2.DeprovisionByoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionByoipCidrInput) *ec2.DeprovisionByoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeprovisionByoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeprovisionByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeprovisionByoipCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionByoipCidrInput, _a2 ...request.Option) (*ec2.DeprovisionByoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeprovisionByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) (*ec2.DeprovisionByoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) *ec2.DeprovisionByoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionIpamPoolCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionIpamPoolCidr(_a0 *ec2.DeprovisionIpamPoolCidrInput) (*ec2.DeprovisionIpamPoolCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeprovisionIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) (*ec2.DeprovisionIpamPoolCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) *ec2.DeprovisionIpamPoolCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionIpamPoolCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionIpamPoolCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionIpamPoolCidrRequest(_a0 *ec2.DeprovisionIpamPoolCidrInput) (*request.Request, *ec2.DeprovisionIpamPoolCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeprovisionIpamPoolCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) (*request.Request, *ec2.DeprovisionIpamPoolCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionIpamPoolCidrInput) *ec2.DeprovisionIpamPoolCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeprovisionIpamPoolCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeprovisionIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeprovisionIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionIpamPoolCidrInput, _a2 ...request.Option) (*ec2.DeprovisionIpamPoolCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeprovisionIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...request.Option) (*ec2.DeprovisionIpamPoolCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...request.Option) *ec2.DeprovisionIpamPoolCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionPublicIpv4PoolCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionPublicIpv4PoolCidr(_a0 *ec2.DeprovisionPublicIpv4PoolCidrInput) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeprovisionPublicIpv4PoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionPublicIpv4PoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeprovisionPublicIpv4PoolCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeprovisionPublicIpv4PoolCidrRequest(_a0 *ec2.DeprovisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.DeprovisionPublicIpv4PoolCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeprovisionPublicIpv4PoolCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.DeprovisionPublicIpv4PoolCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeprovisionPublicIpv4PoolCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeprovisionPublicIpv4PoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeprovisionPublicIpv4PoolCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionPublicIpv4PoolCidrInput, _a2 ...request.Option) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeprovisionPublicIpv4PoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...request.Option) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...request.Option) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeprovisionPublicIpv4PoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterImage(_a0 *ec2.DeregisterImageInput) (*ec2.DeregisterImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeregisterImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) (*ec2.DeregisterImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) *ec2.DeregisterImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterImageRequest(_a0 *ec2.DeregisterImageInput) (*request.Request, *ec2.DeregisterImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeregisterImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) (*request.Request, *ec2.DeregisterImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterImageInput) *ec2.DeregisterImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeregisterImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeregisterImageWithContext(_a0 context.Context, _a1 *ec2.DeregisterImageInput, _a2 ...request.Option) (*ec2.DeregisterImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeregisterImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterImageInput, ...request.Option) (*ec2.DeregisterImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterImageInput, ...request.Option) *ec2.DeregisterImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterInstanceEventNotificationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterInstanceEventNotificationAttributes(_a0 *ec2.DeregisterInstanceEventNotificationAttributesInput) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeregisterInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterInstanceEventNotificationAttributesRequest(_a0 *ec2.DeregisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DeregisterInstanceEventNotificationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeregisterInstanceEventNotificationAttributesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DeregisterInstanceEventNotificationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeregisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeregisterInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.DeregisterInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeregisterInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...request.Option) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...request.Option) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupMembers(_a0 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupMembersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupMembersRequest(_a0 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupMembersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupMembersWithContext(_a0 context.Context, _a1 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, _a2 ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...request.Option) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupSources provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupSources(_a0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupSourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupSourcesRequest(_a0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterTransitGatewayMulticastGroupSourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DeregisterTransitGatewayMulticastGroupSourcesWithContext(_a0 context.Context, _a1 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, _a2 ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAccountAttributes(_a0 *ec2.DescribeAccountAttributesInput) (*ec2.DescribeAccountAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeAccountAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) (*ec2.DescribeAccountAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) *ec2.DescribeAccountAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAccountAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAccountAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAccountAttributesRequest(_a0 *ec2.DescribeAccountAttributesInput) (*request.Request, *ec2.DescribeAccountAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeAccountAttributesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) (*request.Request, *ec2.DescribeAccountAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAccountAttributesInput) *ec2.DescribeAccountAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeAccountAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeAccountAttributesWithContext(_a0 context.Context, _a1 *ec2.DescribeAccountAttributesInput, _a2 ...request.Option) (*ec2.DescribeAccountAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeAccountAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...request.Option) (*ec2.DescribeAccountAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...request.Option) *ec2.DescribeAccountAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAccountAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAddresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAddresses(_a0 *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) *ec2.DescribeAddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAddressesAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAddressesAttribute(_a0 *ec2.DescribeAddressesAttributeInput) (*ec2.DescribeAddressesAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeAddressesAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) (*ec2.DescribeAddressesAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) *ec2.DescribeAddressesAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAddressesAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAddressesAttributePages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeAddressesAttributePages(_a0 *ec2.DescribeAddressesAttributeInput, _a1 func(*ec2.DescribeAddressesAttributeOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput, func(*ec2.DescribeAddressesAttributeOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAddressesAttributePagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeAddressesAttributePagesWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesAttributeInput, _a2 func(*ec2.DescribeAddressesAttributeOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, func(*ec2.DescribeAddressesAttributeOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeAddressesAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAddressesAttributeRequest(_a0 *ec2.DescribeAddressesAttributeInput) (*request.Request, *ec2.DescribeAddressesAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeAddressesAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) (*request.Request, *ec2.DescribeAddressesAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesAttributeInput) *ec2.DescribeAddressesAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeAddressesAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAddressesAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeAddressesAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesAttributeInput, _a2 ...request.Option) (*ec2.DescribeAddressesAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeAddressesAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...request.Option) (*ec2.DescribeAddressesAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...request.Option) *ec2.DescribeAddressesAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAddressesAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAddressesRequest(_a0 *ec2.DescribeAddressesInput) (*request.Request, *ec2.DescribeAddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeAddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) (*request.Request, *ec2.DescribeAddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesInput) *ec2.DescribeAddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeAddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeAddressesWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesInput, _a2 ...request.Option) (*ec2.DescribeAddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesInput, ...request.Option) (*ec2.DescribeAddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesInput, ...request.Option) *ec2.DescribeAddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAggregateIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAggregateIdFormat(_a0 *ec2.DescribeAggregateIdFormatInput) (*ec2.DescribeAggregateIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeAggregateIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) (*ec2.DescribeAggregateIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) *ec2.DescribeAggregateIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAggregateIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAggregateIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAggregateIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAggregateIdFormatRequest(_a0 *ec2.DescribeAggregateIdFormatInput) (*request.Request, *ec2.DescribeAggregateIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeAggregateIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) (*request.Request, *ec2.DescribeAggregateIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAggregateIdFormatInput) *ec2.DescribeAggregateIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeAggregateIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAggregateIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeAggregateIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeAggregateIdFormatInput, _a2 ...request.Option) (*ec2.DescribeAggregateIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeAggregateIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...request.Option) (*ec2.DescribeAggregateIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...request.Option) *ec2.DescribeAggregateIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAggregateIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAvailabilityZones provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAvailabilityZones(_a0 *ec2.DescribeAvailabilityZonesInput) (*ec2.DescribeAvailabilityZonesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeAvailabilityZonesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) (*ec2.DescribeAvailabilityZonesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) *ec2.DescribeAvailabilityZonesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAvailabilityZonesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAvailabilityZonesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAvailabilityZonesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeAvailabilityZonesRequest(_a0 *ec2.DescribeAvailabilityZonesInput) (*request.Request, *ec2.DescribeAvailabilityZonesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeAvailabilityZonesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) (*request.Request, *ec2.DescribeAvailabilityZonesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeAvailabilityZonesInput) *ec2.DescribeAvailabilityZonesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeAvailabilityZonesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAvailabilityZonesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeAvailabilityZonesWithContext(_a0 context.Context, _a1 *ec2.DescribeAvailabilityZonesInput, _a2 ...request.Option) (*ec2.DescribeAvailabilityZonesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeAvailabilityZonesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...request.Option) (*ec2.DescribeAvailabilityZonesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...request.Option) *ec2.DescribeAvailabilityZonesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeAvailabilityZonesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeBundleTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeBundleTasks(_a0 *ec2.DescribeBundleTasksInput) (*ec2.DescribeBundleTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeBundleTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) (*ec2.DescribeBundleTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) *ec2.DescribeBundleTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeBundleTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeBundleTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeBundleTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeBundleTasksRequest(_a0 *ec2.DescribeBundleTasksInput) (*request.Request, *ec2.DescribeBundleTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeBundleTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) (*request.Request, *ec2.DescribeBundleTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeBundleTasksInput) *ec2.DescribeBundleTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeBundleTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeBundleTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeBundleTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeBundleTasksInput, _a2 ...request.Option) (*ec2.DescribeBundleTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeBundleTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.Option) (*ec2.DescribeBundleTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.Option) *ec2.DescribeBundleTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeBundleTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeByoipCidrs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeByoipCidrs(_a0 *ec2.DescribeByoipCidrsInput) (*ec2.DescribeByoipCidrsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeByoipCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) (*ec2.DescribeByoipCidrsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) *ec2.DescribeByoipCidrsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeByoipCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeByoipCidrsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeByoipCidrsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeByoipCidrsPages(_a0 *ec2.DescribeByoipCidrsInput, _a1 func(*ec2.DescribeByoipCidrsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeByoipCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeByoipCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeByoipCidrsInput, _a2 func(*ec2.DescribeByoipCidrsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeByoipCidrsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeByoipCidrsRequest(_a0 *ec2.DescribeByoipCidrsInput) (*request.Request, *ec2.DescribeByoipCidrsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeByoipCidrsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) (*request.Request, *ec2.DescribeByoipCidrsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeByoipCidrsInput) *ec2.DescribeByoipCidrsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeByoipCidrsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeByoipCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeByoipCidrsWithContext(_a0 context.Context, _a1 *ec2.DescribeByoipCidrsInput, _a2 ...request.Option) (*ec2.DescribeByoipCidrsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeByoipCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) (*ec2.DescribeByoipCidrsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) *ec2.DescribeByoipCidrsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeByoipCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservationFleets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCapacityReservationFleets(_a0 *ec2.DescribeCapacityReservationFleetsInput) (*ec2.DescribeCapacityReservationFleetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeCapacityReservationFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) (*ec2.DescribeCapacityReservationFleetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) *ec2.DescribeCapacityReservationFleetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCapacityReservationFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationFleetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservationFleetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeCapacityReservationFleetsPages(_a0 *ec2.DescribeCapacityReservationFleetsInput, _a1 func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput, func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCapacityReservationFleetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeCapacityReservationFleetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationFleetsInput, _a2 func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCapacityReservationFleetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCapacityReservationFleetsRequest(_a0 *ec2.DescribeCapacityReservationFleetsInput) (*request.Request, *ec2.DescribeCapacityReservationFleetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeCapacityReservationFleetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) (*request.Request, *ec2.DescribeCapacityReservationFleetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationFleetsInput) *ec2.DescribeCapacityReservationFleetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeCapacityReservationFleetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservationFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeCapacityReservationFleetsWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationFleetsInput, _a2 ...request.Option) (*ec2.DescribeCapacityReservationFleetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeCapacityReservationFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) (*ec2.DescribeCapacityReservationFleetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) *ec2.DescribeCapacityReservationFleetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCapacityReservationFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCapacityReservations(_a0 *ec2.DescribeCapacityReservationsInput) (*ec2.DescribeCapacityReservationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeCapacityReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) (*ec2.DescribeCapacityReservationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) *ec2.DescribeCapacityReservationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCapacityReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeCapacityReservationsPages(_a0 *ec2.DescribeCapacityReservationsInput, _a1 func(*ec2.DescribeCapacityReservationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput, func(*ec2.DescribeCapacityReservationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCapacityReservationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeCapacityReservationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationsInput, _a2 func(*ec2.DescribeCapacityReservationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, func(*ec2.DescribeCapacityReservationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCapacityReservationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCapacityReservationsRequest(_a0 *ec2.DescribeCapacityReservationsInput) (*request.Request, *ec2.DescribeCapacityReservationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeCapacityReservationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) (*request.Request, *ec2.DescribeCapacityReservationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationsInput) *ec2.DescribeCapacityReservationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeCapacityReservationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCapacityReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeCapacityReservationsWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationsInput, _a2 ...request.Option) (*ec2.DescribeCapacityReservationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeCapacityReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) (*ec2.DescribeCapacityReservationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) *ec2.DescribeCapacityReservationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCapacityReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCarrierGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCarrierGateways(_a0 *ec2.DescribeCarrierGatewaysInput) (*ec2.DescribeCarrierGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeCarrierGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) (*ec2.DescribeCarrierGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) *ec2.DescribeCarrierGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCarrierGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCarrierGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCarrierGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeCarrierGatewaysPages(_a0 *ec2.DescribeCarrierGatewaysInput, _a1 func(*ec2.DescribeCarrierGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput, func(*ec2.DescribeCarrierGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCarrierGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeCarrierGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCarrierGatewaysInput, _a2 func(*ec2.DescribeCarrierGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, func(*ec2.DescribeCarrierGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCarrierGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCarrierGatewaysRequest(_a0 *ec2.DescribeCarrierGatewaysInput) (*request.Request, *ec2.DescribeCarrierGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeCarrierGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) (*request.Request, *ec2.DescribeCarrierGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCarrierGatewaysInput) *ec2.DescribeCarrierGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeCarrierGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCarrierGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeCarrierGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeCarrierGatewaysInput, _a2 ...request.Option) (*ec2.DescribeCarrierGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeCarrierGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...request.Option) (*ec2.DescribeCarrierGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...request.Option) *ec2.DescribeCarrierGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCarrierGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClassicLinkInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClassicLinkInstances(_a0 *ec2.DescribeClassicLinkInstancesInput) (*ec2.DescribeClassicLinkInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClassicLinkInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) (*ec2.DescribeClassicLinkInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) *ec2.DescribeClassicLinkInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClassicLinkInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClassicLinkInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClassicLinkInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClassicLinkInstancesPages(_a0 *ec2.DescribeClassicLinkInstancesInput, _a1 func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput, func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClassicLinkInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClassicLinkInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClassicLinkInstancesInput, _a2 func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClassicLinkInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClassicLinkInstancesRequest(_a0 *ec2.DescribeClassicLinkInstancesInput) (*request.Request, *ec2.DescribeClassicLinkInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClassicLinkInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) (*request.Request, *ec2.DescribeClassicLinkInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClassicLinkInstancesInput) *ec2.DescribeClassicLinkInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClassicLinkInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClassicLinkInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClassicLinkInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeClassicLinkInstancesInput, _a2 ...request.Option) (*ec2.DescribeClassicLinkInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClassicLinkInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) (*ec2.DescribeClassicLinkInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) *ec2.DescribeClassicLinkInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClassicLinkInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnAuthorizationRules provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnAuthorizationRules(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClientVpnAuthorizationRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnAuthorizationRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnAuthorizationRulesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClientVpnAuthorizationRulesPages(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput, _a1 func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput, func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnAuthorizationRulesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClientVpnAuthorizationRulesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnAuthorizationRulesInput, _a2 func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnAuthorizationRulesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnAuthorizationRulesRequest(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput) (*request.Request, *ec2.DescribeClientVpnAuthorizationRulesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClientVpnAuthorizationRulesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) (*request.Request, *ec2.DescribeClientVpnAuthorizationRulesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClientVpnAuthorizationRulesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnAuthorizationRulesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClientVpnAuthorizationRulesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnAuthorizationRulesInput, _a2 ...request.Option) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClientVpnAuthorizationRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...request.Option) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...request.Option) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnAuthorizationRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnConnections(_a0 *ec2.DescribeClientVpnConnectionsInput) (*ec2.DescribeClientVpnConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClientVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) (*ec2.DescribeClientVpnConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) *ec2.DescribeClientVpnConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnConnectionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClientVpnConnectionsPages(_a0 *ec2.DescribeClientVpnConnectionsInput, _a1 func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput, func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClientVpnConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnConnectionsInput, _a2 func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnConnectionsRequest(_a0 *ec2.DescribeClientVpnConnectionsInput) (*request.Request, *ec2.DescribeClientVpnConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClientVpnConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) (*request.Request, *ec2.DescribeClientVpnConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnConnectionsInput) *ec2.DescribeClientVpnConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClientVpnConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClientVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnConnectionsInput, _a2 ...request.Option) (*ec2.DescribeClientVpnConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClientVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...request.Option) (*ec2.DescribeClientVpnConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...request.Option) *ec2.DescribeClientVpnConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnEndpoints(_a0 *ec2.DescribeClientVpnEndpointsInput) (*ec2.DescribeClientVpnEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClientVpnEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) (*ec2.DescribeClientVpnEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) *ec2.DescribeClientVpnEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnEndpointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClientVpnEndpointsPages(_a0 *ec2.DescribeClientVpnEndpointsInput, _a1 func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput, func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClientVpnEndpointsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnEndpointsInput, _a2 func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnEndpointsRequest(_a0 *ec2.DescribeClientVpnEndpointsInput) (*request.Request, *ec2.DescribeClientVpnEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClientVpnEndpointsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) (*request.Request, *ec2.DescribeClientVpnEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnEndpointsInput) *ec2.DescribeClientVpnEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClientVpnEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClientVpnEndpointsWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnEndpointsInput, _a2 ...request.Option) (*ec2.DescribeClientVpnEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClientVpnEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...request.Option) (*ec2.DescribeClientVpnEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...request.Option) *ec2.DescribeClientVpnEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnRoutes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnRoutes(_a0 *ec2.DescribeClientVpnRoutesInput) (*ec2.DescribeClientVpnRoutesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClientVpnRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) (*ec2.DescribeClientVpnRoutesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) *ec2.DescribeClientVpnRoutesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnRoutesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnRoutesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClientVpnRoutesPages(_a0 *ec2.DescribeClientVpnRoutesInput, _a1 func(*ec2.DescribeClientVpnRoutesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput, func(*ec2.DescribeClientVpnRoutesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnRoutesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClientVpnRoutesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnRoutesInput, _a2 func(*ec2.DescribeClientVpnRoutesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, func(*ec2.DescribeClientVpnRoutesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnRoutesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnRoutesRequest(_a0 *ec2.DescribeClientVpnRoutesInput) (*request.Request, *ec2.DescribeClientVpnRoutesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClientVpnRoutesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) (*request.Request, *ec2.DescribeClientVpnRoutesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnRoutesInput) *ec2.DescribeClientVpnRoutesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClientVpnRoutesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClientVpnRoutesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnRoutesInput, _a2 ...request.Option) (*ec2.DescribeClientVpnRoutesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClientVpnRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...request.Option) (*ec2.DescribeClientVpnRoutesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...request.Option) *ec2.DescribeClientVpnRoutesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnTargetNetworks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnTargetNetworks(_a0 *ec2.DescribeClientVpnTargetNetworksInput) (*ec2.DescribeClientVpnTargetNetworksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeClientVpnTargetNetworksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) (*ec2.DescribeClientVpnTargetNetworksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) *ec2.DescribeClientVpnTargetNetworksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnTargetNetworksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnTargetNetworksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnTargetNetworksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeClientVpnTargetNetworksPages(_a0 *ec2.DescribeClientVpnTargetNetworksInput, _a1 func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput, func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnTargetNetworksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeClientVpnTargetNetworksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnTargetNetworksInput, _a2 func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeClientVpnTargetNetworksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeClientVpnTargetNetworksRequest(_a0 *ec2.DescribeClientVpnTargetNetworksInput) (*request.Request, *ec2.DescribeClientVpnTargetNetworksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeClientVpnTargetNetworksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) (*request.Request, *ec2.DescribeClientVpnTargetNetworksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnTargetNetworksInput) *ec2.DescribeClientVpnTargetNetworksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeClientVpnTargetNetworksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeClientVpnTargetNetworksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeClientVpnTargetNetworksWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnTargetNetworksInput, _a2 ...request.Option) (*ec2.DescribeClientVpnTargetNetworksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeClientVpnTargetNetworksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...request.Option) (*ec2.DescribeClientVpnTargetNetworksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...request.Option) *ec2.DescribeClientVpnTargetNetworksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeClientVpnTargetNetworksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCoipPools provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCoipPools(_a0 *ec2.DescribeCoipPoolsInput) (*ec2.DescribeCoipPoolsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeCoipPoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) (*ec2.DescribeCoipPoolsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) *ec2.DescribeCoipPoolsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCoipPoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCoipPoolsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCoipPoolsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeCoipPoolsPages(_a0 *ec2.DescribeCoipPoolsInput, _a1 func(*ec2.DescribeCoipPoolsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput, func(*ec2.DescribeCoipPoolsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCoipPoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeCoipPoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCoipPoolsInput, _a2 func(*ec2.DescribeCoipPoolsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, func(*ec2.DescribeCoipPoolsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCoipPoolsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCoipPoolsRequest(_a0 *ec2.DescribeCoipPoolsInput) (*request.Request, *ec2.DescribeCoipPoolsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeCoipPoolsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) (*request.Request, *ec2.DescribeCoipPoolsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCoipPoolsInput) *ec2.DescribeCoipPoolsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeCoipPoolsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCoipPoolsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeCoipPoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeCoipPoolsInput, _a2 ...request.Option) (*ec2.DescribeCoipPoolsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeCoipPoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...request.Option) (*ec2.DescribeCoipPoolsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...request.Option) *ec2.DescribeCoipPoolsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCoipPoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeConversionTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeConversionTasks(_a0 *ec2.DescribeConversionTasksInput) (*ec2.DescribeConversionTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeConversionTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) (*ec2.DescribeConversionTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) *ec2.DescribeConversionTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeConversionTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeConversionTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeConversionTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeConversionTasksRequest(_a0 *ec2.DescribeConversionTasksInput) (*request.Request, *ec2.DescribeConversionTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeConversionTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) (*request.Request, *ec2.DescribeConversionTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeConversionTasksInput) *ec2.DescribeConversionTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeConversionTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeConversionTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeConversionTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.Option) (*ec2.DescribeConversionTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeConversionTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.Option) (*ec2.DescribeConversionTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.Option) *ec2.DescribeConversionTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeConversionTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCustomerGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCustomerGateways(_a0 *ec2.DescribeCustomerGatewaysInput) (*ec2.DescribeCustomerGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeCustomerGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) (*ec2.DescribeCustomerGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) *ec2.DescribeCustomerGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCustomerGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCustomerGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCustomerGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeCustomerGatewaysRequest(_a0 *ec2.DescribeCustomerGatewaysInput) (*request.Request, *ec2.DescribeCustomerGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeCustomerGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) (*request.Request, *ec2.DescribeCustomerGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeCustomerGatewaysInput) *ec2.DescribeCustomerGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeCustomerGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCustomerGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeCustomerGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeCustomerGatewaysInput, _a2 ...request.Option) (*ec2.DescribeCustomerGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeCustomerGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.Option) (*ec2.DescribeCustomerGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.Option) *ec2.DescribeCustomerGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeCustomerGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDhcpOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeDhcpOptions(_a0 *ec2.DescribeDhcpOptionsInput) (*ec2.DescribeDhcpOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) (*ec2.DescribeDhcpOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) *ec2.DescribeDhcpOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeDhcpOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDhcpOptionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeDhcpOptionsPages(_a0 *ec2.DescribeDhcpOptionsInput, _a1 func(*ec2.DescribeDhcpOptionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDhcpOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeDhcpOptionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeDhcpOptionsInput, _a2 func(*ec2.DescribeDhcpOptionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDhcpOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeDhcpOptionsRequest(_a0 *ec2.DescribeDhcpOptionsInput) (*request.Request, *ec2.DescribeDhcpOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeDhcpOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) (*request.Request, *ec2.DescribeDhcpOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeDhcpOptionsInput) *ec2.DescribeDhcpOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeDhcpOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.DescribeDhcpOptionsInput, _a2 ...request.Option) (*ec2.DescribeDhcpOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeDhcpOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) (*ec2.DescribeDhcpOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) *ec2.DescribeDhcpOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeDhcpOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEgressOnlyInternetGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeEgressOnlyInternetGateways(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeEgressOnlyInternetGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeEgressOnlyInternetGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEgressOnlyInternetGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeEgressOnlyInternetGatewaysPages(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a1 func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput, func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEgressOnlyInternetGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeEgressOnlyInternetGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a2 func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEgressOnlyInternetGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeEgressOnlyInternetGatewaysRequest(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput) (*request.Request, *ec2.DescribeEgressOnlyInternetGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeEgressOnlyInternetGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*request.Request, *ec2.DescribeEgressOnlyInternetGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeEgressOnlyInternetGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEgressOnlyInternetGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeEgressOnlyInternetGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a2 ...request.Option) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeEgressOnlyInternetGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeEgressOnlyInternetGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeElasticGpus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeElasticGpus(_a0 *ec2.DescribeElasticGpusInput) (*ec2.DescribeElasticGpusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeElasticGpusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) (*ec2.DescribeElasticGpusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) *ec2.DescribeElasticGpusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeElasticGpusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeElasticGpusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeElasticGpusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeElasticGpusRequest(_a0 *ec2.DescribeElasticGpusInput) (*request.Request, *ec2.DescribeElasticGpusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeElasticGpusOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) (*request.Request, *ec2.DescribeElasticGpusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeElasticGpusInput) *ec2.DescribeElasticGpusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeElasticGpusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeElasticGpusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeElasticGpusWithContext(_a0 context.Context, _a1 *ec2.DescribeElasticGpusInput, _a2 ...request.Option) (*ec2.DescribeElasticGpusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeElasticGpusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeElasticGpusInput, ...request.Option) (*ec2.DescribeElasticGpusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeElasticGpusInput, ...request.Option) *ec2.DescribeElasticGpusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeElasticGpusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeElasticGpusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportImageTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeExportImageTasks(_a0 *ec2.DescribeExportImageTasksInput) (*ec2.DescribeExportImageTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeExportImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) (*ec2.DescribeExportImageTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) *ec2.DescribeExportImageTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeExportImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeExportImageTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportImageTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeExportImageTasksPages(_a0 *ec2.DescribeExportImageTasksInput, _a1 func(*ec2.DescribeExportImageTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput, func(*ec2.DescribeExportImageTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeExportImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeExportImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeExportImageTasksInput, _a2 func(*ec2.DescribeExportImageTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, func(*ec2.DescribeExportImageTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeExportImageTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeExportImageTasksRequest(_a0 *ec2.DescribeExportImageTasksInput) (*request.Request, *ec2.DescribeExportImageTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeExportImageTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) (*request.Request, *ec2.DescribeExportImageTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeExportImageTasksInput) *ec2.DescribeExportImageTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeExportImageTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeExportImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeExportImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeExportImageTasksInput, _a2 ...request.Option) (*ec2.DescribeExportImageTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeExportImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...request.Option) (*ec2.DescribeExportImageTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...request.Option) *ec2.DescribeExportImageTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeExportImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeExportTasks(_a0 *ec2.DescribeExportTasksInput) (*ec2.DescribeExportTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeExportTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) (*ec2.DescribeExportTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) *ec2.DescribeExportTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeExportTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeExportTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeExportTasksRequest(_a0 *ec2.DescribeExportTasksInput) (*request.Request, *ec2.DescribeExportTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeExportTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) (*request.Request, *ec2.DescribeExportTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeExportTasksInput) *ec2.DescribeExportTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeExportTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeExportTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeExportTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.Option) (*ec2.DescribeExportTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeExportTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.Option) (*ec2.DescribeExportTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.Option) *ec2.DescribeExportTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeExportTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFastLaunchImages provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFastLaunchImages(_a0 *ec2.DescribeFastLaunchImagesInput) (*ec2.DescribeFastLaunchImagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFastLaunchImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) (*ec2.DescribeFastLaunchImagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) *ec2.DescribeFastLaunchImagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFastLaunchImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFastLaunchImagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFastLaunchImagesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeFastLaunchImagesPages(_a0 *ec2.DescribeFastLaunchImagesInput, _a1 func(*ec2.DescribeFastLaunchImagesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput, func(*ec2.DescribeFastLaunchImagesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFastLaunchImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeFastLaunchImagesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastLaunchImagesInput, _a2 func(*ec2.DescribeFastLaunchImagesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, func(*ec2.DescribeFastLaunchImagesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFastLaunchImagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFastLaunchImagesRequest(_a0 *ec2.DescribeFastLaunchImagesInput) (*request.Request, *ec2.DescribeFastLaunchImagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFastLaunchImagesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) (*request.Request, *ec2.DescribeFastLaunchImagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFastLaunchImagesInput) *ec2.DescribeFastLaunchImagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFastLaunchImagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFastLaunchImagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFastLaunchImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastLaunchImagesInput, _a2 ...request.Option) (*ec2.DescribeFastLaunchImagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFastLaunchImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...request.Option) (*ec2.DescribeFastLaunchImagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...request.Option) *ec2.DescribeFastLaunchImagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFastLaunchImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFastSnapshotRestores provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFastSnapshotRestores(_a0 *ec2.DescribeFastSnapshotRestoresInput) (*ec2.DescribeFastSnapshotRestoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) (*ec2.DescribeFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) *ec2.DescribeFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFastSnapshotRestoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFastSnapshotRestoresPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeFastSnapshotRestoresPages(_a0 *ec2.DescribeFastSnapshotRestoresInput, _a1 func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput, func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFastSnapshotRestoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeFastSnapshotRestoresPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastSnapshotRestoresInput, _a2 func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFastSnapshotRestoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFastSnapshotRestoresRequest(_a0 *ec2.DescribeFastSnapshotRestoresInput) (*request.Request, *ec2.DescribeFastSnapshotRestoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFastSnapshotRestoresOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) (*request.Request, *ec2.DescribeFastSnapshotRestoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFastSnapshotRestoresInput) *ec2.DescribeFastSnapshotRestoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFastSnapshotRestoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.DescribeFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.DescribeFastSnapshotRestoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...request.Option) (*ec2.DescribeFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...request.Option) *ec2.DescribeFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleetHistory provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleetHistory(_a0 *ec2.DescribeFleetHistoryInput) (*ec2.DescribeFleetHistoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFleetHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) (*ec2.DescribeFleetHistoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) *ec2.DescribeFleetHistoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetHistoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleetHistoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleetHistoryRequest(_a0 *ec2.DescribeFleetHistoryInput) (*request.Request, *ec2.DescribeFleetHistoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFleetHistoryOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) (*request.Request, *ec2.DescribeFleetHistoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetHistoryInput) *ec2.DescribeFleetHistoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFleetHistoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFleetHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFleetHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetHistoryInput, _a2 ...request.Option) (*ec2.DescribeFleetHistoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFleetHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...request.Option) (*ec2.DescribeFleetHistoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...request.Option) *ec2.DescribeFleetHistoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleetInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleetInstances(_a0 *ec2.DescribeFleetInstancesInput) (*ec2.DescribeFleetInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFleetInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) (*ec2.DescribeFleetInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) *ec2.DescribeFleetInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleetInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleetInstancesRequest(_a0 *ec2.DescribeFleetInstancesInput) (*request.Request, *ec2.DescribeFleetInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFleetInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) (*request.Request, *ec2.DescribeFleetInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetInstancesInput) *ec2.DescribeFleetInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFleetInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFleetInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFleetInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetInstancesInput, _a2 ...request.Option) (*ec2.DescribeFleetInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFleetInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...request.Option) (*ec2.DescribeFleetInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...request.Option) *ec2.DescribeFleetInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleets(_a0 *ec2.DescribeFleetsInput) (*ec2.DescribeFleetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) (*ec2.DescribeFleetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) *ec2.DescribeFleetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFleetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeFleetsPages(_a0 *ec2.DescribeFleetsInput, _a1 func(*ec2.DescribeFleetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput, func(*ec2.DescribeFleetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFleetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeFleetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetsInput, _a2 func(*ec2.DescribeFleetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, func(*ec2.DescribeFleetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFleetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFleetsRequest(_a0 *ec2.DescribeFleetsInput) (*request.Request, *ec2.DescribeFleetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFleetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) (*request.Request, *ec2.DescribeFleetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetsInput) *ec2.DescribeFleetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFleetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFleetsWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetsInput, _a2 ...request.Option) (*ec2.DescribeFleetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFleetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, ...request.Option) (*ec2.DescribeFleetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, ...request.Option) *ec2.DescribeFleetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFleetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFlowLogs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFlowLogs(_a0 *ec2.DescribeFlowLogsInput) (*ec2.DescribeFlowLogsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) (*ec2.DescribeFlowLogsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) *ec2.DescribeFlowLogsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFlowLogsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFlowLogsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeFlowLogsPages(_a0 *ec2.DescribeFlowLogsInput, _a1 func(*ec2.DescribeFlowLogsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput, func(*ec2.DescribeFlowLogsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFlowLogsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeFlowLogsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFlowLogsInput, _a2 func(*ec2.DescribeFlowLogsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, func(*ec2.DescribeFlowLogsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFlowLogsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFlowLogsRequest(_a0 *ec2.DescribeFlowLogsInput) (*request.Request, *ec2.DescribeFlowLogsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFlowLogsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) (*request.Request, *ec2.DescribeFlowLogsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFlowLogsInput) *ec2.DescribeFlowLogsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFlowLogsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFlowLogsWithContext(_a0 context.Context, _a1 *ec2.DescribeFlowLogsInput, _a2 ...request.Option) (*ec2.DescribeFlowLogsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFlowLogsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, ...request.Option) (*ec2.DescribeFlowLogsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, ...request.Option) *ec2.DescribeFlowLogsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFlowLogsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFlowLogsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFpgaImageAttribute(_a0 *ec2.DescribeFpgaImageAttributeInput) (*ec2.DescribeFpgaImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) (*ec2.DescribeFpgaImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) *ec2.DescribeFpgaImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFpgaImageAttributeRequest(_a0 *ec2.DescribeFpgaImageAttributeInput) (*request.Request, *ec2.DescribeFpgaImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFpgaImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) (*request.Request, *ec2.DescribeFpgaImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImageAttributeInput) *ec2.DescribeFpgaImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFpgaImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.DescribeFpgaImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...request.Option) (*ec2.DescribeFpgaImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...request.Option) *ec2.DescribeFpgaImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImages provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFpgaImages(_a0 *ec2.DescribeFpgaImagesInput) (*ec2.DescribeFpgaImagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeFpgaImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) (*ec2.DescribeFpgaImagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) *ec2.DescribeFpgaImagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFpgaImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImagesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeFpgaImagesPages(_a0 *ec2.DescribeFpgaImagesInput, _a1 func(*ec2.DescribeFpgaImagesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput, func(*ec2.DescribeFpgaImagesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFpgaImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeFpgaImagesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImagesInput, _a2 func(*ec2.DescribeFpgaImagesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, func(*ec2.DescribeFpgaImagesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeFpgaImagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeFpgaImagesRequest(_a0 *ec2.DescribeFpgaImagesInput) (*request.Request, *ec2.DescribeFpgaImagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeFpgaImagesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) (*request.Request, *ec2.DescribeFpgaImagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImagesInput) *ec2.DescribeFpgaImagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeFpgaImagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeFpgaImagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeFpgaImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImagesInput, _a2 ...request.Option) (*ec2.DescribeFpgaImagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeFpgaImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...request.Option) (*ec2.DescribeFpgaImagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...request.Option) *ec2.DescribeFpgaImagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeFpgaImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHostReservationOfferings provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHostReservationOfferings(_a0 *ec2.DescribeHostReservationOfferingsInput) (*ec2.DescribeHostReservationOfferingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeHostReservationOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) (*ec2.DescribeHostReservationOfferingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) *ec2.DescribeHostReservationOfferingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostReservationOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationOfferingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHostReservationOfferingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeHostReservationOfferingsPages(_a0 *ec2.DescribeHostReservationOfferingsInput, _a1 func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput, func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostReservationOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeHostReservationOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationOfferingsInput, _a2 func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostReservationOfferingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHostReservationOfferingsRequest(_a0 *ec2.DescribeHostReservationOfferingsInput) (*request.Request, *ec2.DescribeHostReservationOfferingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeHostReservationOfferingsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) (*request.Request, *ec2.DescribeHostReservationOfferingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationOfferingsInput) *ec2.DescribeHostReservationOfferingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeHostReservationOfferingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeHostReservationOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeHostReservationOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationOfferingsInput, _a2 ...request.Option) (*ec2.DescribeHostReservationOfferingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeHostReservationOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...request.Option) (*ec2.DescribeHostReservationOfferingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...request.Option) *ec2.DescribeHostReservationOfferingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostReservationOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHostReservations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHostReservations(_a0 *ec2.DescribeHostReservationsInput) (*ec2.DescribeHostReservationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeHostReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) (*ec2.DescribeHostReservationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) *ec2.DescribeHostReservationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHostReservationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeHostReservationsPages(_a0 *ec2.DescribeHostReservationsInput, _a1 func(*ec2.DescribeHostReservationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput, func(*ec2.DescribeHostReservationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostReservationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeHostReservationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationsInput, _a2 func(*ec2.DescribeHostReservationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, func(*ec2.DescribeHostReservationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostReservationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHostReservationsRequest(_a0 *ec2.DescribeHostReservationsInput) (*request.Request, *ec2.DescribeHostReservationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeHostReservationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) (*request.Request, *ec2.DescribeHostReservationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationsInput) *ec2.DescribeHostReservationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeHostReservationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeHostReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeHostReservationsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationsInput, _a2 ...request.Option) (*ec2.DescribeHostReservationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeHostReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, ...request.Option) (*ec2.DescribeHostReservationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, ...request.Option) *ec2.DescribeHostReservationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHosts provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHosts(_a0 *ec2.DescribeHostsInput) (*ec2.DescribeHostsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) (*ec2.DescribeHostsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) *ec2.DescribeHostsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeHostsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeHostsPages(_a0 *ec2.DescribeHostsInput, _a1 func(*ec2.DescribeHostsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput, func(*ec2.DescribeHostsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeHostsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostsInput, _a2 func(*ec2.DescribeHostsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, func(*ec2.DescribeHostsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeHostsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeHostsRequest(_a0 *ec2.DescribeHostsInput) (*request.Request, *ec2.DescribeHostsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeHostsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) (*request.Request, *ec2.DescribeHostsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeHostsInput) *ec2.DescribeHostsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeHostsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeHostsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeHostsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostsInput, _a2 ...request.Option) (*ec2.DescribeHostsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, ...request.Option) (*ec2.DescribeHostsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, ...request.Option) *ec2.DescribeHostsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIamInstanceProfileAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIamInstanceProfileAssociations(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIamInstanceProfileAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIamInstanceProfileAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIamInstanceProfileAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeIamInstanceProfileAssociationsPages(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput, _a1 func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput, func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIamInstanceProfileAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeIamInstanceProfileAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIamInstanceProfileAssociationsInput, _a2 func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIamInstanceProfileAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIamInstanceProfileAssociationsRequest(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput) (*request.Request, *ec2.DescribeIamInstanceProfileAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIamInstanceProfileAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) (*request.Request, *ec2.DescribeIamInstanceProfileAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIamInstanceProfileAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIamInstanceProfileAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIamInstanceProfileAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeIamInstanceProfileAssociationsInput, _a2 ...request.Option) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIamInstanceProfileAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...request.Option) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...request.Option) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIamInstanceProfileAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIdFormat(_a0 *ec2.DescribeIdFormatInput) (*ec2.DescribeIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) (*ec2.DescribeIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) *ec2.DescribeIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIdFormatRequest(_a0 *ec2.DescribeIdFormatInput) (*request.Request, *ec2.DescribeIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) (*request.Request, *ec2.DescribeIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIdFormatInput) *ec2.DescribeIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeIdFormatInput, _a2 ...request.Option) (*ec2.DescribeIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdFormatInput, ...request.Option) (*ec2.DescribeIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdFormatInput, ...request.Option) *ec2.DescribeIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIdentityIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIdentityIdFormat(_a0 *ec2.DescribeIdentityIdFormatInput) (*ec2.DescribeIdentityIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIdentityIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) (*ec2.DescribeIdentityIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) *ec2.DescribeIdentityIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIdentityIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIdentityIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIdentityIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIdentityIdFormatRequest(_a0 *ec2.DescribeIdentityIdFormatInput) (*request.Request, *ec2.DescribeIdentityIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIdentityIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) (*request.Request, *ec2.DescribeIdentityIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIdentityIdFormatInput) *ec2.DescribeIdentityIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIdentityIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIdentityIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIdentityIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeIdentityIdFormatInput, _a2 ...request.Option) (*ec2.DescribeIdentityIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIdentityIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...request.Option) (*ec2.DescribeIdentityIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...request.Option) *ec2.DescribeIdentityIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIdentityIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImageAttribute(_a0 *ec2.DescribeImageAttributeInput) (*ec2.DescribeImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) (*ec2.DescribeImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) *ec2.DescribeImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImageAttributeRequest(_a0 *ec2.DescribeImageAttributeInput) (*request.Request, *ec2.DescribeImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) (*request.Request, *ec2.DescribeImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImageAttributeInput) *ec2.DescribeImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeImageAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeImageAttributeInput, _a2 ...request.Option) (*ec2.DescribeImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImageAttributeInput, ...request.Option) (*ec2.DescribeImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImageAttributeInput, ...request.Option) *ec2.DescribeImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImages provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImages(_a0 *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) *ec2.DescribeImagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImagesRequest(_a0 *ec2.DescribeImagesInput) (*request.Request, *ec2.DescribeImagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeImagesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) (*request.Request, *ec2.DescribeImagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImagesInput) *ec2.DescribeImagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeImagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.Option) (*ec2.DescribeImagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.Option) (*ec2.DescribeImagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.Option) *ec2.DescribeImagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImportImageTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImportImageTasks(_a0 *ec2.DescribeImportImageTasksInput) (*ec2.DescribeImportImageTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeImportImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) (*ec2.DescribeImportImageTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) *ec2.DescribeImportImageTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImportImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImportImageTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImportImageTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeImportImageTasksPages(_a0 *ec2.DescribeImportImageTasksInput, _a1 func(*ec2.DescribeImportImageTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput, func(*ec2.DescribeImportImageTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImportImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeImportImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImportImageTasksInput, _a2 func(*ec2.DescribeImportImageTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, func(*ec2.DescribeImportImageTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImportImageTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImportImageTasksRequest(_a0 *ec2.DescribeImportImageTasksInput) (*request.Request, *ec2.DescribeImportImageTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeImportImageTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) (*request.Request, *ec2.DescribeImportImageTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImportImageTasksInput) *ec2.DescribeImportImageTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeImportImageTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImportImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeImportImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeImportImageTasksInput, _a2 ...request.Option) (*ec2.DescribeImportImageTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeImportImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...request.Option) (*ec2.DescribeImportImageTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...request.Option) *ec2.DescribeImportImageTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImportImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImportSnapshotTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImportSnapshotTasks(_a0 *ec2.DescribeImportSnapshotTasksInput) (*ec2.DescribeImportSnapshotTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeImportSnapshotTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) (*ec2.DescribeImportSnapshotTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) *ec2.DescribeImportSnapshotTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImportSnapshotTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImportSnapshotTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImportSnapshotTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeImportSnapshotTasksPages(_a0 *ec2.DescribeImportSnapshotTasksInput, _a1 func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput, func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImportSnapshotTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeImportSnapshotTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImportSnapshotTasksInput, _a2 func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImportSnapshotTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeImportSnapshotTasksRequest(_a0 *ec2.DescribeImportSnapshotTasksInput) (*request.Request, *ec2.DescribeImportSnapshotTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeImportSnapshotTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) (*request.Request, *ec2.DescribeImportSnapshotTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeImportSnapshotTasksInput) *ec2.DescribeImportSnapshotTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeImportSnapshotTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImportSnapshotTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeImportSnapshotTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeImportSnapshotTasksInput, _a2 ...request.Option) (*ec2.DescribeImportSnapshotTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeImportSnapshotTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...request.Option) (*ec2.DescribeImportSnapshotTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...request.Option) *ec2.DescribeImportSnapshotTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeImportSnapshotTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceAttribute(_a0 *ec2.DescribeInstanceAttributeInput) (*ec2.DescribeInstanceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) (*ec2.DescribeInstanceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) *ec2.DescribeInstanceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceAttributeRequest(_a0 *ec2.DescribeInstanceAttributeInput) (*request.Request, *ec2.DescribeInstanceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) (*request.Request, *ec2.DescribeInstanceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceAttributeInput) *ec2.DescribeInstanceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceAttributeInput, _a2 ...request.Option) (*ec2.DescribeInstanceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...request.Option) (*ec2.DescribeInstanceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...request.Option) *ec2.DescribeInstanceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceCreditSpecifications provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceCreditSpecifications(_a0 *ec2.DescribeInstanceCreditSpecificationsInput) (*ec2.DescribeInstanceCreditSpecificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceCreditSpecificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) (*ec2.DescribeInstanceCreditSpecificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *ec2.DescribeInstanceCreditSpecificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceCreditSpecificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceCreditSpecificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceCreditSpecificationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstanceCreditSpecificationsPages(_a0 *ec2.DescribeInstanceCreditSpecificationsInput, _a1 func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput, func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceCreditSpecificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstanceCreditSpecificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceCreditSpecificationsInput, _a2 func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceCreditSpecificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceCreditSpecificationsRequest(_a0 *ec2.DescribeInstanceCreditSpecificationsInput) (*request.Request, *ec2.DescribeInstanceCreditSpecificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceCreditSpecificationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) (*request.Request, *ec2.DescribeInstanceCreditSpecificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *ec2.DescribeInstanceCreditSpecificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceCreditSpecificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceCreditSpecificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceCreditSpecificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceCreditSpecificationsInput, _a2 ...request.Option) (*ec2.DescribeInstanceCreditSpecificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceCreditSpecificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...request.Option) (*ec2.DescribeInstanceCreditSpecificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...request.Option) *ec2.DescribeInstanceCreditSpecificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceCreditSpecificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventNotificationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceEventNotificationAttributes(_a0 *ec2.DescribeInstanceEventNotificationAttributesInput) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceEventNotificationAttributesRequest(_a0 *ec2.DescribeInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DescribeInstanceEventNotificationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceEventNotificationAttributesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DescribeInstanceEventNotificationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceEventNotificationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...request.Option) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...request.Option) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventWindows provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceEventWindows(_a0 *ec2.DescribeInstanceEventWindowsInput) (*ec2.DescribeInstanceEventWindowsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceEventWindowsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) (*ec2.DescribeInstanceEventWindowsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) *ec2.DescribeInstanceEventWindowsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceEventWindowsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventWindowsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventWindowsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstanceEventWindowsPages(_a0 *ec2.DescribeInstanceEventWindowsInput, _a1 func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput, func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceEventWindowsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstanceEventWindowsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventWindowsInput, _a2 func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceEventWindowsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceEventWindowsRequest(_a0 *ec2.DescribeInstanceEventWindowsInput) (*request.Request, *ec2.DescribeInstanceEventWindowsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceEventWindowsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) (*request.Request, *ec2.DescribeInstanceEventWindowsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventWindowsInput) *ec2.DescribeInstanceEventWindowsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceEventWindowsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceEventWindowsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceEventWindowsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventWindowsInput, _a2 ...request.Option) (*ec2.DescribeInstanceEventWindowsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceEventWindowsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...request.Option) (*ec2.DescribeInstanceEventWindowsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...request.Option) *ec2.DescribeInstanceEventWindowsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceEventWindowsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceStatus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceStatus(_a0 *ec2.DescribeInstanceStatusInput) (*ec2.DescribeInstanceStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) (*ec2.DescribeInstanceStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) *ec2.DescribeInstanceStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceStatusPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstanceStatusPages(_a0 *ec2.DescribeInstanceStatusInput, _a1 func(*ec2.DescribeInstanceStatusOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput, func(*ec2.DescribeInstanceStatusOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstanceStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 func(*ec2.DescribeInstanceStatusOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, func(*ec2.DescribeInstanceStatusOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceStatusRequest(_a0 *ec2.DescribeInstanceStatusInput) (*request.Request, *ec2.DescribeInstanceStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceStatusOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) (*request.Request, *ec2.DescribeInstanceStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceStatusInput) *ec2.DescribeInstanceStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.Option) (*ec2.DescribeInstanceStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.Option) (*ec2.DescribeInstanceStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.Option) *ec2.DescribeInstanceStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypeOfferings provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceTypeOfferings(_a0 *ec2.DescribeInstanceTypeOfferingsInput) (*ec2.DescribeInstanceTypeOfferingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceTypeOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) (*ec2.DescribeInstanceTypeOfferingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) *ec2.DescribeInstanceTypeOfferingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceTypeOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypeOfferingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypeOfferingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstanceTypeOfferingsPages(_a0 *ec2.DescribeInstanceTypeOfferingsInput, _a1 func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput, func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceTypeOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstanceTypeOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypeOfferingsInput, _a2 func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceTypeOfferingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceTypeOfferingsRequest(_a0 *ec2.DescribeInstanceTypeOfferingsInput) (*request.Request, *ec2.DescribeInstanceTypeOfferingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceTypeOfferingsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) (*request.Request, *ec2.DescribeInstanceTypeOfferingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypeOfferingsInput) *ec2.DescribeInstanceTypeOfferingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceTypeOfferingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypeOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceTypeOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypeOfferingsInput, _a2 ...request.Option) (*ec2.DescribeInstanceTypeOfferingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceTypeOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...request.Option) (*ec2.DescribeInstanceTypeOfferingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...request.Option) *ec2.DescribeInstanceTypeOfferingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceTypeOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceTypes(_a0 *ec2.DescribeInstanceTypesInput) (*ec2.DescribeInstanceTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstanceTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) (*ec2.DescribeInstanceTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) *ec2.DescribeInstanceTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstanceTypesPages(_a0 *ec2.DescribeInstanceTypesInput, _a1 func(*ec2.DescribeInstanceTypesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput, func(*ec2.DescribeInstanceTypesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceTypesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstanceTypesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypesInput, _a2 func(*ec2.DescribeInstanceTypesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, func(*ec2.DescribeInstanceTypesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstanceTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstanceTypesRequest(_a0 *ec2.DescribeInstanceTypesInput) (*request.Request, *ec2.DescribeInstanceTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstanceTypesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) (*request.Request, *ec2.DescribeInstanceTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypesInput) *ec2.DescribeInstanceTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstanceTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstanceTypesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypesInput, _a2 ...request.Option) (*ec2.DescribeInstanceTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstanceTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...request.Option) (*ec2.DescribeInstanceTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...request.Option) *ec2.DescribeInstanceTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstanceTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstances(_a0 *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) *ec2.DescribeInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInstancesPages(_a0 *ec2.DescribeInstancesInput, _a1 func(*ec2.DescribeInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput, func(*ec2.DescribeInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 func(*ec2.DescribeInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, func(*ec2.DescribeInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInstancesRequest(_a0 *ec2.DescribeInstancesInput) (*request.Request, *ec2.DescribeInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) (*request.Request, *ec2.DescribeInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInstancesInput) *ec2.DescribeInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.Option) (*ec2.DescribeInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.Option) (*ec2.DescribeInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.Option) *ec2.DescribeInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInternetGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInternetGateways(_a0 *ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeInternetGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) *ec2.DescribeInternetGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInternetGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInternetGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInternetGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeInternetGatewaysPages(_a0 *ec2.DescribeInternetGatewaysInput, _a1 func(*ec2.DescribeInternetGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput, func(*ec2.DescribeInternetGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInternetGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeInternetGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 func(*ec2.DescribeInternetGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, func(*ec2.DescribeInternetGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeInternetGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeInternetGatewaysRequest(_a0 *ec2.DescribeInternetGatewaysInput) (*request.Request, *ec2.DescribeInternetGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeInternetGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) (*request.Request, *ec2.DescribeInternetGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeInternetGatewaysInput) *ec2.DescribeInternetGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeInternetGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInternetGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeInternetGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 ...request.Option) (*ec2.DescribeInternetGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeInternetGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.Option) (*ec2.DescribeInternetGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.Option) *ec2.DescribeInternetGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeInternetGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpamPools provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpamPools(_a0 *ec2.DescribeIpamPoolsInput) (*ec2.DescribeIpamPoolsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIpamPoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) (*ec2.DescribeIpamPoolsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) *ec2.DescribeIpamPoolsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamPoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamPoolsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpamPoolsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeIpamPoolsPages(_a0 *ec2.DescribeIpamPoolsInput, _a1 func(*ec2.DescribeIpamPoolsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput, func(*ec2.DescribeIpamPoolsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamPoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeIpamPoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamPoolsInput, _a2 func(*ec2.DescribeIpamPoolsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, func(*ec2.DescribeIpamPoolsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamPoolsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpamPoolsRequest(_a0 *ec2.DescribeIpamPoolsInput) (*request.Request, *ec2.DescribeIpamPoolsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIpamPoolsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) (*request.Request, *ec2.DescribeIpamPoolsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamPoolsInput) *ec2.DescribeIpamPoolsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIpamPoolsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIpamPoolsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIpamPoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamPoolsInput, _a2 ...request.Option) (*ec2.DescribeIpamPoolsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIpamPoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...request.Option) (*ec2.DescribeIpamPoolsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...request.Option) *ec2.DescribeIpamPoolsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamPoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpamScopes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpamScopes(_a0 *ec2.DescribeIpamScopesInput) (*ec2.DescribeIpamScopesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIpamScopesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) (*ec2.DescribeIpamScopesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) *ec2.DescribeIpamScopesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamScopesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamScopesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpamScopesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeIpamScopesPages(_a0 *ec2.DescribeIpamScopesInput, _a1 func(*ec2.DescribeIpamScopesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput, func(*ec2.DescribeIpamScopesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamScopesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeIpamScopesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamScopesInput, _a2 func(*ec2.DescribeIpamScopesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, func(*ec2.DescribeIpamScopesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamScopesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpamScopesRequest(_a0 *ec2.DescribeIpamScopesInput) (*request.Request, *ec2.DescribeIpamScopesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIpamScopesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) (*request.Request, *ec2.DescribeIpamScopesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamScopesInput) *ec2.DescribeIpamScopesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIpamScopesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIpamScopesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIpamScopesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamScopesInput, _a2 ...request.Option) (*ec2.DescribeIpamScopesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIpamScopesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, ...request.Option) (*ec2.DescribeIpamScopesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, ...request.Option) *ec2.DescribeIpamScopesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamScopesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamScopesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpams provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpams(_a0 *ec2.DescribeIpamsInput) (*ec2.DescribeIpamsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIpamsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) (*ec2.DescribeIpamsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) *ec2.DescribeIpamsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpamsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeIpamsPages(_a0 *ec2.DescribeIpamsInput, _a1 func(*ec2.DescribeIpamsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput, func(*ec2.DescribeIpamsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeIpamsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamsInput, _a2 func(*ec2.DescribeIpamsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, func(*ec2.DescribeIpamsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpamsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpamsRequest(_a0 *ec2.DescribeIpamsInput) (*request.Request, *ec2.DescribeIpamsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIpamsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) (*request.Request, *ec2.DescribeIpamsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamsInput) *ec2.DescribeIpamsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIpamsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIpamsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIpamsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamsInput, _a2 ...request.Option) (*ec2.DescribeIpamsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIpamsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, ...request.Option) (*ec2.DescribeIpamsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, ...request.Option) *ec2.DescribeIpamsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpamsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpv6Pools provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpv6Pools(_a0 *ec2.DescribeIpv6PoolsInput) (*ec2.DescribeIpv6PoolsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeIpv6PoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) (*ec2.DescribeIpv6PoolsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) *ec2.DescribeIpv6PoolsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpv6PoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpv6PoolsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeIpv6PoolsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeIpv6PoolsPages(_a0 *ec2.DescribeIpv6PoolsInput, _a1 func(*ec2.DescribeIpv6PoolsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput, func(*ec2.DescribeIpv6PoolsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpv6PoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeIpv6PoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpv6PoolsInput, _a2 func(*ec2.DescribeIpv6PoolsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, func(*ec2.DescribeIpv6PoolsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeIpv6PoolsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeIpv6PoolsRequest(_a0 *ec2.DescribeIpv6PoolsInput) (*request.Request, *ec2.DescribeIpv6PoolsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeIpv6PoolsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) (*request.Request, *ec2.DescribeIpv6PoolsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeIpv6PoolsInput) *ec2.DescribeIpv6PoolsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeIpv6PoolsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeIpv6PoolsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeIpv6PoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpv6PoolsInput, _a2 ...request.Option) (*ec2.DescribeIpv6PoolsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeIpv6PoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...request.Option) (*ec2.DescribeIpv6PoolsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...request.Option) *ec2.DescribeIpv6PoolsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeIpv6PoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKeyPairs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeKeyPairs(_a0 *ec2.DescribeKeyPairsInput) (*ec2.DescribeKeyPairsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeKeyPairsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) (*ec2.DescribeKeyPairsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) *ec2.DescribeKeyPairsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeKeyPairsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeKeyPairsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKeyPairsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeKeyPairsRequest(_a0 *ec2.DescribeKeyPairsInput) (*request.Request, *ec2.DescribeKeyPairsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeKeyPairsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) (*request.Request, *ec2.DescribeKeyPairsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeKeyPairsInput) *ec2.DescribeKeyPairsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeKeyPairsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeKeyPairsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeKeyPairsWithContext(_a0 context.Context, _a1 *ec2.DescribeKeyPairsInput, _a2 ...request.Option) (*ec2.DescribeKeyPairsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeKeyPairsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.Option) (*ec2.DescribeKeyPairsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.Option) *ec2.DescribeKeyPairsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeKeyPairsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplateVersions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLaunchTemplateVersions(_a0 *ec2.DescribeLaunchTemplateVersionsInput) (*ec2.DescribeLaunchTemplateVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLaunchTemplateVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) (*ec2.DescribeLaunchTemplateVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) *ec2.DescribeLaunchTemplateVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLaunchTemplateVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplateVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplateVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLaunchTemplateVersionsPages(_a0 *ec2.DescribeLaunchTemplateVersionsInput, _a1 func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput, func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchTemplateVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLaunchTemplateVersionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplateVersionsInput, _a2 func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchTemplateVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLaunchTemplateVersionsRequest(_a0 *ec2.DescribeLaunchTemplateVersionsInput) (*request.Request, *ec2.DescribeLaunchTemplateVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLaunchTemplateVersionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) (*request.Request, *ec2.DescribeLaunchTemplateVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplateVersionsInput) *ec2.DescribeLaunchTemplateVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLaunchTemplateVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplateVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLaunchTemplateVersionsWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplateVersionsInput, _a2 ...request.Option) (*ec2.DescribeLaunchTemplateVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLaunchTemplateVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...request.Option) (*ec2.DescribeLaunchTemplateVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...request.Option) *ec2.DescribeLaunchTemplateVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLaunchTemplateVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplates provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLaunchTemplates(_a0 *ec2.DescribeLaunchTemplatesInput) (*ec2.DescribeLaunchTemplatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLaunchTemplatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) (*ec2.DescribeLaunchTemplatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) *ec2.DescribeLaunchTemplatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLaunchTemplatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLaunchTemplatesPages(_a0 *ec2.DescribeLaunchTemplatesInput, _a1 func(*ec2.DescribeLaunchTemplatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput, func(*ec2.DescribeLaunchTemplatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchTemplatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLaunchTemplatesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplatesInput, _a2 func(*ec2.DescribeLaunchTemplatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, func(*ec2.DescribeLaunchTemplatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLaunchTemplatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLaunchTemplatesRequest(_a0 *ec2.DescribeLaunchTemplatesInput) (*request.Request, *ec2.DescribeLaunchTemplatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLaunchTemplatesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) (*request.Request, *ec2.DescribeLaunchTemplatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplatesInput) *ec2.DescribeLaunchTemplatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLaunchTemplatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLaunchTemplatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLaunchTemplatesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplatesInput, _a2 ...request.Option) (*ec2.DescribeLaunchTemplatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLaunchTemplatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...request.Option) (*ec2.DescribeLaunchTemplatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...request.Option) *ec2.DescribeLaunchTemplatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLaunchTemplatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPages(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a1 func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a2 func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVpcAssociations(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVpcAssociationsPages(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a1 func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVpcAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a2 func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVpcAssociationsRequest(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTableVpcAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTables provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTables(_a0 *ec2.DescribeLocalGatewayRouteTablesInput) (*ec2.DescribeLocalGatewayRouteTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewayRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) (*ec2.DescribeLocalGatewayRouteTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *ec2.DescribeLocalGatewayRouteTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTablesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTablesPages(_a0 *ec2.DescribeLocalGatewayRouteTablesInput, _a1 func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput, func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTablesInput, _a2 func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayRouteTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTablesRequest(_a0 *ec2.DescribeLocalGatewayRouteTablesInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewayRouteTablesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *ec2.DescribeLocalGatewayRouteTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewayRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewayRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...request.Option) (*ec2.DescribeLocalGatewayRouteTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroups provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaceGroups(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaceGroupsPages(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a1 func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaceGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a2 func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaceGroupsRequest(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaceGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...request.Option) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfaces provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfaces(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewayVirtualInterfacesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfacesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfacesPages(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a1 func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput, func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayVirtualInterfacesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfacesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a2 func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewayVirtualInterfacesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfacesRequest(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfacesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewayVirtualInterfacesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfacesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewayVirtualInterfacesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewayVirtualInterfacesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewayVirtualInterfacesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...request.Option) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGateways(_a0 *ec2.DescribeLocalGatewaysInput) (*ec2.DescribeLocalGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeLocalGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) (*ec2.DescribeLocalGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) *ec2.DescribeLocalGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeLocalGatewaysPages(_a0 *ec2.DescribeLocalGatewaysInput, _a1 func(*ec2.DescribeLocalGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeLocalGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewaysInput, _a2 func(*ec2.DescribeLocalGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLocalGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeLocalGatewaysRequest(_a0 *ec2.DescribeLocalGatewaysInput) (*request.Request, *ec2.DescribeLocalGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeLocalGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) (*request.Request, *ec2.DescribeLocalGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewaysInput) *ec2.DescribeLocalGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeLocalGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLocalGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeLocalGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewaysInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeLocalGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...request.Option) (*ec2.DescribeLocalGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...request.Option) *ec2.DescribeLocalGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeLocalGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeManagedPrefixLists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeManagedPrefixLists(_a0 *ec2.DescribeManagedPrefixListsInput) (*ec2.DescribeManagedPrefixListsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeManagedPrefixListsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) (*ec2.DescribeManagedPrefixListsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) *ec2.DescribeManagedPrefixListsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeManagedPrefixListsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeManagedPrefixListsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeManagedPrefixListsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeManagedPrefixListsPages(_a0 *ec2.DescribeManagedPrefixListsInput, _a1 func(*ec2.DescribeManagedPrefixListsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput, func(*ec2.DescribeManagedPrefixListsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeManagedPrefixListsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeManagedPrefixListsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeManagedPrefixListsInput, _a2 func(*ec2.DescribeManagedPrefixListsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, func(*ec2.DescribeManagedPrefixListsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeManagedPrefixListsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeManagedPrefixListsRequest(_a0 *ec2.DescribeManagedPrefixListsInput) (*request.Request, *ec2.DescribeManagedPrefixListsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeManagedPrefixListsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) (*request.Request, *ec2.DescribeManagedPrefixListsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeManagedPrefixListsInput) *ec2.DescribeManagedPrefixListsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeManagedPrefixListsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeManagedPrefixListsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeManagedPrefixListsWithContext(_a0 context.Context, _a1 *ec2.DescribeManagedPrefixListsInput, _a2 ...request.Option) (*ec2.DescribeManagedPrefixListsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeManagedPrefixListsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) (*ec2.DescribeManagedPrefixListsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) *ec2.DescribeManagedPrefixListsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeManagedPrefixListsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMovingAddresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeMovingAddresses(_a0 *ec2.DescribeMovingAddressesInput) (*ec2.DescribeMovingAddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeMovingAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) (*ec2.DescribeMovingAddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) *ec2.DescribeMovingAddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeMovingAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeMovingAddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMovingAddressesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeMovingAddressesPages(_a0 *ec2.DescribeMovingAddressesInput, _a1 func(*ec2.DescribeMovingAddressesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput, func(*ec2.DescribeMovingAddressesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeMovingAddressesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeMovingAddressesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeMovingAddressesInput, _a2 func(*ec2.DescribeMovingAddressesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, func(*ec2.DescribeMovingAddressesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeMovingAddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeMovingAddressesRequest(_a0 *ec2.DescribeMovingAddressesInput) (*request.Request, *ec2.DescribeMovingAddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeMovingAddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) (*request.Request, *ec2.DescribeMovingAddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeMovingAddressesInput) *ec2.DescribeMovingAddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeMovingAddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeMovingAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeMovingAddressesWithContext(_a0 context.Context, _a1 *ec2.DescribeMovingAddressesInput, _a2 ...request.Option) (*ec2.DescribeMovingAddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeMovingAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...request.Option) (*ec2.DescribeMovingAddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...request.Option) *ec2.DescribeMovingAddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeMovingAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNatGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNatGateways(_a0 *ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNatGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) *ec2.DescribeNatGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNatGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNatGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNatGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNatGatewaysPages(_a0 *ec2.DescribeNatGatewaysInput, _a1 func(*ec2.DescribeNatGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput, func(*ec2.DescribeNatGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNatGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNatGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 func(*ec2.DescribeNatGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, func(*ec2.DescribeNatGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNatGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNatGatewaysRequest(_a0 *ec2.DescribeNatGatewaysInput) (*request.Request, *ec2.DescribeNatGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNatGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) (*request.Request, *ec2.DescribeNatGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNatGatewaysInput) *ec2.DescribeNatGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNatGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNatGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNatGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 ...request.Option) (*ec2.DescribeNatGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNatGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.Option) (*ec2.DescribeNatGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.Option) *ec2.DescribeNatGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNatGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkAcls provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkAcls(_a0 *ec2.DescribeNetworkAclsInput) (*ec2.DescribeNetworkAclsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkAclsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) (*ec2.DescribeNetworkAclsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) *ec2.DescribeNetworkAclsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkAclsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkAclsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkAclsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkAclsPages(_a0 *ec2.DescribeNetworkAclsInput, _a1 func(*ec2.DescribeNetworkAclsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput, func(*ec2.DescribeNetworkAclsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkAclsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkAclsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkAclsInput, _a2 func(*ec2.DescribeNetworkAclsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, func(*ec2.DescribeNetworkAclsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkAclsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkAclsRequest(_a0 *ec2.DescribeNetworkAclsInput) (*request.Request, *ec2.DescribeNetworkAclsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkAclsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) (*request.Request, *ec2.DescribeNetworkAclsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkAclsInput) *ec2.DescribeNetworkAclsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkAclsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkAclsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkAclsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkAclsInput, _a2 ...request.Option) (*ec2.DescribeNetworkAclsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkAclsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...request.Option) (*ec2.DescribeNetworkAclsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...request.Option) *ec2.DescribeNetworkAclsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkAclsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopeAnalyses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopeAnalyses(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopeAnalysesPages(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a1 func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopeAnalysesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a2 func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopeAnalysesRequest(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopeAnalysesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...request.Option) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopes(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInsightsAccessScopesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopesPages(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput, _a1 func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput, func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAccessScopesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopesInput, _a2 func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAccessScopesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopesRequest(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInsightsAccessScopesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAccessScopesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAccessScopesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInsightsAccessScopesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInsightsAccessScopesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...request.Option) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAnalyses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAnalyses(_a0 *ec2.DescribeNetworkInsightsAnalysesInput) (*ec2.DescribeNetworkInsightsAnalysesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInsightsAnalysesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) (*ec2.DescribeNetworkInsightsAnalysesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *ec2.DescribeNetworkInsightsAnalysesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAnalysesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAnalysesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAnalysesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInsightsAnalysesPages(_a0 *ec2.DescribeNetworkInsightsAnalysesInput, _a1 func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput, func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAnalysesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInsightsAnalysesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAnalysesInput, _a2 func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsAnalysesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsAnalysesRequest(_a0 *ec2.DescribeNetworkInsightsAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAnalysesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInsightsAnalysesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAnalysesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *ec2.DescribeNetworkInsightsAnalysesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAnalysesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsAnalysesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInsightsAnalysesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAnalysesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAnalysesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInsightsAnalysesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...request.Option) (*ec2.DescribeNetworkInsightsAnalysesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...request.Option) *ec2.DescribeNetworkInsightsAnalysesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAnalysesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsPaths provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsPaths(_a0 *ec2.DescribeNetworkInsightsPathsInput) (*ec2.DescribeNetworkInsightsPathsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInsightsPathsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) (*ec2.DescribeNetworkInsightsPathsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) *ec2.DescribeNetworkInsightsPathsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsPathsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsPathsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsPathsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInsightsPathsPages(_a0 *ec2.DescribeNetworkInsightsPathsInput, _a1 func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput, func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsPathsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInsightsPathsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsPathsInput, _a2 func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInsightsPathsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInsightsPathsRequest(_a0 *ec2.DescribeNetworkInsightsPathsInput) (*request.Request, *ec2.DescribeNetworkInsightsPathsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInsightsPathsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) (*request.Request, *ec2.DescribeNetworkInsightsPathsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsPathsInput) *ec2.DescribeNetworkInsightsPathsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsPathsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInsightsPathsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInsightsPathsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsPathsInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsPathsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInsightsPathsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...request.Option) (*ec2.DescribeNetworkInsightsPathsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...request.Option) *ec2.DescribeNetworkInsightsPathsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsPathsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfaceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfaceAttribute(_a0 *ec2.DescribeNetworkInterfaceAttributeInput) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) (*ec2.DescribeNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *ec2.DescribeNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfaceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfaceAttributeRequest(_a0 *ec2.DescribeNetworkInterfaceAttributeInput) (*request.Request, *ec2.DescribeNetworkInterfaceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInterfaceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) (*request.Request, *ec2.DescribeNetworkInterfaceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *ec2.DescribeNetworkInterfaceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInterfaceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...request.Option) (*ec2.DescribeNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...request.Option) *ec2.DescribeNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfacePermissions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfacePermissions(_a0 *ec2.DescribeNetworkInterfacePermissionsInput) (*ec2.DescribeNetworkInterfacePermissionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInterfacePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) (*ec2.DescribeNetworkInterfacePermissionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *ec2.DescribeNetworkInterfacePermissionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacePermissionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfacePermissionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInterfacePermissionsPages(_a0 *ec2.DescribeNetworkInterfacePermissionsInput, _a1 func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput, func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInterfacePermissionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInterfacePermissionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacePermissionsInput, _a2 func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInterfacePermissionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfacePermissionsRequest(_a0 *ec2.DescribeNetworkInterfacePermissionsInput) (*request.Request, *ec2.DescribeNetworkInterfacePermissionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInterfacePermissionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) (*request.Request, *ec2.DescribeNetworkInterfacePermissionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *ec2.DescribeNetworkInterfacePermissionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInterfacePermissionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfacePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInterfacePermissionsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacePermissionsInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfacePermissionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInterfacePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...request.Option) (*ec2.DescribeNetworkInterfacePermissionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...request.Option) *ec2.DescribeNetworkInterfacePermissionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfaces provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfaces(_a0 *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeNetworkInterfacesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfacesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeNetworkInterfacesPages(_a0 *ec2.DescribeNetworkInterfacesInput, _a1 func(*ec2.DescribeNetworkInterfacesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput, func(*ec2.DescribeNetworkInterfacesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInterfacesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeNetworkInterfacesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 func(*ec2.DescribeNetworkInterfacesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, func(*ec2.DescribeNetworkInterfacesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeNetworkInterfacesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeNetworkInterfacesRequest(_a0 *ec2.DescribeNetworkInterfacesInput) (*request.Request, *ec2.DescribeNetworkInterfacesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeNetworkInterfacesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) (*request.Request, *ec2.DescribeNetworkInterfacesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeNetworkInterfacesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeNetworkInterfacesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeNetworkInterfacesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfacesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeNetworkInterfacesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.Option) (*ec2.DescribeNetworkInterfacesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.Option) *ec2.DescribeNetworkInterfacesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePlacementGroups provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePlacementGroups(_a0 *ec2.DescribePlacementGroupsInput) (*ec2.DescribePlacementGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribePlacementGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) (*ec2.DescribePlacementGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) *ec2.DescribePlacementGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePlacementGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePlacementGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePlacementGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePlacementGroupsRequest(_a0 *ec2.DescribePlacementGroupsInput) (*request.Request, *ec2.DescribePlacementGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribePlacementGroupsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) (*request.Request, *ec2.DescribePlacementGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePlacementGroupsInput) *ec2.DescribePlacementGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribePlacementGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePlacementGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribePlacementGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribePlacementGroupsInput, _a2 ...request.Option) (*ec2.DescribePlacementGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribePlacementGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...request.Option) (*ec2.DescribePlacementGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...request.Option) *ec2.DescribePlacementGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePlacementGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePrefixLists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePrefixLists(_a0 *ec2.DescribePrefixListsInput) (*ec2.DescribePrefixListsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribePrefixListsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) (*ec2.DescribePrefixListsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) *ec2.DescribePrefixListsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePrefixListsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePrefixListsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePrefixListsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribePrefixListsPages(_a0 *ec2.DescribePrefixListsInput, _a1 func(*ec2.DescribePrefixListsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput, func(*ec2.DescribePrefixListsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePrefixListsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribePrefixListsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePrefixListsInput, _a2 func(*ec2.DescribePrefixListsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, func(*ec2.DescribePrefixListsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePrefixListsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePrefixListsRequest(_a0 *ec2.DescribePrefixListsInput) (*request.Request, *ec2.DescribePrefixListsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribePrefixListsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) (*request.Request, *ec2.DescribePrefixListsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePrefixListsInput) *ec2.DescribePrefixListsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribePrefixListsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePrefixListsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribePrefixListsWithContext(_a0 context.Context, _a1 *ec2.DescribePrefixListsInput, _a2 ...request.Option) (*ec2.DescribePrefixListsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribePrefixListsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, ...request.Option) (*ec2.DescribePrefixListsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, ...request.Option) *ec2.DescribePrefixListsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePrefixListsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrefixListsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePrincipalIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePrincipalIdFormat(_a0 *ec2.DescribePrincipalIdFormatInput) (*ec2.DescribePrincipalIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribePrincipalIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) (*ec2.DescribePrincipalIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) *ec2.DescribePrincipalIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePrincipalIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePrincipalIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePrincipalIdFormatPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribePrincipalIdFormatPages(_a0 *ec2.DescribePrincipalIdFormatInput, _a1 func(*ec2.DescribePrincipalIdFormatOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput, func(*ec2.DescribePrincipalIdFormatOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePrincipalIdFormatPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribePrincipalIdFormatPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePrincipalIdFormatInput, _a2 func(*ec2.DescribePrincipalIdFormatOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, func(*ec2.DescribePrincipalIdFormatOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePrincipalIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePrincipalIdFormatRequest(_a0 *ec2.DescribePrincipalIdFormatInput) (*request.Request, *ec2.DescribePrincipalIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribePrincipalIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) (*request.Request, *ec2.DescribePrincipalIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePrincipalIdFormatInput) *ec2.DescribePrincipalIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribePrincipalIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePrincipalIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribePrincipalIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribePrincipalIdFormatInput, _a2 ...request.Option) (*ec2.DescribePrincipalIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribePrincipalIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) (*ec2.DescribePrincipalIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) *ec2.DescribePrincipalIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePrincipalIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePublicIpv4Pools provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePublicIpv4Pools(_a0 *ec2.DescribePublicIpv4PoolsInput) (*ec2.DescribePublicIpv4PoolsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribePublicIpv4PoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) (*ec2.DescribePublicIpv4PoolsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) *ec2.DescribePublicIpv4PoolsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePublicIpv4PoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePublicIpv4PoolsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePublicIpv4PoolsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribePublicIpv4PoolsPages(_a0 *ec2.DescribePublicIpv4PoolsInput, _a1 func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput, func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePublicIpv4PoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribePublicIpv4PoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePublicIpv4PoolsInput, _a2 func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePublicIpv4PoolsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribePublicIpv4PoolsRequest(_a0 *ec2.DescribePublicIpv4PoolsInput) (*request.Request, *ec2.DescribePublicIpv4PoolsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribePublicIpv4PoolsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) (*request.Request, *ec2.DescribePublicIpv4PoolsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribePublicIpv4PoolsInput) *ec2.DescribePublicIpv4PoolsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribePublicIpv4PoolsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePublicIpv4PoolsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribePublicIpv4PoolsWithContext(_a0 context.Context, _a1 *ec2.DescribePublicIpv4PoolsInput, _a2 ...request.Option) (*ec2.DescribePublicIpv4PoolsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribePublicIpv4PoolsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) (*ec2.DescribePublicIpv4PoolsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) *ec2.DescribePublicIpv4PoolsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribePublicIpv4PoolsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRegions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeRegions(_a0 *ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeRegionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) *ec2.DescribeRegionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeRegionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeRegionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRegionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeRegionsRequest(_a0 *ec2.DescribeRegionsInput) (*request.Request, *ec2.DescribeRegionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeRegionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) (*request.Request, *ec2.DescribeRegionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeRegionsInput) *ec2.DescribeRegionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeRegionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeRegionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeRegionsWithContext(_a0 context.Context, _a1 *ec2.DescribeRegionsInput, _a2 ...request.Option) (*ec2.DescribeRegionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeRegionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRegionsInput, ...request.Option) (*ec2.DescribeRegionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRegionsInput, ...request.Option) *ec2.DescribeRegionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeRegionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRegionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReplaceRootVolumeTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReplaceRootVolumeTasks(_a0 *ec2.DescribeReplaceRootVolumeTasksInput) (*ec2.DescribeReplaceRootVolumeTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeReplaceRootVolumeTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) (*ec2.DescribeReplaceRootVolumeTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *ec2.DescribeReplaceRootVolumeTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReplaceRootVolumeTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReplaceRootVolumeTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReplaceRootVolumeTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeReplaceRootVolumeTasksPages(_a0 *ec2.DescribeReplaceRootVolumeTasksInput, _a1 func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput, func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReplaceRootVolumeTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeReplaceRootVolumeTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReplaceRootVolumeTasksInput, _a2 func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReplaceRootVolumeTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReplaceRootVolumeTasksRequest(_a0 *ec2.DescribeReplaceRootVolumeTasksInput) (*request.Request, *ec2.DescribeReplaceRootVolumeTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeReplaceRootVolumeTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) (*request.Request, *ec2.DescribeReplaceRootVolumeTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *ec2.DescribeReplaceRootVolumeTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeReplaceRootVolumeTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReplaceRootVolumeTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeReplaceRootVolumeTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeReplaceRootVolumeTasksInput, _a2 ...request.Option) (*ec2.DescribeReplaceRootVolumeTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeReplaceRootVolumeTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...request.Option) (*ec2.DescribeReplaceRootVolumeTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...request.Option) *ec2.DescribeReplaceRootVolumeTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReplaceRootVolumeTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstances(_a0 *ec2.DescribeReservedInstancesInput) (*ec2.DescribeReservedInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) (*ec2.DescribeReservedInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) *ec2.DescribeReservedInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesListings provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesListings(_a0 *ec2.DescribeReservedInstancesListingsInput) (*ec2.DescribeReservedInstancesListingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeReservedInstancesListingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) (*ec2.DescribeReservedInstancesListingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) *ec2.DescribeReservedInstancesListingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesListingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesListingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesListingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesListingsRequest(_a0 *ec2.DescribeReservedInstancesListingsInput) (*request.Request, *ec2.DescribeReservedInstancesListingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeReservedInstancesListingsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) (*request.Request, *ec2.DescribeReservedInstancesListingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesListingsInput) *ec2.DescribeReservedInstancesListingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeReservedInstancesListingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesListingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeReservedInstancesListingsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesListingsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesListingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeReservedInstancesListingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...request.Option) (*ec2.DescribeReservedInstancesListingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...request.Option) *ec2.DescribeReservedInstancesListingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesListingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesModifications provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesModifications(_a0 *ec2.DescribeReservedInstancesModificationsInput) (*ec2.DescribeReservedInstancesModificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeReservedInstancesModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) (*ec2.DescribeReservedInstancesModificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) *ec2.DescribeReservedInstancesModificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesModificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesModificationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeReservedInstancesModificationsPages(_a0 *ec2.DescribeReservedInstancesModificationsInput, _a1 func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput, func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedInstancesModificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeReservedInstancesModificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesModificationsInput, _a2 func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedInstancesModificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesModificationsRequest(_a0 *ec2.DescribeReservedInstancesModificationsInput) (*request.Request, *ec2.DescribeReservedInstancesModificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeReservedInstancesModificationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) (*request.Request, *ec2.DescribeReservedInstancesModificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesModificationsInput) *ec2.DescribeReservedInstancesModificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeReservedInstancesModificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeReservedInstancesModificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesModificationsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesModificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeReservedInstancesModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...request.Option) (*ec2.DescribeReservedInstancesModificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...request.Option) *ec2.DescribeReservedInstancesModificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesOfferings provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesOfferings(_a0 *ec2.DescribeReservedInstancesOfferingsInput) (*ec2.DescribeReservedInstancesOfferingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeReservedInstancesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) (*ec2.DescribeReservedInstancesOfferingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) *ec2.DescribeReservedInstancesOfferingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesOfferingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesOfferingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeReservedInstancesOfferingsPages(_a0 *ec2.DescribeReservedInstancesOfferingsInput, _a1 func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput, func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedInstancesOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeReservedInstancesOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesOfferingsInput, _a2 func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedInstancesOfferingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesOfferingsRequest(_a0 *ec2.DescribeReservedInstancesOfferingsInput) (*request.Request, *ec2.DescribeReservedInstancesOfferingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeReservedInstancesOfferingsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) (*request.Request, *ec2.DescribeReservedInstancesOfferingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesOfferingsInput) *ec2.DescribeReservedInstancesOfferingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeReservedInstancesOfferingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeReservedInstancesOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesOfferingsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesOfferingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeReservedInstancesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...request.Option) (*ec2.DescribeReservedInstancesOfferingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...request.Option) *ec2.DescribeReservedInstancesOfferingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeReservedInstancesRequest(_a0 *ec2.DescribeReservedInstancesInput) (*request.Request, *ec2.DescribeReservedInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeReservedInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) (*request.Request, *ec2.DescribeReservedInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesInput) *ec2.DescribeReservedInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeReservedInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...request.Option) (*ec2.DescribeReservedInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...request.Option) *ec2.DescribeReservedInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRouteTables provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeRouteTables(_a0 *ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) *ec2.DescribeRouteTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeRouteTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRouteTablesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeRouteTablesPages(_a0 *ec2.DescribeRouteTablesInput, _a1 func(*ec2.DescribeRouteTablesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeRouteTablesInput, _a2 func(*ec2.DescribeRouteTablesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeRouteTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeRouteTablesRequest(_a0 *ec2.DescribeRouteTablesInput) (*request.Request, *ec2.DescribeRouteTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeRouteTablesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) (*request.Request, *ec2.DescribeRouteTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeRouteTablesInput) *ec2.DescribeRouteTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeRouteTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeRouteTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, ...request.Option) (*ec2.DescribeRouteTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, ...request.Option) *ec2.DescribeRouteTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRouteTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstanceAvailability provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeScheduledInstanceAvailability(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeScheduledInstanceAvailabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeScheduledInstanceAvailabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstanceAvailabilityPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeScheduledInstanceAvailabilityPages(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput, _a1 func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput, func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledInstanceAvailabilityPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeScheduledInstanceAvailabilityPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstanceAvailabilityInput, _a2 func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledInstanceAvailabilityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeScheduledInstanceAvailabilityRequest(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput) (*request.Request, *ec2.DescribeScheduledInstanceAvailabilityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeScheduledInstanceAvailabilityOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) (*request.Request, *ec2.DescribeScheduledInstanceAvailabilityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeScheduledInstanceAvailabilityOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstanceAvailabilityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeScheduledInstanceAvailabilityWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstanceAvailabilityInput, _a2 ...request.Option) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeScheduledInstanceAvailabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeScheduledInstanceAvailabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeScheduledInstances(_a0 *ec2.DescribeScheduledInstancesInput) (*ec2.DescribeScheduledInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) (*ec2.DescribeScheduledInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) *ec2.DescribeScheduledInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeScheduledInstancesPages(_a0 *ec2.DescribeScheduledInstancesInput, _a1 func(*ec2.DescribeScheduledInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput, func(*ec2.DescribeScheduledInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeScheduledInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstancesInput, _a2 func(*ec2.DescribeScheduledInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, func(*ec2.DescribeScheduledInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeScheduledInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeScheduledInstancesRequest(_a0 *ec2.DescribeScheduledInstancesInput) (*request.Request, *ec2.DescribeScheduledInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeScheduledInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) (*request.Request, *ec2.DescribeScheduledInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstancesInput) *ec2.DescribeScheduledInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeScheduledInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstancesInput, _a2 ...request.Option) (*ec2.DescribeScheduledInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...request.Option) (*ec2.DescribeScheduledInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...request.Option) *ec2.DescribeScheduledInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupReferences provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroupReferences(_a0 *ec2.DescribeSecurityGroupReferencesInput) (*ec2.DescribeSecurityGroupReferencesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSecurityGroupReferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) (*ec2.DescribeSecurityGroupReferencesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) *ec2.DescribeSecurityGroupReferencesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupReferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupReferencesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupReferencesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroupReferencesRequest(_a0 *ec2.DescribeSecurityGroupReferencesInput) (*request.Request, *ec2.DescribeSecurityGroupReferencesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSecurityGroupReferencesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) (*request.Request, *ec2.DescribeSecurityGroupReferencesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupReferencesInput) *ec2.DescribeSecurityGroupReferencesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSecurityGroupReferencesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupReferencesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSecurityGroupReferencesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupReferencesInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupReferencesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSecurityGroupReferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...request.Option) (*ec2.DescribeSecurityGroupReferencesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...request.Option) *ec2.DescribeSecurityGroupReferencesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupReferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupRules provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroupRules(_a0 *ec2.DescribeSecurityGroupRulesInput) (*ec2.DescribeSecurityGroupRulesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSecurityGroupRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) (*ec2.DescribeSecurityGroupRulesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) *ec2.DescribeSecurityGroupRulesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupRulesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupRulesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSecurityGroupRulesPages(_a0 *ec2.DescribeSecurityGroupRulesInput, _a1 func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput, func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSecurityGroupRulesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSecurityGroupRulesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupRulesInput, _a2 func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSecurityGroupRulesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroupRulesRequest(_a0 *ec2.DescribeSecurityGroupRulesInput) (*request.Request, *ec2.DescribeSecurityGroupRulesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSecurityGroupRulesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) (*request.Request, *ec2.DescribeSecurityGroupRulesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupRulesInput) *ec2.DescribeSecurityGroupRulesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSecurityGroupRulesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupRulesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSecurityGroupRulesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupRulesInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupRulesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSecurityGroupRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...request.Option) (*ec2.DescribeSecurityGroupRulesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...request.Option) *ec2.DescribeSecurityGroupRulesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroups provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroups(_a0 *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) *ec2.DescribeSecurityGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSecurityGroupsPages(_a0 *ec2.DescribeSecurityGroupsInput, _a1 func(*ec2.DescribeSecurityGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 func(*ec2.DescribeSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSecurityGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSecurityGroupsRequest(_a0 *ec2.DescribeSecurityGroupsInput) (*request.Request, *ec2.DescribeSecurityGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSecurityGroupsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) (*request.Request, *ec2.DescribeSecurityGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupsInput) *ec2.DescribeSecurityGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSecurityGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSecurityGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) (*ec2.DescribeSecurityGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) *ec2.DescribeSecurityGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshotAttribute(_a0 *ec2.DescribeSnapshotAttributeInput) (*ec2.DescribeSnapshotAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) (*ec2.DescribeSnapshotAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) *ec2.DescribeSnapshotAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshotAttributeRequest(_a0 *ec2.DescribeSnapshotAttributeInput) (*request.Request, *ec2.DescribeSnapshotAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSnapshotAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) (*request.Request, *ec2.DescribeSnapshotAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotAttributeInput) *ec2.DescribeSnapshotAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSnapshotAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotAttributeInput, _a2 ...request.Option) (*ec2.DescribeSnapshotAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) (*ec2.DescribeSnapshotAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) *ec2.DescribeSnapshotAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotTierStatus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshotTierStatus(_a0 *ec2.DescribeSnapshotTierStatusInput) (*ec2.DescribeSnapshotTierStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSnapshotTierStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) (*ec2.DescribeSnapshotTierStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) *ec2.DescribeSnapshotTierStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotTierStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotTierStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotTierStatusPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSnapshotTierStatusPages(_a0 *ec2.DescribeSnapshotTierStatusInput, _a1 func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput, func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotTierStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSnapshotTierStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotTierStatusInput, _a2 func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotTierStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshotTierStatusRequest(_a0 *ec2.DescribeSnapshotTierStatusInput) (*request.Request, *ec2.DescribeSnapshotTierStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSnapshotTierStatusOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) (*request.Request, *ec2.DescribeSnapshotTierStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotTierStatusInput) *ec2.DescribeSnapshotTierStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSnapshotTierStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotTierStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSnapshotTierStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotTierStatusInput, _a2 ...request.Option) (*ec2.DescribeSnapshotTierStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSnapshotTierStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...request.Option) (*ec2.DescribeSnapshotTierStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...request.Option) *ec2.DescribeSnapshotTierStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotTierStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshots provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshots(_a0 *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) *ec2.DescribeSnapshotsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSnapshotsPages(_a0 *ec2.DescribeSnapshotsInput, _a1 func(*ec2.DescribeSnapshotsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput, func(*ec2.DescribeSnapshotsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSnapshotsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 func(*ec2.DescribeSnapshotsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, func(*ec2.DescribeSnapshotsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSnapshotsRequest(_a0 *ec2.DescribeSnapshotsInput) (*request.Request, *ec2.DescribeSnapshotsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSnapshotsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) (*request.Request, *ec2.DescribeSnapshotsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotsInput) *ec2.DescribeSnapshotsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSnapshotsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSnapshotsWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 ...request.Option) (*ec2.DescribeSnapshotsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.Option) (*ec2.DescribeSnapshotsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.Option) *ec2.DescribeSnapshotsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotDatafeedSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotDatafeedSubscription(_a0 *ec2.DescribeSpotDatafeedSubscriptionInput) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotDatafeedSubscriptionRequest(_a0 *ec2.DescribeSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DescribeSpotDatafeedSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotDatafeedSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DescribeSpotDatafeedSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotDatafeedSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotDatafeedSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...request.Option) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...request.Option) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotDatafeedSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetInstances(_a0 *ec2.DescribeSpotFleetInstancesInput) (*ec2.DescribeSpotFleetInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotFleetInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) (*ec2.DescribeSpotFleetInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) *ec2.DescribeSpotFleetInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetInstancesRequest(_a0 *ec2.DescribeSpotFleetInstancesInput) (*request.Request, *ec2.DescribeSpotFleetInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotFleetInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) (*request.Request, *ec2.DescribeSpotFleetInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetInstancesInput) *ec2.DescribeSpotFleetInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotFleetInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotFleetInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetInstancesInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotFleetInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...request.Option) (*ec2.DescribeSpotFleetInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...request.Option) *ec2.DescribeSpotFleetInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequestHistory provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetRequestHistory(_a0 *ec2.DescribeSpotFleetRequestHistoryInput) (*ec2.DescribeSpotFleetRequestHistoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotFleetRequestHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) (*ec2.DescribeSpotFleetRequestHistoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *ec2.DescribeSpotFleetRequestHistoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestHistoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequestHistoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetRequestHistoryRequest(_a0 *ec2.DescribeSpotFleetRequestHistoryInput) (*request.Request, *ec2.DescribeSpotFleetRequestHistoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotFleetRequestHistoryOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) (*request.Request, *ec2.DescribeSpotFleetRequestHistoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *ec2.DescribeSpotFleetRequestHistoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotFleetRequestHistoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequestHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotFleetRequestHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestHistoryInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetRequestHistoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotFleetRequestHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...request.Option) (*ec2.DescribeSpotFleetRequestHistoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...request.Option) *ec2.DescribeSpotFleetRequestHistoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequests provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetRequests(_a0 *ec2.DescribeSpotFleetRequestsInput) (*ec2.DescribeSpotFleetRequestsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotFleetRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) (*ec2.DescribeSpotFleetRequestsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) *ec2.DescribeSpotFleetRequestsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequestsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSpotFleetRequestsPages(_a0 *ec2.DescribeSpotFleetRequestsInput, _a1 func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput, func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotFleetRequestsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSpotFleetRequestsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestsInput, _a2 func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotFleetRequestsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotFleetRequestsRequest(_a0 *ec2.DescribeSpotFleetRequestsInput) (*request.Request, *ec2.DescribeSpotFleetRequestsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotFleetRequestsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) (*request.Request, *ec2.DescribeSpotFleetRequestsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestsInput) *ec2.DescribeSpotFleetRequestsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotFleetRequestsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotFleetRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotFleetRequestsWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestsInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetRequestsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotFleetRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...request.Option) (*ec2.DescribeSpotFleetRequestsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...request.Option) *ec2.DescribeSpotFleetRequestsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotInstanceRequests provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotInstanceRequests(_a0 *ec2.DescribeSpotInstanceRequestsInput) (*ec2.DescribeSpotInstanceRequestsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotInstanceRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) (*ec2.DescribeSpotInstanceRequestsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) *ec2.DescribeSpotInstanceRequestsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotInstanceRequestsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotInstanceRequestsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSpotInstanceRequestsPages(_a0 *ec2.DescribeSpotInstanceRequestsInput, _a1 func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput, func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotInstanceRequestsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSpotInstanceRequestsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotInstanceRequestsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotInstanceRequestsRequest(_a0 *ec2.DescribeSpotInstanceRequestsInput) (*request.Request, *ec2.DescribeSpotInstanceRequestsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotInstanceRequestsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) (*request.Request, *ec2.DescribeSpotInstanceRequestsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotInstanceRequestsInput) *ec2.DescribeSpotInstanceRequestsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotInstanceRequestsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotInstanceRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotInstanceRequestsWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 ...request.Option) (*ec2.DescribeSpotInstanceRequestsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotInstanceRequestsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.Option) (*ec2.DescribeSpotInstanceRequestsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.Option) *ec2.DescribeSpotInstanceRequestsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotPriceHistory provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotPriceHistory(_a0 *ec2.DescribeSpotPriceHistoryInput) (*ec2.DescribeSpotPriceHistoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSpotPriceHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) (*ec2.DescribeSpotPriceHistoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) *ec2.DescribeSpotPriceHistoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotPriceHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotPriceHistoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSpotPriceHistoryPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSpotPriceHistoryPages(_a0 *ec2.DescribeSpotPriceHistoryInput, _a1 func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput, func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotPriceHistoryPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSpotPriceHistoryPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotPriceHistoryInput, _a2 func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSpotPriceHistoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSpotPriceHistoryRequest(_a0 *ec2.DescribeSpotPriceHistoryInput) (*request.Request, *ec2.DescribeSpotPriceHistoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSpotPriceHistoryOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) (*request.Request, *ec2.DescribeSpotPriceHistoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotPriceHistoryInput) *ec2.DescribeSpotPriceHistoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSpotPriceHistoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSpotPriceHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSpotPriceHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotPriceHistoryInput, _a2 ...request.Option) (*ec2.DescribeSpotPriceHistoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSpotPriceHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...request.Option) (*ec2.DescribeSpotPriceHistoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...request.Option) *ec2.DescribeSpotPriceHistoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSpotPriceHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStaleSecurityGroups provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeStaleSecurityGroups(_a0 *ec2.DescribeStaleSecurityGroupsInput) (*ec2.DescribeStaleSecurityGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeStaleSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) (*ec2.DescribeStaleSecurityGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) *ec2.DescribeStaleSecurityGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeStaleSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeStaleSecurityGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStaleSecurityGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeStaleSecurityGroupsPages(_a0 *ec2.DescribeStaleSecurityGroupsInput, _a1 func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStaleSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeStaleSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeStaleSecurityGroupsInput, _a2 func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStaleSecurityGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeStaleSecurityGroupsRequest(_a0 *ec2.DescribeStaleSecurityGroupsInput) (*request.Request, *ec2.DescribeStaleSecurityGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeStaleSecurityGroupsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) (*request.Request, *ec2.DescribeStaleSecurityGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeStaleSecurityGroupsInput) *ec2.DescribeStaleSecurityGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeStaleSecurityGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStaleSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeStaleSecurityGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeStaleSecurityGroupsInput, _a2 ...request.Option) (*ec2.DescribeStaleSecurityGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeStaleSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...request.Option) (*ec2.DescribeStaleSecurityGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...request.Option) *ec2.DescribeStaleSecurityGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeStaleSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStoreImageTasks provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeStoreImageTasks(_a0 *ec2.DescribeStoreImageTasksInput) (*ec2.DescribeStoreImageTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeStoreImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) (*ec2.DescribeStoreImageTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) *ec2.DescribeStoreImageTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeStoreImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeStoreImageTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeStoreImageTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeStoreImageTasksPages(_a0 *ec2.DescribeStoreImageTasksInput, _a1 func(*ec2.DescribeStoreImageTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStoreImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeStoreImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeStoreImageTasksInput, _a2 func(*ec2.DescribeStoreImageTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeStoreImageTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeStoreImageTasksRequest(_a0 *ec2.DescribeStoreImageTasksInput) (*request.Request, *ec2.DescribeStoreImageTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeStoreImageTasksOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) (*request.Request, *ec2.DescribeStoreImageTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeStoreImageTasksInput) *ec2.DescribeStoreImageTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeStoreImageTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeStoreImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeStoreImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeStoreImageTasksInput, _a2 ...request.Option) (*ec2.DescribeStoreImageTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeStoreImageTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) (*ec2.DescribeStoreImageTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) *ec2.DescribeStoreImageTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeStoreImageTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSubnets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSubnets(_a0 *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) *ec2.DescribeSubnetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSubnetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSubnetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeSubnetsPages(_a0 *ec2.DescribeSubnetsInput, _a1 func(*ec2.DescribeSubnetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSubnetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeSubnetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 func(*ec2.DescribeSubnetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSubnetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeSubnetsRequest(_a0 *ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeSubnetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeSubnetsInput) *ec2.DescribeSubnetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeSubnetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSubnetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeSubnetsWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 ...request.Option) (*ec2.DescribeSubnetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.Option) (*ec2.DescribeSubnetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.Option) *ec2.DescribeSubnetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTags provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTags(_a0 *ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) *ec2.DescribeTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTagsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTagsPages(_a0 *ec2.DescribeTagsInput, _a1 func(*ec2.DescribeTagsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTagsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTagsInput, _a2 func(*ec2.DescribeTagsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTagsRequest(_a0 *ec2.DescribeTagsInput) (*request.Request, *ec2.DescribeTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTagsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) (*request.Request, *ec2.DescribeTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTagsInput) *ec2.DescribeTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTagsWithContext(_a0 context.Context, _a1 *ec2.DescribeTagsInput, _a2 ...request.Option) (*ec2.DescribeTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, ...request.Option) (*ec2.DescribeTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, ...request.Option) *ec2.DescribeTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorFilters provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorFilters(_a0 *ec2.DescribeTrafficMirrorFiltersInput) (*ec2.DescribeTrafficMirrorFiltersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTrafficMirrorFiltersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) (*ec2.DescribeTrafficMirrorFiltersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) *ec2.DescribeTrafficMirrorFiltersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorFiltersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorFiltersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorFiltersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTrafficMirrorFiltersPages(_a0 *ec2.DescribeTrafficMirrorFiltersInput, _a1 func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput, func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorFiltersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTrafficMirrorFiltersPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorFiltersInput, _a2 func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorFiltersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorFiltersRequest(_a0 *ec2.DescribeTrafficMirrorFiltersInput) (*request.Request, *ec2.DescribeTrafficMirrorFiltersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTrafficMirrorFiltersOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) (*request.Request, *ec2.DescribeTrafficMirrorFiltersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorFiltersInput) *ec2.DescribeTrafficMirrorFiltersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorFiltersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorFiltersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTrafficMirrorFiltersWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorFiltersInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorFiltersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTrafficMirrorFiltersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...request.Option) (*ec2.DescribeTrafficMirrorFiltersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...request.Option) *ec2.DescribeTrafficMirrorFiltersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorFiltersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorSessions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorSessions(_a0 *ec2.DescribeTrafficMirrorSessionsInput) (*ec2.DescribeTrafficMirrorSessionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTrafficMirrorSessionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) (*ec2.DescribeTrafficMirrorSessionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) *ec2.DescribeTrafficMirrorSessionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorSessionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorSessionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorSessionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTrafficMirrorSessionsPages(_a0 *ec2.DescribeTrafficMirrorSessionsInput, _a1 func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput, func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorSessionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTrafficMirrorSessionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorSessionsInput, _a2 func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorSessionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorSessionsRequest(_a0 *ec2.DescribeTrafficMirrorSessionsInput) (*request.Request, *ec2.DescribeTrafficMirrorSessionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTrafficMirrorSessionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) (*request.Request, *ec2.DescribeTrafficMirrorSessionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorSessionsInput) *ec2.DescribeTrafficMirrorSessionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorSessionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorSessionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTrafficMirrorSessionsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorSessionsInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorSessionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTrafficMirrorSessionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...request.Option) (*ec2.DescribeTrafficMirrorSessionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...request.Option) *ec2.DescribeTrafficMirrorSessionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorSessionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorTargets provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorTargets(_a0 *ec2.DescribeTrafficMirrorTargetsInput) (*ec2.DescribeTrafficMirrorTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTrafficMirrorTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) (*ec2.DescribeTrafficMirrorTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) *ec2.DescribeTrafficMirrorTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorTargetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTrafficMirrorTargetsPages(_a0 *ec2.DescribeTrafficMirrorTargetsInput, _a1 func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput, func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorTargetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTrafficMirrorTargetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorTargetsInput, _a2 func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrafficMirrorTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrafficMirrorTargetsRequest(_a0 *ec2.DescribeTrafficMirrorTargetsInput) (*request.Request, *ec2.DescribeTrafficMirrorTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTrafficMirrorTargetsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) (*request.Request, *ec2.DescribeTrafficMirrorTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorTargetsInput) *ec2.DescribeTrafficMirrorTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTrafficMirrorTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTrafficMirrorTargetsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorTargetsInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTrafficMirrorTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...request.Option) (*ec2.DescribeTrafficMirrorTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...request.Option) *ec2.DescribeTrafficMirrorTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayAttachments provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayAttachments(_a0 *ec2.DescribeTransitGatewayAttachmentsInput) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) (*ec2.DescribeTransitGatewayAttachmentsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *ec2.DescribeTransitGatewayAttachmentsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayAttachmentsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayAttachmentsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayAttachmentsPages(_a0 *ec2.DescribeTransitGatewayAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput, func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayAttachmentsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayAttachmentsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayAttachmentsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayAttachmentsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *ec2.DescribeTransitGatewayAttachmentsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayAttachmentsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) (*ec2.DescribeTransitGatewayAttachmentsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayAttachmentsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnectPeers provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectPeers(_a0 *ec2.DescribeTransitGatewayConnectPeersInput) (*ec2.DescribeTransitGatewayConnectPeersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayConnectPeersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) (*ec2.DescribeTransitGatewayConnectPeersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *ec2.DescribeTransitGatewayConnectPeersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectPeersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectPeersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnectPeersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectPeersPages(_a0 *ec2.DescribeTransitGatewayConnectPeersInput, _a1 func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput, func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayConnectPeersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectPeersPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectPeersInput, _a2 func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayConnectPeersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectPeersRequest(_a0 *ec2.DescribeTransitGatewayConnectPeersInput) (*request.Request, *ec2.DescribeTransitGatewayConnectPeersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayConnectPeersOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) (*request.Request, *ec2.DescribeTransitGatewayConnectPeersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *ec2.DescribeTransitGatewayConnectPeersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayConnectPeersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnectPeersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectPeersWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectPeersInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayConnectPeersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayConnectPeersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...request.Option) (*ec2.DescribeTransitGatewayConnectPeersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...request.Option) *ec2.DescribeTransitGatewayConnectPeersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectPeersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnects provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayConnects(_a0 *ec2.DescribeTransitGatewayConnectsInput) (*ec2.DescribeTransitGatewayConnectsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayConnectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) (*ec2.DescribeTransitGatewayConnectsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) *ec2.DescribeTransitGatewayConnectsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnectsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectsPages(_a0 *ec2.DescribeTransitGatewayConnectsInput, _a1 func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput, func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayConnectsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectsInput, _a2 func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayConnectsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectsRequest(_a0 *ec2.DescribeTransitGatewayConnectsInput) (*request.Request, *ec2.DescribeTransitGatewayConnectsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayConnectsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) (*request.Request, *ec2.DescribeTransitGatewayConnectsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectsInput) *ec2.DescribeTransitGatewayConnectsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayConnectsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayConnectsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayConnectsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayConnectsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayConnectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...request.Option) (*ec2.DescribeTransitGatewayConnectsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...request.Option) *ec2.DescribeTransitGatewayConnectsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayMulticastDomains provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayMulticastDomains(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayMulticastDomainsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayMulticastDomainsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayMulticastDomainsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayMulticastDomainsPages(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a1 func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput, func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayMulticastDomainsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayMulticastDomainsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a2 func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayMulticastDomainsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayMulticastDomainsRequest(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput) (*request.Request, *ec2.DescribeTransitGatewayMulticastDomainsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayMulticastDomainsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) (*request.Request, *ec2.DescribeTransitGatewayMulticastDomainsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayMulticastDomainsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayMulticastDomainsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayMulticastDomainsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayMulticastDomainsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...request.Option) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...request.Option) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayMulticastDomainsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPeeringAttachments provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayPeeringAttachments(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPeeringAttachmentsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayPeeringAttachmentsPages(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput, func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayPeeringAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayPeeringAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayPeeringAttachmentsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayPeeringAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayPeeringAttachmentsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayPeeringAttachmentsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPeeringAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayPeeringAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...request.Option) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPolicyTables provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayPolicyTables(_a0 *ec2.DescribeTransitGatewayPolicyTablesInput) (*ec2.DescribeTransitGatewayPolicyTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayPolicyTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) (*ec2.DescribeTransitGatewayPolicyTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) *ec2.DescribeTransitGatewayPolicyTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPolicyTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPolicyTablesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayPolicyTablesPages(_a0 *ec2.DescribeTransitGatewayPolicyTablesInput, _a1 func(*ec2.DescribeTransitGatewayPolicyTablesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPolicyTablesInput, func(*ec2.DescribeTransitGatewayPolicyTablesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayPolicyTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayPolicyTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPolicyTablesInput, _a2 func(*ec2.DescribeTransitGatewayPolicyTablesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPolicyTablesInput, func(*ec2.DescribeTransitGatewayPolicyTablesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayPolicyTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayPolicyTablesRequest(_a0 *ec2.DescribeTransitGatewayPolicyTablesInput) (*request.Request, *ec2.DescribeTransitGatewayPolicyTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayPolicyTablesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) (*request.Request, *ec2.DescribeTransitGatewayPolicyTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPolicyTablesInput) *ec2.DescribeTransitGatewayPolicyTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayPolicyTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayPolicyTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayPolicyTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPolicyTablesInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayPolicyTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayPolicyTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPolicyTablesInput, ...request.Option) (*ec2.DescribeTransitGatewayPolicyTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPolicyTablesInput, ...request.Option) *ec2.DescribeTransitGatewayPolicyTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPolicyTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayPolicyTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTableAnnouncements provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTableAnnouncements(_a0 *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) (*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) (*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTableAnnouncementsPages(_a0 *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, _a1 func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTableAnnouncementsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, _a2 func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTableAnnouncementsRequest(_a0 *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTableAnnouncementsInput) *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTableAnnouncementsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, ...request.Option) (*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, ...request.Option) *ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTableAnnouncementsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayRouteTableAnnouncementsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTables provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTables(_a0 *ec2.DescribeTransitGatewayRouteTablesInput) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) (*ec2.DescribeTransitGatewayRouteTablesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *ec2.DescribeTransitGatewayRouteTablesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTablesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTablesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTablesPages(_a0 *ec2.DescribeTransitGatewayRouteTablesInput, _a1 func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput, func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTablesInput, _a2 func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayRouteTablesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTablesRequest(_a0 *ec2.DescribeTransitGatewayRouteTablesInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTablesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayRouteTablesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTablesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *ec2.DescribeTransitGatewayRouteTablesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayRouteTablesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayRouteTablesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) (*ec2.DescribeTransitGatewayRouteTablesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) *ec2.DescribeTransitGatewayRouteTablesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTablesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayVpcAttachments provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayVpcAttachments(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewayVpcAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayVpcAttachmentsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewayVpcAttachmentsPages(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput, func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayVpcAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewayVpcAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewayVpcAttachmentsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewayVpcAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayVpcAttachmentsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewayVpcAttachmentsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayVpcAttachmentsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewayVpcAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewayVpcAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewayVpcAttachmentsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGateways(_a0 *ec2.DescribeTransitGatewaysInput) (*ec2.DescribeTransitGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTransitGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) (*ec2.DescribeTransitGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) *ec2.DescribeTransitGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewaysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTransitGatewaysPages(_a0 *ec2.DescribeTransitGatewaysInput, _a1 func(*ec2.DescribeTransitGatewaysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput, func(*ec2.DescribeTransitGatewaysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTransitGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewaysInput, _a2 func(*ec2.DescribeTransitGatewaysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, func(*ec2.DescribeTransitGatewaysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTransitGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTransitGatewaysRequest(_a0 *ec2.DescribeTransitGatewaysInput) (*request.Request, *ec2.DescribeTransitGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTransitGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) (*request.Request, *ec2.DescribeTransitGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewaysInput) *ec2.DescribeTransitGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTransitGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTransitGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTransitGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewaysInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTransitGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) (*ec2.DescribeTransitGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) *ec2.DescribeTransitGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTransitGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrunkInterfaceAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrunkInterfaceAssociations(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeTrunkInterfaceAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrunkInterfaceAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTrunkInterfaceAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeTrunkInterfaceAssociationsPages(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput, _a1 func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrunkInterfaceAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeTrunkInterfaceAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrunkInterfaceAssociationsInput, _a2 func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTrunkInterfaceAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeTrunkInterfaceAssociationsRequest(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput) (*request.Request, *ec2.DescribeTrunkInterfaceAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeTrunkInterfaceAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) (*request.Request, *ec2.DescribeTrunkInterfaceAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeTrunkInterfaceAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTrunkInterfaceAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeTrunkInterfaceAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrunkInterfaceAssociationsInput, _a2 ...request.Option) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeTrunkInterfaceAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeTrunkInterfaceAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumeAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumeAttribute(_a0 *ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVolumeAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) *ec2.DescribeVolumeAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumeAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumeAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumeAttributeRequest(_a0 *ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVolumeAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeAttributeInput) *ec2.DescribeVolumeAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVolumeAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVolumeAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVolumeAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeAttributeInput, _a2 ...request.Option) (*ec2.DescribeVolumeAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVolumeAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) (*ec2.DescribeVolumeAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) *ec2.DescribeVolumeAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumeAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumeStatus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumeStatus(_a0 *ec2.DescribeVolumeStatusInput) (*ec2.DescribeVolumeStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVolumeStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) (*ec2.DescribeVolumeStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) *ec2.DescribeVolumeStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumeStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumeStatusPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVolumeStatusPages(_a0 *ec2.DescribeVolumeStatusInput, _a1 func(*ec2.DescribeVolumeStatusOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput, func(*ec2.DescribeVolumeStatusOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumeStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVolumeStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeStatusInput, _a2 func(*ec2.DescribeVolumeStatusOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, func(*ec2.DescribeVolumeStatusOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumeStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumeStatusRequest(_a0 *ec2.DescribeVolumeStatusInput) (*request.Request, *ec2.DescribeVolumeStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVolumeStatusOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) (*request.Request, *ec2.DescribeVolumeStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeStatusInput) *ec2.DescribeVolumeStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVolumeStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVolumeStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVolumeStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeStatusInput, _a2 ...request.Option) (*ec2.DescribeVolumeStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVolumeStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...request.Option) (*ec2.DescribeVolumeStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...request.Option) *ec2.DescribeVolumeStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumeStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumes(_a0 *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVolumesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) *ec2.DescribeVolumesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumesModifications provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumesModifications(_a0 *ec2.DescribeVolumesModificationsInput) (*ec2.DescribeVolumesModificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVolumesModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) (*ec2.DescribeVolumesModificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) *ec2.DescribeVolumesModificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumesModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesModificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumesModificationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVolumesModificationsPages(_a0 *ec2.DescribeVolumesModificationsInput, _a1 func(*ec2.DescribeVolumesModificationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput, func(*ec2.DescribeVolumesModificationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumesModificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVolumesModificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesModificationsInput, _a2 func(*ec2.DescribeVolumesModificationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, func(*ec2.DescribeVolumesModificationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumesModificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumesModificationsRequest(_a0 *ec2.DescribeVolumesModificationsInput) (*request.Request, *ec2.DescribeVolumesModificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVolumesModificationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) (*request.Request, *ec2.DescribeVolumesModificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesModificationsInput) *ec2.DescribeVolumesModificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVolumesModificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVolumesModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVolumesModificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesModificationsInput, _a2 ...request.Option) (*ec2.DescribeVolumesModificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVolumesModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...request.Option) (*ec2.DescribeVolumesModificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...request.Option) *ec2.DescribeVolumesModificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumesModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVolumesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVolumesPages(_a0 *ec2.DescribeVolumesInput, _a1 func(*ec2.DescribeVolumesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput, func(*ec2.DescribeVolumesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVolumesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 func(*ec2.DescribeVolumesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, func(*ec2.DescribeVolumesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVolumesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVolumesRequest(_a0 *ec2.DescribeVolumesInput) (*request.Request, *ec2.DescribeVolumesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVolumesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) (*request.Request, *ec2.DescribeVolumesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesInput) *ec2.DescribeVolumesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVolumesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVolumesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVolumesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.Option) (*ec2.DescribeVolumesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVolumesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.Option) (*ec2.DescribeVolumesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.Option) *ec2.DescribeVolumesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVolumesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcAttribute(_a0 *ec2.DescribeVpcAttributeInput) (*ec2.DescribeVpcAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) (*ec2.DescribeVpcAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) *ec2.DescribeVpcAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcAttributeRequest(_a0 *ec2.DescribeVpcAttributeInput) (*request.Request, *ec2.DescribeVpcAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) (*request.Request, *ec2.DescribeVpcAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcAttributeInput) *ec2.DescribeVpcAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcAttributeInput, _a2 ...request.Option) (*ec2.DescribeVpcAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...request.Option) (*ec2.DescribeVpcAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...request.Option) *ec2.DescribeVpcAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLink provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcClassicLink(_a0 *ec2.DescribeVpcClassicLinkInput) (*ec2.DescribeVpcClassicLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) (*ec2.DescribeVpcClassicLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) *ec2.DescribeVpcClassicLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLinkDnsSupport provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcClassicLinkDnsSupport(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLinkDnsSupportPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcClassicLinkDnsSupportPages(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a1 func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput, func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcClassicLinkDnsSupportPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcClassicLinkDnsSupportPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a2 func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcClassicLinkDnsSupportRequest(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DescribeVpcClassicLinkDnsSupportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcClassicLinkDnsSupportOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DescribeVpcClassicLinkDnsSupportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcClassicLinkDnsSupportOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...request.Option) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcClassicLinkRequest(_a0 *ec2.DescribeVpcClassicLinkInput) (*request.Request, *ec2.DescribeVpcClassicLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcClassicLinkOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) (*request.Request, *ec2.DescribeVpcClassicLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkInput) *ec2.DescribeVpcClassicLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcClassicLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkInput, _a2 ...request.Option) (*ec2.DescribeVpcClassicLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...request.Option) (*ec2.DescribeVpcClassicLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...request.Option) *ec2.DescribeVpcClassicLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnectionNotifications provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionNotifications(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointConnectionNotificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnectionNotificationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionNotificationsPages(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a1 func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput, func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointConnectionNotificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionNotificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a2 func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointConnectionNotificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionNotificationsRequest(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionNotificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointConnectionNotificationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionNotificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnectionNotificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionNotificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointConnectionNotificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...request.Option) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...request.Option) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointConnections(_a0 *ec2.DescribeVpcEndpointConnectionsInput) (*ec2.DescribeVpcEndpointConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) (*ec2.DescribeVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) *ec2.DescribeVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnectionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionsPages(_a0 *ec2.DescribeVpcEndpointConnectionsInput, _a1 func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput, func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionsInput, _a2 func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionsRequest(_a0 *ec2.DescribeVpcEndpointConnectionsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionsInput) *ec2.DescribeVpcEndpointConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...request.Option) (*ec2.DescribeVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...request.Option) *ec2.DescribeVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServiceConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServiceConfigurations(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointServiceConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServiceConfigurationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcEndpointServiceConfigurationsPages(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a1 func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput, func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointServiceConfigurationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcEndpointServiceConfigurationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a2 func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointServiceConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServiceConfigurationsRequest(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DescribeVpcEndpointServiceConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointServiceConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DescribeVpcEndpointServiceConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServiceConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointServiceConfigurationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointServiceConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...request.Option) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...request.Option) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServicePermissions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServicePermissions(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointServicePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServicePermissionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcEndpointServicePermissionsPages(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput, _a1 func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput, func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointServicePermissionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcEndpointServicePermissionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicePermissionsInput, _a2 func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointServicePermissionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServicePermissionsRequest(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput) (*request.Request, *ec2.DescribeVpcEndpointServicePermissionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointServicePermissionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) (*request.Request, *ec2.DescribeVpcEndpointServicePermissionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServicePermissionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServicePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointServicePermissionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicePermissionsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointServicePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...request.Option) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...request.Option) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServices provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServices(_a0 *ec2.DescribeVpcEndpointServicesInput) (*ec2.DescribeVpcEndpointServicesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointServicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) (*ec2.DescribeVpcEndpointServicesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) *ec2.DescribeVpcEndpointServicesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServicesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointServicesRequest(_a0 *ec2.DescribeVpcEndpointServicesInput) (*request.Request, *ec2.DescribeVpcEndpointServicesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointServicesOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) (*request.Request, *ec2.DescribeVpcEndpointServicesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicesInput) *ec2.DescribeVpcEndpointServicesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServicesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointServicesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointServicesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicesInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServicesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointServicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...request.Option) (*ec2.DescribeVpcEndpointServicesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...request.Option) *ec2.DescribeVpcEndpointServicesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpoints(_a0 *ec2.DescribeVpcEndpointsInput) (*ec2.DescribeVpcEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) (*ec2.DescribeVpcEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) *ec2.DescribeVpcEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcEndpointsPages(_a0 *ec2.DescribeVpcEndpointsInput, _a1 func(*ec2.DescribeVpcEndpointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput, func(*ec2.DescribeVpcEndpointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcEndpointsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointsInput, _a2 func(*ec2.DescribeVpcEndpointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, func(*ec2.DescribeVpcEndpointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcEndpointsRequest(_a0 *ec2.DescribeVpcEndpointsInput) (*request.Request, *ec2.DescribeVpcEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcEndpointsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) (*request.Request, *ec2.DescribeVpcEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointsInput) *ec2.DescribeVpcEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcEndpointsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) (*ec2.DescribeVpcEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) *ec2.DescribeVpcEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcPeeringConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcPeeringConnections(_a0 *ec2.DescribeVpcPeeringConnectionsInput) (*ec2.DescribeVpcPeeringConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcPeeringConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) (*ec2.DescribeVpcPeeringConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) *ec2.DescribeVpcPeeringConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcPeeringConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcPeeringConnectionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcPeeringConnectionsPages(_a0 *ec2.DescribeVpcPeeringConnectionsInput, _a1 func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput, func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcPeeringConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcPeeringConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcPeeringConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcPeeringConnectionsRequest(_a0 *ec2.DescribeVpcPeeringConnectionsInput) (*request.Request, *ec2.DescribeVpcPeeringConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcPeeringConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) (*request.Request, *ec2.DescribeVpcPeeringConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcPeeringConnectionsInput) *ec2.DescribeVpcPeeringConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcPeeringConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcPeeringConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcPeeringConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpcPeeringConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcPeeringConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.Option) (*ec2.DescribeVpcPeeringConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.Option) *ec2.DescribeVpcPeeringConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcPeeringConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcs(_a0 *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpcsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) *ec2.DescribeVpcsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpcsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) DescribeVpcsPages(_a0 *ec2.DescribeVpcsInput, _a1 func(*ec2.DescribeVpcsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput, func(*ec2.DescribeVpcsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) DescribeVpcsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 func(*ec2.DescribeVpcsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, func(*ec2.DescribeVpcsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeVpcsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpcsRequest(_a0 *ec2.DescribeVpcsInput) (*request.Request, *ec2.DescribeVpcsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpcsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) (*request.Request, *ec2.DescribeVpcsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcsInput) *ec2.DescribeVpcsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpcsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpcsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpcsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.Option) (*ec2.DescribeVpcsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpcsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.Option) (*ec2.DescribeVpcsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.Option) *ec2.DescribeVpcsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpcsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpnConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpnConnections(_a0 *ec2.DescribeVpnConnectionsInput) (*ec2.DescribeVpnConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) (*ec2.DescribeVpnConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) *ec2.DescribeVpnConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpnConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpnConnectionsRequest(_a0 *ec2.DescribeVpnConnectionsInput) (*request.Request, *ec2.DescribeVpnConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpnConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) (*request.Request, *ec2.DescribeVpnConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnConnectionsInput) *ec2.DescribeVpnConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpnConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpnConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.Option) (*ec2.DescribeVpnConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.Option) *ec2.DescribeVpnConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpnGateways provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpnGateways(_a0 *ec2.DescribeVpnGatewaysInput) (*ec2.DescribeVpnGatewaysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DescribeVpnGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) (*ec2.DescribeVpnGatewaysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) *ec2.DescribeVpnGatewaysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpnGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnGatewaysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeVpnGatewaysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DescribeVpnGatewaysRequest(_a0 *ec2.DescribeVpnGatewaysInput) (*request.Request, *ec2.DescribeVpnGatewaysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DescribeVpnGatewaysOutput
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) (*request.Request, *ec2.DescribeVpnGatewaysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnGatewaysInput) *ec2.DescribeVpnGatewaysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DescribeVpnGatewaysOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeVpnGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DescribeVpnGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnGatewaysInput, _a2 ...request.Option) (*ec2.DescribeVpnGatewaysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DescribeVpnGatewaysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...request.Option) (*ec2.DescribeVpnGatewaysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...request.Option) *ec2.DescribeVpnGatewaysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DescribeVpnGatewaysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachClassicLinkVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachClassicLinkVpc(_a0 *ec2.DetachClassicLinkVpcInput) (*ec2.DetachClassicLinkVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DetachClassicLinkVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) (*ec2.DetachClassicLinkVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) *ec2.DetachClassicLinkVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachClassicLinkVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachClassicLinkVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachClassicLinkVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachClassicLinkVpcRequest(_a0 *ec2.DetachClassicLinkVpcInput) (*request.Request, *ec2.DetachClassicLinkVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DetachClassicLinkVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) (*request.Request, *ec2.DetachClassicLinkVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachClassicLinkVpcInput) *ec2.DetachClassicLinkVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DetachClassicLinkVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachClassicLinkVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DetachClassicLinkVpcWithContext(_a0 context.Context, _a1 *ec2.DetachClassicLinkVpcInput, _a2 ...request.Option) (*ec2.DetachClassicLinkVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DetachClassicLinkVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...request.Option) (*ec2.DetachClassicLinkVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...request.Option) *ec2.DetachClassicLinkVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachClassicLinkVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachInternetGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachInternetGateway(_a0 *ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DetachInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) *ec2.DetachInternetGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachInternetGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachInternetGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachInternetGatewayRequest(_a0 *ec2.DetachInternetGatewayInput) (*request.Request, *ec2.DetachInternetGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DetachInternetGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) (*request.Request, *ec2.DetachInternetGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachInternetGatewayInput) *ec2.DetachInternetGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DetachInternetGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DetachInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DetachInternetGatewayInput, _a2 ...request.Option) (*ec2.DetachInternetGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DetachInternetGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachInternetGatewayInput, ...request.Option) (*ec2.DetachInternetGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachInternetGatewayInput, ...request.Option) *ec2.DetachInternetGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachInternetGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachInternetGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachNetworkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachNetworkInterface(_a0 *ec2.DetachNetworkInterfaceInput) (*ec2.DetachNetworkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DetachNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) (*ec2.DetachNetworkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) *ec2.DetachNetworkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachNetworkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachNetworkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachNetworkInterfaceRequest(_a0 *ec2.DetachNetworkInterfaceInput) (*request.Request, *ec2.DetachNetworkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DetachNetworkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) (*request.Request, *ec2.DetachNetworkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachNetworkInterfaceInput) *ec2.DetachNetworkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DetachNetworkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DetachNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DetachNetworkInterfaceInput, _a2 ...request.Option) (*ec2.DetachNetworkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DetachNetworkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...request.Option) (*ec2.DetachNetworkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...request.Option) *ec2.DetachNetworkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachNetworkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachVolume(_a0 *ec2.DetachVolumeInput) (*ec2.VolumeAttachment, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.VolumeAttachment
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) (*ec2.VolumeAttachment, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) *ec2.VolumeAttachment); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.VolumeAttachment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachVolumeRequest(_a0 *ec2.DetachVolumeInput) (*request.Request, *ec2.VolumeAttachment) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.VolumeAttachment
- if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) (*request.Request, *ec2.VolumeAttachment)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachVolumeInput) *ec2.VolumeAttachment); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.VolumeAttachment)
- }
- }
-
- return r0, r1
-}
-
-// DetachVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DetachVolumeWithContext(_a0 context.Context, _a1 *ec2.DetachVolumeInput, _a2 ...request.Option) (*ec2.VolumeAttachment, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.VolumeAttachment
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVolumeInput, ...request.Option) (*ec2.VolumeAttachment, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVolumeInput, ...request.Option) *ec2.VolumeAttachment); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.VolumeAttachment)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachVpnGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachVpnGateway(_a0 *ec2.DetachVpnGatewayInput) (*ec2.DetachVpnGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DetachVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) (*ec2.DetachVpnGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) *ec2.DetachVpnGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachVpnGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachVpnGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DetachVpnGatewayRequest(_a0 *ec2.DetachVpnGatewayInput) (*request.Request, *ec2.DetachVpnGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DetachVpnGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) (*request.Request, *ec2.DetachVpnGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DetachVpnGatewayInput) *ec2.DetachVpnGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DetachVpnGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DetachVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.DetachVpnGatewayInput, _a2 ...request.Option) (*ec2.DetachVpnGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DetachVpnGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVpnGatewayInput, ...request.Option) (*ec2.DetachVpnGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVpnGatewayInput, ...request.Option) *ec2.DetachVpnGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DetachVpnGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVpnGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableEbsEncryptionByDefault provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableEbsEncryptionByDefault(_a0 *ec2.DisableEbsEncryptionByDefaultInput) (*ec2.DisableEbsEncryptionByDefaultOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) (*ec2.DisableEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) *ec2.DisableEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableEbsEncryptionByDefaultInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableEbsEncryptionByDefaultRequest(_a0 *ec2.DisableEbsEncryptionByDefaultInput) (*request.Request, *ec2.DisableEbsEncryptionByDefaultOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableEbsEncryptionByDefaultOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) (*request.Request, *ec2.DisableEbsEncryptionByDefaultOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableEbsEncryptionByDefaultInput) *ec2.DisableEbsEncryptionByDefaultOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableEbsEncryptionByDefaultOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.DisableEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.DisableEbsEncryptionByDefaultOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...request.Option) (*ec2.DisableEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...request.Option) *ec2.DisableEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableFastLaunch provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableFastLaunch(_a0 *ec2.DisableFastLaunchInput) (*ec2.DisableFastLaunchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableFastLaunchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) (*ec2.DisableFastLaunchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) *ec2.DisableFastLaunchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableFastLaunchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableFastLaunchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableFastLaunchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableFastLaunchRequest(_a0 *ec2.DisableFastLaunchInput) (*request.Request, *ec2.DisableFastLaunchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableFastLaunchOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) (*request.Request, *ec2.DisableFastLaunchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableFastLaunchInput) *ec2.DisableFastLaunchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableFastLaunchOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableFastLaunchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableFastLaunchWithContext(_a0 context.Context, _a1 *ec2.DisableFastLaunchInput, _a2 ...request.Option) (*ec2.DisableFastLaunchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableFastLaunchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastLaunchInput, ...request.Option) (*ec2.DisableFastLaunchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastLaunchInput, ...request.Option) *ec2.DisableFastLaunchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableFastLaunchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastLaunchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableFastSnapshotRestores provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableFastSnapshotRestores(_a0 *ec2.DisableFastSnapshotRestoresInput) (*ec2.DisableFastSnapshotRestoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) (*ec2.DisableFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) *ec2.DisableFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableFastSnapshotRestoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableFastSnapshotRestoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableFastSnapshotRestoresRequest(_a0 *ec2.DisableFastSnapshotRestoresInput) (*request.Request, *ec2.DisableFastSnapshotRestoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableFastSnapshotRestoresOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) (*request.Request, *ec2.DisableFastSnapshotRestoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableFastSnapshotRestoresInput) *ec2.DisableFastSnapshotRestoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableFastSnapshotRestoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.DisableFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.DisableFastSnapshotRestoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...request.Option) (*ec2.DisableFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...request.Option) *ec2.DisableFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableImageDeprecation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableImageDeprecation(_a0 *ec2.DisableImageDeprecationInput) (*ec2.DisableImageDeprecationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableImageDeprecationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) (*ec2.DisableImageDeprecationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) *ec2.DisableImageDeprecationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableImageDeprecationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableImageDeprecationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableImageDeprecationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableImageDeprecationRequest(_a0 *ec2.DisableImageDeprecationInput) (*request.Request, *ec2.DisableImageDeprecationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableImageDeprecationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) (*request.Request, *ec2.DisableImageDeprecationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableImageDeprecationInput) *ec2.DisableImageDeprecationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableImageDeprecationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableImageDeprecationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableImageDeprecationWithContext(_a0 context.Context, _a1 *ec2.DisableImageDeprecationInput, _a2 ...request.Option) (*ec2.DisableImageDeprecationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableImageDeprecationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableImageDeprecationInput, ...request.Option) (*ec2.DisableImageDeprecationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableImageDeprecationInput, ...request.Option) *ec2.DisableImageDeprecationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableImageDeprecationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableImageDeprecationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableIpamOrganizationAdminAccount provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableIpamOrganizationAdminAccount(_a0 *ec2.DisableIpamOrganizationAdminAccountInput) (*ec2.DisableIpamOrganizationAdminAccountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableIpamOrganizationAdminAccountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) (*ec2.DisableIpamOrganizationAdminAccountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *ec2.DisableIpamOrganizationAdminAccountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableIpamOrganizationAdminAccountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableIpamOrganizationAdminAccountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableIpamOrganizationAdminAccountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableIpamOrganizationAdminAccountRequest(_a0 *ec2.DisableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.DisableIpamOrganizationAdminAccountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableIpamOrganizationAdminAccountOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.DisableIpamOrganizationAdminAccountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *ec2.DisableIpamOrganizationAdminAccountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableIpamOrganizationAdminAccountOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableIpamOrganizationAdminAccountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableIpamOrganizationAdminAccountWithContext(_a0 context.Context, _a1 *ec2.DisableIpamOrganizationAdminAccountInput, _a2 ...request.Option) (*ec2.DisableIpamOrganizationAdminAccountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableIpamOrganizationAdminAccountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...request.Option) (*ec2.DisableIpamOrganizationAdminAccountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...request.Option) *ec2.DisableIpamOrganizationAdminAccountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableIpamOrganizationAdminAccountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableSerialConsoleAccess provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableSerialConsoleAccess(_a0 *ec2.DisableSerialConsoleAccessInput) (*ec2.DisableSerialConsoleAccessOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableSerialConsoleAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) (*ec2.DisableSerialConsoleAccessOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) *ec2.DisableSerialConsoleAccessOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableSerialConsoleAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableSerialConsoleAccessInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableSerialConsoleAccessRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableSerialConsoleAccessRequest(_a0 *ec2.DisableSerialConsoleAccessInput) (*request.Request, *ec2.DisableSerialConsoleAccessOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableSerialConsoleAccessOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) (*request.Request, *ec2.DisableSerialConsoleAccessOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableSerialConsoleAccessInput) *ec2.DisableSerialConsoleAccessOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableSerialConsoleAccessOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableSerialConsoleAccessWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableSerialConsoleAccessWithContext(_a0 context.Context, _a1 *ec2.DisableSerialConsoleAccessInput, _a2 ...request.Option) (*ec2.DisableSerialConsoleAccessOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableSerialConsoleAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) (*ec2.DisableSerialConsoleAccessOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) *ec2.DisableSerialConsoleAccessOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableSerialConsoleAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableTransitGatewayRouteTablePropagation(_a0 *ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableTransitGatewayRouteTablePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableTransitGatewayRouteTablePropagationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableTransitGatewayRouteTablePropagationRequest(_a0 *ec2.DisableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.DisableTransitGatewayRouteTablePropagationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableTransitGatewayRouteTablePropagationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.DisableTransitGatewayRouteTablePropagationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableTransitGatewayRouteTablePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableTransitGatewayRouteTablePropagationWithContext(_a0 context.Context, _a1 *ec2.DisableTransitGatewayRouteTablePropagationInput, _a2 ...request.Option) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableTransitGatewayRouteTablePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVgwRoutePropagation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVgwRoutePropagation(_a0 *ec2.DisableVgwRoutePropagationInput) (*ec2.DisableVgwRoutePropagationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableVgwRoutePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) (*ec2.DisableVgwRoutePropagationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) *ec2.DisableVgwRoutePropagationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVgwRoutePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVgwRoutePropagationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVgwRoutePropagationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVgwRoutePropagationRequest(_a0 *ec2.DisableVgwRoutePropagationInput) (*request.Request, *ec2.DisableVgwRoutePropagationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableVgwRoutePropagationOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) (*request.Request, *ec2.DisableVgwRoutePropagationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVgwRoutePropagationInput) *ec2.DisableVgwRoutePropagationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableVgwRoutePropagationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableVgwRoutePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableVgwRoutePropagationWithContext(_a0 context.Context, _a1 *ec2.DisableVgwRoutePropagationInput, _a2 ...request.Option) (*ec2.DisableVgwRoutePropagationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableVgwRoutePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) (*ec2.DisableVgwRoutePropagationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) *ec2.DisableVgwRoutePropagationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVgwRoutePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLink provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVpcClassicLink(_a0 *ec2.DisableVpcClassicLinkInput) (*ec2.DisableVpcClassicLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) (*ec2.DisableVpcClassicLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) *ec2.DisableVpcClassicLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLinkDnsSupport provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVpcClassicLinkDnsSupport(_a0 *ec2.DisableVpcClassicLinkDnsSupportInput) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisableVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVpcClassicLinkDnsSupportRequest(_a0 *ec2.DisableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DisableVpcClassicLinkDnsSupportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableVpcClassicLinkDnsSupportOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DisableVpcClassicLinkDnsSupportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.DisableVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...request.Option) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisableVpcClassicLinkRequest(_a0 *ec2.DisableVpcClassicLinkInput) (*request.Request, *ec2.DisableVpcClassicLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisableVpcClassicLinkOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) (*request.Request, *ec2.DisableVpcClassicLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkInput) *ec2.DisableVpcClassicLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisableVpcClassicLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisableVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.DisableVpcClassicLinkInput, _a2 ...request.Option) (*ec2.DisableVpcClassicLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisableVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...request.Option) (*ec2.DisableVpcClassicLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...request.Option) *ec2.DisableVpcClassicLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateAddress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateAddress(_a0 *ec2.DisassociateAddressInput) (*ec2.DisassociateAddressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) (*ec2.DisassociateAddressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) *ec2.DisassociateAddressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateAddressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateAddressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateAddressRequest(_a0 *ec2.DisassociateAddressInput) (*request.Request, *ec2.DisassociateAddressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateAddressOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) (*request.Request, *ec2.DisassociateAddressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateAddressInput) *ec2.DisassociateAddressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateAddressOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateAddressWithContext(_a0 context.Context, _a1 *ec2.DisassociateAddressInput, _a2 ...request.Option) (*ec2.DisassociateAddressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateAddressInput, ...request.Option) (*ec2.DisassociateAddressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateAddressInput, ...request.Option) *ec2.DisassociateAddressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateAddressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateClientVpnTargetNetwork provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateClientVpnTargetNetwork(_a0 *ec2.DisassociateClientVpnTargetNetworkInput) (*ec2.DisassociateClientVpnTargetNetworkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) (*ec2.DisassociateClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *ec2.DisassociateClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateClientVpnTargetNetworkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateClientVpnTargetNetworkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateClientVpnTargetNetworkRequest(_a0 *ec2.DisassociateClientVpnTargetNetworkInput) (*request.Request, *ec2.DisassociateClientVpnTargetNetworkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateClientVpnTargetNetworkOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) (*request.Request, *ec2.DisassociateClientVpnTargetNetworkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *ec2.DisassociateClientVpnTargetNetworkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateClientVpnTargetNetworkOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.DisassociateClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.DisassociateClientVpnTargetNetworkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateClientVpnTargetNetworkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...request.Option) (*ec2.DisassociateClientVpnTargetNetworkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...request.Option) *ec2.DisassociateClientVpnTargetNetworkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateClientVpnTargetNetworkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateEnclaveCertificateIamRole provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateEnclaveCertificateIamRole(_a0 *ec2.DisassociateEnclaveCertificateIamRoleInput) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateEnclaveCertificateIamRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateEnclaveCertificateIamRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateEnclaveCertificateIamRoleRequest(_a0 *ec2.DisassociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.DisassociateEnclaveCertificateIamRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateEnclaveCertificateIamRoleOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.DisassociateEnclaveCertificateIamRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateEnclaveCertificateIamRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateEnclaveCertificateIamRoleWithContext(_a0 context.Context, _a1 *ec2.DisassociateEnclaveCertificateIamRoleInput, _a2 ...request.Option) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateEnclaveCertificateIamRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...request.Option) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...request.Option) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateEnclaveCertificateIamRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateIamInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateIamInstanceProfile(_a0 *ec2.DisassociateIamInstanceProfileInput) (*ec2.DisassociateIamInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateIamInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) (*ec2.DisassociateIamInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) *ec2.DisassociateIamInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateIamInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateIamInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateIamInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateIamInstanceProfileRequest(_a0 *ec2.DisassociateIamInstanceProfileInput) (*request.Request, *ec2.DisassociateIamInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateIamInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) (*request.Request, *ec2.DisassociateIamInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateIamInstanceProfileInput) *ec2.DisassociateIamInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateIamInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateIamInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateIamInstanceProfileWithContext(_a0 context.Context, _a1 *ec2.DisassociateIamInstanceProfileInput, _a2 ...request.Option) (*ec2.DisassociateIamInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateIamInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...request.Option) (*ec2.DisassociateIamInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...request.Option) *ec2.DisassociateIamInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateIamInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateInstanceEventWindow provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateInstanceEventWindow(_a0 *ec2.DisassociateInstanceEventWindowInput) (*ec2.DisassociateInstanceEventWindowOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) (*ec2.DisassociateInstanceEventWindowOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) *ec2.DisassociateInstanceEventWindowOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateInstanceEventWindowInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateInstanceEventWindowRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateInstanceEventWindowRequest(_a0 *ec2.DisassociateInstanceEventWindowInput) (*request.Request, *ec2.DisassociateInstanceEventWindowOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateInstanceEventWindowOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) (*request.Request, *ec2.DisassociateInstanceEventWindowOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateInstanceEventWindowInput) *ec2.DisassociateInstanceEventWindowOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateInstanceEventWindowOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.DisassociateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.DisassociateInstanceEventWindowOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...request.Option) (*ec2.DisassociateInstanceEventWindowOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...request.Option) *ec2.DisassociateInstanceEventWindowOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateRouteTable(_a0 *ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) *ec2.DisassociateRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateRouteTableRequest(_a0 *ec2.DisassociateRouteTableInput) (*request.Request, *ec2.DisassociateRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) (*request.Request, *ec2.DisassociateRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateRouteTableInput) *ec2.DisassociateRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateRouteTableWithContext(_a0 context.Context, _a1 *ec2.DisassociateRouteTableInput, _a2 ...request.Option) (*ec2.DisassociateRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateRouteTableInput, ...request.Option) (*ec2.DisassociateRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateRouteTableInput, ...request.Option) *ec2.DisassociateRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateSubnetCidrBlock provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateSubnetCidrBlock(_a0 *ec2.DisassociateSubnetCidrBlockInput) (*ec2.DisassociateSubnetCidrBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateSubnetCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) (*ec2.DisassociateSubnetCidrBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) *ec2.DisassociateSubnetCidrBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateSubnetCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateSubnetCidrBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateSubnetCidrBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateSubnetCidrBlockRequest(_a0 *ec2.DisassociateSubnetCidrBlockInput) (*request.Request, *ec2.DisassociateSubnetCidrBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateSubnetCidrBlockOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) (*request.Request, *ec2.DisassociateSubnetCidrBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateSubnetCidrBlockInput) *ec2.DisassociateSubnetCidrBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateSubnetCidrBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateSubnetCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateSubnetCidrBlockWithContext(_a0 context.Context, _a1 *ec2.DisassociateSubnetCidrBlockInput, _a2 ...request.Option) (*ec2.DisassociateSubnetCidrBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateSubnetCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) (*ec2.DisassociateSubnetCidrBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) *ec2.DisassociateSubnetCidrBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateSubnetCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayMulticastDomain provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayMulticastDomain(_a0 *ec2.DisassociateTransitGatewayMulticastDomainInput) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayMulticastDomainRequest(_a0 *ec2.DisassociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DisassociateTransitGatewayMulticastDomainOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateTransitGatewayMulticastDomainOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DisassociateTransitGatewayMulticastDomainOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.DisassociateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateTransitGatewayMulticastDomainOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...request.Option) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayMulticastDomainOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayPolicyTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayPolicyTable(_a0 *ec2.DisassociateTransitGatewayPolicyTableInput) (*ec2.DisassociateTransitGatewayPolicyTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) (*ec2.DisassociateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) *ec2.DisassociateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayPolicyTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayPolicyTableRequest(_a0 *ec2.DisassociateTransitGatewayPolicyTableInput) (*request.Request, *ec2.DisassociateTransitGatewayPolicyTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateTransitGatewayPolicyTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) (*request.Request, *ec2.DisassociateTransitGatewayPolicyTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayPolicyTableInput) *ec2.DisassociateTransitGatewayPolicyTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateTransitGatewayPolicyTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayPolicyTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateTransitGatewayPolicyTableWithContext(_a0 context.Context, _a1 *ec2.DisassociateTransitGatewayPolicyTableInput, _a2 ...request.Option) (*ec2.DisassociateTransitGatewayPolicyTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateTransitGatewayPolicyTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayPolicyTableInput, ...request.Option) (*ec2.DisassociateTransitGatewayPolicyTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayPolicyTableInput, ...request.Option) *ec2.DisassociateTransitGatewayPolicyTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayPolicyTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayPolicyTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayRouteTable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayRouteTable(_a0 *ec2.DisassociateTransitGatewayRouteTableInput) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) (*ec2.DisassociateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *ec2.DisassociateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayRouteTableInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTransitGatewayRouteTableRequest(_a0 *ec2.DisassociateTransitGatewayRouteTableInput) (*request.Request, *ec2.DisassociateTransitGatewayRouteTableOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateTransitGatewayRouteTableOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) (*request.Request, *ec2.DisassociateTransitGatewayRouteTableOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *ec2.DisassociateTransitGatewayRouteTableOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateTransitGatewayRouteTableOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.DisassociateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateTransitGatewayRouteTableOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) (*ec2.DisassociateTransitGatewayRouteTableOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) *ec2.DisassociateTransitGatewayRouteTableOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayRouteTableOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTrunkInterface provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTrunkInterface(_a0 *ec2.DisassociateTrunkInterfaceInput) (*ec2.DisassociateTrunkInterfaceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateTrunkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) (*ec2.DisassociateTrunkInterfaceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) *ec2.DisassociateTrunkInterfaceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTrunkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTrunkInterfaceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateTrunkInterfaceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateTrunkInterfaceRequest(_a0 *ec2.DisassociateTrunkInterfaceInput) (*request.Request, *ec2.DisassociateTrunkInterfaceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateTrunkInterfaceOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) (*request.Request, *ec2.DisassociateTrunkInterfaceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateTrunkInterfaceInput) *ec2.DisassociateTrunkInterfaceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateTrunkInterfaceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateTrunkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateTrunkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DisassociateTrunkInterfaceInput, _a2 ...request.Option) (*ec2.DisassociateTrunkInterfaceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateTrunkInterfaceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...request.Option) (*ec2.DisassociateTrunkInterfaceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...request.Option) *ec2.DisassociateTrunkInterfaceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateTrunkInterfaceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateVpcCidrBlock provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateVpcCidrBlock(_a0 *ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.DisassociateVpcCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) *ec2.DisassociateVpcCidrBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateVpcCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateVpcCidrBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateVpcCidrBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) DisassociateVpcCidrBlockRequest(_a0 *ec2.DisassociateVpcCidrBlockInput) (*request.Request, *ec2.DisassociateVpcCidrBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.DisassociateVpcCidrBlockOutput
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) (*request.Request, *ec2.DisassociateVpcCidrBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.DisassociateVpcCidrBlockInput) *ec2.DisassociateVpcCidrBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.DisassociateVpcCidrBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateVpcCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) DisassociateVpcCidrBlockWithContext(_a0 context.Context, _a1 *ec2.DisassociateVpcCidrBlockInput, _a2 ...request.Option) (*ec2.DisassociateVpcCidrBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.DisassociateVpcCidrBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) (*ec2.DisassociateVpcCidrBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) *ec2.DisassociateVpcCidrBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.DisassociateVpcCidrBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableEbsEncryptionByDefault provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableEbsEncryptionByDefault(_a0 *ec2.EnableEbsEncryptionByDefaultInput) (*ec2.EnableEbsEncryptionByDefaultOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) (*ec2.EnableEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) *ec2.EnableEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableEbsEncryptionByDefaultInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableEbsEncryptionByDefaultRequest(_a0 *ec2.EnableEbsEncryptionByDefaultInput) (*request.Request, *ec2.EnableEbsEncryptionByDefaultOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableEbsEncryptionByDefaultOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) (*request.Request, *ec2.EnableEbsEncryptionByDefaultOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableEbsEncryptionByDefaultInput) *ec2.EnableEbsEncryptionByDefaultOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableEbsEncryptionByDefaultOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.EnableEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.EnableEbsEncryptionByDefaultOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...request.Option) (*ec2.EnableEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...request.Option) *ec2.EnableEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableFastLaunch provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableFastLaunch(_a0 *ec2.EnableFastLaunchInput) (*ec2.EnableFastLaunchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableFastLaunchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) (*ec2.EnableFastLaunchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) *ec2.EnableFastLaunchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableFastLaunchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableFastLaunchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableFastLaunchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableFastLaunchRequest(_a0 *ec2.EnableFastLaunchInput) (*request.Request, *ec2.EnableFastLaunchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableFastLaunchOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) (*request.Request, *ec2.EnableFastLaunchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableFastLaunchInput) *ec2.EnableFastLaunchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableFastLaunchOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableFastLaunchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableFastLaunchWithContext(_a0 context.Context, _a1 *ec2.EnableFastLaunchInput, _a2 ...request.Option) (*ec2.EnableFastLaunchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableFastLaunchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastLaunchInput, ...request.Option) (*ec2.EnableFastLaunchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastLaunchInput, ...request.Option) *ec2.EnableFastLaunchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableFastLaunchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastLaunchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableFastSnapshotRestores provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableFastSnapshotRestores(_a0 *ec2.EnableFastSnapshotRestoresInput) (*ec2.EnableFastSnapshotRestoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) (*ec2.EnableFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) *ec2.EnableFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableFastSnapshotRestoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableFastSnapshotRestoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableFastSnapshotRestoresRequest(_a0 *ec2.EnableFastSnapshotRestoresInput) (*request.Request, *ec2.EnableFastSnapshotRestoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableFastSnapshotRestoresOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) (*request.Request, *ec2.EnableFastSnapshotRestoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableFastSnapshotRestoresInput) *ec2.EnableFastSnapshotRestoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableFastSnapshotRestoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.EnableFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.EnableFastSnapshotRestoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableFastSnapshotRestoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...request.Option) (*ec2.EnableFastSnapshotRestoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...request.Option) *ec2.EnableFastSnapshotRestoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableFastSnapshotRestoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableImageDeprecation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableImageDeprecation(_a0 *ec2.EnableImageDeprecationInput) (*ec2.EnableImageDeprecationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableImageDeprecationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) (*ec2.EnableImageDeprecationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) *ec2.EnableImageDeprecationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableImageDeprecationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableImageDeprecationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableImageDeprecationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableImageDeprecationRequest(_a0 *ec2.EnableImageDeprecationInput) (*request.Request, *ec2.EnableImageDeprecationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableImageDeprecationOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) (*request.Request, *ec2.EnableImageDeprecationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableImageDeprecationInput) *ec2.EnableImageDeprecationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableImageDeprecationOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableImageDeprecationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableImageDeprecationWithContext(_a0 context.Context, _a1 *ec2.EnableImageDeprecationInput, _a2 ...request.Option) (*ec2.EnableImageDeprecationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableImageDeprecationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableImageDeprecationInput, ...request.Option) (*ec2.EnableImageDeprecationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableImageDeprecationInput, ...request.Option) *ec2.EnableImageDeprecationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableImageDeprecationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableImageDeprecationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableIpamOrganizationAdminAccount provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableIpamOrganizationAdminAccount(_a0 *ec2.EnableIpamOrganizationAdminAccountInput) (*ec2.EnableIpamOrganizationAdminAccountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableIpamOrganizationAdminAccountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) (*ec2.EnableIpamOrganizationAdminAccountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *ec2.EnableIpamOrganizationAdminAccountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableIpamOrganizationAdminAccountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableIpamOrganizationAdminAccountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableIpamOrganizationAdminAccountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableIpamOrganizationAdminAccountRequest(_a0 *ec2.EnableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.EnableIpamOrganizationAdminAccountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableIpamOrganizationAdminAccountOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.EnableIpamOrganizationAdminAccountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *ec2.EnableIpamOrganizationAdminAccountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableIpamOrganizationAdminAccountOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableIpamOrganizationAdminAccountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableIpamOrganizationAdminAccountWithContext(_a0 context.Context, _a1 *ec2.EnableIpamOrganizationAdminAccountInput, _a2 ...request.Option) (*ec2.EnableIpamOrganizationAdminAccountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableIpamOrganizationAdminAccountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...request.Option) (*ec2.EnableIpamOrganizationAdminAccountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...request.Option) *ec2.EnableIpamOrganizationAdminAccountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableIpamOrganizationAdminAccountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableSerialConsoleAccess provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableSerialConsoleAccess(_a0 *ec2.EnableSerialConsoleAccessInput) (*ec2.EnableSerialConsoleAccessOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableSerialConsoleAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) (*ec2.EnableSerialConsoleAccessOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) *ec2.EnableSerialConsoleAccessOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableSerialConsoleAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableSerialConsoleAccessInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableSerialConsoleAccessRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableSerialConsoleAccessRequest(_a0 *ec2.EnableSerialConsoleAccessInput) (*request.Request, *ec2.EnableSerialConsoleAccessOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableSerialConsoleAccessOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) (*request.Request, *ec2.EnableSerialConsoleAccessOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableSerialConsoleAccessInput) *ec2.EnableSerialConsoleAccessOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableSerialConsoleAccessOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableSerialConsoleAccessWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableSerialConsoleAccessWithContext(_a0 context.Context, _a1 *ec2.EnableSerialConsoleAccessInput, _a2 ...request.Option) (*ec2.EnableSerialConsoleAccessOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableSerialConsoleAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) (*ec2.EnableSerialConsoleAccessOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) *ec2.EnableSerialConsoleAccessOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableSerialConsoleAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableTransitGatewayRouteTablePropagation(_a0 *ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableTransitGatewayRouteTablePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableTransitGatewayRouteTablePropagationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableTransitGatewayRouteTablePropagationRequest(_a0 *ec2.EnableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.EnableTransitGatewayRouteTablePropagationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableTransitGatewayRouteTablePropagationOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.EnableTransitGatewayRouteTablePropagationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableTransitGatewayRouteTablePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableTransitGatewayRouteTablePropagationWithContext(_a0 context.Context, _a1 *ec2.EnableTransitGatewayRouteTablePropagationInput, _a2 ...request.Option) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableTransitGatewayRouteTablePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableTransitGatewayRouteTablePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVgwRoutePropagation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVgwRoutePropagation(_a0 *ec2.EnableVgwRoutePropagationInput) (*ec2.EnableVgwRoutePropagationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableVgwRoutePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) (*ec2.EnableVgwRoutePropagationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) *ec2.EnableVgwRoutePropagationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVgwRoutePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVgwRoutePropagationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVgwRoutePropagationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVgwRoutePropagationRequest(_a0 *ec2.EnableVgwRoutePropagationInput) (*request.Request, *ec2.EnableVgwRoutePropagationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableVgwRoutePropagationOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) (*request.Request, *ec2.EnableVgwRoutePropagationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVgwRoutePropagationInput) *ec2.EnableVgwRoutePropagationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableVgwRoutePropagationOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableVgwRoutePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableVgwRoutePropagationWithContext(_a0 context.Context, _a1 *ec2.EnableVgwRoutePropagationInput, _a2 ...request.Option) (*ec2.EnableVgwRoutePropagationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableVgwRoutePropagationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) (*ec2.EnableVgwRoutePropagationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) *ec2.EnableVgwRoutePropagationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVgwRoutePropagationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVolumeIO provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVolumeIO(_a0 *ec2.EnableVolumeIOInput) (*ec2.EnableVolumeIOOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableVolumeIOOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) (*ec2.EnableVolumeIOOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) *ec2.EnableVolumeIOOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVolumeIOOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVolumeIOInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVolumeIORequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVolumeIORequest(_a0 *ec2.EnableVolumeIOInput) (*request.Request, *ec2.EnableVolumeIOOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableVolumeIOOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) (*request.Request, *ec2.EnableVolumeIOOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVolumeIOInput) *ec2.EnableVolumeIOOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableVolumeIOOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableVolumeIOWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableVolumeIOWithContext(_a0 context.Context, _a1 *ec2.EnableVolumeIOInput, _a2 ...request.Option) (*ec2.EnableVolumeIOOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableVolumeIOOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVolumeIOInput, ...request.Option) (*ec2.EnableVolumeIOOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVolumeIOInput, ...request.Option) *ec2.EnableVolumeIOOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVolumeIOOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVolumeIOInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLink provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVpcClassicLink(_a0 *ec2.EnableVpcClassicLinkInput) (*ec2.EnableVpcClassicLinkOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) (*ec2.EnableVpcClassicLinkOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) *ec2.EnableVpcClassicLinkOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLinkDnsSupport provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVpcClassicLinkDnsSupport(_a0 *ec2.EnableVpcClassicLinkDnsSupportInput) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.EnableVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVpcClassicLinkDnsSupportRequest(_a0 *ec2.EnableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.EnableVpcClassicLinkDnsSupportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableVpcClassicLinkDnsSupportOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.EnableVpcClassicLinkDnsSupportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.EnableVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableVpcClassicLinkDnsSupportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkDnsSupportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLinkRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) EnableVpcClassicLinkRequest(_a0 *ec2.EnableVpcClassicLinkInput) (*request.Request, *ec2.EnableVpcClassicLinkOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.EnableVpcClassicLinkOutput
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) (*request.Request, *ec2.EnableVpcClassicLinkOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkInput) *ec2.EnableVpcClassicLinkOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.EnableVpcClassicLinkOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) EnableVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.EnableVpcClassicLinkInput, _a2 ...request.Option) (*ec2.EnableVpcClassicLinkOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.EnableVpcClassicLinkOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...request.Option) (*ec2.EnableVpcClassicLinkOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...request.Option) *ec2.EnableVpcClassicLinkOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientCertificateRevocationList provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportClientVpnClientCertificateRevocationList(_a0 *ec2.ExportClientVpnClientCertificateRevocationListInput) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ExportClientVpnClientCertificateRevocationListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientCertificateRevocationListRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportClientVpnClientCertificateRevocationListRequest(_a0 *ec2.ExportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ExportClientVpnClientCertificateRevocationListOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ExportClientVpnClientCertificateRevocationListOutput
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ExportClientVpnClientCertificateRevocationListOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ExportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientCertificateRevocationListWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ExportClientVpnClientCertificateRevocationListWithContext(_a0 context.Context, _a1 *ec2.ExportClientVpnClientCertificateRevocationListInput, _a2 ...request.Option) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ExportClientVpnClientCertificateRevocationListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...request.Option) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...request.Option) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportClientVpnClientConfiguration(_a0 *ec2.ExportClientVpnClientConfigurationInput) (*ec2.ExportClientVpnClientConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ExportClientVpnClientConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) (*ec2.ExportClientVpnClientConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) *ec2.ExportClientVpnClientConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportClientVpnClientConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportClientVpnClientConfigurationRequest(_a0 *ec2.ExportClientVpnClientConfigurationInput) (*request.Request, *ec2.ExportClientVpnClientConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ExportClientVpnClientConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) (*request.Request, *ec2.ExportClientVpnClientConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientConfigurationInput) *ec2.ExportClientVpnClientConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ExportClientVpnClientConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportClientVpnClientConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ExportClientVpnClientConfigurationWithContext(_a0 context.Context, _a1 *ec2.ExportClientVpnClientConfigurationInput, _a2 ...request.Option) (*ec2.ExportClientVpnClientConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ExportClientVpnClientConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...request.Option) (*ec2.ExportClientVpnClientConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...request.Option) *ec2.ExportClientVpnClientConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportClientVpnClientConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportImage(_a0 *ec2.ExportImageInput) (*ec2.ExportImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ExportImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) (*ec2.ExportImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) *ec2.ExportImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportImageRequest(_a0 *ec2.ExportImageInput) (*request.Request, *ec2.ExportImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ExportImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) (*request.Request, *ec2.ExportImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportImageInput) *ec2.ExportImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ExportImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ExportImageWithContext(_a0 context.Context, _a1 *ec2.ExportImageInput, _a2 ...request.Option) (*ec2.ExportImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ExportImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportImageInput, ...request.Option) (*ec2.ExportImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportImageInput, ...request.Option) *ec2.ExportImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportTransitGatewayRoutes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportTransitGatewayRoutes(_a0 *ec2.ExportTransitGatewayRoutesInput) (*ec2.ExportTransitGatewayRoutesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ExportTransitGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) (*ec2.ExportTransitGatewayRoutesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) *ec2.ExportTransitGatewayRoutesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportTransitGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportTransitGatewayRoutesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ExportTransitGatewayRoutesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ExportTransitGatewayRoutesRequest(_a0 *ec2.ExportTransitGatewayRoutesInput) (*request.Request, *ec2.ExportTransitGatewayRoutesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ExportTransitGatewayRoutesOutput
- if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) (*request.Request, *ec2.ExportTransitGatewayRoutesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ExportTransitGatewayRoutesInput) *ec2.ExportTransitGatewayRoutesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ExportTransitGatewayRoutesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ExportTransitGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ExportTransitGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.ExportTransitGatewayRoutesInput, _a2 ...request.Option) (*ec2.ExportTransitGatewayRoutesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ExportTransitGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) (*ec2.ExportTransitGatewayRoutesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) *ec2.ExportTransitGatewayRoutesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ExportTransitGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAssociatedEnclaveCertificateIamRoles provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetAssociatedEnclaveCertificateIamRoles(_a0 *ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAssociatedEnclaveCertificateIamRolesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetAssociatedEnclaveCertificateIamRolesRequest(_a0 *ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*request.Request, *ec2.GetAssociatedEnclaveCertificateIamRolesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*request.Request, *ec2.GetAssociatedEnclaveCertificateIamRolesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAssociatedEnclaveCertificateIamRolesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetAssociatedEnclaveCertificateIamRolesWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedEnclaveCertificateIamRolesInput, _a2 ...request.Option) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...request.Option) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...request.Option) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAssociatedIpv6PoolCidrs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetAssociatedIpv6PoolCidrs(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetAssociatedIpv6PoolCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetAssociatedIpv6PoolCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAssociatedIpv6PoolCidrsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetAssociatedIpv6PoolCidrsPages(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput, _a1 func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput, func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetAssociatedIpv6PoolCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetAssociatedIpv6PoolCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedIpv6PoolCidrsInput, _a2 func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetAssociatedIpv6PoolCidrsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetAssociatedIpv6PoolCidrsRequest(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput) (*request.Request, *ec2.GetAssociatedIpv6PoolCidrsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetAssociatedIpv6PoolCidrsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) (*request.Request, *ec2.GetAssociatedIpv6PoolCidrsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetAssociatedIpv6PoolCidrsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAssociatedIpv6PoolCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetAssociatedIpv6PoolCidrsWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedIpv6PoolCidrsInput, _a2 ...request.Option) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetAssociatedIpv6PoolCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...request.Option) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...request.Option) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetAssociatedIpv6PoolCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCapacityReservationUsage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetCapacityReservationUsage(_a0 *ec2.GetCapacityReservationUsageInput) (*ec2.GetCapacityReservationUsageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetCapacityReservationUsageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) (*ec2.GetCapacityReservationUsageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) *ec2.GetCapacityReservationUsageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetCapacityReservationUsageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetCapacityReservationUsageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCapacityReservationUsageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetCapacityReservationUsageRequest(_a0 *ec2.GetCapacityReservationUsageInput) (*request.Request, *ec2.GetCapacityReservationUsageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetCapacityReservationUsageOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) (*request.Request, *ec2.GetCapacityReservationUsageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetCapacityReservationUsageInput) *ec2.GetCapacityReservationUsageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetCapacityReservationUsageOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCapacityReservationUsageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetCapacityReservationUsageWithContext(_a0 context.Context, _a1 *ec2.GetCapacityReservationUsageInput, _a2 ...request.Option) (*ec2.GetCapacityReservationUsageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetCapacityReservationUsageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...request.Option) (*ec2.GetCapacityReservationUsageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...request.Option) *ec2.GetCapacityReservationUsageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetCapacityReservationUsageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCoipPoolUsage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetCoipPoolUsage(_a0 *ec2.GetCoipPoolUsageInput) (*ec2.GetCoipPoolUsageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetCoipPoolUsageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) (*ec2.GetCoipPoolUsageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) *ec2.GetCoipPoolUsageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetCoipPoolUsageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetCoipPoolUsageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCoipPoolUsageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetCoipPoolUsageRequest(_a0 *ec2.GetCoipPoolUsageInput) (*request.Request, *ec2.GetCoipPoolUsageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetCoipPoolUsageOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) (*request.Request, *ec2.GetCoipPoolUsageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetCoipPoolUsageInput) *ec2.GetCoipPoolUsageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetCoipPoolUsageOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCoipPoolUsageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetCoipPoolUsageWithContext(_a0 context.Context, _a1 *ec2.GetCoipPoolUsageInput, _a2 ...request.Option) (*ec2.GetCoipPoolUsageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetCoipPoolUsageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...request.Option) (*ec2.GetCoipPoolUsageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...request.Option) *ec2.GetCoipPoolUsageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetCoipPoolUsageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetConsoleOutput provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetConsoleOutput(_a0 *ec2.GetConsoleOutputInput) (*ec2.GetConsoleOutputOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetConsoleOutputOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) (*ec2.GetConsoleOutputOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) *ec2.GetConsoleOutputOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetConsoleOutputOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetConsoleOutputInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetConsoleOutputRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetConsoleOutputRequest(_a0 *ec2.GetConsoleOutputInput) (*request.Request, *ec2.GetConsoleOutputOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetConsoleOutputOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) (*request.Request, *ec2.GetConsoleOutputOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetConsoleOutputInput) *ec2.GetConsoleOutputOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetConsoleOutputOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetConsoleOutputWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetConsoleOutputWithContext(_a0 context.Context, _a1 *ec2.GetConsoleOutputInput, _a2 ...request.Option) (*ec2.GetConsoleOutputOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetConsoleOutputOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleOutputInput, ...request.Option) (*ec2.GetConsoleOutputOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleOutputInput, ...request.Option) *ec2.GetConsoleOutputOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetConsoleOutputOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleOutputInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetConsoleScreenshot provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetConsoleScreenshot(_a0 *ec2.GetConsoleScreenshotInput) (*ec2.GetConsoleScreenshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetConsoleScreenshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) (*ec2.GetConsoleScreenshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) *ec2.GetConsoleScreenshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetConsoleScreenshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetConsoleScreenshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetConsoleScreenshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetConsoleScreenshotRequest(_a0 *ec2.GetConsoleScreenshotInput) (*request.Request, *ec2.GetConsoleScreenshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetConsoleScreenshotOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) (*request.Request, *ec2.GetConsoleScreenshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetConsoleScreenshotInput) *ec2.GetConsoleScreenshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetConsoleScreenshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetConsoleScreenshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetConsoleScreenshotWithContext(_a0 context.Context, _a1 *ec2.GetConsoleScreenshotInput, _a2 ...request.Option) (*ec2.GetConsoleScreenshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetConsoleScreenshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...request.Option) (*ec2.GetConsoleScreenshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...request.Option) *ec2.GetConsoleScreenshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetConsoleScreenshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDefaultCreditSpecification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetDefaultCreditSpecification(_a0 *ec2.GetDefaultCreditSpecificationInput) (*ec2.GetDefaultCreditSpecificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetDefaultCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) (*ec2.GetDefaultCreditSpecificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) *ec2.GetDefaultCreditSpecificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetDefaultCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetDefaultCreditSpecificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDefaultCreditSpecificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetDefaultCreditSpecificationRequest(_a0 *ec2.GetDefaultCreditSpecificationInput) (*request.Request, *ec2.GetDefaultCreditSpecificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetDefaultCreditSpecificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) (*request.Request, *ec2.GetDefaultCreditSpecificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetDefaultCreditSpecificationInput) *ec2.GetDefaultCreditSpecificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetDefaultCreditSpecificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDefaultCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetDefaultCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.GetDefaultCreditSpecificationInput, _a2 ...request.Option) (*ec2.GetDefaultCreditSpecificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetDefaultCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...request.Option) (*ec2.GetDefaultCreditSpecificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...request.Option) *ec2.GetDefaultCreditSpecificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetDefaultCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEbsDefaultKmsKeyId provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetEbsDefaultKmsKeyId(_a0 *ec2.GetEbsDefaultKmsKeyIdInput) (*ec2.GetEbsDefaultKmsKeyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) (*ec2.GetEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *ec2.GetEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetEbsDefaultKmsKeyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetEbsDefaultKmsKeyIdRequest(_a0 *ec2.GetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.GetEbsDefaultKmsKeyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetEbsDefaultKmsKeyIdOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.GetEbsDefaultKmsKeyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *ec2.GetEbsDefaultKmsKeyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.GetEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.GetEbsDefaultKmsKeyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...request.Option) (*ec2.GetEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.GetEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEbsEncryptionByDefault provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetEbsEncryptionByDefault(_a0 *ec2.GetEbsEncryptionByDefaultInput) (*ec2.GetEbsEncryptionByDefaultOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) (*ec2.GetEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) *ec2.GetEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetEbsEncryptionByDefaultInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetEbsEncryptionByDefaultRequest(_a0 *ec2.GetEbsEncryptionByDefaultInput) (*request.Request, *ec2.GetEbsEncryptionByDefaultOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetEbsEncryptionByDefaultOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) (*request.Request, *ec2.GetEbsEncryptionByDefaultOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetEbsEncryptionByDefaultInput) *ec2.GetEbsEncryptionByDefaultOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetEbsEncryptionByDefaultOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.GetEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.GetEbsEncryptionByDefaultOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetEbsEncryptionByDefaultOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...request.Option) (*ec2.GetEbsEncryptionByDefaultOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...request.Option) *ec2.GetEbsEncryptionByDefaultOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetEbsEncryptionByDefaultOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFlowLogsIntegrationTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetFlowLogsIntegrationTemplate(_a0 *ec2.GetFlowLogsIntegrationTemplateInput) (*ec2.GetFlowLogsIntegrationTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetFlowLogsIntegrationTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) (*ec2.GetFlowLogsIntegrationTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *ec2.GetFlowLogsIntegrationTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetFlowLogsIntegrationTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetFlowLogsIntegrationTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFlowLogsIntegrationTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetFlowLogsIntegrationTemplateRequest(_a0 *ec2.GetFlowLogsIntegrationTemplateInput) (*request.Request, *ec2.GetFlowLogsIntegrationTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetFlowLogsIntegrationTemplateOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) (*request.Request, *ec2.GetFlowLogsIntegrationTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *ec2.GetFlowLogsIntegrationTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetFlowLogsIntegrationTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFlowLogsIntegrationTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetFlowLogsIntegrationTemplateWithContext(_a0 context.Context, _a1 *ec2.GetFlowLogsIntegrationTemplateInput, _a2 ...request.Option) (*ec2.GetFlowLogsIntegrationTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetFlowLogsIntegrationTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...request.Option) (*ec2.GetFlowLogsIntegrationTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...request.Option) *ec2.GetFlowLogsIntegrationTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetFlowLogsIntegrationTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroupsForCapacityReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetGroupsForCapacityReservation(_a0 *ec2.GetGroupsForCapacityReservationInput) (*ec2.GetGroupsForCapacityReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetGroupsForCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) (*ec2.GetGroupsForCapacityReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) *ec2.GetGroupsForCapacityReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetGroupsForCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetGroupsForCapacityReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroupsForCapacityReservationPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetGroupsForCapacityReservationPages(_a0 *ec2.GetGroupsForCapacityReservationInput, _a1 func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput, func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetGroupsForCapacityReservationPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetGroupsForCapacityReservationPagesWithContext(_a0 context.Context, _a1 *ec2.GetGroupsForCapacityReservationInput, _a2 func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetGroupsForCapacityReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetGroupsForCapacityReservationRequest(_a0 *ec2.GetGroupsForCapacityReservationInput) (*request.Request, *ec2.GetGroupsForCapacityReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetGroupsForCapacityReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) (*request.Request, *ec2.GetGroupsForCapacityReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetGroupsForCapacityReservationInput) *ec2.GetGroupsForCapacityReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetGroupsForCapacityReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGroupsForCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetGroupsForCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.GetGroupsForCapacityReservationInput, _a2 ...request.Option) (*ec2.GetGroupsForCapacityReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetGroupsForCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...request.Option) (*ec2.GetGroupsForCapacityReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...request.Option) *ec2.GetGroupsForCapacityReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetGroupsForCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostReservationPurchasePreview provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetHostReservationPurchasePreview(_a0 *ec2.GetHostReservationPurchasePreviewInput) (*ec2.GetHostReservationPurchasePreviewOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetHostReservationPurchasePreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) (*ec2.GetHostReservationPurchasePreviewOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) *ec2.GetHostReservationPurchasePreviewOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetHostReservationPurchasePreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetHostReservationPurchasePreviewInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostReservationPurchasePreviewRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetHostReservationPurchasePreviewRequest(_a0 *ec2.GetHostReservationPurchasePreviewInput) (*request.Request, *ec2.GetHostReservationPurchasePreviewOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetHostReservationPurchasePreviewOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) (*request.Request, *ec2.GetHostReservationPurchasePreviewOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetHostReservationPurchasePreviewInput) *ec2.GetHostReservationPurchasePreviewOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetHostReservationPurchasePreviewOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHostReservationPurchasePreviewWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetHostReservationPurchasePreviewWithContext(_a0 context.Context, _a1 *ec2.GetHostReservationPurchasePreviewInput, _a2 ...request.Option) (*ec2.GetHostReservationPurchasePreviewOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetHostReservationPurchasePreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...request.Option) (*ec2.GetHostReservationPurchasePreviewOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...request.Option) *ec2.GetHostReservationPurchasePreviewOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetHostReservationPurchasePreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceTypesFromInstanceRequirements provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetInstanceTypesFromInstanceRequirements(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetInstanceTypesFromInstanceRequirementsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceTypesFromInstanceRequirementsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetInstanceTypesFromInstanceRequirementsPages(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a1 func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput, func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetInstanceTypesFromInstanceRequirementsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetInstanceTypesFromInstanceRequirementsPagesWithContext(_a0 context.Context, _a1 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a2 func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetInstanceTypesFromInstanceRequirementsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetInstanceTypesFromInstanceRequirementsRequest(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput) (*request.Request, *ec2.GetInstanceTypesFromInstanceRequirementsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetInstanceTypesFromInstanceRequirementsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) (*request.Request, *ec2.GetInstanceTypesFromInstanceRequirementsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetInstanceTypesFromInstanceRequirementsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetInstanceTypesFromInstanceRequirementsWithContext(_a0 context.Context, _a1 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a2 ...request.Option) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetInstanceTypesFromInstanceRequirementsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...request.Option) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...request.Option) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceUefiData provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetInstanceUefiData(_a0 *ec2.GetInstanceUefiDataInput) (*ec2.GetInstanceUefiDataOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetInstanceUefiDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceUefiDataInput) (*ec2.GetInstanceUefiDataOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceUefiDataInput) *ec2.GetInstanceUefiDataOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetInstanceUefiDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetInstanceUefiDataInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceUefiDataRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetInstanceUefiDataRequest(_a0 *ec2.GetInstanceUefiDataInput) (*request.Request, *ec2.GetInstanceUefiDataOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetInstanceUefiDataOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceUefiDataInput) (*request.Request, *ec2.GetInstanceUefiDataOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetInstanceUefiDataInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetInstanceUefiDataInput) *ec2.GetInstanceUefiDataOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetInstanceUefiDataOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetInstanceUefiDataWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetInstanceUefiDataWithContext(_a0 context.Context, _a1 *ec2.GetInstanceUefiDataInput, _a2 ...request.Option) (*ec2.GetInstanceUefiDataOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetInstanceUefiDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceUefiDataInput, ...request.Option) (*ec2.GetInstanceUefiDataOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceUefiDataInput, ...request.Option) *ec2.GetInstanceUefiDataOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetInstanceUefiDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetInstanceUefiDataInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamAddressHistory provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamAddressHistory(_a0 *ec2.GetIpamAddressHistoryInput) (*ec2.GetIpamAddressHistoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetIpamAddressHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) (*ec2.GetIpamAddressHistoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) *ec2.GetIpamAddressHistoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamAddressHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamAddressHistoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamAddressHistoryPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetIpamAddressHistoryPages(_a0 *ec2.GetIpamAddressHistoryInput, _a1 func(*ec2.GetIpamAddressHistoryOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput, func(*ec2.GetIpamAddressHistoryOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamAddressHistoryPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetIpamAddressHistoryPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamAddressHistoryInput, _a2 func(*ec2.GetIpamAddressHistoryOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, func(*ec2.GetIpamAddressHistoryOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamAddressHistoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamAddressHistoryRequest(_a0 *ec2.GetIpamAddressHistoryInput) (*request.Request, *ec2.GetIpamAddressHistoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetIpamAddressHistoryOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) (*request.Request, *ec2.GetIpamAddressHistoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamAddressHistoryInput) *ec2.GetIpamAddressHistoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetIpamAddressHistoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIpamAddressHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetIpamAddressHistoryWithContext(_a0 context.Context, _a1 *ec2.GetIpamAddressHistoryInput, _a2 ...request.Option) (*ec2.GetIpamAddressHistoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetIpamAddressHistoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...request.Option) (*ec2.GetIpamAddressHistoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...request.Option) *ec2.GetIpamAddressHistoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamAddressHistoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamPoolAllocations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamPoolAllocations(_a0 *ec2.GetIpamPoolAllocationsInput) (*ec2.GetIpamPoolAllocationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetIpamPoolAllocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) (*ec2.GetIpamPoolAllocationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) *ec2.GetIpamPoolAllocationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamPoolAllocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolAllocationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamPoolAllocationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetIpamPoolAllocationsPages(_a0 *ec2.GetIpamPoolAllocationsInput, _a1 func(*ec2.GetIpamPoolAllocationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput, func(*ec2.GetIpamPoolAllocationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamPoolAllocationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetIpamPoolAllocationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolAllocationsInput, _a2 func(*ec2.GetIpamPoolAllocationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, func(*ec2.GetIpamPoolAllocationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamPoolAllocationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamPoolAllocationsRequest(_a0 *ec2.GetIpamPoolAllocationsInput) (*request.Request, *ec2.GetIpamPoolAllocationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetIpamPoolAllocationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) (*request.Request, *ec2.GetIpamPoolAllocationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolAllocationsInput) *ec2.GetIpamPoolAllocationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetIpamPoolAllocationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIpamPoolAllocationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetIpamPoolAllocationsWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolAllocationsInput, _a2 ...request.Option) (*ec2.GetIpamPoolAllocationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetIpamPoolAllocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...request.Option) (*ec2.GetIpamPoolAllocationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...request.Option) *ec2.GetIpamPoolAllocationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamPoolAllocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamPoolCidrs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamPoolCidrs(_a0 *ec2.GetIpamPoolCidrsInput) (*ec2.GetIpamPoolCidrsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetIpamPoolCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) (*ec2.GetIpamPoolCidrsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) *ec2.GetIpamPoolCidrsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamPoolCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolCidrsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamPoolCidrsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetIpamPoolCidrsPages(_a0 *ec2.GetIpamPoolCidrsInput, _a1 func(*ec2.GetIpamPoolCidrsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput, func(*ec2.GetIpamPoolCidrsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamPoolCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetIpamPoolCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolCidrsInput, _a2 func(*ec2.GetIpamPoolCidrsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, func(*ec2.GetIpamPoolCidrsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamPoolCidrsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamPoolCidrsRequest(_a0 *ec2.GetIpamPoolCidrsInput) (*request.Request, *ec2.GetIpamPoolCidrsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetIpamPoolCidrsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) (*request.Request, *ec2.GetIpamPoolCidrsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolCidrsInput) *ec2.GetIpamPoolCidrsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetIpamPoolCidrsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIpamPoolCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetIpamPoolCidrsWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolCidrsInput, _a2 ...request.Option) (*ec2.GetIpamPoolCidrsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetIpamPoolCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...request.Option) (*ec2.GetIpamPoolCidrsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...request.Option) *ec2.GetIpamPoolCidrsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamPoolCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamResourceCidrs provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamResourceCidrs(_a0 *ec2.GetIpamResourceCidrsInput) (*ec2.GetIpamResourceCidrsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetIpamResourceCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) (*ec2.GetIpamResourceCidrsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) *ec2.GetIpamResourceCidrsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamResourceCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamResourceCidrsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetIpamResourceCidrsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetIpamResourceCidrsPages(_a0 *ec2.GetIpamResourceCidrsInput, _a1 func(*ec2.GetIpamResourceCidrsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput, func(*ec2.GetIpamResourceCidrsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamResourceCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetIpamResourceCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamResourceCidrsInput, _a2 func(*ec2.GetIpamResourceCidrsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, func(*ec2.GetIpamResourceCidrsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetIpamResourceCidrsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetIpamResourceCidrsRequest(_a0 *ec2.GetIpamResourceCidrsInput) (*request.Request, *ec2.GetIpamResourceCidrsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetIpamResourceCidrsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) (*request.Request, *ec2.GetIpamResourceCidrsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetIpamResourceCidrsInput) *ec2.GetIpamResourceCidrsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetIpamResourceCidrsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetIpamResourceCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetIpamResourceCidrsWithContext(_a0 context.Context, _a1 *ec2.GetIpamResourceCidrsInput, _a2 ...request.Option) (*ec2.GetIpamResourceCidrsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetIpamResourceCidrsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...request.Option) (*ec2.GetIpamResourceCidrsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...request.Option) *ec2.GetIpamResourceCidrsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetIpamResourceCidrsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLaunchTemplateData provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetLaunchTemplateData(_a0 *ec2.GetLaunchTemplateDataInput) (*ec2.GetLaunchTemplateDataOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetLaunchTemplateDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) (*ec2.GetLaunchTemplateDataOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) *ec2.GetLaunchTemplateDataOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetLaunchTemplateDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetLaunchTemplateDataInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLaunchTemplateDataRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetLaunchTemplateDataRequest(_a0 *ec2.GetLaunchTemplateDataInput) (*request.Request, *ec2.GetLaunchTemplateDataOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetLaunchTemplateDataOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) (*request.Request, *ec2.GetLaunchTemplateDataOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetLaunchTemplateDataInput) *ec2.GetLaunchTemplateDataOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetLaunchTemplateDataOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLaunchTemplateDataWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetLaunchTemplateDataWithContext(_a0 context.Context, _a1 *ec2.GetLaunchTemplateDataInput, _a2 ...request.Option) (*ec2.GetLaunchTemplateDataOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetLaunchTemplateDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...request.Option) (*ec2.GetLaunchTemplateDataOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...request.Option) *ec2.GetLaunchTemplateDataOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetLaunchTemplateDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetManagedPrefixListAssociations(_a0 *ec2.GetManagedPrefixListAssociationsInput) (*ec2.GetManagedPrefixListAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetManagedPrefixListAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) (*ec2.GetManagedPrefixListAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) *ec2.GetManagedPrefixListAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetManagedPrefixListAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetManagedPrefixListAssociationsPages(_a0 *ec2.GetManagedPrefixListAssociationsInput, _a1 func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput, func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetManagedPrefixListAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetManagedPrefixListAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListAssociationsInput, _a2 func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetManagedPrefixListAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetManagedPrefixListAssociationsRequest(_a0 *ec2.GetManagedPrefixListAssociationsInput) (*request.Request, *ec2.GetManagedPrefixListAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetManagedPrefixListAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) (*request.Request, *ec2.GetManagedPrefixListAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListAssociationsInput) *ec2.GetManagedPrefixListAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetManagedPrefixListAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetManagedPrefixListAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListAssociationsInput, _a2 ...request.Option) (*ec2.GetManagedPrefixListAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetManagedPrefixListAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...request.Option) (*ec2.GetManagedPrefixListAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...request.Option) *ec2.GetManagedPrefixListAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetManagedPrefixListAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListEntries provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetManagedPrefixListEntries(_a0 *ec2.GetManagedPrefixListEntriesInput) (*ec2.GetManagedPrefixListEntriesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetManagedPrefixListEntriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) (*ec2.GetManagedPrefixListEntriesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) *ec2.GetManagedPrefixListEntriesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetManagedPrefixListEntriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListEntriesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListEntriesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetManagedPrefixListEntriesPages(_a0 *ec2.GetManagedPrefixListEntriesInput, _a1 func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput, func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetManagedPrefixListEntriesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetManagedPrefixListEntriesPagesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListEntriesInput, _a2 func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetManagedPrefixListEntriesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetManagedPrefixListEntriesRequest(_a0 *ec2.GetManagedPrefixListEntriesInput) (*request.Request, *ec2.GetManagedPrefixListEntriesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetManagedPrefixListEntriesOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) (*request.Request, *ec2.GetManagedPrefixListEntriesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListEntriesInput) *ec2.GetManagedPrefixListEntriesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetManagedPrefixListEntriesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetManagedPrefixListEntriesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetManagedPrefixListEntriesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListEntriesInput, _a2 ...request.Option) (*ec2.GetManagedPrefixListEntriesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetManagedPrefixListEntriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...request.Option) (*ec2.GetManagedPrefixListEntriesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...request.Option) *ec2.GetManagedPrefixListEntriesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetManagedPrefixListEntriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindings provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeAnalysisFindings(_a0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeAnalysisFindingsRequest(_a0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeAnalysisFindingsWithContext(_a0 context.Context, _a1 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, _a2 ...request.Option) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...request.Option) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...request.Option) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeContent provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeContent(_a0 *ec2.GetNetworkInsightsAccessScopeContentInput) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetNetworkInsightsAccessScopeContentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeContentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeContentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeContentRequest(_a0 *ec2.GetNetworkInsightsAccessScopeContentInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeContentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetNetworkInsightsAccessScopeContentOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeContentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetNetworkInsightsAccessScopeContentOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetNetworkInsightsAccessScopeContentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetNetworkInsightsAccessScopeContentWithContext(_a0 context.Context, _a1 *ec2.GetNetworkInsightsAccessScopeContentInput, _a2 ...request.Option) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetNetworkInsightsAccessScopeContentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...request.Option) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...request.Option) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeContentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPasswordData provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetPasswordData(_a0 *ec2.GetPasswordDataInput) (*ec2.GetPasswordDataOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetPasswordDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) (*ec2.GetPasswordDataOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) *ec2.GetPasswordDataOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetPasswordDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetPasswordDataInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPasswordDataRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetPasswordDataRequest(_a0 *ec2.GetPasswordDataInput) (*request.Request, *ec2.GetPasswordDataOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetPasswordDataOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) (*request.Request, *ec2.GetPasswordDataOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetPasswordDataInput) *ec2.GetPasswordDataOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetPasswordDataOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPasswordDataWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetPasswordDataWithContext(_a0 context.Context, _a1 *ec2.GetPasswordDataInput, _a2 ...request.Option) (*ec2.GetPasswordDataOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetPasswordDataOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...request.Option) (*ec2.GetPasswordDataOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...request.Option) *ec2.GetPasswordDataOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetPasswordDataOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetPasswordDataInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReservedInstancesExchangeQuote provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetReservedInstancesExchangeQuote(_a0 *ec2.GetReservedInstancesExchangeQuoteInput) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetReservedInstancesExchangeQuoteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) (*ec2.GetReservedInstancesExchangeQuoteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *ec2.GetReservedInstancesExchangeQuoteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetReservedInstancesExchangeQuoteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetReservedInstancesExchangeQuoteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReservedInstancesExchangeQuoteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetReservedInstancesExchangeQuoteRequest(_a0 *ec2.GetReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.GetReservedInstancesExchangeQuoteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetReservedInstancesExchangeQuoteOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.GetReservedInstancesExchangeQuoteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *ec2.GetReservedInstancesExchangeQuoteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetReservedInstancesExchangeQuoteOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetReservedInstancesExchangeQuoteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetReservedInstancesExchangeQuoteWithContext(_a0 context.Context, _a1 *ec2.GetReservedInstancesExchangeQuoteInput, _a2 ...request.Option) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetReservedInstancesExchangeQuoteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) (*ec2.GetReservedInstancesExchangeQuoteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) *ec2.GetReservedInstancesExchangeQuoteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetReservedInstancesExchangeQuoteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSerialConsoleAccessStatus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSerialConsoleAccessStatus(_a0 *ec2.GetSerialConsoleAccessStatusInput) (*ec2.GetSerialConsoleAccessStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetSerialConsoleAccessStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) (*ec2.GetSerialConsoleAccessStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) *ec2.GetSerialConsoleAccessStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSerialConsoleAccessStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSerialConsoleAccessStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSerialConsoleAccessStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSerialConsoleAccessStatusRequest(_a0 *ec2.GetSerialConsoleAccessStatusInput) (*request.Request, *ec2.GetSerialConsoleAccessStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetSerialConsoleAccessStatusOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) (*request.Request, *ec2.GetSerialConsoleAccessStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSerialConsoleAccessStatusInput) *ec2.GetSerialConsoleAccessStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetSerialConsoleAccessStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSerialConsoleAccessStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetSerialConsoleAccessStatusWithContext(_a0 context.Context, _a1 *ec2.GetSerialConsoleAccessStatusInput, _a2 ...request.Option) (*ec2.GetSerialConsoleAccessStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetSerialConsoleAccessStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) (*ec2.GetSerialConsoleAccessStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) *ec2.GetSerialConsoleAccessStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSerialConsoleAccessStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSpotPlacementScores provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSpotPlacementScores(_a0 *ec2.GetSpotPlacementScoresInput) (*ec2.GetSpotPlacementScoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetSpotPlacementScoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) (*ec2.GetSpotPlacementScoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) *ec2.GetSpotPlacementScoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSpotPlacementScoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSpotPlacementScoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSpotPlacementScoresPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetSpotPlacementScoresPages(_a0 *ec2.GetSpotPlacementScoresInput, _a1 func(*ec2.GetSpotPlacementScoresOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput, func(*ec2.GetSpotPlacementScoresOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetSpotPlacementScoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetSpotPlacementScoresPagesWithContext(_a0 context.Context, _a1 *ec2.GetSpotPlacementScoresInput, _a2 func(*ec2.GetSpotPlacementScoresOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, func(*ec2.GetSpotPlacementScoresOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetSpotPlacementScoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSpotPlacementScoresRequest(_a0 *ec2.GetSpotPlacementScoresInput) (*request.Request, *ec2.GetSpotPlacementScoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetSpotPlacementScoresOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) (*request.Request, *ec2.GetSpotPlacementScoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSpotPlacementScoresInput) *ec2.GetSpotPlacementScoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetSpotPlacementScoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSpotPlacementScoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetSpotPlacementScoresWithContext(_a0 context.Context, _a1 *ec2.GetSpotPlacementScoresInput, _a2 ...request.Option) (*ec2.GetSpotPlacementScoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetSpotPlacementScoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) (*ec2.GetSpotPlacementScoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) *ec2.GetSpotPlacementScoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSpotPlacementScoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSubnetCidrReservations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSubnetCidrReservations(_a0 *ec2.GetSubnetCidrReservationsInput) (*ec2.GetSubnetCidrReservationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetSubnetCidrReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) (*ec2.GetSubnetCidrReservationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) *ec2.GetSubnetCidrReservationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSubnetCidrReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSubnetCidrReservationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSubnetCidrReservationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetSubnetCidrReservationsRequest(_a0 *ec2.GetSubnetCidrReservationsInput) (*request.Request, *ec2.GetSubnetCidrReservationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetSubnetCidrReservationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) (*request.Request, *ec2.GetSubnetCidrReservationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetSubnetCidrReservationsInput) *ec2.GetSubnetCidrReservationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetSubnetCidrReservationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSubnetCidrReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetSubnetCidrReservationsWithContext(_a0 context.Context, _a1 *ec2.GetSubnetCidrReservationsInput, _a2 ...request.Option) (*ec2.GetSubnetCidrReservationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetSubnetCidrReservationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...request.Option) (*ec2.GetSubnetCidrReservationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...request.Option) *ec2.GetSubnetCidrReservationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetSubnetCidrReservationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayAttachmentPropagations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagations(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayAttachmentPropagationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayAttachmentPropagationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayAttachmentPropagationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagationsPages(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a1 func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput, func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayAttachmentPropagationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a2 func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayAttachmentPropagationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagationsRequest(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput) (*request.Request, *ec2.GetTransitGatewayAttachmentPropagationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayAttachmentPropagationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) (*request.Request, *ec2.GetTransitGatewayAttachmentPropagationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayAttachmentPropagationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayAttachmentPropagationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayAttachmentPropagationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayAttachmentPropagationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociations(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayMulticastDomainAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociationsPages(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a1 func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput, func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayMulticastDomainAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a2 func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.GetTransitGatewayMulticastDomainAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.GetTransitGatewayMulticastDomainAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...request.Option) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableAssociations(_a0 *ec2.GetTransitGatewayPolicyTableAssociationsInput) (*ec2.GetTransitGatewayPolicyTableAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayPolicyTableAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) (*ec2.GetTransitGatewayPolicyTableAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) *ec2.GetTransitGatewayPolicyTableAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPolicyTableAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableAssociationsPages(_a0 *ec2.GetTransitGatewayPolicyTableAssociationsInput, _a1 func(*ec2.GetTransitGatewayPolicyTableAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput, func(*ec2.GetTransitGatewayPolicyTableAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayPolicyTableAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPolicyTableAssociationsInput, _a2 func(*ec2.GetTransitGatewayPolicyTableAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPolicyTableAssociationsInput, func(*ec2.GetTransitGatewayPolicyTableAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayPolicyTableAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableAssociationsRequest(_a0 *ec2.GetTransitGatewayPolicyTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayPolicyTableAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayPolicyTableAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayPolicyTableAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPolicyTableAssociationsInput) *ec2.GetTransitGatewayPolicyTableAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayPolicyTableAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPolicyTableAssociationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayPolicyTableAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayPolicyTableAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPolicyTableAssociationsInput, ...request.Option) (*ec2.GetTransitGatewayPolicyTableAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPolicyTableAssociationsInput, ...request.Option) *ec2.GetTransitGatewayPolicyTableAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPolicyTableAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayPolicyTableAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableEntries provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableEntries(_a0 *ec2.GetTransitGatewayPolicyTableEntriesInput) (*ec2.GetTransitGatewayPolicyTableEntriesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayPolicyTableEntriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) (*ec2.GetTransitGatewayPolicyTableEntriesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) *ec2.GetTransitGatewayPolicyTableEntriesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPolicyTableEntriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableEntriesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableEntriesRequest(_a0 *ec2.GetTransitGatewayPolicyTableEntriesInput) (*request.Request, *ec2.GetTransitGatewayPolicyTableEntriesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayPolicyTableEntriesOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) (*request.Request, *ec2.GetTransitGatewayPolicyTableEntriesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPolicyTableEntriesInput) *ec2.GetTransitGatewayPolicyTableEntriesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayPolicyTableEntriesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPolicyTableEntriesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayPolicyTableEntriesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPolicyTableEntriesInput, _a2 ...request.Option) (*ec2.GetTransitGatewayPolicyTableEntriesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayPolicyTableEntriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPolicyTableEntriesInput, ...request.Option) (*ec2.GetTransitGatewayPolicyTableEntriesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPolicyTableEntriesInput, ...request.Option) *ec2.GetTransitGatewayPolicyTableEntriesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPolicyTableEntriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayPolicyTableEntriesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPrefixListReferences provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPrefixListReferences(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayPrefixListReferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPrefixListReferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPrefixListReferencesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayPrefixListReferencesPages(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput, _a1 func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput, func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayPrefixListReferencesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayPrefixListReferencesPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPrefixListReferencesInput, _a2 func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayPrefixListReferencesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayPrefixListReferencesRequest(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput) (*request.Request, *ec2.GetTransitGatewayPrefixListReferencesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayPrefixListReferencesOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) (*request.Request, *ec2.GetTransitGatewayPrefixListReferencesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayPrefixListReferencesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayPrefixListReferencesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayPrefixListReferencesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPrefixListReferencesInput, _a2 ...request.Option) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayPrefixListReferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...request.Option) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...request.Option) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayPrefixListReferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTableAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayRouteTableAssociations(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayRouteTableAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTableAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTableAssociationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayRouteTableAssociationsPages(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a1 func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput, func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayRouteTableAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayRouteTableAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a2 func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayRouteTableAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayRouteTableAssociationsRequest(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTableAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayRouteTableAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTableAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayRouteTableAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTableAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayRouteTableAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayRouteTableAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTableAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTablePropagations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayRouteTablePropagations(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetTransitGatewayRouteTablePropagationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTablePropagationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTablePropagationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetTransitGatewayRouteTablePropagationsPages(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a1 func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput, func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayRouteTablePropagationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetTransitGatewayRouteTablePropagationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a2 func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetTransitGatewayRouteTablePropagationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetTransitGatewayRouteTablePropagationsRequest(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTablePropagationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetTransitGatewayRouteTablePropagationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTablePropagationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetTransitGatewayRouteTablePropagationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTransitGatewayRouteTablePropagationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetTransitGatewayRouteTablePropagationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetTransitGatewayRouteTablePropagationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTablePropagationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceSampleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetVpnConnectionDeviceSampleConfiguration(_a0 *ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceSampleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetVpnConnectionDeviceSampleConfigurationRequest(_a0 *ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*request.Request, *ec2.GetVpnConnectionDeviceSampleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*request.Request, *ec2.GetVpnConnectionDeviceSampleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceSampleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetVpnConnectionDeviceSampleConfigurationWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceSampleConfigurationInput, _a2 ...request.Option) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...request.Option) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...request.Option) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceTypes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetVpnConnectionDeviceTypes(_a0 *ec2.GetVpnConnectionDeviceTypesInput) (*ec2.GetVpnConnectionDeviceTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.GetVpnConnectionDeviceTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) (*ec2.GetVpnConnectionDeviceTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) *ec2.GetVpnConnectionDeviceTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceTypesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) GetVpnConnectionDeviceTypesPages(_a0 *ec2.GetVpnConnectionDeviceTypesInput, _a1 func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput, func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetVpnConnectionDeviceTypesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) GetVpnConnectionDeviceTypesPagesWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceTypesInput, _a2 func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetVpnConnectionDeviceTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) GetVpnConnectionDeviceTypesRequest(_a0 *ec2.GetVpnConnectionDeviceTypesInput) (*request.Request, *ec2.GetVpnConnectionDeviceTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.GetVpnConnectionDeviceTypesOutput
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) (*request.Request, *ec2.GetVpnConnectionDeviceTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceTypesInput) *ec2.GetVpnConnectionDeviceTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.GetVpnConnectionDeviceTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetVpnConnectionDeviceTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) GetVpnConnectionDeviceTypesWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceTypesInput, _a2 ...request.Option) (*ec2.GetVpnConnectionDeviceTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.GetVpnConnectionDeviceTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...request.Option) (*ec2.GetVpnConnectionDeviceTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...request.Option) *ec2.GetVpnConnectionDeviceTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportClientVpnClientCertificateRevocationList provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportClientVpnClientCertificateRevocationList(_a0 *ec2.ImportClientVpnClientCertificateRevocationListInput) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportClientVpnClientCertificateRevocationListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportClientVpnClientCertificateRevocationListRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportClientVpnClientCertificateRevocationListRequest(_a0 *ec2.ImportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ImportClientVpnClientCertificateRevocationListOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportClientVpnClientCertificateRevocationListOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ImportClientVpnClientCertificateRevocationListOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportClientVpnClientCertificateRevocationListWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportClientVpnClientCertificateRevocationListWithContext(_a0 context.Context, _a1 *ec2.ImportClientVpnClientCertificateRevocationListInput, _a2 ...request.Option) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportClientVpnClientCertificateRevocationListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...request.Option) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...request.Option) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportClientVpnClientCertificateRevocationListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportImage(_a0 *ec2.ImportImageInput) (*ec2.ImportImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) (*ec2.ImportImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) *ec2.ImportImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportImageRequest(_a0 *ec2.ImportImageInput) (*request.Request, *ec2.ImportImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) (*request.Request, *ec2.ImportImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportImageInput) *ec2.ImportImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportImageWithContext(_a0 context.Context, _a1 *ec2.ImportImageInput, _a2 ...request.Option) (*ec2.ImportImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportImageInput, ...request.Option) (*ec2.ImportImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportImageInput, ...request.Option) *ec2.ImportImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportInstance provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportInstance(_a0 *ec2.ImportInstanceInput) (*ec2.ImportInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) (*ec2.ImportInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) *ec2.ImportInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportInstanceRequest(_a0 *ec2.ImportInstanceInput) (*request.Request, *ec2.ImportInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportInstanceOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) (*request.Request, *ec2.ImportInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportInstanceInput) *ec2.ImportInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportInstanceWithContext(_a0 context.Context, _a1 *ec2.ImportInstanceInput, _a2 ...request.Option) (*ec2.ImportInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportInstanceInput, ...request.Option) (*ec2.ImportInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportInstanceInput, ...request.Option) *ec2.ImportInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportKeyPair provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportKeyPair(_a0 *ec2.ImportKeyPairInput) (*ec2.ImportKeyPairOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) (*ec2.ImportKeyPairOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) *ec2.ImportKeyPairOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportKeyPairInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportKeyPairRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportKeyPairRequest(_a0 *ec2.ImportKeyPairInput) (*request.Request, *ec2.ImportKeyPairOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportKeyPairOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) (*request.Request, *ec2.ImportKeyPairOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportKeyPairInput) *ec2.ImportKeyPairOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportKeyPairOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportKeyPairWithContext(_a0 context.Context, _a1 *ec2.ImportKeyPairInput, _a2 ...request.Option) (*ec2.ImportKeyPairOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportKeyPairInput, ...request.Option) (*ec2.ImportKeyPairOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportKeyPairInput, ...request.Option) *ec2.ImportKeyPairOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportKeyPairInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportSnapshot(_a0 *ec2.ImportSnapshotInput) (*ec2.ImportSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) (*ec2.ImportSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) *ec2.ImportSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportSnapshotRequest(_a0 *ec2.ImportSnapshotInput) (*request.Request, *ec2.ImportSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportSnapshotOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) (*request.Request, *ec2.ImportSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportSnapshotInput) *ec2.ImportSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportSnapshotWithContext(_a0 context.Context, _a1 *ec2.ImportSnapshotInput, _a2 ...request.Option) (*ec2.ImportSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportSnapshotInput, ...request.Option) (*ec2.ImportSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportSnapshotInput, ...request.Option) *ec2.ImportSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportVolume(_a0 *ec2.ImportVolumeInput) (*ec2.ImportVolumeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ImportVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) (*ec2.ImportVolumeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) *ec2.ImportVolumeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ImportVolumeRequest(_a0 *ec2.ImportVolumeInput) (*request.Request, *ec2.ImportVolumeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ImportVolumeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) (*request.Request, *ec2.ImportVolumeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ImportVolumeInput) *ec2.ImportVolumeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ImportVolumeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ImportVolumeWithContext(_a0 context.Context, _a1 *ec2.ImportVolumeInput, _a2 ...request.Option) (*ec2.ImportVolumeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ImportVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportVolumeInput, ...request.Option) (*ec2.ImportVolumeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportVolumeInput, ...request.Option) *ec2.ImportVolumeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ImportVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImagesInRecycleBin provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ListImagesInRecycleBin(_a0 *ec2.ListImagesInRecycleBinInput) (*ec2.ListImagesInRecycleBinOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ListImagesInRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) (*ec2.ListImagesInRecycleBinOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) *ec2.ListImagesInRecycleBinOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ListImagesInRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ListImagesInRecycleBinInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImagesInRecycleBinPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) ListImagesInRecycleBinPages(_a0 *ec2.ListImagesInRecycleBinInput, _a1 func(*ec2.ListImagesInRecycleBinOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput, func(*ec2.ListImagesInRecycleBinOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImagesInRecycleBinPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) ListImagesInRecycleBinPagesWithContext(_a0 context.Context, _a1 *ec2.ListImagesInRecycleBinInput, _a2 func(*ec2.ListImagesInRecycleBinOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, func(*ec2.ListImagesInRecycleBinOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImagesInRecycleBinRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ListImagesInRecycleBinRequest(_a0 *ec2.ListImagesInRecycleBinInput) (*request.Request, *ec2.ListImagesInRecycleBinOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ListImagesInRecycleBinOutput
- if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) (*request.Request, *ec2.ListImagesInRecycleBinOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ListImagesInRecycleBinInput) *ec2.ListImagesInRecycleBinOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ListImagesInRecycleBinOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImagesInRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ListImagesInRecycleBinWithContext(_a0 context.Context, _a1 *ec2.ListImagesInRecycleBinInput, _a2 ...request.Option) (*ec2.ListImagesInRecycleBinOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ListImagesInRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...request.Option) (*ec2.ListImagesInRecycleBinOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...request.Option) *ec2.ListImagesInRecycleBinOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ListImagesInRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSnapshotsInRecycleBin provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ListSnapshotsInRecycleBin(_a0 *ec2.ListSnapshotsInRecycleBinInput) (*ec2.ListSnapshotsInRecycleBinOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ListSnapshotsInRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) (*ec2.ListSnapshotsInRecycleBinOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) *ec2.ListSnapshotsInRecycleBinOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ListSnapshotsInRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ListSnapshotsInRecycleBinInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSnapshotsInRecycleBinPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) ListSnapshotsInRecycleBinPages(_a0 *ec2.ListSnapshotsInRecycleBinInput, _a1 func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSnapshotsInRecycleBinPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) ListSnapshotsInRecycleBinPagesWithContext(_a0 context.Context, _a1 *ec2.ListSnapshotsInRecycleBinInput, _a2 func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSnapshotsInRecycleBinRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ListSnapshotsInRecycleBinRequest(_a0 *ec2.ListSnapshotsInRecycleBinInput) (*request.Request, *ec2.ListSnapshotsInRecycleBinOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ListSnapshotsInRecycleBinOutput
- if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) (*request.Request, *ec2.ListSnapshotsInRecycleBinOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ListSnapshotsInRecycleBinInput) *ec2.ListSnapshotsInRecycleBinOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ListSnapshotsInRecycleBinOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSnapshotsInRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ListSnapshotsInRecycleBinWithContext(_a0 context.Context, _a1 *ec2.ListSnapshotsInRecycleBinInput, _a2 ...request.Option) (*ec2.ListSnapshotsInRecycleBinOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ListSnapshotsInRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...request.Option) (*ec2.ListSnapshotsInRecycleBinOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...request.Option) *ec2.ListSnapshotsInRecycleBinOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ListSnapshotsInRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyAddressAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyAddressAttribute(_a0 *ec2.ModifyAddressAttributeInput) (*ec2.ModifyAddressAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyAddressAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) (*ec2.ModifyAddressAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) *ec2.ModifyAddressAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyAddressAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyAddressAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyAddressAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyAddressAttributeRequest(_a0 *ec2.ModifyAddressAttributeInput) (*request.Request, *ec2.ModifyAddressAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyAddressAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) (*request.Request, *ec2.ModifyAddressAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyAddressAttributeInput) *ec2.ModifyAddressAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyAddressAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyAddressAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyAddressAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyAddressAttributeInput, _a2 ...request.Option) (*ec2.ModifyAddressAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyAddressAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) (*ec2.ModifyAddressAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) *ec2.ModifyAddressAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyAddressAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyAvailabilityZoneGroup provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyAvailabilityZoneGroup(_a0 *ec2.ModifyAvailabilityZoneGroupInput) (*ec2.ModifyAvailabilityZoneGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyAvailabilityZoneGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) (*ec2.ModifyAvailabilityZoneGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) *ec2.ModifyAvailabilityZoneGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyAvailabilityZoneGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyAvailabilityZoneGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyAvailabilityZoneGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyAvailabilityZoneGroupRequest(_a0 *ec2.ModifyAvailabilityZoneGroupInput) (*request.Request, *ec2.ModifyAvailabilityZoneGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyAvailabilityZoneGroupOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) (*request.Request, *ec2.ModifyAvailabilityZoneGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyAvailabilityZoneGroupInput) *ec2.ModifyAvailabilityZoneGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyAvailabilityZoneGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyAvailabilityZoneGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyAvailabilityZoneGroupWithContext(_a0 context.Context, _a1 *ec2.ModifyAvailabilityZoneGroupInput, _a2 ...request.Option) (*ec2.ModifyAvailabilityZoneGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyAvailabilityZoneGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...request.Option) (*ec2.ModifyAvailabilityZoneGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...request.Option) *ec2.ModifyAvailabilityZoneGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyAvailabilityZoneGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyCapacityReservation(_a0 *ec2.ModifyCapacityReservationInput) (*ec2.ModifyCapacityReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) (*ec2.ModifyCapacityReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) *ec2.ModifyCapacityReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservationFleet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyCapacityReservationFleet(_a0 *ec2.ModifyCapacityReservationFleetInput) (*ec2.ModifyCapacityReservationFleetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyCapacityReservationFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) (*ec2.ModifyCapacityReservationFleetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) *ec2.ModifyCapacityReservationFleetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyCapacityReservationFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationFleetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservationFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyCapacityReservationFleetRequest(_a0 *ec2.ModifyCapacityReservationFleetInput) (*request.Request, *ec2.ModifyCapacityReservationFleetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyCapacityReservationFleetOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) (*request.Request, *ec2.ModifyCapacityReservationFleetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationFleetInput) *ec2.ModifyCapacityReservationFleetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyCapacityReservationFleetOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservationFleetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyCapacityReservationFleetWithContext(_a0 context.Context, _a1 *ec2.ModifyCapacityReservationFleetInput, _a2 ...request.Option) (*ec2.ModifyCapacityReservationFleetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyCapacityReservationFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...request.Option) (*ec2.ModifyCapacityReservationFleetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...request.Option) *ec2.ModifyCapacityReservationFleetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyCapacityReservationFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyCapacityReservationRequest(_a0 *ec2.ModifyCapacityReservationInput) (*request.Request, *ec2.ModifyCapacityReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyCapacityReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) (*request.Request, *ec2.ModifyCapacityReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationInput) *ec2.ModifyCapacityReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyCapacityReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.ModifyCapacityReservationInput, _a2 ...request.Option) (*ec2.ModifyCapacityReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyCapacityReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) (*ec2.ModifyCapacityReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) *ec2.ModifyCapacityReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyCapacityReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyClientVpnEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyClientVpnEndpoint(_a0 *ec2.ModifyClientVpnEndpointInput) (*ec2.ModifyClientVpnEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) (*ec2.ModifyClientVpnEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) *ec2.ModifyClientVpnEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyClientVpnEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyClientVpnEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyClientVpnEndpointRequest(_a0 *ec2.ModifyClientVpnEndpointInput) (*request.Request, *ec2.ModifyClientVpnEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyClientVpnEndpointOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) (*request.Request, *ec2.ModifyClientVpnEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyClientVpnEndpointInput) *ec2.ModifyClientVpnEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyClientVpnEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.ModifyClientVpnEndpointInput, _a2 ...request.Option) (*ec2.ModifyClientVpnEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyClientVpnEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...request.Option) (*ec2.ModifyClientVpnEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...request.Option) *ec2.ModifyClientVpnEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyClientVpnEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDefaultCreditSpecification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyDefaultCreditSpecification(_a0 *ec2.ModifyDefaultCreditSpecificationInput) (*ec2.ModifyDefaultCreditSpecificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyDefaultCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) (*ec2.ModifyDefaultCreditSpecificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) *ec2.ModifyDefaultCreditSpecificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyDefaultCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyDefaultCreditSpecificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDefaultCreditSpecificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyDefaultCreditSpecificationRequest(_a0 *ec2.ModifyDefaultCreditSpecificationInput) (*request.Request, *ec2.ModifyDefaultCreditSpecificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyDefaultCreditSpecificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) (*request.Request, *ec2.ModifyDefaultCreditSpecificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyDefaultCreditSpecificationInput) *ec2.ModifyDefaultCreditSpecificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyDefaultCreditSpecificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDefaultCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyDefaultCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.ModifyDefaultCreditSpecificationInput, _a2 ...request.Option) (*ec2.ModifyDefaultCreditSpecificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyDefaultCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...request.Option) (*ec2.ModifyDefaultCreditSpecificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...request.Option) *ec2.ModifyDefaultCreditSpecificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyDefaultCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyEbsDefaultKmsKeyId provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyEbsDefaultKmsKeyId(_a0 *ec2.ModifyEbsDefaultKmsKeyIdInput) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyEbsDefaultKmsKeyIdRequest(_a0 *ec2.ModifyEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ModifyEbsDefaultKmsKeyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyEbsDefaultKmsKeyIdOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ModifyEbsDefaultKmsKeyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyEbsDefaultKmsKeyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.ModifyEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...request.Option) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyFleet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyFleet(_a0 *ec2.ModifyFleetInput) (*ec2.ModifyFleetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) (*ec2.ModifyFleetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) *ec2.ModifyFleetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyFleetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyFleetRequest(_a0 *ec2.ModifyFleetInput) (*request.Request, *ec2.ModifyFleetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyFleetOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) (*request.Request, *ec2.ModifyFleetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyFleetInput) *ec2.ModifyFleetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyFleetOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyFleetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyFleetWithContext(_a0 context.Context, _a1 *ec2.ModifyFleetInput, _a2 ...request.Option) (*ec2.ModifyFleetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFleetInput, ...request.Option) (*ec2.ModifyFleetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFleetInput, ...request.Option) *ec2.ModifyFleetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFleetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyFpgaImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyFpgaImageAttribute(_a0 *ec2.ModifyFpgaImageAttributeInput) (*ec2.ModifyFpgaImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) (*ec2.ModifyFpgaImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) *ec2.ModifyFpgaImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyFpgaImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyFpgaImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyFpgaImageAttributeRequest(_a0 *ec2.ModifyFpgaImageAttributeInput) (*request.Request, *ec2.ModifyFpgaImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyFpgaImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) (*request.Request, *ec2.ModifyFpgaImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyFpgaImageAttributeInput) *ec2.ModifyFpgaImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyFpgaImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.ModifyFpgaImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...request.Option) (*ec2.ModifyFpgaImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...request.Option) *ec2.ModifyFpgaImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyHosts provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyHosts(_a0 *ec2.ModifyHostsInput) (*ec2.ModifyHostsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) (*ec2.ModifyHostsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) *ec2.ModifyHostsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyHostsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyHostsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyHostsRequest(_a0 *ec2.ModifyHostsInput) (*request.Request, *ec2.ModifyHostsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyHostsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) (*request.Request, *ec2.ModifyHostsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyHostsInput) *ec2.ModifyHostsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyHostsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyHostsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyHostsWithContext(_a0 context.Context, _a1 *ec2.ModifyHostsInput, _a2 ...request.Option) (*ec2.ModifyHostsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyHostsInput, ...request.Option) (*ec2.ModifyHostsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyHostsInput, ...request.Option) *ec2.ModifyHostsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyHostsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIdFormat(_a0 *ec2.ModifyIdFormatInput) (*ec2.ModifyIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) (*ec2.ModifyIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) *ec2.ModifyIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIdFormatRequest(_a0 *ec2.ModifyIdFormatInput) (*request.Request, *ec2.ModifyIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) (*request.Request, *ec2.ModifyIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIdFormatInput) *ec2.ModifyIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIdFormatWithContext(_a0 context.Context, _a1 *ec2.ModifyIdFormatInput, _a2 ...request.Option) (*ec2.ModifyIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdFormatInput, ...request.Option) (*ec2.ModifyIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdFormatInput, ...request.Option) *ec2.ModifyIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIdentityIdFormat provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIdentityIdFormat(_a0 *ec2.ModifyIdentityIdFormatInput) (*ec2.ModifyIdentityIdFormatOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIdentityIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) (*ec2.ModifyIdentityIdFormatOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) *ec2.ModifyIdentityIdFormatOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIdentityIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIdentityIdFormatInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIdentityIdFormatRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIdentityIdFormatRequest(_a0 *ec2.ModifyIdentityIdFormatInput) (*request.Request, *ec2.ModifyIdentityIdFormatOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIdentityIdFormatOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) (*request.Request, *ec2.ModifyIdentityIdFormatOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIdentityIdFormatInput) *ec2.ModifyIdentityIdFormatOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIdentityIdFormatOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIdentityIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIdentityIdFormatWithContext(_a0 context.Context, _a1 *ec2.ModifyIdentityIdFormatInput, _a2 ...request.Option) (*ec2.ModifyIdentityIdFormatOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIdentityIdFormatOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...request.Option) (*ec2.ModifyIdentityIdFormatOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...request.Option) *ec2.ModifyIdentityIdFormatOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIdentityIdFormatOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyImageAttribute(_a0 *ec2.ModifyImageAttributeInput) (*ec2.ModifyImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) (*ec2.ModifyImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) *ec2.ModifyImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyImageAttributeRequest(_a0 *ec2.ModifyImageAttributeInput) (*request.Request, *ec2.ModifyImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) (*request.Request, *ec2.ModifyImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyImageAttributeInput) *ec2.ModifyImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyImageAttributeInput, _a2 ...request.Option) (*ec2.ModifyImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyImageAttributeInput, ...request.Option) (*ec2.ModifyImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyImageAttributeInput, ...request.Option) *ec2.ModifyImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceAttribute(_a0 *ec2.ModifyInstanceAttributeInput) (*ec2.ModifyInstanceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) (*ec2.ModifyInstanceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) *ec2.ModifyInstanceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceAttributeRequest(_a0 *ec2.ModifyInstanceAttributeInput) (*request.Request, *ec2.ModifyInstanceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) (*request.Request, *ec2.ModifyInstanceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceAttributeInput) *ec2.ModifyInstanceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceAttributeInput, _a2 ...request.Option) (*ec2.ModifyInstanceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) (*ec2.ModifyInstanceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) *ec2.ModifyInstanceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCapacityReservationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceCapacityReservationAttributes(_a0 *ec2.ModifyInstanceCapacityReservationAttributesInput) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceCapacityReservationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceCapacityReservationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCapacityReservationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceCapacityReservationAttributesRequest(_a0 *ec2.ModifyInstanceCapacityReservationAttributesInput) (*request.Request, *ec2.ModifyInstanceCapacityReservationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceCapacityReservationAttributesOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) (*request.Request, *ec2.ModifyInstanceCapacityReservationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceCapacityReservationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCapacityReservationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceCapacityReservationAttributesWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceCapacityReservationAttributesInput, _a2 ...request.Option) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceCapacityReservationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceCapacityReservationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCreditSpecification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceCreditSpecification(_a0 *ec2.ModifyInstanceCreditSpecificationInput) (*ec2.ModifyInstanceCreditSpecificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) (*ec2.ModifyInstanceCreditSpecificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) *ec2.ModifyInstanceCreditSpecificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCreditSpecificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCreditSpecificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceCreditSpecificationRequest(_a0 *ec2.ModifyInstanceCreditSpecificationInput) (*request.Request, *ec2.ModifyInstanceCreditSpecificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceCreditSpecificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) (*request.Request, *ec2.ModifyInstanceCreditSpecificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCreditSpecificationInput) *ec2.ModifyInstanceCreditSpecificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceCreditSpecificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceCreditSpecificationInput, _a2 ...request.Option) (*ec2.ModifyInstanceCreditSpecificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceCreditSpecificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) (*ec2.ModifyInstanceCreditSpecificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) *ec2.ModifyInstanceCreditSpecificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceCreditSpecificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventStartTime provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceEventStartTime(_a0 *ec2.ModifyInstanceEventStartTimeInput) (*ec2.ModifyInstanceEventStartTimeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceEventStartTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) (*ec2.ModifyInstanceEventStartTimeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) *ec2.ModifyInstanceEventStartTimeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceEventStartTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventStartTimeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventStartTimeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceEventStartTimeRequest(_a0 *ec2.ModifyInstanceEventStartTimeInput) (*request.Request, *ec2.ModifyInstanceEventStartTimeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceEventStartTimeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) (*request.Request, *ec2.ModifyInstanceEventStartTimeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventStartTimeInput) *ec2.ModifyInstanceEventStartTimeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceEventStartTimeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventStartTimeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceEventStartTimeWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceEventStartTimeInput, _a2 ...request.Option) (*ec2.ModifyInstanceEventStartTimeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceEventStartTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...request.Option) (*ec2.ModifyInstanceEventStartTimeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...request.Option) *ec2.ModifyInstanceEventStartTimeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceEventStartTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventWindow provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceEventWindow(_a0 *ec2.ModifyInstanceEventWindowInput) (*ec2.ModifyInstanceEventWindowOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) (*ec2.ModifyInstanceEventWindowOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) *ec2.ModifyInstanceEventWindowOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventWindowInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventWindowRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceEventWindowRequest(_a0 *ec2.ModifyInstanceEventWindowInput) (*request.Request, *ec2.ModifyInstanceEventWindowOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceEventWindowOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) (*request.Request, *ec2.ModifyInstanceEventWindowOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventWindowInput) *ec2.ModifyInstanceEventWindowOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceEventWindowOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceEventWindowInput, _a2 ...request.Option) (*ec2.ModifyInstanceEventWindowOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceEventWindowOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...request.Option) (*ec2.ModifyInstanceEventWindowOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...request.Option) *ec2.ModifyInstanceEventWindowOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceEventWindowOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMaintenanceOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceMaintenanceOptions(_a0 *ec2.ModifyInstanceMaintenanceOptionsInput) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceMaintenanceOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceMaintenanceOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMaintenanceOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceMaintenanceOptionsRequest(_a0 *ec2.ModifyInstanceMaintenanceOptionsInput) (*request.Request, *ec2.ModifyInstanceMaintenanceOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceMaintenanceOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) (*request.Request, *ec2.ModifyInstanceMaintenanceOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceMaintenanceOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMaintenanceOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceMaintenanceOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceMaintenanceOptionsInput, _a2 ...request.Option) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceMaintenanceOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...request.Option) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...request.Option) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceMaintenanceOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMetadataOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceMetadataOptions(_a0 *ec2.ModifyInstanceMetadataOptionsInput) (*ec2.ModifyInstanceMetadataOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstanceMetadataOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) (*ec2.ModifyInstanceMetadataOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) *ec2.ModifyInstanceMetadataOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceMetadataOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMetadataOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMetadataOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstanceMetadataOptionsRequest(_a0 *ec2.ModifyInstanceMetadataOptionsInput) (*request.Request, *ec2.ModifyInstanceMetadataOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstanceMetadataOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) (*request.Request, *ec2.ModifyInstanceMetadataOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMetadataOptionsInput) *ec2.ModifyInstanceMetadataOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstanceMetadataOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstanceMetadataOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstanceMetadataOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceMetadataOptionsInput, _a2 ...request.Option) (*ec2.ModifyInstanceMetadataOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstanceMetadataOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...request.Option) (*ec2.ModifyInstanceMetadataOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...request.Option) *ec2.ModifyInstanceMetadataOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstanceMetadataOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstancePlacement provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstancePlacement(_a0 *ec2.ModifyInstancePlacementInput) (*ec2.ModifyInstancePlacementOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyInstancePlacementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) (*ec2.ModifyInstancePlacementOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) *ec2.ModifyInstancePlacementOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstancePlacementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstancePlacementInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyInstancePlacementRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyInstancePlacementRequest(_a0 *ec2.ModifyInstancePlacementInput) (*request.Request, *ec2.ModifyInstancePlacementOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyInstancePlacementOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) (*request.Request, *ec2.ModifyInstancePlacementOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyInstancePlacementInput) *ec2.ModifyInstancePlacementOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyInstancePlacementOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyInstancePlacementWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyInstancePlacementWithContext(_a0 context.Context, _a1 *ec2.ModifyInstancePlacementInput, _a2 ...request.Option) (*ec2.ModifyInstancePlacementOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyInstancePlacementOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...request.Option) (*ec2.ModifyInstancePlacementOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...request.Option) *ec2.ModifyInstancePlacementOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyInstancePlacementOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpam provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpam(_a0 *ec2.ModifyIpamInput) (*ec2.ModifyIpamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) (*ec2.ModifyIpamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) *ec2.ModifyIpamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamPool provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamPool(_a0 *ec2.ModifyIpamPoolInput) (*ec2.ModifyIpamPoolOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) (*ec2.ModifyIpamPoolOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) *ec2.ModifyIpamPoolOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamPoolInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamPoolRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamPoolRequest(_a0 *ec2.ModifyIpamPoolInput) (*request.Request, *ec2.ModifyIpamPoolOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIpamPoolOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) (*request.Request, *ec2.ModifyIpamPoolOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamPoolInput) *ec2.ModifyIpamPoolOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIpamPoolOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIpamPoolWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamPoolInput, _a2 ...request.Option) (*ec2.ModifyIpamPoolOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIpamPoolOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamPoolInput, ...request.Option) (*ec2.ModifyIpamPoolOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamPoolInput, ...request.Option) *ec2.ModifyIpamPoolOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamPoolOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamPoolInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamRequest(_a0 *ec2.ModifyIpamInput) (*request.Request, *ec2.ModifyIpamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIpamOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) (*request.Request, *ec2.ModifyIpamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamInput) *ec2.ModifyIpamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIpamOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIpamResourceCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamResourceCidr(_a0 *ec2.ModifyIpamResourceCidrInput) (*ec2.ModifyIpamResourceCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIpamResourceCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) (*ec2.ModifyIpamResourceCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) *ec2.ModifyIpamResourceCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamResourceCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamResourceCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamResourceCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamResourceCidrRequest(_a0 *ec2.ModifyIpamResourceCidrInput) (*request.Request, *ec2.ModifyIpamResourceCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIpamResourceCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) (*request.Request, *ec2.ModifyIpamResourceCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamResourceCidrInput) *ec2.ModifyIpamResourceCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIpamResourceCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIpamResourceCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIpamResourceCidrWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamResourceCidrInput, _a2 ...request.Option) (*ec2.ModifyIpamResourceCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIpamResourceCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...request.Option) (*ec2.ModifyIpamResourceCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...request.Option) *ec2.ModifyIpamResourceCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamResourceCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamScope provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamScope(_a0 *ec2.ModifyIpamScopeInput) (*ec2.ModifyIpamScopeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) (*ec2.ModifyIpamScopeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) *ec2.ModifyIpamScopeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamScopeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamScopeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyIpamScopeRequest(_a0 *ec2.ModifyIpamScopeInput) (*request.Request, *ec2.ModifyIpamScopeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyIpamScopeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) (*request.Request, *ec2.ModifyIpamScopeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamScopeInput) *ec2.ModifyIpamScopeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyIpamScopeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIpamScopeWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamScopeInput, _a2 ...request.Option) (*ec2.ModifyIpamScopeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIpamScopeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamScopeInput, ...request.Option) (*ec2.ModifyIpamScopeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamScopeInput, ...request.Option) *ec2.ModifyIpamScopeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamScopeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamScopeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyIpamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyIpamWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamInput, _a2 ...request.Option) (*ec2.ModifyIpamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamInput, ...request.Option) (*ec2.ModifyIpamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamInput, ...request.Option) *ec2.ModifyIpamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLaunchTemplate provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyLaunchTemplate(_a0 *ec2.ModifyLaunchTemplateInput) (*ec2.ModifyLaunchTemplateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) (*ec2.ModifyLaunchTemplateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) *ec2.ModifyLaunchTemplateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyLaunchTemplateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLaunchTemplateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyLaunchTemplateRequest(_a0 *ec2.ModifyLaunchTemplateInput) (*request.Request, *ec2.ModifyLaunchTemplateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyLaunchTemplateOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) (*request.Request, *ec2.ModifyLaunchTemplateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyLaunchTemplateInput) *ec2.ModifyLaunchTemplateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyLaunchTemplateOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.ModifyLaunchTemplateInput, _a2 ...request.Option) (*ec2.ModifyLaunchTemplateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyLaunchTemplateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...request.Option) (*ec2.ModifyLaunchTemplateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...request.Option) *ec2.ModifyLaunchTemplateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyLaunchTemplateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLocalGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyLocalGatewayRoute(_a0 *ec2.ModifyLocalGatewayRouteInput) (*ec2.ModifyLocalGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLocalGatewayRouteInput) (*ec2.ModifyLocalGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLocalGatewayRouteInput) *ec2.ModifyLocalGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyLocalGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLocalGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyLocalGatewayRouteRequest(_a0 *ec2.ModifyLocalGatewayRouteInput) (*request.Request, *ec2.ModifyLocalGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyLocalGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLocalGatewayRouteInput) (*request.Request, *ec2.ModifyLocalGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyLocalGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyLocalGatewayRouteInput) *ec2.ModifyLocalGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyLocalGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyLocalGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyLocalGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.ModifyLocalGatewayRouteInput, _a2 ...request.Option) (*ec2.ModifyLocalGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyLocalGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLocalGatewayRouteInput, ...request.Option) (*ec2.ModifyLocalGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLocalGatewayRouteInput, ...request.Option) *ec2.ModifyLocalGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyLocalGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyLocalGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyManagedPrefixList provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyManagedPrefixList(_a0 *ec2.ModifyManagedPrefixListInput) (*ec2.ModifyManagedPrefixListOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) (*ec2.ModifyManagedPrefixListOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) *ec2.ModifyManagedPrefixListOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyManagedPrefixListInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyManagedPrefixListRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyManagedPrefixListRequest(_a0 *ec2.ModifyManagedPrefixListInput) (*request.Request, *ec2.ModifyManagedPrefixListOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyManagedPrefixListOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) (*request.Request, *ec2.ModifyManagedPrefixListOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyManagedPrefixListInput) *ec2.ModifyManagedPrefixListOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyManagedPrefixListOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.ModifyManagedPrefixListInput, _a2 ...request.Option) (*ec2.ModifyManagedPrefixListOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyManagedPrefixListOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...request.Option) (*ec2.ModifyManagedPrefixListOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...request.Option) *ec2.ModifyManagedPrefixListOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyManagedPrefixListOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyNetworkInterfaceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyNetworkInterfaceAttribute(_a0 *ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *ec2.ModifyNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyNetworkInterfaceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyNetworkInterfaceAttributeRequest(_a0 *ec2.ModifyNetworkInterfaceAttributeInput) (*request.Request, *ec2.ModifyNetworkInterfaceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyNetworkInterfaceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) (*request.Request, *ec2.ModifyNetworkInterfaceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *ec2.ModifyNetworkInterfaceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyNetworkInterfaceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...request.Option) (*ec2.ModifyNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...request.Option) *ec2.ModifyNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyPrivateDnsNameOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyPrivateDnsNameOptions(_a0 *ec2.ModifyPrivateDnsNameOptionsInput) (*ec2.ModifyPrivateDnsNameOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyPrivateDnsNameOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) (*ec2.ModifyPrivateDnsNameOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *ec2.ModifyPrivateDnsNameOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyPrivateDnsNameOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyPrivateDnsNameOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyPrivateDnsNameOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyPrivateDnsNameOptionsRequest(_a0 *ec2.ModifyPrivateDnsNameOptionsInput) (*request.Request, *ec2.ModifyPrivateDnsNameOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyPrivateDnsNameOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) (*request.Request, *ec2.ModifyPrivateDnsNameOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *ec2.ModifyPrivateDnsNameOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyPrivateDnsNameOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyPrivateDnsNameOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyPrivateDnsNameOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyPrivateDnsNameOptionsInput, _a2 ...request.Option) (*ec2.ModifyPrivateDnsNameOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyPrivateDnsNameOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...request.Option) (*ec2.ModifyPrivateDnsNameOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...request.Option) *ec2.ModifyPrivateDnsNameOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyPrivateDnsNameOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReservedInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyReservedInstances(_a0 *ec2.ModifyReservedInstancesInput) (*ec2.ModifyReservedInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) (*ec2.ModifyReservedInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) *ec2.ModifyReservedInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyReservedInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReservedInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyReservedInstancesRequest(_a0 *ec2.ModifyReservedInstancesInput) (*request.Request, *ec2.ModifyReservedInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyReservedInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) (*request.Request, *ec2.ModifyReservedInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyReservedInstancesInput) *ec2.ModifyReservedInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyReservedInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.ModifyReservedInstancesInput, _a2 ...request.Option) (*ec2.ModifyReservedInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyReservedInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...request.Option) (*ec2.ModifyReservedInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...request.Option) *ec2.ModifyReservedInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyReservedInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySecurityGroupRules provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySecurityGroupRules(_a0 *ec2.ModifySecurityGroupRulesInput) (*ec2.ModifySecurityGroupRulesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifySecurityGroupRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) (*ec2.ModifySecurityGroupRulesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) *ec2.ModifySecurityGroupRulesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySecurityGroupRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySecurityGroupRulesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySecurityGroupRulesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySecurityGroupRulesRequest(_a0 *ec2.ModifySecurityGroupRulesInput) (*request.Request, *ec2.ModifySecurityGroupRulesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifySecurityGroupRulesOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) (*request.Request, *ec2.ModifySecurityGroupRulesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySecurityGroupRulesInput) *ec2.ModifySecurityGroupRulesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifySecurityGroupRulesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifySecurityGroupRulesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifySecurityGroupRulesWithContext(_a0 context.Context, _a1 *ec2.ModifySecurityGroupRulesInput, _a2 ...request.Option) (*ec2.ModifySecurityGroupRulesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifySecurityGroupRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...request.Option) (*ec2.ModifySecurityGroupRulesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...request.Option) *ec2.ModifySecurityGroupRulesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySecurityGroupRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySnapshotAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySnapshotAttribute(_a0 *ec2.ModifySnapshotAttributeInput) (*ec2.ModifySnapshotAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifySnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) (*ec2.ModifySnapshotAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) *ec2.ModifySnapshotAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySnapshotAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySnapshotAttributeRequest(_a0 *ec2.ModifySnapshotAttributeInput) (*request.Request, *ec2.ModifySnapshotAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifySnapshotAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) (*request.Request, *ec2.ModifySnapshotAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotAttributeInput) *ec2.ModifySnapshotAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifySnapshotAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifySnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifySnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifySnapshotAttributeInput, _a2 ...request.Option) (*ec2.ModifySnapshotAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifySnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...request.Option) (*ec2.ModifySnapshotAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...request.Option) *ec2.ModifySnapshotAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySnapshotTier provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySnapshotTier(_a0 *ec2.ModifySnapshotTierInput) (*ec2.ModifySnapshotTierOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifySnapshotTierOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) (*ec2.ModifySnapshotTierOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) *ec2.ModifySnapshotTierOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySnapshotTierOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotTierInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySnapshotTierRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySnapshotTierRequest(_a0 *ec2.ModifySnapshotTierInput) (*request.Request, *ec2.ModifySnapshotTierOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifySnapshotTierOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) (*request.Request, *ec2.ModifySnapshotTierOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotTierInput) *ec2.ModifySnapshotTierOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifySnapshotTierOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifySnapshotTierWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifySnapshotTierWithContext(_a0 context.Context, _a1 *ec2.ModifySnapshotTierInput, _a2 ...request.Option) (*ec2.ModifySnapshotTierOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifySnapshotTierOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotTierInput, ...request.Option) (*ec2.ModifySnapshotTierOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotTierInput, ...request.Option) *ec2.ModifySnapshotTierOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySnapshotTierOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotTierInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySpotFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySpotFleetRequest(_a0 *ec2.ModifySpotFleetRequestInput) (*ec2.ModifySpotFleetRequestOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifySpotFleetRequestOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) (*ec2.ModifySpotFleetRequestOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) *ec2.ModifySpotFleetRequestOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySpotFleetRequestOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySpotFleetRequestInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySpotFleetRequestRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySpotFleetRequestRequest(_a0 *ec2.ModifySpotFleetRequestInput) (*request.Request, *ec2.ModifySpotFleetRequestOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifySpotFleetRequestOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) (*request.Request, *ec2.ModifySpotFleetRequestOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySpotFleetRequestInput) *ec2.ModifySpotFleetRequestOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifySpotFleetRequestOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifySpotFleetRequestWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifySpotFleetRequestWithContext(_a0 context.Context, _a1 *ec2.ModifySpotFleetRequestInput, _a2 ...request.Option) (*ec2.ModifySpotFleetRequestOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifySpotFleetRequestOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...request.Option) (*ec2.ModifySpotFleetRequestOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...request.Option) *ec2.ModifySpotFleetRequestOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySpotFleetRequestOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySubnetAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySubnetAttribute(_a0 *ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifySubnetAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) *ec2.ModifySubnetAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySubnetAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySubnetAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifySubnetAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifySubnetAttributeRequest(_a0 *ec2.ModifySubnetAttributeInput) (*request.Request, *ec2.ModifySubnetAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifySubnetAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) (*request.Request, *ec2.ModifySubnetAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifySubnetAttributeInput) *ec2.ModifySubnetAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifySubnetAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifySubnetAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifySubnetAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifySubnetAttributeInput, _a2 ...request.Option) (*ec2.ModifySubnetAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifySubnetAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) (*ec2.ModifySubnetAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) *ec2.ModifySubnetAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifySubnetAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterNetworkServices provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterNetworkServices(_a0 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterNetworkServicesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterNetworkServicesRequest(_a0 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterNetworkServicesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterNetworkServicesWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...request.Option) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...request.Option) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterRule provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterRule(_a0 *ec2.ModifyTrafficMirrorFilterRuleInput) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterRuleRequest(_a0 *ec2.ModifyTrafficMirrorFilterRuleInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTrafficMirrorFilterRuleOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorFilterRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTrafficMirrorFilterRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...request.Option) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...request.Option) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorSession provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorSession(_a0 *ec2.ModifyTrafficMirrorSessionInput) (*ec2.ModifyTrafficMirrorSessionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) (*ec2.ModifyTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) *ec2.ModifyTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorSessionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorSessionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTrafficMirrorSessionRequest(_a0 *ec2.ModifyTrafficMirrorSessionInput) (*request.Request, *ec2.ModifyTrafficMirrorSessionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTrafficMirrorSessionOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) (*request.Request, *ec2.ModifyTrafficMirrorSessionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorSessionInput) *ec2.ModifyTrafficMirrorSessionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorSessionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorSessionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTrafficMirrorSessionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...request.Option) (*ec2.ModifyTrafficMirrorSessionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...request.Option) *ec2.ModifyTrafficMirrorSessionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorSessionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGateway provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGateway(_a0 *ec2.ModifyTransitGatewayInput) (*ec2.ModifyTransitGatewayOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) (*ec2.ModifyTransitGatewayOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) *ec2.ModifyTransitGatewayOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayPrefixListReference provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGatewayPrefixListReference(_a0 *ec2.ModifyTransitGatewayPrefixListReferenceInput) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGatewayPrefixListReferenceRequest(_a0 *ec2.ModifyTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.ModifyTransitGatewayPrefixListReferenceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTransitGatewayPrefixListReferenceOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.ModifyTransitGatewayPrefixListReferenceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTransitGatewayPrefixListReferenceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...request.Option) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGatewayRequest(_a0 *ec2.ModifyTransitGatewayInput) (*request.Request, *ec2.ModifyTransitGatewayOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTransitGatewayOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) (*request.Request, *ec2.ModifyTransitGatewayOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayInput) *ec2.ModifyTransitGatewayOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTransitGatewayOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayVpcAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGatewayVpcAttachment(_a0 *ec2.ModifyTransitGatewayVpcAttachmentInput) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyTransitGatewayVpcAttachmentRequest(_a0 *ec2.ModifyTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.ModifyTransitGatewayVpcAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyTransitGatewayVpcAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.ModifyTransitGatewayVpcAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyTransitGatewayVpcAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyTransitGatewayOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...request.Option) (*ec2.ModifyTransitGatewayOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...request.Option) *ec2.ModifyTransitGatewayOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyTransitGatewayOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVolume provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVolume(_a0 *ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) *ec2.ModifyVolumeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVolumeAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVolumeAttribute(_a0 *ec2.ModifyVolumeAttributeInput) (*ec2.ModifyVolumeAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVolumeAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) (*ec2.ModifyVolumeAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) *ec2.ModifyVolumeAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVolumeAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVolumeAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVolumeAttributeRequest(_a0 *ec2.ModifyVolumeAttributeInput) (*request.Request, *ec2.ModifyVolumeAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVolumeAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) (*request.Request, *ec2.ModifyVolumeAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeAttributeInput) *ec2.ModifyVolumeAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVolumeAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVolumeAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVolumeAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyVolumeAttributeInput, _a2 ...request.Option) (*ec2.ModifyVolumeAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVolumeAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...request.Option) (*ec2.ModifyVolumeAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...request.Option) *ec2.ModifyVolumeAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVolumeAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVolumeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVolumeRequest(_a0 *ec2.ModifyVolumeInput) (*request.Request, *ec2.ModifyVolumeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVolumeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) (*request.Request, *ec2.ModifyVolumeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeInput) *ec2.ModifyVolumeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVolumeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVolumeWithContext(_a0 context.Context, _a1 *ec2.ModifyVolumeInput, _a2 ...request.Option) (*ec2.ModifyVolumeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVolumeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeInput, ...request.Option) (*ec2.ModifyVolumeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeInput, ...request.Option) *ec2.ModifyVolumeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVolumeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcAttribute(_a0 *ec2.ModifyVpcAttributeInput) (*ec2.ModifyVpcAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) (*ec2.ModifyVpcAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) *ec2.ModifyVpcAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcAttributeRequest(_a0 *ec2.ModifyVpcAttributeInput) (*request.Request, *ec2.ModifyVpcAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) (*request.Request, *ec2.ModifyVpcAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcAttributeInput) *ec2.ModifyVpcAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcAttributeInput, _a2 ...request.Option) (*ec2.ModifyVpcAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...request.Option) (*ec2.ModifyVpcAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...request.Option) *ec2.ModifyVpcAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpoint(_a0 *ec2.ModifyVpcEndpointInput) (*ec2.ModifyVpcEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) (*ec2.ModifyVpcEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) *ec2.ModifyVpcEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointConnectionNotification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointConnectionNotification(_a0 *ec2.ModifyVpcEndpointConnectionNotificationInput) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcEndpointConnectionNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointConnectionNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointConnectionNotificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointConnectionNotificationRequest(_a0 *ec2.ModifyVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.ModifyVpcEndpointConnectionNotificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcEndpointConnectionNotificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.ModifyVpcEndpointConnectionNotificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcEndpointConnectionNotificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointConnectionNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcEndpointConnectionNotificationWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointConnectionNotificationInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcEndpointConnectionNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...request.Option) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...request.Option) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointConnectionNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointRequest(_a0 *ec2.ModifyVpcEndpointInput) (*request.Request, *ec2.ModifyVpcEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcEndpointOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) (*request.Request, *ec2.ModifyVpcEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointInput) *ec2.ModifyVpcEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServiceConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServiceConfiguration(_a0 *ec2.ModifyVpcEndpointServiceConfigurationInput) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcEndpointServiceConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServiceConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServiceConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServiceConfigurationRequest(_a0 *ec2.ModifyVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.ModifyVpcEndpointServiceConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcEndpointServiceConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.ModifyVpcEndpointServiceConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServiceConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServiceConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcEndpointServiceConfigurationWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServiceConfigurationInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcEndpointServiceConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...request.Option) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...request.Option) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServiceConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePayerResponsibility provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePayerResponsibility(_a0 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePayerResponsibilityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePayerResponsibilityRequest(_a0 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*request.Request, *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*request.Request, *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePayerResponsibilityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePayerResponsibilityWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...request.Option) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...request.Option) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePermissions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePermissions(_a0 *ec2.ModifyVpcEndpointServicePermissionsInput) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcEndpointServicePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePermissionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePermissionsRequest(_a0 *ec2.ModifyVpcEndpointServicePermissionsInput) (*request.Request, *ec2.ModifyVpcEndpointServicePermissionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcEndpointServicePermissionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) (*request.Request, *ec2.ModifyVpcEndpointServicePermissionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServicePermissionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointServicePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcEndpointServicePermissionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServicePermissionsInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcEndpointServicePermissionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...request.Option) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...request.Option) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePermissionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcEndpointWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) (*ec2.ModifyVpcEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) *ec2.ModifyVpcEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcPeeringConnectionOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcPeeringConnectionOptions(_a0 *ec2.ModifyVpcPeeringConnectionOptionsInput) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcPeeringConnectionOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcPeeringConnectionOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcPeeringConnectionOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcPeeringConnectionOptionsRequest(_a0 *ec2.ModifyVpcPeeringConnectionOptionsInput) (*request.Request, *ec2.ModifyVpcPeeringConnectionOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcPeeringConnectionOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) (*request.Request, *ec2.ModifyVpcPeeringConnectionOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcPeeringConnectionOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcPeeringConnectionOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcPeeringConnectionOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcPeeringConnectionOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcPeeringConnectionOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...request.Option) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...request.Option) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcPeeringConnectionOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcTenancy provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcTenancy(_a0 *ec2.ModifyVpcTenancyInput) (*ec2.ModifyVpcTenancyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpcTenancyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) (*ec2.ModifyVpcTenancyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) *ec2.ModifyVpcTenancyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcTenancyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcTenancyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpcTenancyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpcTenancyRequest(_a0 *ec2.ModifyVpcTenancyInput) (*request.Request, *ec2.ModifyVpcTenancyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpcTenancyOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) (*request.Request, *ec2.ModifyVpcTenancyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcTenancyInput) *ec2.ModifyVpcTenancyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpcTenancyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpcTenancyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpcTenancyWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcTenancyInput, _a2 ...request.Option) (*ec2.ModifyVpcTenancyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpcTenancyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...request.Option) (*ec2.ModifyVpcTenancyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...request.Option) *ec2.ModifyVpcTenancyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpcTenancyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnConnection(_a0 *ec2.ModifyVpnConnectionInput) (*ec2.ModifyVpnConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) (*ec2.ModifyVpnConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) *ec2.ModifyVpnConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnectionOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnConnectionOptions(_a0 *ec2.ModifyVpnConnectionOptionsInput) (*ec2.ModifyVpnConnectionOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpnConnectionOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) (*ec2.ModifyVpnConnectionOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) *ec2.ModifyVpnConnectionOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnectionOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnConnectionOptionsRequest(_a0 *ec2.ModifyVpnConnectionOptionsInput) (*request.Request, *ec2.ModifyVpnConnectionOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpnConnectionOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) (*request.Request, *ec2.ModifyVpnConnectionOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionOptionsInput) *ec2.ModifyVpnConnectionOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpnConnectionOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnectionOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpnConnectionOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnConnectionOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpnConnectionOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpnConnectionOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...request.Option) (*ec2.ModifyVpnConnectionOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...request.Option) *ec2.ModifyVpnConnectionOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnConnectionRequest(_a0 *ec2.ModifyVpnConnectionInput) (*request.Request, *ec2.ModifyVpnConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpnConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) (*request.Request, *ec2.ModifyVpnConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionInput) *ec2.ModifyVpnConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpnConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnConnectionInput, _a2 ...request.Option) (*ec2.ModifyVpnConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpnConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...request.Option) (*ec2.ModifyVpnConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...request.Option) *ec2.ModifyVpnConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnTunnelCertificate(_a0 *ec2.ModifyVpnTunnelCertificateInput) (*ec2.ModifyVpnTunnelCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpnTunnelCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) (*ec2.ModifyVpnTunnelCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) *ec2.ModifyVpnTunnelCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnTunnelCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnTunnelCertificateRequest(_a0 *ec2.ModifyVpnTunnelCertificateInput) (*request.Request, *ec2.ModifyVpnTunnelCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpnTunnelCertificateOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) (*request.Request, *ec2.ModifyVpnTunnelCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelCertificateInput) *ec2.ModifyVpnTunnelCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpnTunnelCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpnTunnelCertificateWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnTunnelCertificateInput, _a2 ...request.Option) (*ec2.ModifyVpnTunnelCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpnTunnelCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...request.Option) (*ec2.ModifyVpnTunnelCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...request.Option) *ec2.ModifyVpnTunnelCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnTunnelCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelOptions provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnTunnelOptions(_a0 *ec2.ModifyVpnTunnelOptionsInput) (*ec2.ModifyVpnTunnelOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ModifyVpnTunnelOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) (*ec2.ModifyVpnTunnelOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) *ec2.ModifyVpnTunnelOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnTunnelOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ModifyVpnTunnelOptionsRequest(_a0 *ec2.ModifyVpnTunnelOptionsInput) (*request.Request, *ec2.ModifyVpnTunnelOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ModifyVpnTunnelOptionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) (*request.Request, *ec2.ModifyVpnTunnelOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelOptionsInput) *ec2.ModifyVpnTunnelOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ModifyVpnTunnelOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyVpnTunnelOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ModifyVpnTunnelOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnTunnelOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpnTunnelOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ModifyVpnTunnelOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...request.Option) (*ec2.ModifyVpnTunnelOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...request.Option) *ec2.ModifyVpnTunnelOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ModifyVpnTunnelOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MonitorInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MonitorInstances(_a0 *ec2.MonitorInstancesInput) (*ec2.MonitorInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.MonitorInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) (*ec2.MonitorInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) *ec2.MonitorInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MonitorInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MonitorInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MonitorInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MonitorInstancesRequest(_a0 *ec2.MonitorInstancesInput) (*request.Request, *ec2.MonitorInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.MonitorInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) (*request.Request, *ec2.MonitorInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MonitorInstancesInput) *ec2.MonitorInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.MonitorInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// MonitorInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) MonitorInstancesWithContext(_a0 context.Context, _a1 *ec2.MonitorInstancesInput, _a2 ...request.Option) (*ec2.MonitorInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.MonitorInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MonitorInstancesInput, ...request.Option) (*ec2.MonitorInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MonitorInstancesInput, ...request.Option) *ec2.MonitorInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MonitorInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.MonitorInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MoveAddressToVpc provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MoveAddressToVpc(_a0 *ec2.MoveAddressToVpcInput) (*ec2.MoveAddressToVpcOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.MoveAddressToVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) (*ec2.MoveAddressToVpcOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) *ec2.MoveAddressToVpcOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MoveAddressToVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MoveAddressToVpcInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MoveAddressToVpcRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MoveAddressToVpcRequest(_a0 *ec2.MoveAddressToVpcInput) (*request.Request, *ec2.MoveAddressToVpcOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.MoveAddressToVpcOutput
- if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) (*request.Request, *ec2.MoveAddressToVpcOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MoveAddressToVpcInput) *ec2.MoveAddressToVpcOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.MoveAddressToVpcOutput)
- }
- }
-
- return r0, r1
-}
-
-// MoveAddressToVpcWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) MoveAddressToVpcWithContext(_a0 context.Context, _a1 *ec2.MoveAddressToVpcInput, _a2 ...request.Option) (*ec2.MoveAddressToVpcOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.MoveAddressToVpcOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveAddressToVpcInput, ...request.Option) (*ec2.MoveAddressToVpcOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveAddressToVpcInput, ...request.Option) *ec2.MoveAddressToVpcOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MoveAddressToVpcOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveAddressToVpcInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MoveByoipCidrToIpam provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MoveByoipCidrToIpam(_a0 *ec2.MoveByoipCidrToIpamInput) (*ec2.MoveByoipCidrToIpamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.MoveByoipCidrToIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) (*ec2.MoveByoipCidrToIpamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) *ec2.MoveByoipCidrToIpamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MoveByoipCidrToIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MoveByoipCidrToIpamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// MoveByoipCidrToIpamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) MoveByoipCidrToIpamRequest(_a0 *ec2.MoveByoipCidrToIpamInput) (*request.Request, *ec2.MoveByoipCidrToIpamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.MoveByoipCidrToIpamOutput
- if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) (*request.Request, *ec2.MoveByoipCidrToIpamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.MoveByoipCidrToIpamInput) *ec2.MoveByoipCidrToIpamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.MoveByoipCidrToIpamOutput)
- }
- }
-
- return r0, r1
-}
-
-// MoveByoipCidrToIpamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) MoveByoipCidrToIpamWithContext(_a0 context.Context, _a1 *ec2.MoveByoipCidrToIpamInput, _a2 ...request.Option) (*ec2.MoveByoipCidrToIpamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.MoveByoipCidrToIpamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...request.Option) (*ec2.MoveByoipCidrToIpamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...request.Option) *ec2.MoveByoipCidrToIpamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.MoveByoipCidrToIpamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionByoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionByoipCidr(_a0 *ec2.ProvisionByoipCidrInput) (*ec2.ProvisionByoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ProvisionByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) (*ec2.ProvisionByoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) *ec2.ProvisionByoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionByoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionByoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionByoipCidrRequest(_a0 *ec2.ProvisionByoipCidrInput) (*request.Request, *ec2.ProvisionByoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ProvisionByoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) (*request.Request, *ec2.ProvisionByoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionByoipCidrInput) *ec2.ProvisionByoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ProvisionByoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// ProvisionByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ProvisionByoipCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionByoipCidrInput, _a2 ...request.Option) (*ec2.ProvisionByoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ProvisionByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) (*ec2.ProvisionByoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) *ec2.ProvisionByoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionIpamPoolCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionIpamPoolCidr(_a0 *ec2.ProvisionIpamPoolCidrInput) (*ec2.ProvisionIpamPoolCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ProvisionIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) (*ec2.ProvisionIpamPoolCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) *ec2.ProvisionIpamPoolCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionIpamPoolCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionIpamPoolCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionIpamPoolCidrRequest(_a0 *ec2.ProvisionIpamPoolCidrInput) (*request.Request, *ec2.ProvisionIpamPoolCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ProvisionIpamPoolCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) (*request.Request, *ec2.ProvisionIpamPoolCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionIpamPoolCidrInput) *ec2.ProvisionIpamPoolCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ProvisionIpamPoolCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// ProvisionIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ProvisionIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionIpamPoolCidrInput, _a2 ...request.Option) (*ec2.ProvisionIpamPoolCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ProvisionIpamPoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...request.Option) (*ec2.ProvisionIpamPoolCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...request.Option) *ec2.ProvisionIpamPoolCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionIpamPoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionPublicIpv4PoolCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionPublicIpv4PoolCidr(_a0 *ec2.ProvisionPublicIpv4PoolCidrInput) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ProvisionPublicIpv4PoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionPublicIpv4PoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ProvisionPublicIpv4PoolCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ProvisionPublicIpv4PoolCidrRequest(_a0 *ec2.ProvisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.ProvisionPublicIpv4PoolCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ProvisionPublicIpv4PoolCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.ProvisionPublicIpv4PoolCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ProvisionPublicIpv4PoolCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// ProvisionPublicIpv4PoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ProvisionPublicIpv4PoolCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionPublicIpv4PoolCidrInput, _a2 ...request.Option) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ProvisionPublicIpv4PoolCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ProvisionPublicIpv4PoolCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseHostReservation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseHostReservation(_a0 *ec2.PurchaseHostReservationInput) (*ec2.PurchaseHostReservationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.PurchaseHostReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) (*ec2.PurchaseHostReservationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) *ec2.PurchaseHostReservationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseHostReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseHostReservationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseHostReservationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseHostReservationRequest(_a0 *ec2.PurchaseHostReservationInput) (*request.Request, *ec2.PurchaseHostReservationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.PurchaseHostReservationOutput
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) (*request.Request, *ec2.PurchaseHostReservationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseHostReservationInput) *ec2.PurchaseHostReservationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.PurchaseHostReservationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurchaseHostReservationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) PurchaseHostReservationWithContext(_a0 context.Context, _a1 *ec2.PurchaseHostReservationInput, _a2 ...request.Option) (*ec2.PurchaseHostReservationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.PurchaseHostReservationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseHostReservationInput, ...request.Option) (*ec2.PurchaseHostReservationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseHostReservationInput, ...request.Option) *ec2.PurchaseHostReservationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseHostReservationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseHostReservationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedInstancesOffering provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseReservedInstancesOffering(_a0 *ec2.PurchaseReservedInstancesOfferingInput) (*ec2.PurchaseReservedInstancesOfferingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.PurchaseReservedInstancesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) (*ec2.PurchaseReservedInstancesOfferingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) *ec2.PurchaseReservedInstancesOfferingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseReservedInstancesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseReservedInstancesOfferingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedInstancesOfferingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseReservedInstancesOfferingRequest(_a0 *ec2.PurchaseReservedInstancesOfferingInput) (*request.Request, *ec2.PurchaseReservedInstancesOfferingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.PurchaseReservedInstancesOfferingOutput
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) (*request.Request, *ec2.PurchaseReservedInstancesOfferingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseReservedInstancesOfferingInput) *ec2.PurchaseReservedInstancesOfferingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.PurchaseReservedInstancesOfferingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurchaseReservedInstancesOfferingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) PurchaseReservedInstancesOfferingWithContext(_a0 context.Context, _a1 *ec2.PurchaseReservedInstancesOfferingInput, _a2 ...request.Option) (*ec2.PurchaseReservedInstancesOfferingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.PurchaseReservedInstancesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...request.Option) (*ec2.PurchaseReservedInstancesOfferingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...request.Option) *ec2.PurchaseReservedInstancesOfferingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseReservedInstancesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseScheduledInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseScheduledInstances(_a0 *ec2.PurchaseScheduledInstancesInput) (*ec2.PurchaseScheduledInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.PurchaseScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) (*ec2.PurchaseScheduledInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) *ec2.PurchaseScheduledInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseScheduledInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseScheduledInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) PurchaseScheduledInstancesRequest(_a0 *ec2.PurchaseScheduledInstancesInput) (*request.Request, *ec2.PurchaseScheduledInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.PurchaseScheduledInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) (*request.Request, *ec2.PurchaseScheduledInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.PurchaseScheduledInstancesInput) *ec2.PurchaseScheduledInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.PurchaseScheduledInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurchaseScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) PurchaseScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.PurchaseScheduledInstancesInput, _a2 ...request.Option) (*ec2.PurchaseScheduledInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.PurchaseScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...request.Option) (*ec2.PurchaseScheduledInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...request.Option) *ec2.PurchaseScheduledInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.PurchaseScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RebootInstances(_a0 *ec2.RebootInstancesInput) (*ec2.RebootInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RebootInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) (*ec2.RebootInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) *ec2.RebootInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RebootInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RebootInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RebootInstancesRequest(_a0 *ec2.RebootInstancesInput) (*request.Request, *ec2.RebootInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RebootInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) (*request.Request, *ec2.RebootInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RebootInstancesInput) *ec2.RebootInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RebootInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RebootInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RebootInstancesWithContext(_a0 context.Context, _a1 *ec2.RebootInstancesInput, _a2 ...request.Option) (*ec2.RebootInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RebootInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RebootInstancesInput, ...request.Option) (*ec2.RebootInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RebootInstancesInput, ...request.Option) *ec2.RebootInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RebootInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RebootInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterImage provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterImage(_a0 *ec2.RegisterImageInput) (*ec2.RegisterImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RegisterImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) (*ec2.RegisterImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) *ec2.RegisterImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterImageRequest(_a0 *ec2.RegisterImageInput) (*request.Request, *ec2.RegisterImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RegisterImageOutput
- if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) (*request.Request, *ec2.RegisterImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterImageInput) *ec2.RegisterImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RegisterImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RegisterImageWithContext(_a0 context.Context, _a1 *ec2.RegisterImageInput, _a2 ...request.Option) (*ec2.RegisterImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RegisterImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterImageInput, ...request.Option) (*ec2.RegisterImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterImageInput, ...request.Option) *ec2.RegisterImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterInstanceEventNotificationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterInstanceEventNotificationAttributes(_a0 *ec2.RegisterInstanceEventNotificationAttributesInput) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RegisterInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterInstanceEventNotificationAttributesRequest(_a0 *ec2.RegisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.RegisterInstanceEventNotificationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RegisterInstanceEventNotificationAttributesOutput
- if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.RegisterInstanceEventNotificationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RegisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RegisterInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.RegisterInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RegisterInstanceEventNotificationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...request.Option) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...request.Option) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterInstanceEventNotificationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupMembers(_a0 *ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupMembersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupMembersRequest(_a0 *ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupMembersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupMembersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupMembersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupMembersWithContext(_a0 context.Context, _a1 *ec2.RegisterTransitGatewayMulticastGroupMembersInput, _a2 ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...request.Option) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupSources provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupSources(_a0 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupSourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupSourcesRequest(_a0 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterTransitGatewayMulticastGroupSourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupSourcesWithContext(_a0 context.Context, _a1 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, _a2 ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayMulticastDomainAssociations(_a0 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RejectTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...request.Option) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayPeeringAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayPeeringAttachment(_a0 *ec2.RejectTransitGatewayPeeringAttachmentInput) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RejectTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayPeeringAttachmentRequest(_a0 *ec2.RejectTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayPeeringAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RejectTransitGatewayPeeringAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayPeeringAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RejectTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RejectTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RejectTransitGatewayPeeringAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...request.Option) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayPeeringAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayVpcAttachment provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayVpcAttachment(_a0 *ec2.RejectTransitGatewayVpcAttachmentInput) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RejectTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectTransitGatewayVpcAttachmentRequest(_a0 *ec2.RejectTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayVpcAttachmentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RejectTransitGatewayVpcAttachmentOutput
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayVpcAttachmentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RejectTransitGatewayVpcAttachmentOutput)
- }
- }
-
- return r0, r1
-}
-
-// RejectTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RejectTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RejectTransitGatewayVpcAttachmentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectTransitGatewayVpcAttachmentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectVpcEndpointConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectVpcEndpointConnections(_a0 *ec2.RejectVpcEndpointConnectionsInput) (*ec2.RejectVpcEndpointConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RejectVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) (*ec2.RejectVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) *ec2.RejectVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectVpcEndpointConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectVpcEndpointConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectVpcEndpointConnectionsRequest(_a0 *ec2.RejectVpcEndpointConnectionsInput) (*request.Request, *ec2.RejectVpcEndpointConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RejectVpcEndpointConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) (*request.Request, *ec2.RejectVpcEndpointConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectVpcEndpointConnectionsInput) *ec2.RejectVpcEndpointConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RejectVpcEndpointConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RejectVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RejectVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.RejectVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.RejectVpcEndpointConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RejectVpcEndpointConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) (*ec2.RejectVpcEndpointConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) *ec2.RejectVpcEndpointConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectVpcEndpointConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectVpcPeeringConnection provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectVpcPeeringConnection(_a0 *ec2.RejectVpcPeeringConnectionInput) (*ec2.RejectVpcPeeringConnectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RejectVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) (*ec2.RejectVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) *ec2.RejectVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectVpcPeeringConnectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RejectVpcPeeringConnectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RejectVpcPeeringConnectionRequest(_a0 *ec2.RejectVpcPeeringConnectionInput) (*request.Request, *ec2.RejectVpcPeeringConnectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RejectVpcPeeringConnectionOutput
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) (*request.Request, *ec2.RejectVpcPeeringConnectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RejectVpcPeeringConnectionInput) *ec2.RejectVpcPeeringConnectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RejectVpcPeeringConnectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RejectVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RejectVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.RejectVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.RejectVpcPeeringConnectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RejectVpcPeeringConnectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...request.Option) (*ec2.RejectVpcPeeringConnectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...request.Option) *ec2.RejectVpcPeeringConnectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RejectVpcPeeringConnectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseAddress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseAddress(_a0 *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReleaseAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) *ec2.ReleaseAddressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseAddressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseAddressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseAddressRequest(_a0 *ec2.ReleaseAddressInput) (*request.Request, *ec2.ReleaseAddressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReleaseAddressOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) (*request.Request, *ec2.ReleaseAddressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseAddressInput) *ec2.ReleaseAddressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReleaseAddressOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReleaseAddressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReleaseAddressWithContext(_a0 context.Context, _a1 *ec2.ReleaseAddressInput, _a2 ...request.Option) (*ec2.ReleaseAddressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReleaseAddressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseAddressInput, ...request.Option) (*ec2.ReleaseAddressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseAddressInput, ...request.Option) *ec2.ReleaseAddressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseAddressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseAddressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseHosts provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseHosts(_a0 *ec2.ReleaseHostsInput) (*ec2.ReleaseHostsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReleaseHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) (*ec2.ReleaseHostsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) *ec2.ReleaseHostsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseHostsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseHostsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseHostsRequest(_a0 *ec2.ReleaseHostsInput) (*request.Request, *ec2.ReleaseHostsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReleaseHostsOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) (*request.Request, *ec2.ReleaseHostsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseHostsInput) *ec2.ReleaseHostsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReleaseHostsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReleaseHostsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReleaseHostsWithContext(_a0 context.Context, _a1 *ec2.ReleaseHostsInput, _a2 ...request.Option) (*ec2.ReleaseHostsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReleaseHostsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseHostsInput, ...request.Option) (*ec2.ReleaseHostsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseHostsInput, ...request.Option) *ec2.ReleaseHostsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseHostsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseHostsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseIpamPoolAllocation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseIpamPoolAllocation(_a0 *ec2.ReleaseIpamPoolAllocationInput) (*ec2.ReleaseIpamPoolAllocationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReleaseIpamPoolAllocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) (*ec2.ReleaseIpamPoolAllocationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) *ec2.ReleaseIpamPoolAllocationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseIpamPoolAllocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseIpamPoolAllocationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReleaseIpamPoolAllocationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReleaseIpamPoolAllocationRequest(_a0 *ec2.ReleaseIpamPoolAllocationInput) (*request.Request, *ec2.ReleaseIpamPoolAllocationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReleaseIpamPoolAllocationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) (*request.Request, *ec2.ReleaseIpamPoolAllocationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReleaseIpamPoolAllocationInput) *ec2.ReleaseIpamPoolAllocationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReleaseIpamPoolAllocationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReleaseIpamPoolAllocationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReleaseIpamPoolAllocationWithContext(_a0 context.Context, _a1 *ec2.ReleaseIpamPoolAllocationInput, _a2 ...request.Option) (*ec2.ReleaseIpamPoolAllocationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReleaseIpamPoolAllocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...request.Option) (*ec2.ReleaseIpamPoolAllocationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...request.Option) *ec2.ReleaseIpamPoolAllocationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReleaseIpamPoolAllocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceIamInstanceProfileAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceIamInstanceProfileAssociation(_a0 *ec2.ReplaceIamInstanceProfileAssociationInput) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceIamInstanceProfileAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceIamInstanceProfileAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceIamInstanceProfileAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceIamInstanceProfileAssociationRequest(_a0 *ec2.ReplaceIamInstanceProfileAssociationInput) (*request.Request, *ec2.ReplaceIamInstanceProfileAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceIamInstanceProfileAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) (*request.Request, *ec2.ReplaceIamInstanceProfileAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceIamInstanceProfileAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceIamInstanceProfileAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceIamInstanceProfileAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceIamInstanceProfileAssociationInput, _a2 ...request.Option) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceIamInstanceProfileAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...request.Option) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...request.Option) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceIamInstanceProfileAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceNetworkAclAssociation(_a0 *ec2.ReplaceNetworkAclAssociationInput) (*ec2.ReplaceNetworkAclAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceNetworkAclAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) (*ec2.ReplaceNetworkAclAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) *ec2.ReplaceNetworkAclAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceNetworkAclAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceNetworkAclAssociationRequest(_a0 *ec2.ReplaceNetworkAclAssociationInput) (*request.Request, *ec2.ReplaceNetworkAclAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceNetworkAclAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) (*request.Request, *ec2.ReplaceNetworkAclAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclAssociationInput) *ec2.ReplaceNetworkAclAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceNetworkAclAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceNetworkAclAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceNetworkAclAssociationInput, _a2 ...request.Option) (*ec2.ReplaceNetworkAclAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceNetworkAclAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...request.Option) (*ec2.ReplaceNetworkAclAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...request.Option) *ec2.ReplaceNetworkAclAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceNetworkAclAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclEntry provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceNetworkAclEntry(_a0 *ec2.ReplaceNetworkAclEntryInput) (*ec2.ReplaceNetworkAclEntryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) (*ec2.ReplaceNetworkAclEntryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) *ec2.ReplaceNetworkAclEntryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclEntryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclEntryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceNetworkAclEntryRequest(_a0 *ec2.ReplaceNetworkAclEntryInput) (*request.Request, *ec2.ReplaceNetworkAclEntryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceNetworkAclEntryOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) (*request.Request, *ec2.ReplaceNetworkAclEntryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclEntryInput) *ec2.ReplaceNetworkAclEntryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceNetworkAclEntryOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.ReplaceNetworkAclEntryInput, _a2 ...request.Option) (*ec2.ReplaceNetworkAclEntryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceNetworkAclEntryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...request.Option) (*ec2.ReplaceNetworkAclEntryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...request.Option) *ec2.ReplaceNetworkAclEntryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceNetworkAclEntryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceRoute(_a0 *ec2.ReplaceRouteInput) (*ec2.ReplaceRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) (*ec2.ReplaceRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) *ec2.ReplaceRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceRouteRequest(_a0 *ec2.ReplaceRouteInput) (*request.Request, *ec2.ReplaceRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) (*request.Request, *ec2.ReplaceRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteInput) *ec2.ReplaceRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceRouteTableAssociation provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceRouteTableAssociation(_a0 *ec2.ReplaceRouteTableAssociationInput) (*ec2.ReplaceRouteTableAssociationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceRouteTableAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) (*ec2.ReplaceRouteTableAssociationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) *ec2.ReplaceRouteTableAssociationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceRouteTableAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteTableAssociationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceRouteTableAssociationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceRouteTableAssociationRequest(_a0 *ec2.ReplaceRouteTableAssociationInput) (*request.Request, *ec2.ReplaceRouteTableAssociationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceRouteTableAssociationOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) (*request.Request, *ec2.ReplaceRouteTableAssociationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteTableAssociationInput) *ec2.ReplaceRouteTableAssociationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceRouteTableAssociationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceRouteTableAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceRouteTableAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceRouteTableAssociationInput, _a2 ...request.Option) (*ec2.ReplaceRouteTableAssociationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceRouteTableAssociationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) (*ec2.ReplaceRouteTableAssociationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) *ec2.ReplaceRouteTableAssociationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceRouteTableAssociationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceRouteWithContext(_a0 context.Context, _a1 *ec2.ReplaceRouteInput, _a2 ...request.Option) (*ec2.ReplaceRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteInput, ...request.Option) (*ec2.ReplaceRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteInput, ...request.Option) *ec2.ReplaceRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceTransitGatewayRoute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceTransitGatewayRoute(_a0 *ec2.ReplaceTransitGatewayRouteInput) (*ec2.ReplaceTransitGatewayRouteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReplaceTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) (*ec2.ReplaceTransitGatewayRouteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) *ec2.ReplaceTransitGatewayRouteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceTransitGatewayRouteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplaceTransitGatewayRouteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReplaceTransitGatewayRouteRequest(_a0 *ec2.ReplaceTransitGatewayRouteInput) (*request.Request, *ec2.ReplaceTransitGatewayRouteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReplaceTransitGatewayRouteOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) (*request.Request, *ec2.ReplaceTransitGatewayRouteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReplaceTransitGatewayRouteInput) *ec2.ReplaceTransitGatewayRouteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReplaceTransitGatewayRouteOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplaceTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReplaceTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.ReplaceTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.ReplaceTransitGatewayRouteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReplaceTransitGatewayRouteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) (*ec2.ReplaceTransitGatewayRouteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) *ec2.ReplaceTransitGatewayRouteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReplaceTransitGatewayRouteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReportInstanceStatus provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReportInstanceStatus(_a0 *ec2.ReportInstanceStatusInput) (*ec2.ReportInstanceStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ReportInstanceStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) (*ec2.ReportInstanceStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) *ec2.ReportInstanceStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReportInstanceStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReportInstanceStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReportInstanceStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ReportInstanceStatusRequest(_a0 *ec2.ReportInstanceStatusInput) (*request.Request, *ec2.ReportInstanceStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ReportInstanceStatusOutput
- if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) (*request.Request, *ec2.ReportInstanceStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ReportInstanceStatusInput) *ec2.ReportInstanceStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ReportInstanceStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReportInstanceStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ReportInstanceStatusWithContext(_a0 context.Context, _a1 *ec2.ReportInstanceStatusInput, _a2 ...request.Option) (*ec2.ReportInstanceStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ReportInstanceStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReportInstanceStatusInput, ...request.Option) (*ec2.ReportInstanceStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReportInstanceStatusInput, ...request.Option) *ec2.ReportInstanceStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ReportInstanceStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReportInstanceStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RequestSpotFleet provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RequestSpotFleet(_a0 *ec2.RequestSpotFleetInput) (*ec2.RequestSpotFleetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RequestSpotFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) (*ec2.RequestSpotFleetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) *ec2.RequestSpotFleetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RequestSpotFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RequestSpotFleetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RequestSpotFleetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RequestSpotFleetRequest(_a0 *ec2.RequestSpotFleetInput) (*request.Request, *ec2.RequestSpotFleetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RequestSpotFleetOutput
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) (*request.Request, *ec2.RequestSpotFleetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RequestSpotFleetInput) *ec2.RequestSpotFleetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RequestSpotFleetOutput)
- }
- }
-
- return r0, r1
-}
-
-// RequestSpotFleetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RequestSpotFleetWithContext(_a0 context.Context, _a1 *ec2.RequestSpotFleetInput, _a2 ...request.Option) (*ec2.RequestSpotFleetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RequestSpotFleetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotFleetInput, ...request.Option) (*ec2.RequestSpotFleetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotFleetInput, ...request.Option) *ec2.RequestSpotFleetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RequestSpotFleetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotFleetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RequestSpotInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RequestSpotInstances(_a0 *ec2.RequestSpotInstancesInput) (*ec2.RequestSpotInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RequestSpotInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) (*ec2.RequestSpotInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) *ec2.RequestSpotInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RequestSpotInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RequestSpotInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RequestSpotInstancesRequest(_a0 *ec2.RequestSpotInstancesInput) (*request.Request, *ec2.RequestSpotInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RequestSpotInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) (*request.Request, *ec2.RequestSpotInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RequestSpotInstancesInput) *ec2.RequestSpotInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RequestSpotInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RequestSpotInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RequestSpotInstancesWithContext(_a0 context.Context, _a1 *ec2.RequestSpotInstancesInput, _a2 ...request.Option) (*ec2.RequestSpotInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RequestSpotInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotInstancesInput, ...request.Option) (*ec2.RequestSpotInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotInstancesInput, ...request.Option) *ec2.RequestSpotInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetAddressAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetAddressAttribute(_a0 *ec2.ResetAddressAttributeInput) (*ec2.ResetAddressAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetAddressAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) (*ec2.ResetAddressAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) *ec2.ResetAddressAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetAddressAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetAddressAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetAddressAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetAddressAttributeRequest(_a0 *ec2.ResetAddressAttributeInput) (*request.Request, *ec2.ResetAddressAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetAddressAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) (*request.Request, *ec2.ResetAddressAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetAddressAttributeInput) *ec2.ResetAddressAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetAddressAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetAddressAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetAddressAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetAddressAttributeInput, _a2 ...request.Option) (*ec2.ResetAddressAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetAddressAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetAddressAttributeInput, ...request.Option) (*ec2.ResetAddressAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetAddressAttributeInput, ...request.Option) *ec2.ResetAddressAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetAddressAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetAddressAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetEbsDefaultKmsKeyId provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetEbsDefaultKmsKeyId(_a0 *ec2.ResetEbsDefaultKmsKeyIdInput) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetEbsDefaultKmsKeyIdRequest(_a0 *ec2.ResetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ResetEbsDefaultKmsKeyIdOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetEbsDefaultKmsKeyIdOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ResetEbsDefaultKmsKeyIdOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.ResetEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetEbsDefaultKmsKeyIdOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...request.Option) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetEbsDefaultKmsKeyIdOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetFpgaImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetFpgaImageAttribute(_a0 *ec2.ResetFpgaImageAttributeInput) (*ec2.ResetFpgaImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) (*ec2.ResetFpgaImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) *ec2.ResetFpgaImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetFpgaImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetFpgaImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetFpgaImageAttributeRequest(_a0 *ec2.ResetFpgaImageAttributeInput) (*request.Request, *ec2.ResetFpgaImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetFpgaImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) (*request.Request, *ec2.ResetFpgaImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetFpgaImageAttributeInput) *ec2.ResetFpgaImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetFpgaImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.ResetFpgaImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetFpgaImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...request.Option) (*ec2.ResetFpgaImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...request.Option) *ec2.ResetFpgaImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetFpgaImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetImageAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetImageAttribute(_a0 *ec2.ResetImageAttributeInput) (*ec2.ResetImageAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) (*ec2.ResetImageAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) *ec2.ResetImageAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetImageAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetImageAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetImageAttributeRequest(_a0 *ec2.ResetImageAttributeInput) (*request.Request, *ec2.ResetImageAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetImageAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) (*request.Request, *ec2.ResetImageAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetImageAttributeInput) *ec2.ResetImageAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetImageAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetImageAttributeInput, _a2 ...request.Option) (*ec2.ResetImageAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetImageAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetImageAttributeInput, ...request.Option) (*ec2.ResetImageAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetImageAttributeInput, ...request.Option) *ec2.ResetImageAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetImageAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetImageAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetInstanceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetInstanceAttribute(_a0 *ec2.ResetInstanceAttributeInput) (*ec2.ResetInstanceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) (*ec2.ResetInstanceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) *ec2.ResetInstanceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetInstanceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetInstanceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetInstanceAttributeRequest(_a0 *ec2.ResetInstanceAttributeInput) (*request.Request, *ec2.ResetInstanceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetInstanceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) (*request.Request, *ec2.ResetInstanceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetInstanceAttributeInput) *ec2.ResetInstanceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetInstanceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetInstanceAttributeInput, _a2 ...request.Option) (*ec2.ResetInstanceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetInstanceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...request.Option) (*ec2.ResetInstanceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...request.Option) *ec2.ResetInstanceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetInstanceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetNetworkInterfaceAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetNetworkInterfaceAttribute(_a0 *ec2.ResetNetworkInterfaceAttributeInput) (*ec2.ResetNetworkInterfaceAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) (*ec2.ResetNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) *ec2.ResetNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetNetworkInterfaceAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetNetworkInterfaceAttributeRequest(_a0 *ec2.ResetNetworkInterfaceAttributeInput) (*request.Request, *ec2.ResetNetworkInterfaceAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetNetworkInterfaceAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) (*request.Request, *ec2.ResetNetworkInterfaceAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetNetworkInterfaceAttributeInput) *ec2.ResetNetworkInterfaceAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetNetworkInterfaceAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.ResetNetworkInterfaceAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetNetworkInterfaceAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...request.Option) (*ec2.ResetNetworkInterfaceAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...request.Option) *ec2.ResetNetworkInterfaceAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetNetworkInterfaceAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetSnapshotAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetSnapshotAttribute(_a0 *ec2.ResetSnapshotAttributeInput) (*ec2.ResetSnapshotAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.ResetSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) (*ec2.ResetSnapshotAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) *ec2.ResetSnapshotAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetSnapshotAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetSnapshotAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) ResetSnapshotAttributeRequest(_a0 *ec2.ResetSnapshotAttributeInput) (*request.Request, *ec2.ResetSnapshotAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.ResetSnapshotAttributeOutput
- if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) (*request.Request, *ec2.ResetSnapshotAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.ResetSnapshotAttributeInput) *ec2.ResetSnapshotAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.ResetSnapshotAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) ResetSnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetSnapshotAttributeInput, _a2 ...request.Option) (*ec2.ResetSnapshotAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.ResetSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...request.Option) (*ec2.ResetSnapshotAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...request.Option) *ec2.ResetSnapshotAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.ResetSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreAddressToClassic provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreAddressToClassic(_a0 *ec2.RestoreAddressToClassicInput) (*ec2.RestoreAddressToClassicOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RestoreAddressToClassicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) (*ec2.RestoreAddressToClassicOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) *ec2.RestoreAddressToClassicOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreAddressToClassicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreAddressToClassicInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreAddressToClassicRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreAddressToClassicRequest(_a0 *ec2.RestoreAddressToClassicInput) (*request.Request, *ec2.RestoreAddressToClassicOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RestoreAddressToClassicOutput
- if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) (*request.Request, *ec2.RestoreAddressToClassicOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreAddressToClassicInput) *ec2.RestoreAddressToClassicOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RestoreAddressToClassicOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreAddressToClassicWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RestoreAddressToClassicWithContext(_a0 context.Context, _a1 *ec2.RestoreAddressToClassicInput, _a2 ...request.Option) (*ec2.RestoreAddressToClassicOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RestoreAddressToClassicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...request.Option) (*ec2.RestoreAddressToClassicOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...request.Option) *ec2.RestoreAddressToClassicOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreAddressToClassicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreImageFromRecycleBin provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreImageFromRecycleBin(_a0 *ec2.RestoreImageFromRecycleBinInput) (*ec2.RestoreImageFromRecycleBinOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RestoreImageFromRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) (*ec2.RestoreImageFromRecycleBinOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) *ec2.RestoreImageFromRecycleBinOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreImageFromRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreImageFromRecycleBinInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreImageFromRecycleBinRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreImageFromRecycleBinRequest(_a0 *ec2.RestoreImageFromRecycleBinInput) (*request.Request, *ec2.RestoreImageFromRecycleBinOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RestoreImageFromRecycleBinOutput
- if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) (*request.Request, *ec2.RestoreImageFromRecycleBinOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreImageFromRecycleBinInput) *ec2.RestoreImageFromRecycleBinOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RestoreImageFromRecycleBinOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreImageFromRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RestoreImageFromRecycleBinWithContext(_a0 context.Context, _a1 *ec2.RestoreImageFromRecycleBinInput, _a2 ...request.Option) (*ec2.RestoreImageFromRecycleBinOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RestoreImageFromRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...request.Option) (*ec2.RestoreImageFromRecycleBinOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...request.Option) *ec2.RestoreImageFromRecycleBinOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreImageFromRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreManagedPrefixListVersion provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreManagedPrefixListVersion(_a0 *ec2.RestoreManagedPrefixListVersionInput) (*ec2.RestoreManagedPrefixListVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RestoreManagedPrefixListVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) (*ec2.RestoreManagedPrefixListVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) *ec2.RestoreManagedPrefixListVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreManagedPrefixListVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreManagedPrefixListVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreManagedPrefixListVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreManagedPrefixListVersionRequest(_a0 *ec2.RestoreManagedPrefixListVersionInput) (*request.Request, *ec2.RestoreManagedPrefixListVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RestoreManagedPrefixListVersionOutput
- if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) (*request.Request, *ec2.RestoreManagedPrefixListVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreManagedPrefixListVersionInput) *ec2.RestoreManagedPrefixListVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RestoreManagedPrefixListVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreManagedPrefixListVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RestoreManagedPrefixListVersionWithContext(_a0 context.Context, _a1 *ec2.RestoreManagedPrefixListVersionInput, _a2 ...request.Option) (*ec2.RestoreManagedPrefixListVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RestoreManagedPrefixListVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...request.Option) (*ec2.RestoreManagedPrefixListVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...request.Option) *ec2.RestoreManagedPrefixListVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreManagedPrefixListVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotFromRecycleBin provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreSnapshotFromRecycleBin(_a0 *ec2.RestoreSnapshotFromRecycleBinInput) (*ec2.RestoreSnapshotFromRecycleBinOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RestoreSnapshotFromRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) (*ec2.RestoreSnapshotFromRecycleBinOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *ec2.RestoreSnapshotFromRecycleBinOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreSnapshotFromRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotFromRecycleBinInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotFromRecycleBinRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreSnapshotFromRecycleBinRequest(_a0 *ec2.RestoreSnapshotFromRecycleBinInput) (*request.Request, *ec2.RestoreSnapshotFromRecycleBinOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RestoreSnapshotFromRecycleBinOutput
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) (*request.Request, *ec2.RestoreSnapshotFromRecycleBinOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *ec2.RestoreSnapshotFromRecycleBinOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RestoreSnapshotFromRecycleBinOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotFromRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RestoreSnapshotFromRecycleBinWithContext(_a0 context.Context, _a1 *ec2.RestoreSnapshotFromRecycleBinInput, _a2 ...request.Option) (*ec2.RestoreSnapshotFromRecycleBinOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RestoreSnapshotFromRecycleBinOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...request.Option) (*ec2.RestoreSnapshotFromRecycleBinOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...request.Option) *ec2.RestoreSnapshotFromRecycleBinOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreSnapshotFromRecycleBinOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotTier provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreSnapshotTier(_a0 *ec2.RestoreSnapshotTierInput) (*ec2.RestoreSnapshotTierOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RestoreSnapshotTierOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) (*ec2.RestoreSnapshotTierOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) *ec2.RestoreSnapshotTierOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreSnapshotTierOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotTierInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotTierRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RestoreSnapshotTierRequest(_a0 *ec2.RestoreSnapshotTierInput) (*request.Request, *ec2.RestoreSnapshotTierOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RestoreSnapshotTierOutput
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) (*request.Request, *ec2.RestoreSnapshotTierOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotTierInput) *ec2.RestoreSnapshotTierOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RestoreSnapshotTierOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreSnapshotTierWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RestoreSnapshotTierWithContext(_a0 context.Context, _a1 *ec2.RestoreSnapshotTierInput, _a2 ...request.Option) (*ec2.RestoreSnapshotTierOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RestoreSnapshotTierOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...request.Option) (*ec2.RestoreSnapshotTierOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...request.Option) *ec2.RestoreSnapshotTierOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RestoreSnapshotTierOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeClientVpnIngress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeClientVpnIngress(_a0 *ec2.RevokeClientVpnIngressInput) (*ec2.RevokeClientVpnIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RevokeClientVpnIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) (*ec2.RevokeClientVpnIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) *ec2.RevokeClientVpnIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeClientVpnIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeClientVpnIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeClientVpnIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeClientVpnIngressRequest(_a0 *ec2.RevokeClientVpnIngressInput) (*request.Request, *ec2.RevokeClientVpnIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RevokeClientVpnIngressOutput
- if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) (*request.Request, *ec2.RevokeClientVpnIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeClientVpnIngressInput) *ec2.RevokeClientVpnIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RevokeClientVpnIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeClientVpnIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RevokeClientVpnIngressWithContext(_a0 context.Context, _a1 *ec2.RevokeClientVpnIngressInput, _a2 ...request.Option) (*ec2.RevokeClientVpnIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RevokeClientVpnIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...request.Option) (*ec2.RevokeClientVpnIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...request.Option) *ec2.RevokeClientVpnIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeClientVpnIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupEgress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeSecurityGroupEgress(_a0 *ec2.RevokeSecurityGroupEgressInput) (*ec2.RevokeSecurityGroupEgressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RevokeSecurityGroupEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) (*ec2.RevokeSecurityGroupEgressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) *ec2.RevokeSecurityGroupEgressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeSecurityGroupEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupEgressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupEgressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeSecurityGroupEgressRequest(_a0 *ec2.RevokeSecurityGroupEgressInput) (*request.Request, *ec2.RevokeSecurityGroupEgressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RevokeSecurityGroupEgressOutput
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) (*request.Request, *ec2.RevokeSecurityGroupEgressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupEgressInput) *ec2.RevokeSecurityGroupEgressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RevokeSecurityGroupEgressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupEgressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RevokeSecurityGroupEgressWithContext(_a0 context.Context, _a1 *ec2.RevokeSecurityGroupEgressInput, _a2 ...request.Option) (*ec2.RevokeSecurityGroupEgressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RevokeSecurityGroupEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...request.Option) (*ec2.RevokeSecurityGroupEgressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...request.Option) *ec2.RevokeSecurityGroupEgressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeSecurityGroupEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeSecurityGroupIngress(_a0 *ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RevokeSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) *ec2.RevokeSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RevokeSecurityGroupIngressRequest(_a0 *ec2.RevokeSecurityGroupIngressInput) (*request.Request, *ec2.RevokeSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RevokeSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) (*request.Request, *ec2.RevokeSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupIngressInput) *ec2.RevokeSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RevokeSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RevokeSecurityGroupIngressWithContext(_a0 context.Context, _a1 *ec2.RevokeSecurityGroupIngressInput, _a2 ...request.Option) (*ec2.RevokeSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RevokeSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...request.Option) (*ec2.RevokeSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...request.Option) *ec2.RevokeSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RunInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RunInstances(_a0 *ec2.RunInstancesInput) (*ec2.Reservation, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.Reservation
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) (*ec2.Reservation, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) *ec2.Reservation); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Reservation)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RunInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RunInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RunInstancesRequest(_a0 *ec2.RunInstancesInput) (*request.Request, *ec2.Reservation) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.Reservation
- if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) (*request.Request, *ec2.Reservation)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RunInstancesInput) *ec2.Reservation); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.Reservation)
- }
- }
-
- return r0, r1
-}
-
-// RunInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RunInstancesWithContext(_a0 context.Context, _a1 *ec2.RunInstancesInput, _a2 ...request.Option) (*ec2.Reservation, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.Reservation
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunInstancesInput, ...request.Option) (*ec2.Reservation, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunInstancesInput, ...request.Option) *ec2.Reservation); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.Reservation)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RunScheduledInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RunScheduledInstances(_a0 *ec2.RunScheduledInstancesInput) (*ec2.RunScheduledInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.RunScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) (*ec2.RunScheduledInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) *ec2.RunScheduledInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RunScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RunScheduledInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RunScheduledInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) RunScheduledInstancesRequest(_a0 *ec2.RunScheduledInstancesInput) (*request.Request, *ec2.RunScheduledInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.RunScheduledInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) (*request.Request, *ec2.RunScheduledInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.RunScheduledInstancesInput) *ec2.RunScheduledInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.RunScheduledInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RunScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) RunScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.RunScheduledInstancesInput, _a2 ...request.Option) (*ec2.RunScheduledInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.RunScheduledInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunScheduledInstancesInput, ...request.Option) (*ec2.RunScheduledInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunScheduledInstancesInput, ...request.Option) *ec2.RunScheduledInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.RunScheduledInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunScheduledInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchLocalGatewayRoutes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchLocalGatewayRoutes(_a0 *ec2.SearchLocalGatewayRoutesInput) (*ec2.SearchLocalGatewayRoutesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.SearchLocalGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) (*ec2.SearchLocalGatewayRoutesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) *ec2.SearchLocalGatewayRoutesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchLocalGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchLocalGatewayRoutesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchLocalGatewayRoutesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) SearchLocalGatewayRoutesPages(_a0 *ec2.SearchLocalGatewayRoutesInput, _a1 func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput, func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SearchLocalGatewayRoutesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) SearchLocalGatewayRoutesPagesWithContext(_a0 context.Context, _a1 *ec2.SearchLocalGatewayRoutesInput, _a2 func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SearchLocalGatewayRoutesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchLocalGatewayRoutesRequest(_a0 *ec2.SearchLocalGatewayRoutesInput) (*request.Request, *ec2.SearchLocalGatewayRoutesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.SearchLocalGatewayRoutesOutput
- if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) (*request.Request, *ec2.SearchLocalGatewayRoutesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchLocalGatewayRoutesInput) *ec2.SearchLocalGatewayRoutesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.SearchLocalGatewayRoutesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SearchLocalGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) SearchLocalGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.SearchLocalGatewayRoutesInput, _a2 ...request.Option) (*ec2.SearchLocalGatewayRoutesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.SearchLocalGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...request.Option) (*ec2.SearchLocalGatewayRoutesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...request.Option) *ec2.SearchLocalGatewayRoutesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchLocalGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayMulticastGroups provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchTransitGatewayMulticastGroups(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.SearchTransitGatewayMulticastGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchTransitGatewayMulticastGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayMulticastGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeEC2) SearchTransitGatewayMulticastGroupsPages(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput, _a1 func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput, func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SearchTransitGatewayMulticastGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeEC2) SearchTransitGatewayMulticastGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayMulticastGroupsInput, _a2 func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SearchTransitGatewayMulticastGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchTransitGatewayMulticastGroupsRequest(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput) (*request.Request, *ec2.SearchTransitGatewayMulticastGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.SearchTransitGatewayMulticastGroupsOutput
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) (*request.Request, *ec2.SearchTransitGatewayMulticastGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.SearchTransitGatewayMulticastGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayMulticastGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) SearchTransitGatewayMulticastGroupsWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayMulticastGroupsInput, _a2 ...request.Option) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.SearchTransitGatewayMulticastGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...request.Option) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...request.Option) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchTransitGatewayMulticastGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayRoutes provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchTransitGatewayRoutes(_a0 *ec2.SearchTransitGatewayRoutesInput) (*ec2.SearchTransitGatewayRoutesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.SearchTransitGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) (*ec2.SearchTransitGatewayRoutesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) *ec2.SearchTransitGatewayRoutesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchTransitGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayRoutesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayRoutesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SearchTransitGatewayRoutesRequest(_a0 *ec2.SearchTransitGatewayRoutesInput) (*request.Request, *ec2.SearchTransitGatewayRoutesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.SearchTransitGatewayRoutesOutput
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) (*request.Request, *ec2.SearchTransitGatewayRoutesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayRoutesInput) *ec2.SearchTransitGatewayRoutesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.SearchTransitGatewayRoutesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SearchTransitGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) SearchTransitGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayRoutesInput, _a2 ...request.Option) (*ec2.SearchTransitGatewayRoutesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.SearchTransitGatewayRoutesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) (*ec2.SearchTransitGatewayRoutesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) *ec2.SearchTransitGatewayRoutesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SearchTransitGatewayRoutesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendDiagnosticInterrupt provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SendDiagnosticInterrupt(_a0 *ec2.SendDiagnosticInterruptInput) (*ec2.SendDiagnosticInterruptOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.SendDiagnosticInterruptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) (*ec2.SendDiagnosticInterruptOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) *ec2.SendDiagnosticInterruptOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SendDiagnosticInterruptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SendDiagnosticInterruptInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendDiagnosticInterruptRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) SendDiagnosticInterruptRequest(_a0 *ec2.SendDiagnosticInterruptInput) (*request.Request, *ec2.SendDiagnosticInterruptOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.SendDiagnosticInterruptOutput
- if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) (*request.Request, *ec2.SendDiagnosticInterruptOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.SendDiagnosticInterruptInput) *ec2.SendDiagnosticInterruptOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.SendDiagnosticInterruptOutput)
- }
- }
-
- return r0, r1
-}
-
-// SendDiagnosticInterruptWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) SendDiagnosticInterruptWithContext(_a0 context.Context, _a1 *ec2.SendDiagnosticInterruptInput, _a2 ...request.Option) (*ec2.SendDiagnosticInterruptOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.SendDiagnosticInterruptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...request.Option) (*ec2.SendDiagnosticInterruptOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...request.Option) *ec2.SendDiagnosticInterruptOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.SendDiagnosticInterruptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartInstances(_a0 *ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.StartInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) *ec2.StartInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartInstancesRequest(_a0 *ec2.StartInstancesInput) (*request.Request, *ec2.StartInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.StartInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) (*request.Request, *ec2.StartInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartInstancesInput) *ec2.StartInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.StartInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) StartInstancesWithContext(_a0 context.Context, _a1 *ec2.StartInstancesInput, _a2 ...request.Option) (*ec2.StartInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.StartInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartInstancesInput, ...request.Option) (*ec2.StartInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartInstancesInput, ...request.Option) *ec2.StartInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartNetworkInsightsAccessScopeAnalysis(_a0 *ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAccessScopeAnalysisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartNetworkInsightsAccessScopeAnalysisRequest(_a0 *ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAccessScopeAnalysisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAccessScopeAnalysisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAccessScopeAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) StartNetworkInsightsAccessScopeAnalysisWithContext(_a0 context.Context, _a1 *ec2.StartNetworkInsightsAccessScopeAnalysisInput, _a2 ...request.Option) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...request.Option) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...request.Option) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAnalysis provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartNetworkInsightsAnalysis(_a0 *ec2.StartNetworkInsightsAnalysisInput) (*ec2.StartNetworkInsightsAnalysisOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.StartNetworkInsightsAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) (*ec2.StartNetworkInsightsAnalysisOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) *ec2.StartNetworkInsightsAnalysisOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartNetworkInsightsAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAnalysisInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAnalysisRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartNetworkInsightsAnalysisRequest(_a0 *ec2.StartNetworkInsightsAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAnalysisOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.StartNetworkInsightsAnalysisOutput
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAnalysisOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAnalysisInput) *ec2.StartNetworkInsightsAnalysisOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.StartNetworkInsightsAnalysisOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartNetworkInsightsAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) StartNetworkInsightsAnalysisWithContext(_a0 context.Context, _a1 *ec2.StartNetworkInsightsAnalysisInput, _a2 ...request.Option) (*ec2.StartNetworkInsightsAnalysisOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.StartNetworkInsightsAnalysisOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...request.Option) (*ec2.StartNetworkInsightsAnalysisOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...request.Option) *ec2.StartNetworkInsightsAnalysisOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartNetworkInsightsAnalysisOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartVpcEndpointServicePrivateDnsVerification provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartVpcEndpointServicePrivateDnsVerification(_a0 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartVpcEndpointServicePrivateDnsVerificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StartVpcEndpointServicePrivateDnsVerificationRequest(_a0 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*request.Request, *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput
- if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*request.Request, *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartVpcEndpointServicePrivateDnsVerificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) StartVpcEndpointServicePrivateDnsVerificationWithContext(_a0 context.Context, _a1 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, _a2 ...request.Option) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...request.Option) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...request.Option) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StopInstances(_a0 *ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.StopInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) *ec2.StopInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StopInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StopInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) StopInstancesRequest(_a0 *ec2.StopInstancesInput) (*request.Request, *ec2.StopInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.StopInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) (*request.Request, *ec2.StopInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.StopInstancesInput) *ec2.StopInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.StopInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) StopInstancesWithContext(_a0 context.Context, _a1 *ec2.StopInstancesInput, _a2 ...request.Option) (*ec2.StopInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.StopInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StopInstancesInput, ...request.Option) (*ec2.StopInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.StopInstancesInput, ...request.Option) *ec2.StopInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.StopInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.StopInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateClientVpnConnections provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) TerminateClientVpnConnections(_a0 *ec2.TerminateClientVpnConnectionsInput) (*ec2.TerminateClientVpnConnectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.TerminateClientVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) (*ec2.TerminateClientVpnConnectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) *ec2.TerminateClientVpnConnectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.TerminateClientVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.TerminateClientVpnConnectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateClientVpnConnectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) TerminateClientVpnConnectionsRequest(_a0 *ec2.TerminateClientVpnConnectionsInput) (*request.Request, *ec2.TerminateClientVpnConnectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.TerminateClientVpnConnectionsOutput
- if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) (*request.Request, *ec2.TerminateClientVpnConnectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.TerminateClientVpnConnectionsInput) *ec2.TerminateClientVpnConnectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.TerminateClientVpnConnectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// TerminateClientVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) TerminateClientVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.TerminateClientVpnConnectionsInput, _a2 ...request.Option) (*ec2.TerminateClientVpnConnectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.TerminateClientVpnConnectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...request.Option) (*ec2.TerminateClientVpnConnectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...request.Option) *ec2.TerminateClientVpnConnectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.TerminateClientVpnConnectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) TerminateInstances(_a0 *ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.TerminateInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) *ec2.TerminateInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.TerminateInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.TerminateInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TerminateInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) TerminateInstancesRequest(_a0 *ec2.TerminateInstancesInput) (*request.Request, *ec2.TerminateInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.TerminateInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) (*request.Request, *ec2.TerminateInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.TerminateInstancesInput) *ec2.TerminateInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.TerminateInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// TerminateInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) TerminateInstancesWithContext(_a0 context.Context, _a1 *ec2.TerminateInstancesInput, _a2 ...request.Option) (*ec2.TerminateInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.TerminateInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateInstancesInput, ...request.Option) (*ec2.TerminateInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateInstancesInput, ...request.Option) *ec2.TerminateInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.TerminateInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnassignIpv6Addresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnassignIpv6Addresses(_a0 *ec2.UnassignIpv6AddressesInput) (*ec2.UnassignIpv6AddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.UnassignIpv6AddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) (*ec2.UnassignIpv6AddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) *ec2.UnassignIpv6AddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnassignIpv6AddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnassignIpv6AddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnassignIpv6AddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnassignIpv6AddressesRequest(_a0 *ec2.UnassignIpv6AddressesInput) (*request.Request, *ec2.UnassignIpv6AddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.UnassignIpv6AddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) (*request.Request, *ec2.UnassignIpv6AddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnassignIpv6AddressesInput) *ec2.UnassignIpv6AddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.UnassignIpv6AddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// UnassignIpv6AddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) UnassignIpv6AddressesWithContext(_a0 context.Context, _a1 *ec2.UnassignIpv6AddressesInput, _a2 ...request.Option) (*ec2.UnassignIpv6AddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.UnassignIpv6AddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...request.Option) (*ec2.UnassignIpv6AddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...request.Option) *ec2.UnassignIpv6AddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnassignIpv6AddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnassignPrivateIpAddresses provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnassignPrivateIpAddresses(_a0 *ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.UnassignPrivateIpAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) *ec2.UnassignPrivateIpAddressesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnassignPrivateIpAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnassignPrivateIpAddressesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnassignPrivateIpAddressesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnassignPrivateIpAddressesRequest(_a0 *ec2.UnassignPrivateIpAddressesInput) (*request.Request, *ec2.UnassignPrivateIpAddressesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.UnassignPrivateIpAddressesOutput
- if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) (*request.Request, *ec2.UnassignPrivateIpAddressesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnassignPrivateIpAddressesInput) *ec2.UnassignPrivateIpAddressesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.UnassignPrivateIpAddressesOutput)
- }
- }
-
- return r0, r1
-}
-
-// UnassignPrivateIpAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) UnassignPrivateIpAddressesWithContext(_a0 context.Context, _a1 *ec2.UnassignPrivateIpAddressesInput, _a2 ...request.Option) (*ec2.UnassignPrivateIpAddressesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.UnassignPrivateIpAddressesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) (*ec2.UnassignPrivateIpAddressesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) *ec2.UnassignPrivateIpAddressesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnassignPrivateIpAddressesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnmonitorInstances provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnmonitorInstances(_a0 *ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.UnmonitorInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) *ec2.UnmonitorInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnmonitorInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnmonitorInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnmonitorInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UnmonitorInstancesRequest(_a0 *ec2.UnmonitorInstancesInput) (*request.Request, *ec2.UnmonitorInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.UnmonitorInstancesOutput
- if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) (*request.Request, *ec2.UnmonitorInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UnmonitorInstancesInput) *ec2.UnmonitorInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.UnmonitorInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// UnmonitorInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) UnmonitorInstancesWithContext(_a0 context.Context, _a1 *ec2.UnmonitorInstancesInput, _a2 ...request.Option) (*ec2.UnmonitorInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.UnmonitorInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnmonitorInstancesInput, ...request.Option) (*ec2.UnmonitorInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnmonitorInstancesInput, ...request.Option) *ec2.UnmonitorInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UnmonitorInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnmonitorInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsEgress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsEgress(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsEgressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsEgressRequest(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsEgressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsEgressWithContext(_a0 context.Context, _a1 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, _a2 ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...request.Option) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsIngress provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsIngress(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsIngressRequest(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateSecurityGroupRuleDescriptionsIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(_a0 context.Context, _a1 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, _a2 ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilBundleTaskComplete provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilBundleTaskComplete(_a0 *ec2.DescribeBundleTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilBundleTaskCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilBundleTaskCompleteWithContext(_a0 context.Context, _a1 *ec2.DescribeBundleTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskCancelled provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilConversionTaskCancelled(_a0 *ec2.DescribeConversionTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskCancelledWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilConversionTaskCancelledWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskCompleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilConversionTaskCompleted(_a0 *ec2.DescribeConversionTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilConversionTaskCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilConversionTaskDeleted(_a0 *ec2.DescribeConversionTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilConversionTaskDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilConversionTaskDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilCustomerGatewayAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilCustomerGatewayAvailable(_a0 *ec2.DescribeCustomerGatewaysInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilCustomerGatewayAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilCustomerGatewayAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeCustomerGatewaysInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilExportTaskCancelled provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilExportTaskCancelled(_a0 *ec2.DescribeExportTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilExportTaskCancelledWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilExportTaskCancelledWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilExportTaskCompleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilExportTaskCompleted(_a0 *ec2.DescribeExportTasksInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilExportTaskCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilExportTaskCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilImageAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilImageAvailable(_a0 *ec2.DescribeImagesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilImageAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilImageAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilImageExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilImageExists(_a0 *ec2.DescribeImagesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilImageExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilImageExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInstanceExists(_a0 *ec2.DescribeInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInstanceExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceRunning provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInstanceRunning(_a0 *ec2.DescribeInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceRunningWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInstanceRunningWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceStatusOk provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInstanceStatusOk(_a0 *ec2.DescribeInstanceStatusInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceStatusOkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInstanceStatusOkWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceStopped provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInstanceStopped(_a0 *ec2.DescribeInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceStoppedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInstanceStoppedWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceTerminated provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInstanceTerminated(_a0 *ec2.DescribeInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceTerminatedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInstanceTerminatedWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInternetGatewayExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilInternetGatewayExists(_a0 *ec2.DescribeInternetGatewaysInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInternetGatewayExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilInternetGatewayExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilKeyPairExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilKeyPairExists(_a0 *ec2.DescribeKeyPairsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilKeyPairExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilKeyPairExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeKeyPairsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNatGatewayAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilNatGatewayAvailable(_a0 *ec2.DescribeNatGatewaysInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNatGatewayAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilNatGatewayAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNatGatewayDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilNatGatewayDeleted(_a0 *ec2.DescribeNatGatewaysInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNatGatewayDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilNatGatewayDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNetworkInterfaceAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilNetworkInterfaceAvailable(_a0 *ec2.DescribeNetworkInterfacesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilNetworkInterfaceAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilNetworkInterfaceAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilPasswordDataAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilPasswordDataAvailable(_a0 *ec2.GetPasswordDataInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilPasswordDataAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilPasswordDataAvailableWithContext(_a0 context.Context, _a1 *ec2.GetPasswordDataInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSecurityGroupExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilSecurityGroupExists(_a0 *ec2.DescribeSecurityGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSecurityGroupExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilSecurityGroupExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSnapshotCompleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilSnapshotCompleted(_a0 *ec2.DescribeSnapshotsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSnapshotCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilSnapshotCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSpotInstanceRequestFulfilled provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilSpotInstanceRequestFulfilled(_a0 *ec2.DescribeSpotInstanceRequestsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSpotInstanceRequestFulfilledWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilSpotInstanceRequestFulfilledWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSubnetAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilSubnetAvailable(_a0 *ec2.DescribeSubnetsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSubnetAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilSubnetAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSystemStatusOk provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilSystemStatusOk(_a0 *ec2.DescribeInstanceStatusInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilSystemStatusOkWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilSystemStatusOkWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVolumeAvailable(_a0 *ec2.DescribeVolumesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVolumeAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVolumeDeleted(_a0 *ec2.DescribeVolumesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVolumeDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeInUse provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVolumeInUse(_a0 *ec2.DescribeVolumesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVolumeInUseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVolumeInUseWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpcAvailable(_a0 *ec2.DescribeVpcsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpcAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpcExists(_a0 *ec2.DescribeVpcsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpcExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcPeeringConnectionDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpcPeeringConnectionDeleted(_a0 *ec2.DescribeVpcPeeringConnectionsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcPeeringConnectionDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpcPeeringConnectionDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcPeeringConnectionExists provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpcPeeringConnectionExists(_a0 *ec2.DescribeVpcPeeringConnectionsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpcPeeringConnectionExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpcPeeringConnectionExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpnConnectionAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpnConnectionAvailable(_a0 *ec2.DescribeVpnConnectionsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpnConnectionAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpnConnectionAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpnConnectionDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WaitUntilVpnConnectionDeleted(_a0 *ec2.DescribeVpnConnectionsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilVpnConnectionDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WaitUntilVpnConnectionDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WithdrawByoipCidr provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WithdrawByoipCidr(_a0 *ec2.WithdrawByoipCidrInput) (*ec2.WithdrawByoipCidrOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ec2.WithdrawByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) (*ec2.WithdrawByoipCidrOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) *ec2.WithdrawByoipCidrOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.WithdrawByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.WithdrawByoipCidrInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WithdrawByoipCidrRequest provides a mock function with given fields: _a0
-func (_m *MockFakeEC2) WithdrawByoipCidrRequest(_a0 *ec2.WithdrawByoipCidrInput) (*request.Request, *ec2.WithdrawByoipCidrOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ec2.WithdrawByoipCidrOutput
- if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) (*request.Request, *ec2.WithdrawByoipCidrOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ec2.WithdrawByoipCidrInput) *ec2.WithdrawByoipCidrOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ec2.WithdrawByoipCidrOutput)
- }
- }
-
- return r0, r1
-}
-
-// WithdrawByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeEC2) WithdrawByoipCidrWithContext(_a0 context.Context, _a1 *ec2.WithdrawByoipCidrInput, _a2 ...request.Option) (*ec2.WithdrawByoipCidrOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ec2.WithdrawByoipCidrOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) (*ec2.WithdrawByoipCidrOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) *ec2.WithdrawByoipCidrOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ec2.WithdrawByoipCidrOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeEC2 interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeEC2 creates a new instance of MockFakeEC2. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeEC2(t mockConstructorTestingTNewMockFakeEC2) *MockFakeEC2 {
- mock := &MockFakeEC2{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeECR.go b/test/aws/mock_FakeECR.go
deleted file mode 100644
index d3c6e6e2f..000000000
--- a/test/aws/mock_FakeECR.go
+++ /dev/null
@@ -1,3879 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- ecr "github.com/aws/aws-sdk-go/service/ecr"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeECR is an autogenerated mock type for the FakeECR type
-type MockFakeECR struct {
- mock.Mock
-}
-
-// BatchCheckLayerAvailability provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchCheckLayerAvailability(_a0 *ecr.BatchCheckLayerAvailabilityInput) (*ecr.BatchCheckLayerAvailabilityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.BatchCheckLayerAvailabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.BatchCheckLayerAvailabilityInput) (*ecr.BatchCheckLayerAvailabilityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchCheckLayerAvailabilityInput) *ecr.BatchCheckLayerAvailabilityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchCheckLayerAvailabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchCheckLayerAvailabilityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchCheckLayerAvailabilityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchCheckLayerAvailabilityRequest(_a0 *ecr.BatchCheckLayerAvailabilityInput) (*request.Request, *ecr.BatchCheckLayerAvailabilityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.BatchCheckLayerAvailabilityOutput
- if rf, ok := ret.Get(0).(func(*ecr.BatchCheckLayerAvailabilityInput) (*request.Request, *ecr.BatchCheckLayerAvailabilityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchCheckLayerAvailabilityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchCheckLayerAvailabilityInput) *ecr.BatchCheckLayerAvailabilityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.BatchCheckLayerAvailabilityOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchCheckLayerAvailabilityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) BatchCheckLayerAvailabilityWithContext(_a0 context.Context, _a1 *ecr.BatchCheckLayerAvailabilityInput, _a2 ...request.Option) (*ecr.BatchCheckLayerAvailabilityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.BatchCheckLayerAvailabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchCheckLayerAvailabilityInput, ...request.Option) (*ecr.BatchCheckLayerAvailabilityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchCheckLayerAvailabilityInput, ...request.Option) *ecr.BatchCheckLayerAvailabilityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchCheckLayerAvailabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.BatchCheckLayerAvailabilityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDeleteImage provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchDeleteImage(_a0 *ecr.BatchDeleteImageInput) (*ecr.BatchDeleteImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.BatchDeleteImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.BatchDeleteImageInput) (*ecr.BatchDeleteImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchDeleteImageInput) *ecr.BatchDeleteImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchDeleteImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchDeleteImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchDeleteImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchDeleteImageRequest(_a0 *ecr.BatchDeleteImageInput) (*request.Request, *ecr.BatchDeleteImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.BatchDeleteImageOutput
- if rf, ok := ret.Get(0).(func(*ecr.BatchDeleteImageInput) (*request.Request, *ecr.BatchDeleteImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchDeleteImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchDeleteImageInput) *ecr.BatchDeleteImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.BatchDeleteImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchDeleteImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) BatchDeleteImageWithContext(_a0 context.Context, _a1 *ecr.BatchDeleteImageInput, _a2 ...request.Option) (*ecr.BatchDeleteImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.BatchDeleteImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchDeleteImageInput, ...request.Option) (*ecr.BatchDeleteImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchDeleteImageInput, ...request.Option) *ecr.BatchDeleteImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchDeleteImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.BatchDeleteImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetImage provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchGetImage(_a0 *ecr.BatchGetImageInput) (*ecr.BatchGetImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.BatchGetImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetImageInput) (*ecr.BatchGetImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetImageInput) *ecr.BatchGetImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchGetImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchGetImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchGetImageRequest(_a0 *ecr.BatchGetImageInput) (*request.Request, *ecr.BatchGetImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.BatchGetImageOutput
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetImageInput) (*request.Request, *ecr.BatchGetImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchGetImageInput) *ecr.BatchGetImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.BatchGetImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchGetImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) BatchGetImageWithContext(_a0 context.Context, _a1 *ecr.BatchGetImageInput, _a2 ...request.Option) (*ecr.BatchGetImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.BatchGetImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchGetImageInput, ...request.Option) (*ecr.BatchGetImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchGetImageInput, ...request.Option) *ecr.BatchGetImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchGetImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.BatchGetImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetRepositoryScanningConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchGetRepositoryScanningConfiguration(_a0 *ecr.BatchGetRepositoryScanningConfigurationInput) (*ecr.BatchGetRepositoryScanningConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.BatchGetRepositoryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) (*ecr.BatchGetRepositoryScanningConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) *ecr.BatchGetRepositoryScanningConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchGetRepositoryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchGetRepositoryScanningConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) BatchGetRepositoryScanningConfigurationRequest(_a0 *ecr.BatchGetRepositoryScanningConfigurationInput) (*request.Request, *ecr.BatchGetRepositoryScanningConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.BatchGetRepositoryScanningConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) (*request.Request, *ecr.BatchGetRepositoryScanningConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.BatchGetRepositoryScanningConfigurationInput) *ecr.BatchGetRepositoryScanningConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.BatchGetRepositoryScanningConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchGetRepositoryScanningConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) BatchGetRepositoryScanningConfigurationWithContext(_a0 context.Context, _a1 *ecr.BatchGetRepositoryScanningConfigurationInput, _a2 ...request.Option) (*ecr.BatchGetRepositoryScanningConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.BatchGetRepositoryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchGetRepositoryScanningConfigurationInput, ...request.Option) (*ecr.BatchGetRepositoryScanningConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.BatchGetRepositoryScanningConfigurationInput, ...request.Option) *ecr.BatchGetRepositoryScanningConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.BatchGetRepositoryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.BatchGetRepositoryScanningConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteLayerUpload provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CompleteLayerUpload(_a0 *ecr.CompleteLayerUploadInput) (*ecr.CompleteLayerUploadOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.CompleteLayerUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.CompleteLayerUploadInput) (*ecr.CompleteLayerUploadOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CompleteLayerUploadInput) *ecr.CompleteLayerUploadOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CompleteLayerUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CompleteLayerUploadInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteLayerUploadRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CompleteLayerUploadRequest(_a0 *ecr.CompleteLayerUploadInput) (*request.Request, *ecr.CompleteLayerUploadOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.CompleteLayerUploadOutput
- if rf, ok := ret.Get(0).(func(*ecr.CompleteLayerUploadInput) (*request.Request, *ecr.CompleteLayerUploadOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CompleteLayerUploadInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CompleteLayerUploadInput) *ecr.CompleteLayerUploadOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.CompleteLayerUploadOutput)
- }
- }
-
- return r0, r1
-}
-
-// CompleteLayerUploadWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) CompleteLayerUploadWithContext(_a0 context.Context, _a1 *ecr.CompleteLayerUploadInput, _a2 ...request.Option) (*ecr.CompleteLayerUploadOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.CompleteLayerUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CompleteLayerUploadInput, ...request.Option) (*ecr.CompleteLayerUploadOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CompleteLayerUploadInput, ...request.Option) *ecr.CompleteLayerUploadOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CompleteLayerUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.CompleteLayerUploadInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePullThroughCacheRule provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CreatePullThroughCacheRule(_a0 *ecr.CreatePullThroughCacheRuleInput) (*ecr.CreatePullThroughCacheRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.CreatePullThroughCacheRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.CreatePullThroughCacheRuleInput) (*ecr.CreatePullThroughCacheRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CreatePullThroughCacheRuleInput) *ecr.CreatePullThroughCacheRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CreatePullThroughCacheRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CreatePullThroughCacheRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePullThroughCacheRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CreatePullThroughCacheRuleRequest(_a0 *ecr.CreatePullThroughCacheRuleInput) (*request.Request, *ecr.CreatePullThroughCacheRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.CreatePullThroughCacheRuleOutput
- if rf, ok := ret.Get(0).(func(*ecr.CreatePullThroughCacheRuleInput) (*request.Request, *ecr.CreatePullThroughCacheRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CreatePullThroughCacheRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CreatePullThroughCacheRuleInput) *ecr.CreatePullThroughCacheRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.CreatePullThroughCacheRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePullThroughCacheRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) CreatePullThroughCacheRuleWithContext(_a0 context.Context, _a1 *ecr.CreatePullThroughCacheRuleInput, _a2 ...request.Option) (*ecr.CreatePullThroughCacheRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.CreatePullThroughCacheRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CreatePullThroughCacheRuleInput, ...request.Option) (*ecr.CreatePullThroughCacheRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CreatePullThroughCacheRuleInput, ...request.Option) *ecr.CreatePullThroughCacheRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CreatePullThroughCacheRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.CreatePullThroughCacheRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRepository provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CreateRepository(_a0 *ecr.CreateRepositoryInput) (*ecr.CreateRepositoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.CreateRepositoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.CreateRepositoryInput) (*ecr.CreateRepositoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CreateRepositoryInput) *ecr.CreateRepositoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CreateRepositoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CreateRepositoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRepositoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) CreateRepositoryRequest(_a0 *ecr.CreateRepositoryInput) (*request.Request, *ecr.CreateRepositoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.CreateRepositoryOutput
- if rf, ok := ret.Get(0).(func(*ecr.CreateRepositoryInput) (*request.Request, *ecr.CreateRepositoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.CreateRepositoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.CreateRepositoryInput) *ecr.CreateRepositoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.CreateRepositoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRepositoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) CreateRepositoryWithContext(_a0 context.Context, _a1 *ecr.CreateRepositoryInput, _a2 ...request.Option) (*ecr.CreateRepositoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.CreateRepositoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CreateRepositoryInput, ...request.Option) (*ecr.CreateRepositoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.CreateRepositoryInput, ...request.Option) *ecr.CreateRepositoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.CreateRepositoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.CreateRepositoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLifecyclePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteLifecyclePolicy(_a0 *ecr.DeleteLifecyclePolicyInput) (*ecr.DeleteLifecyclePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DeleteLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DeleteLifecyclePolicyInput) (*ecr.DeleteLifecyclePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteLifecyclePolicyInput) *ecr.DeleteLifecyclePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteLifecyclePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLifecyclePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteLifecyclePolicyRequest(_a0 *ecr.DeleteLifecyclePolicyInput) (*request.Request, *ecr.DeleteLifecyclePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DeleteLifecyclePolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.DeleteLifecyclePolicyInput) (*request.Request, *ecr.DeleteLifecyclePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteLifecyclePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteLifecyclePolicyInput) *ecr.DeleteLifecyclePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DeleteLifecyclePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLifecyclePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DeleteLifecyclePolicyWithContext(_a0 context.Context, _a1 *ecr.DeleteLifecyclePolicyInput, _a2 ...request.Option) (*ecr.DeleteLifecyclePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DeleteLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteLifecyclePolicyInput, ...request.Option) (*ecr.DeleteLifecyclePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteLifecyclePolicyInput, ...request.Option) *ecr.DeleteLifecyclePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeleteLifecyclePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePullThroughCacheRule provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeletePullThroughCacheRule(_a0 *ecr.DeletePullThroughCacheRuleInput) (*ecr.DeletePullThroughCacheRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DeletePullThroughCacheRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DeletePullThroughCacheRuleInput) (*ecr.DeletePullThroughCacheRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeletePullThroughCacheRuleInput) *ecr.DeletePullThroughCacheRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeletePullThroughCacheRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeletePullThroughCacheRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePullThroughCacheRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeletePullThroughCacheRuleRequest(_a0 *ecr.DeletePullThroughCacheRuleInput) (*request.Request, *ecr.DeletePullThroughCacheRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DeletePullThroughCacheRuleOutput
- if rf, ok := ret.Get(0).(func(*ecr.DeletePullThroughCacheRuleInput) (*request.Request, *ecr.DeletePullThroughCacheRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeletePullThroughCacheRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeletePullThroughCacheRuleInput) *ecr.DeletePullThroughCacheRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DeletePullThroughCacheRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePullThroughCacheRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DeletePullThroughCacheRuleWithContext(_a0 context.Context, _a1 *ecr.DeletePullThroughCacheRuleInput, _a2 ...request.Option) (*ecr.DeletePullThroughCacheRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DeletePullThroughCacheRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeletePullThroughCacheRuleInput, ...request.Option) (*ecr.DeletePullThroughCacheRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeletePullThroughCacheRuleInput, ...request.Option) *ecr.DeletePullThroughCacheRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeletePullThroughCacheRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeletePullThroughCacheRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRegistryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRegistryPolicy(_a0 *ecr.DeleteRegistryPolicyInput) (*ecr.DeleteRegistryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DeleteRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) (*ecr.DeleteRegistryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) *ecr.DeleteRegistryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRegistryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRegistryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRegistryPolicyRequest(_a0 *ecr.DeleteRegistryPolicyInput) (*request.Request, *ecr.DeleteRegistryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DeleteRegistryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) (*request.Request, *ecr.DeleteRegistryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRegistryPolicyInput) *ecr.DeleteRegistryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DeleteRegistryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DeleteRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.DeleteRegistryPolicyInput, _a2 ...request.Option) (*ecr.DeleteRegistryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DeleteRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRegistryPolicyInput, ...request.Option) (*ecr.DeleteRegistryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRegistryPolicyInput, ...request.Option) *ecr.DeleteRegistryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeleteRegistryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRepository provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRepository(_a0 *ecr.DeleteRepositoryInput) (*ecr.DeleteRepositoryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DeleteRepositoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryInput) (*ecr.DeleteRepositoryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryInput) *ecr.DeleteRepositoryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRepositoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRepositoryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRepositoryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRepositoryPolicy(_a0 *ecr.DeleteRepositoryPolicyInput) (*ecr.DeleteRepositoryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DeleteRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryPolicyInput) (*ecr.DeleteRepositoryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryPolicyInput) *ecr.DeleteRepositoryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRepositoryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRepositoryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRepositoryPolicyRequest(_a0 *ecr.DeleteRepositoryPolicyInput) (*request.Request, *ecr.DeleteRepositoryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DeleteRepositoryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryPolicyInput) (*request.Request, *ecr.DeleteRepositoryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRepositoryPolicyInput) *ecr.DeleteRepositoryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DeleteRepositoryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRepositoryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DeleteRepositoryPolicyWithContext(_a0 context.Context, _a1 *ecr.DeleteRepositoryPolicyInput, _a2 ...request.Option) (*ecr.DeleteRepositoryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DeleteRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRepositoryPolicyInput, ...request.Option) (*ecr.DeleteRepositoryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRepositoryPolicyInput, ...request.Option) *ecr.DeleteRepositoryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeleteRepositoryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRepositoryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DeleteRepositoryRequest(_a0 *ecr.DeleteRepositoryInput) (*request.Request, *ecr.DeleteRepositoryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DeleteRepositoryOutput
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryInput) (*request.Request, *ecr.DeleteRepositoryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DeleteRepositoryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DeleteRepositoryInput) *ecr.DeleteRepositoryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DeleteRepositoryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRepositoryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DeleteRepositoryWithContext(_a0 context.Context, _a1 *ecr.DeleteRepositoryInput, _a2 ...request.Option) (*ecr.DeleteRepositoryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DeleteRepositoryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRepositoryInput, ...request.Option) (*ecr.DeleteRepositoryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRepositoryInput, ...request.Option) *ecr.DeleteRepositoryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DeleteRepositoryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeleteRepositoryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageReplicationStatus provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImageReplicationStatus(_a0 *ecr.DescribeImageReplicationStatusInput) (*ecr.DescribeImageReplicationStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribeImageReplicationStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageReplicationStatusInput) (*ecr.DescribeImageReplicationStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageReplicationStatusInput) *ecr.DescribeImageReplicationStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImageReplicationStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImageReplicationStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageReplicationStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImageReplicationStatusRequest(_a0 *ecr.DescribeImageReplicationStatusInput) (*request.Request, *ecr.DescribeImageReplicationStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribeImageReplicationStatusOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageReplicationStatusInput) (*request.Request, *ecr.DescribeImageReplicationStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageReplicationStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImageReplicationStatusInput) *ecr.DescribeImageReplicationStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribeImageReplicationStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImageReplicationStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribeImageReplicationStatusWithContext(_a0 context.Context, _a1 *ecr.DescribeImageReplicationStatusInput, _a2 ...request.Option) (*ecr.DescribeImageReplicationStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribeImageReplicationStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageReplicationStatusInput, ...request.Option) (*ecr.DescribeImageReplicationStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageReplicationStatusInput, ...request.Option) *ecr.DescribeImageReplicationStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImageReplicationStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeImageReplicationStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageScanFindings provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImageScanFindings(_a0 *ecr.DescribeImageScanFindingsInput) (*ecr.DescribeImageScanFindingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribeImageScanFindingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput) (*ecr.DescribeImageScanFindingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput) *ecr.DescribeImageScanFindingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImageScanFindingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImageScanFindingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImageScanFindingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) DescribeImageScanFindingsPages(_a0 *ecr.DescribeImageScanFindingsInput, _a1 func(*ecr.DescribeImageScanFindingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput, func(*ecr.DescribeImageScanFindingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImageScanFindingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) DescribeImageScanFindingsPagesWithContext(_a0 context.Context, _a1 *ecr.DescribeImageScanFindingsInput, _a2 func(*ecr.DescribeImageScanFindingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageScanFindingsInput, func(*ecr.DescribeImageScanFindingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImageScanFindingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImageScanFindingsRequest(_a0 *ecr.DescribeImageScanFindingsInput) (*request.Request, *ecr.DescribeImageScanFindingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribeImageScanFindingsOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput) (*request.Request, *ecr.DescribeImageScanFindingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImageScanFindingsInput) *ecr.DescribeImageScanFindingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribeImageScanFindingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImageScanFindingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribeImageScanFindingsWithContext(_a0 context.Context, _a1 *ecr.DescribeImageScanFindingsInput, _a2 ...request.Option) (*ecr.DescribeImageScanFindingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribeImageScanFindingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageScanFindingsInput, ...request.Option) (*ecr.DescribeImageScanFindingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageScanFindingsInput, ...request.Option) *ecr.DescribeImageScanFindingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImageScanFindingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeImageScanFindingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImages provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImages(_a0 *ecr.DescribeImagesInput) (*ecr.DescribeImagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribeImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImagesInput) (*ecr.DescribeImagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImagesInput) *ecr.DescribeImagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeImagesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) DescribeImagesPages(_a0 *ecr.DescribeImagesInput, _a1 func(*ecr.DescribeImagesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImagesInput, func(*ecr.DescribeImagesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) DescribeImagesPagesWithContext(_a0 context.Context, _a1 *ecr.DescribeImagesInput, _a2 func(*ecr.DescribeImagesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImagesInput, func(*ecr.DescribeImagesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeImagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeImagesRequest(_a0 *ecr.DescribeImagesInput) (*request.Request, *ecr.DescribeImagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribeImagesOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImagesInput) (*request.Request, *ecr.DescribeImagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeImagesInput) *ecr.DescribeImagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribeImagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeImagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribeImagesWithContext(_a0 context.Context, _a1 *ecr.DescribeImagesInput, _a2 ...request.Option) (*ecr.DescribeImagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribeImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImagesInput, ...request.Option) (*ecr.DescribeImagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImagesInput, ...request.Option) *ecr.DescribeImagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeImagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePullThroughCacheRules provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribePullThroughCacheRules(_a0 *ecr.DescribePullThroughCacheRulesInput) (*ecr.DescribePullThroughCacheRulesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribePullThroughCacheRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribePullThroughCacheRulesInput) (*ecr.DescribePullThroughCacheRulesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribePullThroughCacheRulesInput) *ecr.DescribePullThroughCacheRulesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribePullThroughCacheRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribePullThroughCacheRulesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePullThroughCacheRulesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) DescribePullThroughCacheRulesPages(_a0 *ecr.DescribePullThroughCacheRulesInput, _a1 func(*ecr.DescribePullThroughCacheRulesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribePullThroughCacheRulesInput, func(*ecr.DescribePullThroughCacheRulesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePullThroughCacheRulesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) DescribePullThroughCacheRulesPagesWithContext(_a0 context.Context, _a1 *ecr.DescribePullThroughCacheRulesInput, _a2 func(*ecr.DescribePullThroughCacheRulesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribePullThroughCacheRulesInput, func(*ecr.DescribePullThroughCacheRulesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePullThroughCacheRulesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribePullThroughCacheRulesRequest(_a0 *ecr.DescribePullThroughCacheRulesInput) (*request.Request, *ecr.DescribePullThroughCacheRulesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribePullThroughCacheRulesOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribePullThroughCacheRulesInput) (*request.Request, *ecr.DescribePullThroughCacheRulesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribePullThroughCacheRulesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribePullThroughCacheRulesInput) *ecr.DescribePullThroughCacheRulesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribePullThroughCacheRulesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePullThroughCacheRulesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribePullThroughCacheRulesWithContext(_a0 context.Context, _a1 *ecr.DescribePullThroughCacheRulesInput, _a2 ...request.Option) (*ecr.DescribePullThroughCacheRulesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribePullThroughCacheRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribePullThroughCacheRulesInput, ...request.Option) (*ecr.DescribePullThroughCacheRulesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribePullThroughCacheRulesInput, ...request.Option) *ecr.DescribePullThroughCacheRulesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribePullThroughCacheRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribePullThroughCacheRulesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRegistry provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeRegistry(_a0 *ecr.DescribeRegistryInput) (*ecr.DescribeRegistryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribeRegistryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) (*ecr.DescribeRegistryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) *ecr.DescribeRegistryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeRegistryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeRegistryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRegistryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeRegistryRequest(_a0 *ecr.DescribeRegistryInput) (*request.Request, *ecr.DescribeRegistryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribeRegistryOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) (*request.Request, *ecr.DescribeRegistryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeRegistryInput) *ecr.DescribeRegistryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribeRegistryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeRegistryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribeRegistryWithContext(_a0 context.Context, _a1 *ecr.DescribeRegistryInput, _a2 ...request.Option) (*ecr.DescribeRegistryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribeRegistryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRegistryInput, ...request.Option) (*ecr.DescribeRegistryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRegistryInput, ...request.Option) *ecr.DescribeRegistryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeRegistryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeRegistryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRepositories provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeRepositories(_a0 *ecr.DescribeRepositoriesInput) (*ecr.DescribeRepositoriesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.DescribeRepositoriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRepositoriesInput) (*ecr.DescribeRepositoriesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRepositoriesInput) *ecr.DescribeRepositoriesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeRepositoriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeRepositoriesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRepositoriesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) DescribeRepositoriesPages(_a0 *ecr.DescribeRepositoriesInput, _a1 func(*ecr.DescribeRepositoriesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRepositoriesInput, func(*ecr.DescribeRepositoriesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeRepositoriesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) DescribeRepositoriesPagesWithContext(_a0 context.Context, _a1 *ecr.DescribeRepositoriesInput, _a2 func(*ecr.DescribeRepositoriesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRepositoriesInput, func(*ecr.DescribeRepositoriesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeRepositoriesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) DescribeRepositoriesRequest(_a0 *ecr.DescribeRepositoriesInput) (*request.Request, *ecr.DescribeRepositoriesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.DescribeRepositoriesOutput
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRepositoriesInput) (*request.Request, *ecr.DescribeRepositoriesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.DescribeRepositoriesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.DescribeRepositoriesInput) *ecr.DescribeRepositoriesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.DescribeRepositoriesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeRepositoriesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) DescribeRepositoriesWithContext(_a0 context.Context, _a1 *ecr.DescribeRepositoriesInput, _a2 ...request.Option) (*ecr.DescribeRepositoriesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.DescribeRepositoriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRepositoriesInput, ...request.Option) (*ecr.DescribeRepositoriesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRepositoriesInput, ...request.Option) *ecr.DescribeRepositoriesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.DescribeRepositoriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeRepositoriesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizationToken provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetAuthorizationToken(_a0 *ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetAuthorizationTokenOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetAuthorizationTokenInput) *ecr.GetAuthorizationTokenOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetAuthorizationTokenOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetAuthorizationTokenInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAuthorizationTokenRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetAuthorizationTokenRequest(_a0 *ecr.GetAuthorizationTokenInput) (*request.Request, *ecr.GetAuthorizationTokenOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetAuthorizationTokenOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetAuthorizationTokenInput) (*request.Request, *ecr.GetAuthorizationTokenOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetAuthorizationTokenInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetAuthorizationTokenInput) *ecr.GetAuthorizationTokenOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetAuthorizationTokenOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAuthorizationTokenWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetAuthorizationTokenWithContext(_a0 context.Context, _a1 *ecr.GetAuthorizationTokenInput, _a2 ...request.Option) (*ecr.GetAuthorizationTokenOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetAuthorizationTokenOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetAuthorizationTokenInput, ...request.Option) (*ecr.GetAuthorizationTokenOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetAuthorizationTokenInput, ...request.Option) *ecr.GetAuthorizationTokenOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetAuthorizationTokenOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetAuthorizationTokenInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDownloadUrlForLayer provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetDownloadUrlForLayer(_a0 *ecr.GetDownloadUrlForLayerInput) (*ecr.GetDownloadUrlForLayerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetDownloadUrlForLayerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetDownloadUrlForLayerInput) (*ecr.GetDownloadUrlForLayerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetDownloadUrlForLayerInput) *ecr.GetDownloadUrlForLayerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetDownloadUrlForLayerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetDownloadUrlForLayerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDownloadUrlForLayerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetDownloadUrlForLayerRequest(_a0 *ecr.GetDownloadUrlForLayerInput) (*request.Request, *ecr.GetDownloadUrlForLayerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetDownloadUrlForLayerOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetDownloadUrlForLayerInput) (*request.Request, *ecr.GetDownloadUrlForLayerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetDownloadUrlForLayerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetDownloadUrlForLayerInput) *ecr.GetDownloadUrlForLayerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetDownloadUrlForLayerOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDownloadUrlForLayerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetDownloadUrlForLayerWithContext(_a0 context.Context, _a1 *ecr.GetDownloadUrlForLayerInput, _a2 ...request.Option) (*ecr.GetDownloadUrlForLayerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetDownloadUrlForLayerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetDownloadUrlForLayerInput, ...request.Option) (*ecr.GetDownloadUrlForLayerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetDownloadUrlForLayerInput, ...request.Option) *ecr.GetDownloadUrlForLayerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetDownloadUrlForLayerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetDownloadUrlForLayerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetLifecyclePolicy(_a0 *ecr.GetLifecyclePolicyInput) (*ecr.GetLifecyclePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyInput) (*ecr.GetLifecyclePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyInput) *ecr.GetLifecyclePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetLifecyclePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicyPreview provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetLifecyclePolicyPreview(_a0 *ecr.GetLifecyclePolicyPreviewInput) (*ecr.GetLifecyclePolicyPreviewOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetLifecyclePolicyPreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput) (*ecr.GetLifecyclePolicyPreviewOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput) *ecr.GetLifecyclePolicyPreviewOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetLifecyclePolicyPreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetLifecyclePolicyPreviewInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicyPreviewPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) GetLifecyclePolicyPreviewPages(_a0 *ecr.GetLifecyclePolicyPreviewInput, _a1 func(*ecr.GetLifecyclePolicyPreviewOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput, func(*ecr.GetLifecyclePolicyPreviewOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetLifecyclePolicyPreviewPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) GetLifecyclePolicyPreviewPagesWithContext(_a0 context.Context, _a1 *ecr.GetLifecyclePolicyPreviewInput, _a2 func(*ecr.GetLifecyclePolicyPreviewOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyPreviewInput, func(*ecr.GetLifecyclePolicyPreviewOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetLifecyclePolicyPreviewRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetLifecyclePolicyPreviewRequest(_a0 *ecr.GetLifecyclePolicyPreviewInput) (*request.Request, *ecr.GetLifecyclePolicyPreviewOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetLifecyclePolicyPreviewOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput) (*request.Request, *ecr.GetLifecyclePolicyPreviewOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetLifecyclePolicyPreviewInput) *ecr.GetLifecyclePolicyPreviewOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetLifecyclePolicyPreviewOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicyPreviewWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetLifecyclePolicyPreviewWithContext(_a0 context.Context, _a1 *ecr.GetLifecyclePolicyPreviewInput, _a2 ...request.Option) (*ecr.GetLifecyclePolicyPreviewOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetLifecyclePolicyPreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyPreviewInput, ...request.Option) (*ecr.GetLifecyclePolicyPreviewOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyPreviewInput, ...request.Option) *ecr.GetLifecyclePolicyPreviewOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetLifecyclePolicyPreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetLifecyclePolicyPreviewInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetLifecyclePolicyRequest(_a0 *ecr.GetLifecyclePolicyInput) (*request.Request, *ecr.GetLifecyclePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetLifecyclePolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyInput) (*request.Request, *ecr.GetLifecyclePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetLifecyclePolicyInput) *ecr.GetLifecyclePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetLifecyclePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLifecyclePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetLifecyclePolicyWithContext(_a0 context.Context, _a1 *ecr.GetLifecyclePolicyInput, _a2 ...request.Option) (*ecr.GetLifecyclePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyInput, ...request.Option) (*ecr.GetLifecyclePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyInput, ...request.Option) *ecr.GetLifecyclePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetLifecyclePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRegistryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRegistryPolicy(_a0 *ecr.GetRegistryPolicyInput) (*ecr.GetRegistryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) (*ecr.GetRegistryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) *ecr.GetRegistryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRegistryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRegistryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRegistryPolicyRequest(_a0 *ecr.GetRegistryPolicyInput) (*request.Request, *ecr.GetRegistryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetRegistryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) (*request.Request, *ecr.GetRegistryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRegistryPolicyInput) *ecr.GetRegistryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetRegistryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.GetRegistryPolicyInput, _a2 ...request.Option) (*ecr.GetRegistryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRegistryPolicyInput, ...request.Option) (*ecr.GetRegistryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRegistryPolicyInput, ...request.Option) *ecr.GetRegistryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetRegistryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRegistryScanningConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRegistryScanningConfiguration(_a0 *ecr.GetRegistryScanningConfigurationInput) (*ecr.GetRegistryScanningConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetRegistryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryScanningConfigurationInput) (*ecr.GetRegistryScanningConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryScanningConfigurationInput) *ecr.GetRegistryScanningConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRegistryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRegistryScanningConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRegistryScanningConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRegistryScanningConfigurationRequest(_a0 *ecr.GetRegistryScanningConfigurationInput) (*request.Request, *ecr.GetRegistryScanningConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetRegistryScanningConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryScanningConfigurationInput) (*request.Request, *ecr.GetRegistryScanningConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRegistryScanningConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRegistryScanningConfigurationInput) *ecr.GetRegistryScanningConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetRegistryScanningConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRegistryScanningConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetRegistryScanningConfigurationWithContext(_a0 context.Context, _a1 *ecr.GetRegistryScanningConfigurationInput, _a2 ...request.Option) (*ecr.GetRegistryScanningConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetRegistryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRegistryScanningConfigurationInput, ...request.Option) (*ecr.GetRegistryScanningConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRegistryScanningConfigurationInput, ...request.Option) *ecr.GetRegistryScanningConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRegistryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetRegistryScanningConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRepositoryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRepositoryPolicy(_a0 *ecr.GetRepositoryPolicyInput) (*ecr.GetRepositoryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.GetRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.GetRepositoryPolicyInput) (*ecr.GetRepositoryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRepositoryPolicyInput) *ecr.GetRepositoryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRepositoryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRepositoryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) GetRepositoryPolicyRequest(_a0 *ecr.GetRepositoryPolicyInput) (*request.Request, *ecr.GetRepositoryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.GetRepositoryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.GetRepositoryPolicyInput) (*request.Request, *ecr.GetRepositoryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.GetRepositoryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.GetRepositoryPolicyInput) *ecr.GetRepositoryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.GetRepositoryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRepositoryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) GetRepositoryPolicyWithContext(_a0 context.Context, _a1 *ecr.GetRepositoryPolicyInput, _a2 ...request.Option) (*ecr.GetRepositoryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.GetRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRepositoryPolicyInput, ...request.Option) (*ecr.GetRepositoryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRepositoryPolicyInput, ...request.Option) *ecr.GetRepositoryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.GetRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetRepositoryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// InitiateLayerUpload provides a mock function with given fields: _a0
-func (_m *MockFakeECR) InitiateLayerUpload(_a0 *ecr.InitiateLayerUploadInput) (*ecr.InitiateLayerUploadOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.InitiateLayerUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.InitiateLayerUploadInput) (*ecr.InitiateLayerUploadOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.InitiateLayerUploadInput) *ecr.InitiateLayerUploadOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.InitiateLayerUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.InitiateLayerUploadInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// InitiateLayerUploadRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) InitiateLayerUploadRequest(_a0 *ecr.InitiateLayerUploadInput) (*request.Request, *ecr.InitiateLayerUploadOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.InitiateLayerUploadOutput
- if rf, ok := ret.Get(0).(func(*ecr.InitiateLayerUploadInput) (*request.Request, *ecr.InitiateLayerUploadOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.InitiateLayerUploadInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.InitiateLayerUploadInput) *ecr.InitiateLayerUploadOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.InitiateLayerUploadOutput)
- }
- }
-
- return r0, r1
-}
-
-// InitiateLayerUploadWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) InitiateLayerUploadWithContext(_a0 context.Context, _a1 *ecr.InitiateLayerUploadInput, _a2 ...request.Option) (*ecr.InitiateLayerUploadOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.InitiateLayerUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.InitiateLayerUploadInput, ...request.Option) (*ecr.InitiateLayerUploadOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.InitiateLayerUploadInput, ...request.Option) *ecr.InitiateLayerUploadOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.InitiateLayerUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.InitiateLayerUploadInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImages provides a mock function with given fields: _a0
-func (_m *MockFakeECR) ListImages(_a0 *ecr.ListImagesInput) (*ecr.ListImagesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.ListImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.ListImagesInput) (*ecr.ListImagesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.ListImagesInput) *ecr.ListImagesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.ListImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.ListImagesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListImagesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeECR) ListImagesPages(_a0 *ecr.ListImagesInput, _a1 func(*ecr.ListImagesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.ListImagesInput, func(*ecr.ListImagesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeECR) ListImagesPagesWithContext(_a0 context.Context, _a1 *ecr.ListImagesInput, _a2 func(*ecr.ListImagesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.ListImagesInput, func(*ecr.ListImagesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListImagesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) ListImagesRequest(_a0 *ecr.ListImagesInput) (*request.Request, *ecr.ListImagesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.ListImagesOutput
- if rf, ok := ret.Get(0).(func(*ecr.ListImagesInput) (*request.Request, *ecr.ListImagesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.ListImagesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.ListImagesInput) *ecr.ListImagesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.ListImagesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListImagesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) ListImagesWithContext(_a0 context.Context, _a1 *ecr.ListImagesInput, _a2 ...request.Option) (*ecr.ListImagesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.ListImagesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.ListImagesInput, ...request.Option) (*ecr.ListImagesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.ListImagesInput, ...request.Option) *ecr.ListImagesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.ListImagesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.ListImagesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeECR) ListTagsForResource(_a0 *ecr.ListTagsForResourceInput) (*ecr.ListTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.ListTagsForResourceInput) (*ecr.ListTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.ListTagsForResourceInput) *ecr.ListTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) ListTagsForResourceRequest(_a0 *ecr.ListTagsForResourceInput) (*request.Request, *ecr.ListTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.ListTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*ecr.ListTagsForResourceInput) (*request.Request, *ecr.ListTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.ListTagsForResourceInput) *ecr.ListTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.ListTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) ListTagsForResourceWithContext(_a0 context.Context, _a1 *ecr.ListTagsForResourceInput, _a2 ...request.Option) (*ecr.ListTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.ListTagsForResourceInput, ...request.Option) (*ecr.ListTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.ListTagsForResourceInput, ...request.Option) *ecr.ListTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImage provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImage(_a0 *ecr.PutImageInput) (*ecr.PutImageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutImageInput) (*ecr.PutImageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageInput) *ecr.PutImageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImageRequest(_a0 *ecr.PutImageInput) (*request.Request, *ecr.PutImageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutImageOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutImageInput) (*request.Request, *ecr.PutImageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageInput) *ecr.PutImageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutImageOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutImageScanningConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImageScanningConfiguration(_a0 *ecr.PutImageScanningConfigurationInput) (*ecr.PutImageScanningConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutImageScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutImageScanningConfigurationInput) (*ecr.PutImageScanningConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageScanningConfigurationInput) *ecr.PutImageScanningConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageScanningConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImageScanningConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImageScanningConfigurationRequest(_a0 *ecr.PutImageScanningConfigurationInput) (*request.Request, *ecr.PutImageScanningConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutImageScanningConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutImageScanningConfigurationInput) (*request.Request, *ecr.PutImageScanningConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageScanningConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageScanningConfigurationInput) *ecr.PutImageScanningConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutImageScanningConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutImageScanningConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutImageScanningConfigurationWithContext(_a0 context.Context, _a1 *ecr.PutImageScanningConfigurationInput, _a2 ...request.Option) (*ecr.PutImageScanningConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutImageScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageScanningConfigurationInput, ...request.Option) (*ecr.PutImageScanningConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageScanningConfigurationInput, ...request.Option) *ecr.PutImageScanningConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutImageScanningConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImageTagMutability provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImageTagMutability(_a0 *ecr.PutImageTagMutabilityInput) (*ecr.PutImageTagMutabilityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutImageTagMutabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutImageTagMutabilityInput) (*ecr.PutImageTagMutabilityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageTagMutabilityInput) *ecr.PutImageTagMutabilityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageTagMutabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageTagMutabilityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImageTagMutabilityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutImageTagMutabilityRequest(_a0 *ecr.PutImageTagMutabilityInput) (*request.Request, *ecr.PutImageTagMutabilityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutImageTagMutabilityOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutImageTagMutabilityInput) (*request.Request, *ecr.PutImageTagMutabilityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutImageTagMutabilityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutImageTagMutabilityInput) *ecr.PutImageTagMutabilityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutImageTagMutabilityOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutImageTagMutabilityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutImageTagMutabilityWithContext(_a0 context.Context, _a1 *ecr.PutImageTagMutabilityInput, _a2 ...request.Option) (*ecr.PutImageTagMutabilityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutImageTagMutabilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageTagMutabilityInput, ...request.Option) (*ecr.PutImageTagMutabilityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageTagMutabilityInput, ...request.Option) *ecr.PutImageTagMutabilityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageTagMutabilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutImageTagMutabilityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutImageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutImageWithContext(_a0 context.Context, _a1 *ecr.PutImageInput, _a2 ...request.Option) (*ecr.PutImageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutImageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageInput, ...request.Option) (*ecr.PutImageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutImageInput, ...request.Option) *ecr.PutImageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutImageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutImageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutLifecyclePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutLifecyclePolicy(_a0 *ecr.PutLifecyclePolicyInput) (*ecr.PutLifecyclePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutLifecyclePolicyInput) (*ecr.PutLifecyclePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutLifecyclePolicyInput) *ecr.PutLifecyclePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutLifecyclePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutLifecyclePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutLifecyclePolicyRequest(_a0 *ecr.PutLifecyclePolicyInput) (*request.Request, *ecr.PutLifecyclePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutLifecyclePolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutLifecyclePolicyInput) (*request.Request, *ecr.PutLifecyclePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutLifecyclePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutLifecyclePolicyInput) *ecr.PutLifecyclePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutLifecyclePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutLifecyclePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutLifecyclePolicyWithContext(_a0 context.Context, _a1 *ecr.PutLifecyclePolicyInput, _a2 ...request.Option) (*ecr.PutLifecyclePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutLifecyclePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutLifecyclePolicyInput, ...request.Option) (*ecr.PutLifecyclePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutLifecyclePolicyInput, ...request.Option) *ecr.PutLifecyclePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutLifecyclePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutLifecyclePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRegistryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutRegistryPolicy(_a0 *ecr.PutRegistryPolicyInput) (*ecr.PutRegistryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) (*ecr.PutRegistryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) *ecr.PutRegistryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutRegistryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRegistryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutRegistryPolicyRequest(_a0 *ecr.PutRegistryPolicyInput) (*request.Request, *ecr.PutRegistryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutRegistryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) (*request.Request, *ecr.PutRegistryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutRegistryPolicyInput) *ecr.PutRegistryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutRegistryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.PutRegistryPolicyInput, _a2 ...request.Option) (*ecr.PutRegistryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutRegistryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutRegistryPolicyInput, ...request.Option) (*ecr.PutRegistryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutRegistryPolicyInput, ...request.Option) *ecr.PutRegistryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutRegistryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutRegistryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRegistryScanningConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutRegistryScanningConfiguration(_a0 *ecr.PutRegistryScanningConfigurationInput) (*ecr.PutRegistryScanningConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutRegistryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryScanningConfigurationInput) (*ecr.PutRegistryScanningConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryScanningConfigurationInput) *ecr.PutRegistryScanningConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutRegistryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutRegistryScanningConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRegistryScanningConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutRegistryScanningConfigurationRequest(_a0 *ecr.PutRegistryScanningConfigurationInput) (*request.Request, *ecr.PutRegistryScanningConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutRegistryScanningConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryScanningConfigurationInput) (*request.Request, *ecr.PutRegistryScanningConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutRegistryScanningConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutRegistryScanningConfigurationInput) *ecr.PutRegistryScanningConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutRegistryScanningConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutRegistryScanningConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutRegistryScanningConfigurationWithContext(_a0 context.Context, _a1 *ecr.PutRegistryScanningConfigurationInput, _a2 ...request.Option) (*ecr.PutRegistryScanningConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutRegistryScanningConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutRegistryScanningConfigurationInput, ...request.Option) (*ecr.PutRegistryScanningConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutRegistryScanningConfigurationInput, ...request.Option) *ecr.PutRegistryScanningConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutRegistryScanningConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutRegistryScanningConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutReplicationConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutReplicationConfiguration(_a0 *ecr.PutReplicationConfigurationInput) (*ecr.PutReplicationConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.PutReplicationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) (*ecr.PutReplicationConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) *ecr.PutReplicationConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutReplicationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutReplicationConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutReplicationConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) PutReplicationConfigurationRequest(_a0 *ecr.PutReplicationConfigurationInput) (*request.Request, *ecr.PutReplicationConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.PutReplicationConfigurationOutput
- if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) (*request.Request, *ecr.PutReplicationConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.PutReplicationConfigurationInput) *ecr.PutReplicationConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.PutReplicationConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutReplicationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) PutReplicationConfigurationWithContext(_a0 context.Context, _a1 *ecr.PutReplicationConfigurationInput, _a2 ...request.Option) (*ecr.PutReplicationConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.PutReplicationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutReplicationConfigurationInput, ...request.Option) (*ecr.PutReplicationConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutReplicationConfigurationInput, ...request.Option) *ecr.PutReplicationConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.PutReplicationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutReplicationConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetRepositoryPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeECR) SetRepositoryPolicy(_a0 *ecr.SetRepositoryPolicyInput) (*ecr.SetRepositoryPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.SetRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.SetRepositoryPolicyInput) (*ecr.SetRepositoryPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.SetRepositoryPolicyInput) *ecr.SetRepositoryPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.SetRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.SetRepositoryPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetRepositoryPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) SetRepositoryPolicyRequest(_a0 *ecr.SetRepositoryPolicyInput) (*request.Request, *ecr.SetRepositoryPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.SetRepositoryPolicyOutput
- if rf, ok := ret.Get(0).(func(*ecr.SetRepositoryPolicyInput) (*request.Request, *ecr.SetRepositoryPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.SetRepositoryPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.SetRepositoryPolicyInput) *ecr.SetRepositoryPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.SetRepositoryPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetRepositoryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) SetRepositoryPolicyWithContext(_a0 context.Context, _a1 *ecr.SetRepositoryPolicyInput, _a2 ...request.Option) (*ecr.SetRepositoryPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.SetRepositoryPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.SetRepositoryPolicyInput, ...request.Option) (*ecr.SetRepositoryPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.SetRepositoryPolicyInput, ...request.Option) *ecr.SetRepositoryPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.SetRepositoryPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.SetRepositoryPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartImageScan provides a mock function with given fields: _a0
-func (_m *MockFakeECR) StartImageScan(_a0 *ecr.StartImageScanInput) (*ecr.StartImageScanOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.StartImageScanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.StartImageScanInput) (*ecr.StartImageScanOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.StartImageScanInput) *ecr.StartImageScanOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.StartImageScanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.StartImageScanInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartImageScanRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) StartImageScanRequest(_a0 *ecr.StartImageScanInput) (*request.Request, *ecr.StartImageScanOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.StartImageScanOutput
- if rf, ok := ret.Get(0).(func(*ecr.StartImageScanInput) (*request.Request, *ecr.StartImageScanOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.StartImageScanInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.StartImageScanInput) *ecr.StartImageScanOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.StartImageScanOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartImageScanWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) StartImageScanWithContext(_a0 context.Context, _a1 *ecr.StartImageScanInput, _a2 ...request.Option) (*ecr.StartImageScanOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.StartImageScanOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.StartImageScanInput, ...request.Option) (*ecr.StartImageScanOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.StartImageScanInput, ...request.Option) *ecr.StartImageScanOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.StartImageScanOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.StartImageScanInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartLifecyclePolicyPreview provides a mock function with given fields: _a0
-func (_m *MockFakeECR) StartLifecyclePolicyPreview(_a0 *ecr.StartLifecyclePolicyPreviewInput) (*ecr.StartLifecyclePolicyPreviewOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.StartLifecyclePolicyPreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.StartLifecyclePolicyPreviewInput) (*ecr.StartLifecyclePolicyPreviewOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.StartLifecyclePolicyPreviewInput) *ecr.StartLifecyclePolicyPreviewOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.StartLifecyclePolicyPreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.StartLifecyclePolicyPreviewInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartLifecyclePolicyPreviewRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) StartLifecyclePolicyPreviewRequest(_a0 *ecr.StartLifecyclePolicyPreviewInput) (*request.Request, *ecr.StartLifecyclePolicyPreviewOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.StartLifecyclePolicyPreviewOutput
- if rf, ok := ret.Get(0).(func(*ecr.StartLifecyclePolicyPreviewInput) (*request.Request, *ecr.StartLifecyclePolicyPreviewOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.StartLifecyclePolicyPreviewInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.StartLifecyclePolicyPreviewInput) *ecr.StartLifecyclePolicyPreviewOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.StartLifecyclePolicyPreviewOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartLifecyclePolicyPreviewWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) StartLifecyclePolicyPreviewWithContext(_a0 context.Context, _a1 *ecr.StartLifecyclePolicyPreviewInput, _a2 ...request.Option) (*ecr.StartLifecyclePolicyPreviewOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.StartLifecyclePolicyPreviewOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.StartLifecyclePolicyPreviewInput, ...request.Option) (*ecr.StartLifecyclePolicyPreviewOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.StartLifecyclePolicyPreviewInput, ...request.Option) *ecr.StartLifecyclePolicyPreviewOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.StartLifecyclePolicyPreviewOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.StartLifecyclePolicyPreviewInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeECR) TagResource(_a0 *ecr.TagResourceInput) (*ecr.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.TagResourceInput) (*ecr.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.TagResourceInput) *ecr.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) TagResourceRequest(_a0 *ecr.TagResourceInput) (*request.Request, *ecr.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*ecr.TagResourceInput) (*request.Request, *ecr.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.TagResourceInput) *ecr.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) TagResourceWithContext(_a0 context.Context, _a1 *ecr.TagResourceInput, _a2 ...request.Option) (*ecr.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.TagResourceInput, ...request.Option) (*ecr.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.TagResourceInput, ...request.Option) *ecr.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeECR) UntagResource(_a0 *ecr.UntagResourceInput) (*ecr.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.UntagResourceInput) (*ecr.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.UntagResourceInput) *ecr.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) UntagResourceRequest(_a0 *ecr.UntagResourceInput) (*request.Request, *ecr.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*ecr.UntagResourceInput) (*request.Request, *ecr.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.UntagResourceInput) *ecr.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) UntagResourceWithContext(_a0 context.Context, _a1 *ecr.UntagResourceInput, _a2 ...request.Option) (*ecr.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.UntagResourceInput, ...request.Option) (*ecr.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.UntagResourceInput, ...request.Option) *ecr.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadLayerPart provides a mock function with given fields: _a0
-func (_m *MockFakeECR) UploadLayerPart(_a0 *ecr.UploadLayerPartInput) (*ecr.UploadLayerPartOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *ecr.UploadLayerPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*ecr.UploadLayerPartInput) (*ecr.UploadLayerPartOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.UploadLayerPartInput) *ecr.UploadLayerPartOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.UploadLayerPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.UploadLayerPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadLayerPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeECR) UploadLayerPartRequest(_a0 *ecr.UploadLayerPartInput) (*request.Request, *ecr.UploadLayerPartOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *ecr.UploadLayerPartOutput
- if rf, ok := ret.Get(0).(func(*ecr.UploadLayerPartInput) (*request.Request, *ecr.UploadLayerPartOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*ecr.UploadLayerPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*ecr.UploadLayerPartInput) *ecr.UploadLayerPartOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*ecr.UploadLayerPartOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadLayerPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) UploadLayerPartWithContext(_a0 context.Context, _a1 *ecr.UploadLayerPartInput, _a2 ...request.Option) (*ecr.UploadLayerPartOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *ecr.UploadLayerPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.UploadLayerPartInput, ...request.Option) (*ecr.UploadLayerPartOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.UploadLayerPartInput, ...request.Option) *ecr.UploadLayerPartOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*ecr.UploadLayerPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *ecr.UploadLayerPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilImageScanComplete provides a mock function with given fields: _a0
-func (_m *MockFakeECR) WaitUntilImageScanComplete(_a0 *ecr.DescribeImageScanFindingsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.DescribeImageScanFindingsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilImageScanCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) WaitUntilImageScanCompleteWithContext(_a0 context.Context, _a1 *ecr.DescribeImageScanFindingsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeImageScanFindingsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLifecyclePolicyPreviewComplete provides a mock function with given fields: _a0
-func (_m *MockFakeECR) WaitUntilLifecyclePolicyPreviewComplete(_a0 *ecr.GetLifecyclePolicyPreviewInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*ecr.GetLifecyclePolicyPreviewInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLifecyclePolicyPreviewCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeECR) WaitUntilLifecyclePolicyPreviewCompleteWithContext(_a0 context.Context, _a1 *ecr.GetLifecyclePolicyPreviewInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetLifecyclePolicyPreviewInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeECR interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeECR creates a new instance of MockFakeECR. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeECR(t mockConstructorTestingTNewMockFakeECR) *MockFakeECR {
- mock := &MockFakeECR{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeELB.go b/test/aws/mock_FakeELB.go
deleted file mode 100644
index be4323b98..000000000
--- a/test/aws/mock_FakeELB.go
+++ /dev/null
@@ -1,2695 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- elb "github.com/aws/aws-sdk-go/service/elb"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeELB is an autogenerated mock type for the FakeELB type
-type MockFakeELB struct {
- mock.Mock
-}
-
-// AddTags provides a mock function with given fields: _a0
-func (_m *MockFakeELB) AddTags(_a0 *elb.AddTagsInput) (*elb.AddTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.AddTagsInput) (*elb.AddTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.AddTagsInput) *elb.AddTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.AddTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) AddTagsRequest(_a0 *elb.AddTagsInput) (*request.Request, *elb.AddTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.AddTagsOutput
- if rf, ok := ret.Get(0).(func(*elb.AddTagsInput) (*request.Request, *elb.AddTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.AddTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.AddTagsInput) *elb.AddTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.AddTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) AddTagsWithContext(_a0 context.Context, _a1 *elb.AddTagsInput, _a2 ...request.Option) (*elb.AddTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.AddTagsInput, ...request.Option) (*elb.AddTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.AddTagsInput, ...request.Option) *elb.AddTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.AddTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ApplySecurityGroupsToLoadBalancer(_a0 *elb.ApplySecurityGroupsToLoadBalancerInput) (*elb.ApplySecurityGroupsToLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.ApplySecurityGroupsToLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) (*elb.ApplySecurityGroupsToLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) *elb.ApplySecurityGroupsToLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ApplySecurityGroupsToLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ApplySecurityGroupsToLoadBalancerRequest(_a0 *elb.ApplySecurityGroupsToLoadBalancerInput) (*request.Request, *elb.ApplySecurityGroupsToLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.ApplySecurityGroupsToLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) (*request.Request, *elb.ApplySecurityGroupsToLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ApplySecurityGroupsToLoadBalancerInput) *elb.ApplySecurityGroupsToLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.ApplySecurityGroupsToLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// ApplySecurityGroupsToLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) ApplySecurityGroupsToLoadBalancerWithContext(_a0 context.Context, _a1 *elb.ApplySecurityGroupsToLoadBalancerInput, _a2 ...request.Option) (*elb.ApplySecurityGroupsToLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.ApplySecurityGroupsToLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ApplySecurityGroupsToLoadBalancerInput, ...request.Option) (*elb.ApplySecurityGroupsToLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ApplySecurityGroupsToLoadBalancerInput, ...request.Option) *elb.ApplySecurityGroupsToLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ApplySecurityGroupsToLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.ApplySecurityGroupsToLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerToSubnets provides a mock function with given fields: _a0
-func (_m *MockFakeELB) AttachLoadBalancerToSubnets(_a0 *elb.AttachLoadBalancerToSubnetsInput) (*elb.AttachLoadBalancerToSubnetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.AttachLoadBalancerToSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.AttachLoadBalancerToSubnetsInput) (*elb.AttachLoadBalancerToSubnetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.AttachLoadBalancerToSubnetsInput) *elb.AttachLoadBalancerToSubnetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.AttachLoadBalancerToSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.AttachLoadBalancerToSubnetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerToSubnetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) AttachLoadBalancerToSubnetsRequest(_a0 *elb.AttachLoadBalancerToSubnetsInput) (*request.Request, *elb.AttachLoadBalancerToSubnetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.AttachLoadBalancerToSubnetsOutput
- if rf, ok := ret.Get(0).(func(*elb.AttachLoadBalancerToSubnetsInput) (*request.Request, *elb.AttachLoadBalancerToSubnetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.AttachLoadBalancerToSubnetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.AttachLoadBalancerToSubnetsInput) *elb.AttachLoadBalancerToSubnetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.AttachLoadBalancerToSubnetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachLoadBalancerToSubnetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) AttachLoadBalancerToSubnetsWithContext(_a0 context.Context, _a1 *elb.AttachLoadBalancerToSubnetsInput, _a2 ...request.Option) (*elb.AttachLoadBalancerToSubnetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.AttachLoadBalancerToSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.AttachLoadBalancerToSubnetsInput, ...request.Option) (*elb.AttachLoadBalancerToSubnetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.AttachLoadBalancerToSubnetsInput, ...request.Option) *elb.AttachLoadBalancerToSubnetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.AttachLoadBalancerToSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.AttachLoadBalancerToSubnetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfigureHealthCheck provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ConfigureHealthCheck(_a0 *elb.ConfigureHealthCheckInput) (*elb.ConfigureHealthCheckOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.ConfigureHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.ConfigureHealthCheckInput) (*elb.ConfigureHealthCheckOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ConfigureHealthCheckInput) *elb.ConfigureHealthCheckOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ConfigureHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ConfigureHealthCheckInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfigureHealthCheckRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ConfigureHealthCheckRequest(_a0 *elb.ConfigureHealthCheckInput) (*request.Request, *elb.ConfigureHealthCheckOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.ConfigureHealthCheckOutput
- if rf, ok := ret.Get(0).(func(*elb.ConfigureHealthCheckInput) (*request.Request, *elb.ConfigureHealthCheckOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ConfigureHealthCheckInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ConfigureHealthCheckInput) *elb.ConfigureHealthCheckOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.ConfigureHealthCheckOutput)
- }
- }
-
- return r0, r1
-}
-
-// ConfigureHealthCheckWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) ConfigureHealthCheckWithContext(_a0 context.Context, _a1 *elb.ConfigureHealthCheckInput, _a2 ...request.Option) (*elb.ConfigureHealthCheckOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.ConfigureHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ConfigureHealthCheckInput, ...request.Option) (*elb.ConfigureHealthCheckOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ConfigureHealthCheckInput, ...request.Option) *elb.ConfigureHealthCheckOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ConfigureHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.ConfigureHealthCheckInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAppCookieStickinessPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateAppCookieStickinessPolicy(_a0 *elb.CreateAppCookieStickinessPolicyInput) (*elb.CreateAppCookieStickinessPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.CreateAppCookieStickinessPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.CreateAppCookieStickinessPolicyInput) (*elb.CreateAppCookieStickinessPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateAppCookieStickinessPolicyInput) *elb.CreateAppCookieStickinessPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateAppCookieStickinessPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateAppCookieStickinessPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAppCookieStickinessPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateAppCookieStickinessPolicyRequest(_a0 *elb.CreateAppCookieStickinessPolicyInput) (*request.Request, *elb.CreateAppCookieStickinessPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.CreateAppCookieStickinessPolicyOutput
- if rf, ok := ret.Get(0).(func(*elb.CreateAppCookieStickinessPolicyInput) (*request.Request, *elb.CreateAppCookieStickinessPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateAppCookieStickinessPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateAppCookieStickinessPolicyInput) *elb.CreateAppCookieStickinessPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.CreateAppCookieStickinessPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAppCookieStickinessPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) CreateAppCookieStickinessPolicyWithContext(_a0 context.Context, _a1 *elb.CreateAppCookieStickinessPolicyInput, _a2 ...request.Option) (*elb.CreateAppCookieStickinessPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.CreateAppCookieStickinessPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateAppCookieStickinessPolicyInput, ...request.Option) (*elb.CreateAppCookieStickinessPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateAppCookieStickinessPolicyInput, ...request.Option) *elb.CreateAppCookieStickinessPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateAppCookieStickinessPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.CreateAppCookieStickinessPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLBCookieStickinessPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLBCookieStickinessPolicy(_a0 *elb.CreateLBCookieStickinessPolicyInput) (*elb.CreateLBCookieStickinessPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.CreateLBCookieStickinessPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.CreateLBCookieStickinessPolicyInput) (*elb.CreateLBCookieStickinessPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLBCookieStickinessPolicyInput) *elb.CreateLBCookieStickinessPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLBCookieStickinessPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLBCookieStickinessPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLBCookieStickinessPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLBCookieStickinessPolicyRequest(_a0 *elb.CreateLBCookieStickinessPolicyInput) (*request.Request, *elb.CreateLBCookieStickinessPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.CreateLBCookieStickinessPolicyOutput
- if rf, ok := ret.Get(0).(func(*elb.CreateLBCookieStickinessPolicyInput) (*request.Request, *elb.CreateLBCookieStickinessPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLBCookieStickinessPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLBCookieStickinessPolicyInput) *elb.CreateLBCookieStickinessPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.CreateLBCookieStickinessPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLBCookieStickinessPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) CreateLBCookieStickinessPolicyWithContext(_a0 context.Context, _a1 *elb.CreateLBCookieStickinessPolicyInput, _a2 ...request.Option) (*elb.CreateLBCookieStickinessPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.CreateLBCookieStickinessPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLBCookieStickinessPolicyInput, ...request.Option) (*elb.CreateLBCookieStickinessPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLBCookieStickinessPolicyInput, ...request.Option) *elb.CreateLBCookieStickinessPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLBCookieStickinessPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.CreateLBCookieStickinessPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancer(_a0 *elb.CreateLoadBalancerInput) (*elb.CreateLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.CreateLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerInput) (*elb.CreateLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerInput) *elb.CreateLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerListeners provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancerListeners(_a0 *elb.CreateLoadBalancerListenersInput) (*elb.CreateLoadBalancerListenersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.CreateLoadBalancerListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerListenersInput) (*elb.CreateLoadBalancerListenersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerListenersInput) *elb.CreateLoadBalancerListenersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerListenersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerListenersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancerListenersRequest(_a0 *elb.CreateLoadBalancerListenersInput) (*request.Request, *elb.CreateLoadBalancerListenersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.CreateLoadBalancerListenersOutput
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerListenersInput) (*request.Request, *elb.CreateLoadBalancerListenersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerListenersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerListenersInput) *elb.CreateLoadBalancerListenersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.CreateLoadBalancerListenersOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerListenersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) CreateLoadBalancerListenersWithContext(_a0 context.Context, _a1 *elb.CreateLoadBalancerListenersInput, _a2 ...request.Option) (*elb.CreateLoadBalancerListenersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.CreateLoadBalancerListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerListenersInput, ...request.Option) (*elb.CreateLoadBalancerListenersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerListenersInput, ...request.Option) *elb.CreateLoadBalancerListenersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.CreateLoadBalancerListenersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancerPolicy(_a0 *elb.CreateLoadBalancerPolicyInput) (*elb.CreateLoadBalancerPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.CreateLoadBalancerPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerPolicyInput) (*elb.CreateLoadBalancerPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerPolicyInput) *elb.CreateLoadBalancerPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancerPolicyRequest(_a0 *elb.CreateLoadBalancerPolicyInput) (*request.Request, *elb.CreateLoadBalancerPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.CreateLoadBalancerPolicyOutput
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerPolicyInput) (*request.Request, *elb.CreateLoadBalancerPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerPolicyInput) *elb.CreateLoadBalancerPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.CreateLoadBalancerPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) CreateLoadBalancerPolicyWithContext(_a0 context.Context, _a1 *elb.CreateLoadBalancerPolicyInput, _a2 ...request.Option) (*elb.CreateLoadBalancerPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.CreateLoadBalancerPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerPolicyInput, ...request.Option) (*elb.CreateLoadBalancerPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerPolicyInput, ...request.Option) *elb.CreateLoadBalancerPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.CreateLoadBalancerPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) CreateLoadBalancerRequest(_a0 *elb.CreateLoadBalancerInput) (*request.Request, *elb.CreateLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.CreateLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerInput) (*request.Request, *elb.CreateLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.CreateLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.CreateLoadBalancerInput) *elb.CreateLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.CreateLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) CreateLoadBalancerWithContext(_a0 context.Context, _a1 *elb.CreateLoadBalancerInput, _a2 ...request.Option) (*elb.CreateLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.CreateLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerInput, ...request.Option) (*elb.CreateLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.CreateLoadBalancerInput, ...request.Option) *elb.CreateLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.CreateLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.CreateLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancer(_a0 *elb.DeleteLoadBalancerInput) (*elb.DeleteLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DeleteLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerInput) (*elb.DeleteLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerInput) *elb.DeleteLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerListeners provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancerListeners(_a0 *elb.DeleteLoadBalancerListenersInput) (*elb.DeleteLoadBalancerListenersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DeleteLoadBalancerListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerListenersInput) (*elb.DeleteLoadBalancerListenersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerListenersInput) *elb.DeleteLoadBalancerListenersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerListenersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerListenersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancerListenersRequest(_a0 *elb.DeleteLoadBalancerListenersInput) (*request.Request, *elb.DeleteLoadBalancerListenersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DeleteLoadBalancerListenersOutput
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerListenersInput) (*request.Request, *elb.DeleteLoadBalancerListenersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerListenersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerListenersInput) *elb.DeleteLoadBalancerListenersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DeleteLoadBalancerListenersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerListenersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DeleteLoadBalancerListenersWithContext(_a0 context.Context, _a1 *elb.DeleteLoadBalancerListenersInput, _a2 ...request.Option) (*elb.DeleteLoadBalancerListenersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DeleteLoadBalancerListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerListenersInput, ...request.Option) (*elb.DeleteLoadBalancerListenersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerListenersInput, ...request.Option) *elb.DeleteLoadBalancerListenersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DeleteLoadBalancerListenersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancerPolicy(_a0 *elb.DeleteLoadBalancerPolicyInput) (*elb.DeleteLoadBalancerPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DeleteLoadBalancerPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerPolicyInput) (*elb.DeleteLoadBalancerPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerPolicyInput) *elb.DeleteLoadBalancerPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancerPolicyRequest(_a0 *elb.DeleteLoadBalancerPolicyInput) (*request.Request, *elb.DeleteLoadBalancerPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DeleteLoadBalancerPolicyOutput
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerPolicyInput) (*request.Request, *elb.DeleteLoadBalancerPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerPolicyInput) *elb.DeleteLoadBalancerPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DeleteLoadBalancerPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DeleteLoadBalancerPolicyWithContext(_a0 context.Context, _a1 *elb.DeleteLoadBalancerPolicyInput, _a2 ...request.Option) (*elb.DeleteLoadBalancerPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DeleteLoadBalancerPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerPolicyInput, ...request.Option) (*elb.DeleteLoadBalancerPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerPolicyInput, ...request.Option) *elb.DeleteLoadBalancerPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DeleteLoadBalancerPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeleteLoadBalancerRequest(_a0 *elb.DeleteLoadBalancerInput) (*request.Request, *elb.DeleteLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DeleteLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerInput) (*request.Request, *elb.DeleteLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeleteLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeleteLoadBalancerInput) *elb.DeleteLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DeleteLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DeleteLoadBalancerWithContext(_a0 context.Context, _a1 *elb.DeleteLoadBalancerInput, _a2 ...request.Option) (*elb.DeleteLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DeleteLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerInput, ...request.Option) (*elb.DeleteLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeleteLoadBalancerInput, ...request.Option) *elb.DeleteLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeleteLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DeleteLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterInstancesFromLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeregisterInstancesFromLoadBalancer(_a0 *elb.DeregisterInstancesFromLoadBalancerInput) (*elb.DeregisterInstancesFromLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DeregisterInstancesFromLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DeregisterInstancesFromLoadBalancerInput) (*elb.DeregisterInstancesFromLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeregisterInstancesFromLoadBalancerInput) *elb.DeregisterInstancesFromLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeregisterInstancesFromLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeregisterInstancesFromLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterInstancesFromLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DeregisterInstancesFromLoadBalancerRequest(_a0 *elb.DeregisterInstancesFromLoadBalancerInput) (*request.Request, *elb.DeregisterInstancesFromLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DeregisterInstancesFromLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.DeregisterInstancesFromLoadBalancerInput) (*request.Request, *elb.DeregisterInstancesFromLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DeregisterInstancesFromLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DeregisterInstancesFromLoadBalancerInput) *elb.DeregisterInstancesFromLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DeregisterInstancesFromLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterInstancesFromLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DeregisterInstancesFromLoadBalancerWithContext(_a0 context.Context, _a1 *elb.DeregisterInstancesFromLoadBalancerInput, _a2 ...request.Option) (*elb.DeregisterInstancesFromLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DeregisterInstancesFromLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeregisterInstancesFromLoadBalancerInput, ...request.Option) (*elb.DeregisterInstancesFromLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DeregisterInstancesFromLoadBalancerInput, ...request.Option) *elb.DeregisterInstancesFromLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DeregisterInstancesFromLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DeregisterInstancesFromLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimits provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeAccountLimits(_a0 *elb.DescribeAccountLimitsInput) (*elb.DescribeAccountLimitsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeAccountLimitsInput) (*elb.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeAccountLimitsInput) *elb.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeAccountLimitsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeAccountLimitsRequest(_a0 *elb.DescribeAccountLimitsInput) (*request.Request, *elb.DescribeAccountLimitsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeAccountLimitsOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeAccountLimitsInput) (*request.Request, *elb.DescribeAccountLimitsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeAccountLimitsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeAccountLimitsInput) *elb.DescribeAccountLimitsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeAccountLimitsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeAccountLimitsWithContext(_a0 context.Context, _a1 *elb.DescribeAccountLimitsInput, _a2 ...request.Option) (*elb.DescribeAccountLimitsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeAccountLimitsInput, ...request.Option) (*elb.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeAccountLimitsInput, ...request.Option) *elb.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeAccountLimitsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceHealth provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeInstanceHealth(_a0 *elb.DescribeInstanceHealthInput) (*elb.DescribeInstanceHealthOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeInstanceHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) (*elb.DescribeInstanceHealthOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) *elb.DescribeInstanceHealthOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeInstanceHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeInstanceHealthInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeInstanceHealthRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeInstanceHealthRequest(_a0 *elb.DescribeInstanceHealthInput) (*request.Request, *elb.DescribeInstanceHealthOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeInstanceHealthOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) (*request.Request, *elb.DescribeInstanceHealthOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeInstanceHealthInput) *elb.DescribeInstanceHealthOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeInstanceHealthOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeInstanceHealthWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeInstanceHealthWithContext(_a0 context.Context, _a1 *elb.DescribeInstanceHealthInput, _a2 ...request.Option) (*elb.DescribeInstanceHealthOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeInstanceHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.Option) (*elb.DescribeInstanceHealthOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.Option) *elb.DescribeInstanceHealthOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeInstanceHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerAttributes(_a0 *elb.DescribeLoadBalancerAttributesInput) (*elb.DescribeLoadBalancerAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerAttributesInput) (*elb.DescribeLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerAttributesInput) *elb.DescribeLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerAttributesRequest(_a0 *elb.DescribeLoadBalancerAttributesInput) (*request.Request, *elb.DescribeLoadBalancerAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeLoadBalancerAttributesOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerAttributesInput) (*request.Request, *elb.DescribeLoadBalancerAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerAttributesInput) *elb.DescribeLoadBalancerAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeLoadBalancerAttributesWithContext(_a0 context.Context, _a1 *elb.DescribeLoadBalancerAttributesInput, _a2 ...request.Option) (*elb.DescribeLoadBalancerAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerAttributesInput, ...request.Option) (*elb.DescribeLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerAttributesInput, ...request.Option) *elb.DescribeLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeLoadBalancerAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerPolicies(_a0 *elb.DescribeLoadBalancerPoliciesInput) (*elb.DescribeLoadBalancerPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeLoadBalancerPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPoliciesInput) (*elb.DescribeLoadBalancerPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPoliciesInput) *elb.DescribeLoadBalancerPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerPoliciesRequest(_a0 *elb.DescribeLoadBalancerPoliciesInput) (*request.Request, *elb.DescribeLoadBalancerPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeLoadBalancerPoliciesOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPoliciesInput) (*request.Request, *elb.DescribeLoadBalancerPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerPoliciesInput) *elb.DescribeLoadBalancerPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeLoadBalancerPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeLoadBalancerPoliciesWithContext(_a0 context.Context, _a1 *elb.DescribeLoadBalancerPoliciesInput, _a2 ...request.Option) (*elb.DescribeLoadBalancerPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeLoadBalancerPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerPoliciesInput, ...request.Option) (*elb.DescribeLoadBalancerPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerPoliciesInput, ...request.Option) *elb.DescribeLoadBalancerPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeLoadBalancerPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPolicyTypes provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerPolicyTypes(_a0 *elb.DescribeLoadBalancerPolicyTypesInput) (*elb.DescribeLoadBalancerPolicyTypesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeLoadBalancerPolicyTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPolicyTypesInput) (*elb.DescribeLoadBalancerPolicyTypesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPolicyTypesInput) *elb.DescribeLoadBalancerPolicyTypesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerPolicyTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerPolicyTypesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPolicyTypesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancerPolicyTypesRequest(_a0 *elb.DescribeLoadBalancerPolicyTypesInput) (*request.Request, *elb.DescribeLoadBalancerPolicyTypesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeLoadBalancerPolicyTypesOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPolicyTypesInput) (*request.Request, *elb.DescribeLoadBalancerPolicyTypesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancerPolicyTypesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancerPolicyTypesInput) *elb.DescribeLoadBalancerPolicyTypesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeLoadBalancerPolicyTypesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerPolicyTypesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeLoadBalancerPolicyTypesWithContext(_a0 context.Context, _a1 *elb.DescribeLoadBalancerPolicyTypesInput, _a2 ...request.Option) (*elb.DescribeLoadBalancerPolicyTypesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeLoadBalancerPolicyTypesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerPolicyTypesInput, ...request.Option) (*elb.DescribeLoadBalancerPolicyTypesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancerPolicyTypesInput, ...request.Option) *elb.DescribeLoadBalancerPolicyTypesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancerPolicyTypesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeLoadBalancerPolicyTypesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancers provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancers(_a0 *elb.DescribeLoadBalancersInput) (*elb.DescribeLoadBalancersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancersInput) (*elb.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancersInput) *elb.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeELB) DescribeLoadBalancersPages(_a0 *elb.DescribeLoadBalancersInput, _a1 func(*elb.DescribeLoadBalancersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancersInput, func(*elb.DescribeLoadBalancersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLoadBalancersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeELB) DescribeLoadBalancersPagesWithContext(_a0 context.Context, _a1 *elb.DescribeLoadBalancersInput, _a2 func(*elb.DescribeLoadBalancersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancersInput, func(*elb.DescribeLoadBalancersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLoadBalancersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeLoadBalancersRequest(_a0 *elb.DescribeLoadBalancersInput) (*request.Request, *elb.DescribeLoadBalancersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeLoadBalancersOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancersInput) (*request.Request, *elb.DescribeLoadBalancersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeLoadBalancersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeLoadBalancersInput) *elb.DescribeLoadBalancersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeLoadBalancersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeLoadBalancersWithContext(_a0 context.Context, _a1 *elb.DescribeLoadBalancersInput, _a2 ...request.Option) (*elb.DescribeLoadBalancersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancersInput, ...request.Option) (*elb.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeLoadBalancersInput, ...request.Option) *elb.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeLoadBalancersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTags provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeTags(_a0 *elb.DescribeTagsInput) (*elb.DescribeTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeTagsInput) (*elb.DescribeTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeTagsInput) *elb.DescribeTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DescribeTagsRequest(_a0 *elb.DescribeTagsInput) (*request.Request, *elb.DescribeTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DescribeTagsOutput
- if rf, ok := ret.Get(0).(func(*elb.DescribeTagsInput) (*request.Request, *elb.DescribeTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DescribeTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DescribeTagsInput) *elb.DescribeTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DescribeTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DescribeTagsWithContext(_a0 context.Context, _a1 *elb.DescribeTagsInput, _a2 ...request.Option) (*elb.DescribeTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeTagsInput, ...request.Option) (*elb.DescribeTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeTagsInput, ...request.Option) *elb.DescribeTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DescribeTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerFromSubnets provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DetachLoadBalancerFromSubnets(_a0 *elb.DetachLoadBalancerFromSubnetsInput) (*elb.DetachLoadBalancerFromSubnetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DetachLoadBalancerFromSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DetachLoadBalancerFromSubnetsInput) (*elb.DetachLoadBalancerFromSubnetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DetachLoadBalancerFromSubnetsInput) *elb.DetachLoadBalancerFromSubnetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DetachLoadBalancerFromSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DetachLoadBalancerFromSubnetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerFromSubnetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DetachLoadBalancerFromSubnetsRequest(_a0 *elb.DetachLoadBalancerFromSubnetsInput) (*request.Request, *elb.DetachLoadBalancerFromSubnetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DetachLoadBalancerFromSubnetsOutput
- if rf, ok := ret.Get(0).(func(*elb.DetachLoadBalancerFromSubnetsInput) (*request.Request, *elb.DetachLoadBalancerFromSubnetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DetachLoadBalancerFromSubnetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DetachLoadBalancerFromSubnetsInput) *elb.DetachLoadBalancerFromSubnetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DetachLoadBalancerFromSubnetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachLoadBalancerFromSubnetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DetachLoadBalancerFromSubnetsWithContext(_a0 context.Context, _a1 *elb.DetachLoadBalancerFromSubnetsInput, _a2 ...request.Option) (*elb.DetachLoadBalancerFromSubnetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DetachLoadBalancerFromSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DetachLoadBalancerFromSubnetsInput, ...request.Option) (*elb.DetachLoadBalancerFromSubnetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DetachLoadBalancerFromSubnetsInput, ...request.Option) *elb.DetachLoadBalancerFromSubnetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DetachLoadBalancerFromSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DetachLoadBalancerFromSubnetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableAvailabilityZonesForLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DisableAvailabilityZonesForLoadBalancer(_a0 *elb.DisableAvailabilityZonesForLoadBalancerInput) (*elb.DisableAvailabilityZonesForLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.DisableAvailabilityZonesForLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) (*elb.DisableAvailabilityZonesForLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) *elb.DisableAvailabilityZonesForLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DisableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableAvailabilityZonesForLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) DisableAvailabilityZonesForLoadBalancerRequest(_a0 *elb.DisableAvailabilityZonesForLoadBalancerInput) (*request.Request, *elb.DisableAvailabilityZonesForLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.DisableAvailabilityZonesForLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) (*request.Request, *elb.DisableAvailabilityZonesForLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.DisableAvailabilityZonesForLoadBalancerInput) *elb.DisableAvailabilityZonesForLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.DisableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableAvailabilityZonesForLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) DisableAvailabilityZonesForLoadBalancerWithContext(_a0 context.Context, _a1 *elb.DisableAvailabilityZonesForLoadBalancerInput, _a2 ...request.Option) (*elb.DisableAvailabilityZonesForLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.DisableAvailabilityZonesForLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DisableAvailabilityZonesForLoadBalancerInput, ...request.Option) (*elb.DisableAvailabilityZonesForLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DisableAvailabilityZonesForLoadBalancerInput, ...request.Option) *elb.DisableAvailabilityZonesForLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.DisableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.DisableAvailabilityZonesForLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableAvailabilityZonesForLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) EnableAvailabilityZonesForLoadBalancer(_a0 *elb.EnableAvailabilityZonesForLoadBalancerInput) (*elb.EnableAvailabilityZonesForLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.EnableAvailabilityZonesForLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) (*elb.EnableAvailabilityZonesForLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) *elb.EnableAvailabilityZonesForLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.EnableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableAvailabilityZonesForLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) EnableAvailabilityZonesForLoadBalancerRequest(_a0 *elb.EnableAvailabilityZonesForLoadBalancerInput) (*request.Request, *elb.EnableAvailabilityZonesForLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.EnableAvailabilityZonesForLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) (*request.Request, *elb.EnableAvailabilityZonesForLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.EnableAvailabilityZonesForLoadBalancerInput) *elb.EnableAvailabilityZonesForLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.EnableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableAvailabilityZonesForLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) EnableAvailabilityZonesForLoadBalancerWithContext(_a0 context.Context, _a1 *elb.EnableAvailabilityZonesForLoadBalancerInput, _a2 ...request.Option) (*elb.EnableAvailabilityZonesForLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.EnableAvailabilityZonesForLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.EnableAvailabilityZonesForLoadBalancerInput, ...request.Option) (*elb.EnableAvailabilityZonesForLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.EnableAvailabilityZonesForLoadBalancerInput, ...request.Option) *elb.EnableAvailabilityZonesForLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.EnableAvailabilityZonesForLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.EnableAvailabilityZonesForLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ModifyLoadBalancerAttributes(_a0 *elb.ModifyLoadBalancerAttributesInput) (*elb.ModifyLoadBalancerAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.ModifyLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.ModifyLoadBalancerAttributesInput) (*elb.ModifyLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ModifyLoadBalancerAttributesInput) *elb.ModifyLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ModifyLoadBalancerAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) ModifyLoadBalancerAttributesRequest(_a0 *elb.ModifyLoadBalancerAttributesInput) (*request.Request, *elb.ModifyLoadBalancerAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.ModifyLoadBalancerAttributesOutput
- if rf, ok := ret.Get(0).(func(*elb.ModifyLoadBalancerAttributesInput) (*request.Request, *elb.ModifyLoadBalancerAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.ModifyLoadBalancerAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.ModifyLoadBalancerAttributesInput) *elb.ModifyLoadBalancerAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) ModifyLoadBalancerAttributesWithContext(_a0 context.Context, _a1 *elb.ModifyLoadBalancerAttributesInput, _a2 ...request.Option) (*elb.ModifyLoadBalancerAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.ModifyLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ModifyLoadBalancerAttributesInput, ...request.Option) (*elb.ModifyLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.ModifyLoadBalancerAttributesInput, ...request.Option) *elb.ModifyLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.ModifyLoadBalancerAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterInstancesWithLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) RegisterInstancesWithLoadBalancer(_a0 *elb.RegisterInstancesWithLoadBalancerInput) (*elb.RegisterInstancesWithLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.RegisterInstancesWithLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.RegisterInstancesWithLoadBalancerInput) (*elb.RegisterInstancesWithLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.RegisterInstancesWithLoadBalancerInput) *elb.RegisterInstancesWithLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.RegisterInstancesWithLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.RegisterInstancesWithLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterInstancesWithLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) RegisterInstancesWithLoadBalancerRequest(_a0 *elb.RegisterInstancesWithLoadBalancerInput) (*request.Request, *elb.RegisterInstancesWithLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.RegisterInstancesWithLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elb.RegisterInstancesWithLoadBalancerInput) (*request.Request, *elb.RegisterInstancesWithLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.RegisterInstancesWithLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.RegisterInstancesWithLoadBalancerInput) *elb.RegisterInstancesWithLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.RegisterInstancesWithLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterInstancesWithLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) RegisterInstancesWithLoadBalancerWithContext(_a0 context.Context, _a1 *elb.RegisterInstancesWithLoadBalancerInput, _a2 ...request.Option) (*elb.RegisterInstancesWithLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.RegisterInstancesWithLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.RegisterInstancesWithLoadBalancerInput, ...request.Option) (*elb.RegisterInstancesWithLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.RegisterInstancesWithLoadBalancerInput, ...request.Option) *elb.RegisterInstancesWithLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.RegisterInstancesWithLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.RegisterInstancesWithLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTags provides a mock function with given fields: _a0
-func (_m *MockFakeELB) RemoveTags(_a0 *elb.RemoveTagsInput) (*elb.RemoveTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.RemoveTagsInput) (*elb.RemoveTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.RemoveTagsInput) *elb.RemoveTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.RemoveTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) RemoveTagsRequest(_a0 *elb.RemoveTagsInput) (*request.Request, *elb.RemoveTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.RemoveTagsOutput
- if rf, ok := ret.Get(0).(func(*elb.RemoveTagsInput) (*request.Request, *elb.RemoveTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.RemoveTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.RemoveTagsInput) *elb.RemoveTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.RemoveTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) RemoveTagsWithContext(_a0 context.Context, _a1 *elb.RemoveTagsInput, _a2 ...request.Option) (*elb.RemoveTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.RemoveTagsInput, ...request.Option) (*elb.RemoveTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.RemoveTagsInput, ...request.Option) *elb.RemoveTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.RemoveTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerListenerSSLCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerListenerSSLCertificate(_a0 *elb.SetLoadBalancerListenerSSLCertificateInput) (*elb.SetLoadBalancerListenerSSLCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.SetLoadBalancerListenerSSLCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) (*elb.SetLoadBalancerListenerSSLCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) *elb.SetLoadBalancerListenerSSLCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerListenerSSLCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerListenerSSLCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerListenerSSLCertificateRequest(_a0 *elb.SetLoadBalancerListenerSSLCertificateInput) (*request.Request, *elb.SetLoadBalancerListenerSSLCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.SetLoadBalancerListenerSSLCertificateOutput
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) (*request.Request, *elb.SetLoadBalancerListenerSSLCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerListenerSSLCertificateInput) *elb.SetLoadBalancerListenerSSLCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.SetLoadBalancerListenerSSLCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerListenerSSLCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) SetLoadBalancerListenerSSLCertificateWithContext(_a0 context.Context, _a1 *elb.SetLoadBalancerListenerSSLCertificateInput, _a2 ...request.Option) (*elb.SetLoadBalancerListenerSSLCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.SetLoadBalancerListenerSSLCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerListenerSSLCertificateInput, ...request.Option) (*elb.SetLoadBalancerListenerSSLCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerListenerSSLCertificateInput, ...request.Option) *elb.SetLoadBalancerListenerSSLCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerListenerSSLCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.SetLoadBalancerListenerSSLCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesForBackendServer provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerPoliciesForBackendServer(_a0 *elb.SetLoadBalancerPoliciesForBackendServerInput) (*elb.SetLoadBalancerPoliciesForBackendServerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.SetLoadBalancerPoliciesForBackendServerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) (*elb.SetLoadBalancerPoliciesForBackendServerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) *elb.SetLoadBalancerPoliciesForBackendServerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerPoliciesForBackendServerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesForBackendServerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerPoliciesForBackendServerRequest(_a0 *elb.SetLoadBalancerPoliciesForBackendServerInput) (*request.Request, *elb.SetLoadBalancerPoliciesForBackendServerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.SetLoadBalancerPoliciesForBackendServerOutput
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) (*request.Request, *elb.SetLoadBalancerPoliciesForBackendServerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerPoliciesForBackendServerInput) *elb.SetLoadBalancerPoliciesForBackendServerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.SetLoadBalancerPoliciesForBackendServerOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesForBackendServerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) SetLoadBalancerPoliciesForBackendServerWithContext(_a0 context.Context, _a1 *elb.SetLoadBalancerPoliciesForBackendServerInput, _a2 ...request.Option) (*elb.SetLoadBalancerPoliciesForBackendServerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.SetLoadBalancerPoliciesForBackendServerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerPoliciesForBackendServerInput, ...request.Option) (*elb.SetLoadBalancerPoliciesForBackendServerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerPoliciesForBackendServerInput, ...request.Option) *elb.SetLoadBalancerPoliciesForBackendServerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerPoliciesForBackendServerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.SetLoadBalancerPoliciesForBackendServerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesOfListener provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerPoliciesOfListener(_a0 *elb.SetLoadBalancerPoliciesOfListenerInput) (*elb.SetLoadBalancerPoliciesOfListenerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elb.SetLoadBalancerPoliciesOfListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) (*elb.SetLoadBalancerPoliciesOfListenerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) *elb.SetLoadBalancerPoliciesOfListenerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerPoliciesOfListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesOfListenerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELB) SetLoadBalancerPoliciesOfListenerRequest(_a0 *elb.SetLoadBalancerPoliciesOfListenerInput) (*request.Request, *elb.SetLoadBalancerPoliciesOfListenerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elb.SetLoadBalancerPoliciesOfListenerOutput
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) (*request.Request, *elb.SetLoadBalancerPoliciesOfListenerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elb.SetLoadBalancerPoliciesOfListenerInput) *elb.SetLoadBalancerPoliciesOfListenerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elb.SetLoadBalancerPoliciesOfListenerOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetLoadBalancerPoliciesOfListenerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) SetLoadBalancerPoliciesOfListenerWithContext(_a0 context.Context, _a1 *elb.SetLoadBalancerPoliciesOfListenerInput, _a2 ...request.Option) (*elb.SetLoadBalancerPoliciesOfListenerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elb.SetLoadBalancerPoliciesOfListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerPoliciesOfListenerInput, ...request.Option) (*elb.SetLoadBalancerPoliciesOfListenerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elb.SetLoadBalancerPoliciesOfListenerInput, ...request.Option) *elb.SetLoadBalancerPoliciesOfListenerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elb.SetLoadBalancerPoliciesOfListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elb.SetLoadBalancerPoliciesOfListenerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilAnyInstanceInService provides a mock function with given fields: _a0
-func (_m *MockFakeELB) WaitUntilAnyInstanceInService(_a0 *elb.DescribeInstanceHealthInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilAnyInstanceInServiceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) WaitUntilAnyInstanceInServiceWithContext(_a0 context.Context, _a1 *elb.DescribeInstanceHealthInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceDeregistered provides a mock function with given fields: _a0
-func (_m *MockFakeELB) WaitUntilInstanceDeregistered(_a0 *elb.DescribeInstanceHealthInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceDeregisteredWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) WaitUntilInstanceDeregisteredWithContext(_a0 context.Context, _a1 *elb.DescribeInstanceHealthInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceInService provides a mock function with given fields: _a0
-func (_m *MockFakeELB) WaitUntilInstanceInService(_a0 *elb.DescribeInstanceHealthInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elb.DescribeInstanceHealthInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceInServiceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELB) WaitUntilInstanceInServiceWithContext(_a0 context.Context, _a1 *elb.DescribeInstanceHealthInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elb.DescribeInstanceHealthInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeELB interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeELB creates a new instance of MockFakeELB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeELB(t mockConstructorTestingTNewMockFakeELB) *MockFakeELB {
- mock := &MockFakeELB{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeELBV2.go b/test/aws/mock_FakeELBV2.go
deleted file mode 100644
index 3e1110dfb..000000000
--- a/test/aws/mock_FakeELBV2.go
+++ /dev/null
@@ -1,3270 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- elbv2 "github.com/aws/aws-sdk-go/service/elbv2"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeELBV2 is an autogenerated mock type for the FakeELBV2 type
-type MockFakeELBV2 struct {
- mock.Mock
-}
-
-// AddListenerCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) AddListenerCertificates(_a0 *elbv2.AddListenerCertificatesInput) (*elbv2.AddListenerCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.AddListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.AddListenerCertificatesInput) (*elbv2.AddListenerCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.AddListenerCertificatesInput) *elbv2.AddListenerCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.AddListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.AddListenerCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddListenerCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) AddListenerCertificatesRequest(_a0 *elbv2.AddListenerCertificatesInput) (*request.Request, *elbv2.AddListenerCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.AddListenerCertificatesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.AddListenerCertificatesInput) (*request.Request, *elbv2.AddListenerCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.AddListenerCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.AddListenerCertificatesInput) *elbv2.AddListenerCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.AddListenerCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddListenerCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) AddListenerCertificatesWithContext(_a0 context.Context, _a1 *elbv2.AddListenerCertificatesInput, _a2 ...request.Option) (*elbv2.AddListenerCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.AddListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.AddListenerCertificatesInput, ...request.Option) (*elbv2.AddListenerCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.AddListenerCertificatesInput, ...request.Option) *elbv2.AddListenerCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.AddListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.AddListenerCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTags provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) AddTags(_a0 *elbv2.AddTagsInput) (*elbv2.AddTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.AddTagsInput) (*elbv2.AddTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.AddTagsInput) *elbv2.AddTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.AddTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) AddTagsRequest(_a0 *elbv2.AddTagsInput) (*request.Request, *elbv2.AddTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.AddTagsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.AddTagsInput) (*request.Request, *elbv2.AddTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.AddTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.AddTagsInput) *elbv2.AddTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.AddTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) AddTagsWithContext(_a0 context.Context, _a1 *elbv2.AddTagsInput, _a2 ...request.Option) (*elbv2.AddTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.AddTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.AddTagsInput, ...request.Option) (*elbv2.AddTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.AddTagsInput, ...request.Option) *elbv2.AddTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.AddTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.AddTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateListener provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateListener(_a0 *elbv2.CreateListenerInput) (*elbv2.CreateListenerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.CreateListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.CreateListenerInput) (*elbv2.CreateListenerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateListenerInput) *elbv2.CreateListenerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateListenerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateListenerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateListenerRequest(_a0 *elbv2.CreateListenerInput) (*request.Request, *elbv2.CreateListenerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.CreateListenerOutput
- if rf, ok := ret.Get(0).(func(*elbv2.CreateListenerInput) (*request.Request, *elbv2.CreateListenerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateListenerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateListenerInput) *elbv2.CreateListenerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.CreateListenerOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateListenerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) CreateListenerWithContext(_a0 context.Context, _a1 *elbv2.CreateListenerInput, _a2 ...request.Option) (*elbv2.CreateListenerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.CreateListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateListenerInput, ...request.Option) (*elbv2.CreateListenerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateListenerInput, ...request.Option) *elbv2.CreateListenerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.CreateListenerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateLoadBalancer(_a0 *elbv2.CreateLoadBalancerInput) (*elbv2.CreateLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.CreateLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.CreateLoadBalancerInput) (*elbv2.CreateLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateLoadBalancerInput) *elbv2.CreateLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateLoadBalancerRequest(_a0 *elbv2.CreateLoadBalancerInput) (*request.Request, *elbv2.CreateLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.CreateLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elbv2.CreateLoadBalancerInput) (*request.Request, *elbv2.CreateLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateLoadBalancerInput) *elbv2.CreateLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.CreateLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) CreateLoadBalancerWithContext(_a0 context.Context, _a1 *elbv2.CreateLoadBalancerInput, _a2 ...request.Option) (*elbv2.CreateLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.CreateLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateLoadBalancerInput, ...request.Option) (*elbv2.CreateLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateLoadBalancerInput, ...request.Option) *elbv2.CreateLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.CreateLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRule provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateRule(_a0 *elbv2.CreateRuleInput) (*elbv2.CreateRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.CreateRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.CreateRuleInput) (*elbv2.CreateRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateRuleInput) *elbv2.CreateRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateRuleRequest(_a0 *elbv2.CreateRuleInput) (*request.Request, *elbv2.CreateRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.CreateRuleOutput
- if rf, ok := ret.Get(0).(func(*elbv2.CreateRuleInput) (*request.Request, *elbv2.CreateRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateRuleInput) *elbv2.CreateRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.CreateRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) CreateRuleWithContext(_a0 context.Context, _a1 *elbv2.CreateRuleInput, _a2 ...request.Option) (*elbv2.CreateRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.CreateRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateRuleInput, ...request.Option) (*elbv2.CreateRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateRuleInput, ...request.Option) *elbv2.CreateRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.CreateRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTargetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateTargetGroup(_a0 *elbv2.CreateTargetGroupInput) (*elbv2.CreateTargetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.CreateTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.CreateTargetGroupInput) (*elbv2.CreateTargetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateTargetGroupInput) *elbv2.CreateTargetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateTargetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTargetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) CreateTargetGroupRequest(_a0 *elbv2.CreateTargetGroupInput) (*request.Request, *elbv2.CreateTargetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.CreateTargetGroupOutput
- if rf, ok := ret.Get(0).(func(*elbv2.CreateTargetGroupInput) (*request.Request, *elbv2.CreateTargetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.CreateTargetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.CreateTargetGroupInput) *elbv2.CreateTargetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.CreateTargetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTargetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) CreateTargetGroupWithContext(_a0 context.Context, _a1 *elbv2.CreateTargetGroupInput, _a2 ...request.Option) (*elbv2.CreateTargetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.CreateTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateTargetGroupInput, ...request.Option) (*elbv2.CreateTargetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.CreateTargetGroupInput, ...request.Option) *elbv2.CreateTargetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.CreateTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.CreateTargetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteListener provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteListener(_a0 *elbv2.DeleteListenerInput) (*elbv2.DeleteListenerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DeleteListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteListenerInput) (*elbv2.DeleteListenerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteListenerInput) *elbv2.DeleteListenerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteListenerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteListenerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteListenerRequest(_a0 *elbv2.DeleteListenerInput) (*request.Request, *elbv2.DeleteListenerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DeleteListenerOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteListenerInput) (*request.Request, *elbv2.DeleteListenerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteListenerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteListenerInput) *elbv2.DeleteListenerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DeleteListenerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteListenerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DeleteListenerWithContext(_a0 context.Context, _a1 *elbv2.DeleteListenerInput, _a2 ...request.Option) (*elbv2.DeleteListenerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DeleteListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteListenerInput, ...request.Option) (*elbv2.DeleteListenerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteListenerInput, ...request.Option) *elbv2.DeleteListenerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DeleteListenerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancer provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteLoadBalancer(_a0 *elbv2.DeleteLoadBalancerInput) (*elbv2.DeleteLoadBalancerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DeleteLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteLoadBalancerInput) (*elbv2.DeleteLoadBalancerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteLoadBalancerInput) *elbv2.DeleteLoadBalancerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteLoadBalancerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteLoadBalancerRequest(_a0 *elbv2.DeleteLoadBalancerInput) (*request.Request, *elbv2.DeleteLoadBalancerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DeleteLoadBalancerOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteLoadBalancerInput) (*request.Request, *elbv2.DeleteLoadBalancerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteLoadBalancerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteLoadBalancerInput) *elbv2.DeleteLoadBalancerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DeleteLoadBalancerOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLoadBalancerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DeleteLoadBalancerWithContext(_a0 context.Context, _a1 *elbv2.DeleteLoadBalancerInput, _a2 ...request.Option) (*elbv2.DeleteLoadBalancerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DeleteLoadBalancerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteLoadBalancerInput, ...request.Option) (*elbv2.DeleteLoadBalancerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteLoadBalancerInput, ...request.Option) *elbv2.DeleteLoadBalancerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteLoadBalancerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DeleteLoadBalancerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRule provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteRule(_a0 *elbv2.DeleteRuleInput) (*elbv2.DeleteRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DeleteRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteRuleInput) (*elbv2.DeleteRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteRuleInput) *elbv2.DeleteRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteRuleRequest(_a0 *elbv2.DeleteRuleInput) (*request.Request, *elbv2.DeleteRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DeleteRuleOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteRuleInput) (*request.Request, *elbv2.DeleteRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteRuleInput) *elbv2.DeleteRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DeleteRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DeleteRuleWithContext(_a0 context.Context, _a1 *elbv2.DeleteRuleInput, _a2 ...request.Option) (*elbv2.DeleteRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DeleteRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteRuleInput, ...request.Option) (*elbv2.DeleteRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteRuleInput, ...request.Option) *elbv2.DeleteRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DeleteRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTargetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteTargetGroup(_a0 *elbv2.DeleteTargetGroupInput) (*elbv2.DeleteTargetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DeleteTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteTargetGroupInput) (*elbv2.DeleteTargetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteTargetGroupInput) *elbv2.DeleteTargetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteTargetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTargetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeleteTargetGroupRequest(_a0 *elbv2.DeleteTargetGroupInput) (*request.Request, *elbv2.DeleteTargetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DeleteTargetGroupOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteTargetGroupInput) (*request.Request, *elbv2.DeleteTargetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeleteTargetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeleteTargetGroupInput) *elbv2.DeleteTargetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DeleteTargetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTargetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DeleteTargetGroupWithContext(_a0 context.Context, _a1 *elbv2.DeleteTargetGroupInput, _a2 ...request.Option) (*elbv2.DeleteTargetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DeleteTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteTargetGroupInput, ...request.Option) (*elbv2.DeleteTargetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeleteTargetGroupInput, ...request.Option) *elbv2.DeleteTargetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeleteTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DeleteTargetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTargets provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeregisterTargets(_a0 *elbv2.DeregisterTargetsInput) (*elbv2.DeregisterTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DeregisterTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DeregisterTargetsInput) (*elbv2.DeregisterTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeregisterTargetsInput) *elbv2.DeregisterTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeregisterTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeregisterTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DeregisterTargetsRequest(_a0 *elbv2.DeregisterTargetsInput) (*request.Request, *elbv2.DeregisterTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DeregisterTargetsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DeregisterTargetsInput) (*request.Request, *elbv2.DeregisterTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DeregisterTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DeregisterTargetsInput) *elbv2.DeregisterTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DeregisterTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DeregisterTargetsWithContext(_a0 context.Context, _a1 *elbv2.DeregisterTargetsInput, _a2 ...request.Option) (*elbv2.DeregisterTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DeregisterTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeregisterTargetsInput, ...request.Option) (*elbv2.DeregisterTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DeregisterTargetsInput, ...request.Option) *elbv2.DeregisterTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DeregisterTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DeregisterTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimits provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeAccountLimits(_a0 *elbv2.DescribeAccountLimitsInput) (*elbv2.DescribeAccountLimitsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeAccountLimitsInput) (*elbv2.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeAccountLimitsInput) *elbv2.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeAccountLimitsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeAccountLimitsRequest(_a0 *elbv2.DescribeAccountLimitsInput) (*request.Request, *elbv2.DescribeAccountLimitsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeAccountLimitsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeAccountLimitsInput) (*request.Request, *elbv2.DescribeAccountLimitsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeAccountLimitsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeAccountLimitsInput) *elbv2.DescribeAccountLimitsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeAccountLimitsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountLimitsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeAccountLimitsWithContext(_a0 context.Context, _a1 *elbv2.DescribeAccountLimitsInput, _a2 ...request.Option) (*elbv2.DescribeAccountLimitsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeAccountLimitsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeAccountLimitsInput, ...request.Option) (*elbv2.DescribeAccountLimitsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeAccountLimitsInput, ...request.Option) *elbv2.DescribeAccountLimitsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeAccountLimitsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeAccountLimitsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeListenerCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeListenerCertificates(_a0 *elbv2.DescribeListenerCertificatesInput) (*elbv2.DescribeListenerCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenerCertificatesInput) (*elbv2.DescribeListenerCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenerCertificatesInput) *elbv2.DescribeListenerCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeListenerCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeListenerCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeListenerCertificatesRequest(_a0 *elbv2.DescribeListenerCertificatesInput) (*request.Request, *elbv2.DescribeListenerCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeListenerCertificatesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenerCertificatesInput) (*request.Request, *elbv2.DescribeListenerCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenerCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeListenerCertificatesInput) *elbv2.DescribeListenerCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeListenerCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeListenerCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeListenerCertificatesWithContext(_a0 context.Context, _a1 *elbv2.DescribeListenerCertificatesInput, _a2 ...request.Option) (*elbv2.DescribeListenerCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeListenerCertificatesInput, ...request.Option) (*elbv2.DescribeListenerCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeListenerCertificatesInput, ...request.Option) *elbv2.DescribeListenerCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeListenerCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeListeners provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeListeners(_a0 *elbv2.DescribeListenersInput) (*elbv2.DescribeListenersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenersInput) (*elbv2.DescribeListenersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenersInput) *elbv2.DescribeListenersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeListenersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeListenersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeELBV2) DescribeListenersPages(_a0 *elbv2.DescribeListenersInput, _a1 func(*elbv2.DescribeListenersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenersInput, func(*elbv2.DescribeListenersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeListenersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeELBV2) DescribeListenersPagesWithContext(_a0 context.Context, _a1 *elbv2.DescribeListenersInput, _a2 func(*elbv2.DescribeListenersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeListenersInput, func(*elbv2.DescribeListenersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeListenersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeListenersRequest(_a0 *elbv2.DescribeListenersInput) (*request.Request, *elbv2.DescribeListenersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeListenersOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenersInput) (*request.Request, *elbv2.DescribeListenersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeListenersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeListenersInput) *elbv2.DescribeListenersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeListenersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeListenersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeListenersWithContext(_a0 context.Context, _a1 *elbv2.DescribeListenersInput, _a2 ...request.Option) (*elbv2.DescribeListenersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeListenersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeListenersInput, ...request.Option) (*elbv2.DescribeListenersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeListenersInput, ...request.Option) *elbv2.DescribeListenersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeListenersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeListenersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeLoadBalancerAttributes(_a0 *elbv2.DescribeLoadBalancerAttributesInput) (*elbv2.DescribeLoadBalancerAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancerAttributesInput) (*elbv2.DescribeLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancerAttributesInput) *elbv2.DescribeLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeLoadBalancerAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeLoadBalancerAttributesRequest(_a0 *elbv2.DescribeLoadBalancerAttributesInput) (*request.Request, *elbv2.DescribeLoadBalancerAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeLoadBalancerAttributesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancerAttributesInput) (*request.Request, *elbv2.DescribeLoadBalancerAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancerAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeLoadBalancerAttributesInput) *elbv2.DescribeLoadBalancerAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancerAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeLoadBalancerAttributesWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancerAttributesInput, _a2 ...request.Option) (*elbv2.DescribeLoadBalancerAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancerAttributesInput, ...request.Option) (*elbv2.DescribeLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancerAttributesInput, ...request.Option) *elbv2.DescribeLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeLoadBalancerAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancers provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeLoadBalancers(_a0 *elbv2.DescribeLoadBalancersInput) (*elbv2.DescribeLoadBalancersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) (*elbv2.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) *elbv2.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeLoadBalancersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeELBV2) DescribeLoadBalancersPages(_a0 *elbv2.DescribeLoadBalancersInput, _a1 func(*elbv2.DescribeLoadBalancersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput, func(*elbv2.DescribeLoadBalancersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLoadBalancersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeELBV2) DescribeLoadBalancersPagesWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancersInput, _a2 func(*elbv2.DescribeLoadBalancersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, func(*elbv2.DescribeLoadBalancersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeLoadBalancersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeLoadBalancersRequest(_a0 *elbv2.DescribeLoadBalancersInput) (*request.Request, *elbv2.DescribeLoadBalancersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeLoadBalancersOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) (*request.Request, *elbv2.DescribeLoadBalancersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeLoadBalancersInput) *elbv2.DescribeLoadBalancersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeLoadBalancersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeLoadBalancersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeLoadBalancersWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancersInput, _a2 ...request.Option) (*elbv2.DescribeLoadBalancersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeLoadBalancersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.Option) (*elbv2.DescribeLoadBalancersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.Option) *elbv2.DescribeLoadBalancersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeLoadBalancersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRules provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeRules(_a0 *elbv2.DescribeRulesInput) (*elbv2.DescribeRulesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeRulesInput) (*elbv2.DescribeRulesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeRulesInput) *elbv2.DescribeRulesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeRulesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeRulesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeRulesRequest(_a0 *elbv2.DescribeRulesInput) (*request.Request, *elbv2.DescribeRulesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeRulesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeRulesInput) (*request.Request, *elbv2.DescribeRulesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeRulesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeRulesInput) *elbv2.DescribeRulesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeRulesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeRulesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeRulesWithContext(_a0 context.Context, _a1 *elbv2.DescribeRulesInput, _a2 ...request.Option) (*elbv2.DescribeRulesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeRulesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeRulesInput, ...request.Option) (*elbv2.DescribeRulesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeRulesInput, ...request.Option) *elbv2.DescribeRulesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeRulesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeRulesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSSLPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeSSLPolicies(_a0 *elbv2.DescribeSSLPoliciesInput) (*elbv2.DescribeSSLPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeSSLPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeSSLPoliciesInput) (*elbv2.DescribeSSLPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeSSLPoliciesInput) *elbv2.DescribeSSLPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeSSLPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeSSLPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSSLPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeSSLPoliciesRequest(_a0 *elbv2.DescribeSSLPoliciesInput) (*request.Request, *elbv2.DescribeSSLPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeSSLPoliciesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeSSLPoliciesInput) (*request.Request, *elbv2.DescribeSSLPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeSSLPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeSSLPoliciesInput) *elbv2.DescribeSSLPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeSSLPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSSLPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeSSLPoliciesWithContext(_a0 context.Context, _a1 *elbv2.DescribeSSLPoliciesInput, _a2 ...request.Option) (*elbv2.DescribeSSLPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeSSLPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeSSLPoliciesInput, ...request.Option) (*elbv2.DescribeSSLPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeSSLPoliciesInput, ...request.Option) *elbv2.DescribeSSLPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeSSLPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeSSLPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTags provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTags(_a0 *elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTagsInput) *elbv2.DescribeTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTagsRequest(_a0 *elbv2.DescribeTagsInput) (*request.Request, *elbv2.DescribeTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeTagsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTagsInput) (*request.Request, *elbv2.DescribeTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTagsInput) *elbv2.DescribeTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeTagsWithContext(_a0 context.Context, _a1 *elbv2.DescribeTagsInput, _a2 ...request.Option) (*elbv2.DescribeTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTagsInput, ...request.Option) (*elbv2.DescribeTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTagsInput, ...request.Option) *elbv2.DescribeTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroupAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetGroupAttributes(_a0 *elbv2.DescribeTargetGroupAttributesInput) (*elbv2.DescribeTargetGroupAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeTargetGroupAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupAttributesInput) (*elbv2.DescribeTargetGroupAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupAttributesInput) *elbv2.DescribeTargetGroupAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetGroupAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetGroupAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroupAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetGroupAttributesRequest(_a0 *elbv2.DescribeTargetGroupAttributesInput) (*request.Request, *elbv2.DescribeTargetGroupAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeTargetGroupAttributesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupAttributesInput) (*request.Request, *elbv2.DescribeTargetGroupAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetGroupAttributesInput) *elbv2.DescribeTargetGroupAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeTargetGroupAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroupAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeTargetGroupAttributesWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetGroupAttributesInput, _a2 ...request.Option) (*elbv2.DescribeTargetGroupAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeTargetGroupAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetGroupAttributesInput, ...request.Option) (*elbv2.DescribeTargetGroupAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetGroupAttributesInput, ...request.Option) *elbv2.DescribeTargetGroupAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetGroupAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeTargetGroupAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetGroups(_a0 *elbv2.DescribeTargetGroupsInput) (*elbv2.DescribeTargetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupsInput) (*elbv2.DescribeTargetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupsInput) *elbv2.DescribeTargetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeELBV2) DescribeTargetGroupsPages(_a0 *elbv2.DescribeTargetGroupsInput, _a1 func(*elbv2.DescribeTargetGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupsInput, func(*elbv2.DescribeTargetGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTargetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeELBV2) DescribeTargetGroupsPagesWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetGroupsInput, _a2 func(*elbv2.DescribeTargetGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetGroupsInput, func(*elbv2.DescribeTargetGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeTargetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetGroupsRequest(_a0 *elbv2.DescribeTargetGroupsInput) (*request.Request, *elbv2.DescribeTargetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeTargetGroupsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupsInput) (*request.Request, *elbv2.DescribeTargetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetGroupsInput) *elbv2.DescribeTargetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeTargetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeTargetGroupsWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetGroupsInput, _a2 ...request.Option) (*elbv2.DescribeTargetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetGroupsInput, ...request.Option) (*elbv2.DescribeTargetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetGroupsInput, ...request.Option) *elbv2.DescribeTargetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeTargetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetHealth provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetHealth(_a0 *elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.DescribeTargetHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) *elbv2.DescribeTargetHealthOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetHealthInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeTargetHealthRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) DescribeTargetHealthRequest(_a0 *elbv2.DescribeTargetHealthInput) (*request.Request, *elbv2.DescribeTargetHealthOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.DescribeTargetHealthOutput
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) (*request.Request, *elbv2.DescribeTargetHealthOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.DescribeTargetHealthInput) *elbv2.DescribeTargetHealthOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.DescribeTargetHealthOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeTargetHealthWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) DescribeTargetHealthWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetHealthInput, _a2 ...request.Option) (*elbv2.DescribeTargetHealthOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.DescribeTargetHealthOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetHealthInput, ...request.Option) (*elbv2.DescribeTargetHealthOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetHealthInput, ...request.Option) *elbv2.DescribeTargetHealthOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.DescribeTargetHealthOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.DescribeTargetHealthInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyListener provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyListener(_a0 *elbv2.ModifyListenerInput) (*elbv2.ModifyListenerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.ModifyListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyListenerInput) (*elbv2.ModifyListenerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyListenerInput) *elbv2.ModifyListenerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyListenerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyListenerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyListenerRequest(_a0 *elbv2.ModifyListenerInput) (*request.Request, *elbv2.ModifyListenerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.ModifyListenerOutput
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyListenerInput) (*request.Request, *elbv2.ModifyListenerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyListenerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyListenerInput) *elbv2.ModifyListenerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.ModifyListenerOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyListenerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) ModifyListenerWithContext(_a0 context.Context, _a1 *elbv2.ModifyListenerInput, _a2 ...request.Option) (*elbv2.ModifyListenerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.ModifyListenerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyListenerInput, ...request.Option) (*elbv2.ModifyListenerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyListenerInput, ...request.Option) *elbv2.ModifyListenerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyListenerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.ModifyListenerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyLoadBalancerAttributes(_a0 *elbv2.ModifyLoadBalancerAttributesInput) (*elbv2.ModifyLoadBalancerAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.ModifyLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyLoadBalancerAttributesInput) (*elbv2.ModifyLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyLoadBalancerAttributesInput) *elbv2.ModifyLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyLoadBalancerAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyLoadBalancerAttributesRequest(_a0 *elbv2.ModifyLoadBalancerAttributesInput) (*request.Request, *elbv2.ModifyLoadBalancerAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.ModifyLoadBalancerAttributesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyLoadBalancerAttributesInput) (*request.Request, *elbv2.ModifyLoadBalancerAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyLoadBalancerAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyLoadBalancerAttributesInput) *elbv2.ModifyLoadBalancerAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyLoadBalancerAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) ModifyLoadBalancerAttributesWithContext(_a0 context.Context, _a1 *elbv2.ModifyLoadBalancerAttributesInput, _a2 ...request.Option) (*elbv2.ModifyLoadBalancerAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.ModifyLoadBalancerAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyLoadBalancerAttributesInput, ...request.Option) (*elbv2.ModifyLoadBalancerAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyLoadBalancerAttributesInput, ...request.Option) *elbv2.ModifyLoadBalancerAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyLoadBalancerAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.ModifyLoadBalancerAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyRule provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyRule(_a0 *elbv2.ModifyRuleInput) (*elbv2.ModifyRuleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.ModifyRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyRuleInput) (*elbv2.ModifyRuleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyRuleInput) *elbv2.ModifyRuleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyRuleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyRuleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyRuleRequest(_a0 *elbv2.ModifyRuleInput) (*request.Request, *elbv2.ModifyRuleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.ModifyRuleOutput
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyRuleInput) (*request.Request, *elbv2.ModifyRuleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyRuleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyRuleInput) *elbv2.ModifyRuleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.ModifyRuleOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyRuleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) ModifyRuleWithContext(_a0 context.Context, _a1 *elbv2.ModifyRuleInput, _a2 ...request.Option) (*elbv2.ModifyRuleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.ModifyRuleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyRuleInput, ...request.Option) (*elbv2.ModifyRuleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyRuleInput, ...request.Option) *elbv2.ModifyRuleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyRuleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.ModifyRuleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyTargetGroup(_a0 *elbv2.ModifyTargetGroupInput) (*elbv2.ModifyTargetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.ModifyTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupInput) (*elbv2.ModifyTargetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupInput) *elbv2.ModifyTargetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyTargetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroupAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyTargetGroupAttributes(_a0 *elbv2.ModifyTargetGroupAttributesInput) (*elbv2.ModifyTargetGroupAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.ModifyTargetGroupAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupAttributesInput) (*elbv2.ModifyTargetGroupAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupAttributesInput) *elbv2.ModifyTargetGroupAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyTargetGroupAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyTargetGroupAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroupAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyTargetGroupAttributesRequest(_a0 *elbv2.ModifyTargetGroupAttributesInput) (*request.Request, *elbv2.ModifyTargetGroupAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.ModifyTargetGroupAttributesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupAttributesInput) (*request.Request, *elbv2.ModifyTargetGroupAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyTargetGroupAttributesInput) *elbv2.ModifyTargetGroupAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.ModifyTargetGroupAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroupAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) ModifyTargetGroupAttributesWithContext(_a0 context.Context, _a1 *elbv2.ModifyTargetGroupAttributesInput, _a2 ...request.Option) (*elbv2.ModifyTargetGroupAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.ModifyTargetGroupAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyTargetGroupAttributesInput, ...request.Option) (*elbv2.ModifyTargetGroupAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyTargetGroupAttributesInput, ...request.Option) *elbv2.ModifyTargetGroupAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyTargetGroupAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.ModifyTargetGroupAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) ModifyTargetGroupRequest(_a0 *elbv2.ModifyTargetGroupInput) (*request.Request, *elbv2.ModifyTargetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.ModifyTargetGroupOutput
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupInput) (*request.Request, *elbv2.ModifyTargetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.ModifyTargetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.ModifyTargetGroupInput) *elbv2.ModifyTargetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.ModifyTargetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyTargetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) ModifyTargetGroupWithContext(_a0 context.Context, _a1 *elbv2.ModifyTargetGroupInput, _a2 ...request.Option) (*elbv2.ModifyTargetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.ModifyTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyTargetGroupInput, ...request.Option) (*elbv2.ModifyTargetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.ModifyTargetGroupInput, ...request.Option) *elbv2.ModifyTargetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.ModifyTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.ModifyTargetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTargets provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RegisterTargets(_a0 *elbv2.RegisterTargetsInput) (*elbv2.RegisterTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.RegisterTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.RegisterTargetsInput) (*elbv2.RegisterTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RegisterTargetsInput) *elbv2.RegisterTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RegisterTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RegisterTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RegisterTargetsRequest(_a0 *elbv2.RegisterTargetsInput) (*request.Request, *elbv2.RegisterTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.RegisterTargetsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.RegisterTargetsInput) (*request.Request, *elbv2.RegisterTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RegisterTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RegisterTargetsInput) *elbv2.RegisterTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.RegisterTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) RegisterTargetsWithContext(_a0 context.Context, _a1 *elbv2.RegisterTargetsInput, _a2 ...request.Option) (*elbv2.RegisterTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.RegisterTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RegisterTargetsInput, ...request.Option) (*elbv2.RegisterTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RegisterTargetsInput, ...request.Option) *elbv2.RegisterTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RegisterTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.RegisterTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveListenerCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RemoveListenerCertificates(_a0 *elbv2.RemoveListenerCertificatesInput) (*elbv2.RemoveListenerCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.RemoveListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveListenerCertificatesInput) (*elbv2.RemoveListenerCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveListenerCertificatesInput) *elbv2.RemoveListenerCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RemoveListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RemoveListenerCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveListenerCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RemoveListenerCertificatesRequest(_a0 *elbv2.RemoveListenerCertificatesInput) (*request.Request, *elbv2.RemoveListenerCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.RemoveListenerCertificatesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveListenerCertificatesInput) (*request.Request, *elbv2.RemoveListenerCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveListenerCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RemoveListenerCertificatesInput) *elbv2.RemoveListenerCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.RemoveListenerCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveListenerCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) RemoveListenerCertificatesWithContext(_a0 context.Context, _a1 *elbv2.RemoveListenerCertificatesInput, _a2 ...request.Option) (*elbv2.RemoveListenerCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.RemoveListenerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RemoveListenerCertificatesInput, ...request.Option) (*elbv2.RemoveListenerCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RemoveListenerCertificatesInput, ...request.Option) *elbv2.RemoveListenerCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RemoveListenerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.RemoveListenerCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTags provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RemoveTags(_a0 *elbv2.RemoveTagsInput) (*elbv2.RemoveTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveTagsInput) (*elbv2.RemoveTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveTagsInput) *elbv2.RemoveTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RemoveTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) RemoveTagsRequest(_a0 *elbv2.RemoveTagsInput) (*request.Request, *elbv2.RemoveTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.RemoveTagsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveTagsInput) (*request.Request, *elbv2.RemoveTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.RemoveTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.RemoveTagsInput) *elbv2.RemoveTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.RemoveTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) RemoveTagsWithContext(_a0 context.Context, _a1 *elbv2.RemoveTagsInput, _a2 ...request.Option) (*elbv2.RemoveTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.RemoveTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RemoveTagsInput, ...request.Option) (*elbv2.RemoveTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.RemoveTagsInput, ...request.Option) *elbv2.RemoveTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.RemoveTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.RemoveTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetIpAddressType provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetIpAddressType(_a0 *elbv2.SetIpAddressTypeInput) (*elbv2.SetIpAddressTypeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.SetIpAddressTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.SetIpAddressTypeInput) (*elbv2.SetIpAddressTypeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetIpAddressTypeInput) *elbv2.SetIpAddressTypeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetIpAddressTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetIpAddressTypeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetIpAddressTypeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetIpAddressTypeRequest(_a0 *elbv2.SetIpAddressTypeInput) (*request.Request, *elbv2.SetIpAddressTypeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.SetIpAddressTypeOutput
- if rf, ok := ret.Get(0).(func(*elbv2.SetIpAddressTypeInput) (*request.Request, *elbv2.SetIpAddressTypeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetIpAddressTypeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetIpAddressTypeInput) *elbv2.SetIpAddressTypeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.SetIpAddressTypeOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetIpAddressTypeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) SetIpAddressTypeWithContext(_a0 context.Context, _a1 *elbv2.SetIpAddressTypeInput, _a2 ...request.Option) (*elbv2.SetIpAddressTypeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.SetIpAddressTypeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetIpAddressTypeInput, ...request.Option) (*elbv2.SetIpAddressTypeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetIpAddressTypeInput, ...request.Option) *elbv2.SetIpAddressTypeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetIpAddressTypeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.SetIpAddressTypeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetRulePriorities provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetRulePriorities(_a0 *elbv2.SetRulePrioritiesInput) (*elbv2.SetRulePrioritiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.SetRulePrioritiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.SetRulePrioritiesInput) (*elbv2.SetRulePrioritiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetRulePrioritiesInput) *elbv2.SetRulePrioritiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetRulePrioritiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetRulePrioritiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetRulePrioritiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetRulePrioritiesRequest(_a0 *elbv2.SetRulePrioritiesInput) (*request.Request, *elbv2.SetRulePrioritiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.SetRulePrioritiesOutput
- if rf, ok := ret.Get(0).(func(*elbv2.SetRulePrioritiesInput) (*request.Request, *elbv2.SetRulePrioritiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetRulePrioritiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetRulePrioritiesInput) *elbv2.SetRulePrioritiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.SetRulePrioritiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetRulePrioritiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) SetRulePrioritiesWithContext(_a0 context.Context, _a1 *elbv2.SetRulePrioritiesInput, _a2 ...request.Option) (*elbv2.SetRulePrioritiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.SetRulePrioritiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetRulePrioritiesInput, ...request.Option) (*elbv2.SetRulePrioritiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetRulePrioritiesInput, ...request.Option) *elbv2.SetRulePrioritiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetRulePrioritiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.SetRulePrioritiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSecurityGroups provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetSecurityGroups(_a0 *elbv2.SetSecurityGroupsInput) (*elbv2.SetSecurityGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.SetSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.SetSecurityGroupsInput) (*elbv2.SetSecurityGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetSecurityGroupsInput) *elbv2.SetSecurityGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetSecurityGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSecurityGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetSecurityGroupsRequest(_a0 *elbv2.SetSecurityGroupsInput) (*request.Request, *elbv2.SetSecurityGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.SetSecurityGroupsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.SetSecurityGroupsInput) (*request.Request, *elbv2.SetSecurityGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetSecurityGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetSecurityGroupsInput) *elbv2.SetSecurityGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.SetSecurityGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) SetSecurityGroupsWithContext(_a0 context.Context, _a1 *elbv2.SetSecurityGroupsInput, _a2 ...request.Option) (*elbv2.SetSecurityGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.SetSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetSecurityGroupsInput, ...request.Option) (*elbv2.SetSecurityGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetSecurityGroupsInput, ...request.Option) *elbv2.SetSecurityGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.SetSecurityGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSubnets provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetSubnets(_a0 *elbv2.SetSubnetsInput) (*elbv2.SetSubnetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elbv2.SetSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elbv2.SetSubnetsInput) (*elbv2.SetSubnetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetSubnetsInput) *elbv2.SetSubnetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetSubnetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSubnetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) SetSubnetsRequest(_a0 *elbv2.SetSubnetsInput) (*request.Request, *elbv2.SetSubnetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elbv2.SetSubnetsOutput
- if rf, ok := ret.Get(0).(func(*elbv2.SetSubnetsInput) (*request.Request, *elbv2.SetSubnetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elbv2.SetSubnetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elbv2.SetSubnetsInput) *elbv2.SetSubnetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elbv2.SetSubnetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetSubnetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) SetSubnetsWithContext(_a0 context.Context, _a1 *elbv2.SetSubnetsInput, _a2 ...request.Option) (*elbv2.SetSubnetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elbv2.SetSubnetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetSubnetsInput, ...request.Option) (*elbv2.SetSubnetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.SetSubnetsInput, ...request.Option) *elbv2.SetSubnetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elbv2.SetSubnetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elbv2.SetSubnetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilLoadBalancerAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) WaitUntilLoadBalancerAvailable(_a0 *elbv2.DescribeLoadBalancersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLoadBalancerAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) WaitUntilLoadBalancerAvailableWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLoadBalancerExists provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) WaitUntilLoadBalancerExists(_a0 *elbv2.DescribeLoadBalancersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLoadBalancerExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) WaitUntilLoadBalancerExistsWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLoadBalancersDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) WaitUntilLoadBalancersDeleted(_a0 *elbv2.DescribeLoadBalancersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeLoadBalancersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilLoadBalancersDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) WaitUntilLoadBalancersDeletedWithContext(_a0 context.Context, _a1 *elbv2.DescribeLoadBalancersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeLoadBalancersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTargetDeregistered provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) WaitUntilTargetDeregistered(_a0 *elbv2.DescribeTargetHealthInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTargetDeregisteredWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) WaitUntilTargetDeregisteredWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetHealthInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetHealthInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTargetInService provides a mock function with given fields: _a0
-func (_m *MockFakeELBV2) WaitUntilTargetInService(_a0 *elbv2.DescribeTargetHealthInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elbv2.DescribeTargetHealthInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilTargetInServiceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeELBV2) WaitUntilTargetInServiceWithContext(_a0 context.Context, _a1 *elbv2.DescribeTargetHealthInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elbv2.DescribeTargetHealthInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeELBV2 interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeELBV2 creates a new instance of MockFakeELBV2. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeELBV2(t mockConstructorTestingTNewMockFakeELBV2) *MockFakeELBV2 {
- mock := &MockFakeELBV2{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeElastiCache.go b/test/aws/mock_FakeElastiCache.go
deleted file mode 100644
index c81c67633..000000000
--- a/test/aws/mock_FakeElastiCache.go
+++ /dev/null
@@ -1,6422 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- elasticache "github.com/aws/aws-sdk-go/service/elasticache"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeElastiCache is an autogenerated mock type for the FakeElastiCache type
-type MockFakeElastiCache struct {
- mock.Mock
-}
-
-// AddTagsToResource provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) AddTagsToResource(_a0 *elasticache.AddTagsToResourceInput) (*elasticache.TagListMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.AddTagsToResourceInput) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.AddTagsToResourceInput) *elasticache.TagListMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.AddTagsToResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsToResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) AddTagsToResourceRequest(_a0 *elasticache.AddTagsToResourceInput) (*request.Request, *elasticache.TagListMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.TagListMessage
- if rf, ok := ret.Get(0).(func(*elasticache.AddTagsToResourceInput) (*request.Request, *elasticache.TagListMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.AddTagsToResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.AddTagsToResourceInput) *elasticache.TagListMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.TagListMessage)
- }
- }
-
- return r0, r1
-}
-
-// AddTagsToResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) AddTagsToResourceWithContext(_a0 context.Context, _a1 *elasticache.AddTagsToResourceInput, _a2 ...request.Option) (*elasticache.TagListMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.AddTagsToResourceInput, ...request.Option) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.AddTagsToResourceInput, ...request.Option) *elasticache.TagListMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.AddTagsToResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeCacheSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) AuthorizeCacheSecurityGroupIngress(_a0 *elasticache.AuthorizeCacheSecurityGroupIngressInput) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.AuthorizeCacheSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) *elasticache.AuthorizeCacheSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.AuthorizeCacheSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeCacheSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) AuthorizeCacheSecurityGroupIngressRequest(_a0 *elasticache.AuthorizeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.AuthorizeCacheSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.AuthorizeCacheSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.AuthorizeCacheSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.AuthorizeCacheSecurityGroupIngressInput) *elasticache.AuthorizeCacheSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.AuthorizeCacheSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AuthorizeCacheSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) AuthorizeCacheSecurityGroupIngressWithContext(_a0 context.Context, _a1 *elasticache.AuthorizeCacheSecurityGroupIngressInput, _a2 ...request.Option) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.AuthorizeCacheSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.AuthorizeCacheSecurityGroupIngressInput, ...request.Option) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.AuthorizeCacheSecurityGroupIngressInput, ...request.Option) *elasticache.AuthorizeCacheSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.AuthorizeCacheSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.AuthorizeCacheSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchApplyUpdateAction provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) BatchApplyUpdateAction(_a0 *elasticache.BatchApplyUpdateActionInput) (*elasticache.BatchApplyUpdateActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.BatchApplyUpdateActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.BatchApplyUpdateActionInput) (*elasticache.BatchApplyUpdateActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.BatchApplyUpdateActionInput) *elasticache.BatchApplyUpdateActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.BatchApplyUpdateActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.BatchApplyUpdateActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchApplyUpdateActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) BatchApplyUpdateActionRequest(_a0 *elasticache.BatchApplyUpdateActionInput) (*request.Request, *elasticache.BatchApplyUpdateActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.BatchApplyUpdateActionOutput
- if rf, ok := ret.Get(0).(func(*elasticache.BatchApplyUpdateActionInput) (*request.Request, *elasticache.BatchApplyUpdateActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.BatchApplyUpdateActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.BatchApplyUpdateActionInput) *elasticache.BatchApplyUpdateActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.BatchApplyUpdateActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchApplyUpdateActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) BatchApplyUpdateActionWithContext(_a0 context.Context, _a1 *elasticache.BatchApplyUpdateActionInput, _a2 ...request.Option) (*elasticache.BatchApplyUpdateActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.BatchApplyUpdateActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.BatchApplyUpdateActionInput, ...request.Option) (*elasticache.BatchApplyUpdateActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.BatchApplyUpdateActionInput, ...request.Option) *elasticache.BatchApplyUpdateActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.BatchApplyUpdateActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.BatchApplyUpdateActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchStopUpdateAction provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) BatchStopUpdateAction(_a0 *elasticache.BatchStopUpdateActionInput) (*elasticache.BatchStopUpdateActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.BatchStopUpdateActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.BatchStopUpdateActionInput) (*elasticache.BatchStopUpdateActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.BatchStopUpdateActionInput) *elasticache.BatchStopUpdateActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.BatchStopUpdateActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.BatchStopUpdateActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BatchStopUpdateActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) BatchStopUpdateActionRequest(_a0 *elasticache.BatchStopUpdateActionInput) (*request.Request, *elasticache.BatchStopUpdateActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.BatchStopUpdateActionOutput
- if rf, ok := ret.Get(0).(func(*elasticache.BatchStopUpdateActionInput) (*request.Request, *elasticache.BatchStopUpdateActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.BatchStopUpdateActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.BatchStopUpdateActionInput) *elasticache.BatchStopUpdateActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.BatchStopUpdateActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// BatchStopUpdateActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) BatchStopUpdateActionWithContext(_a0 context.Context, _a1 *elasticache.BatchStopUpdateActionInput, _a2 ...request.Option) (*elasticache.BatchStopUpdateActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.BatchStopUpdateActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.BatchStopUpdateActionInput, ...request.Option) (*elasticache.BatchStopUpdateActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.BatchStopUpdateActionInput, ...request.Option) *elasticache.BatchStopUpdateActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.BatchStopUpdateActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.BatchStopUpdateActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteMigration provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CompleteMigration(_a0 *elasticache.CompleteMigrationInput) (*elasticache.CompleteMigrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CompleteMigrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CompleteMigrationInput) (*elasticache.CompleteMigrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CompleteMigrationInput) *elasticache.CompleteMigrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CompleteMigrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CompleteMigrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteMigrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CompleteMigrationRequest(_a0 *elasticache.CompleteMigrationInput) (*request.Request, *elasticache.CompleteMigrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CompleteMigrationOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CompleteMigrationInput) (*request.Request, *elasticache.CompleteMigrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CompleteMigrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CompleteMigrationInput) *elasticache.CompleteMigrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CompleteMigrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CompleteMigrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CompleteMigrationWithContext(_a0 context.Context, _a1 *elasticache.CompleteMigrationInput, _a2 ...request.Option) (*elasticache.CompleteMigrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CompleteMigrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CompleteMigrationInput, ...request.Option) (*elasticache.CompleteMigrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CompleteMigrationInput, ...request.Option) *elasticache.CompleteMigrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CompleteMigrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CompleteMigrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopySnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CopySnapshot(_a0 *elasticache.CopySnapshotInput) (*elasticache.CopySnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CopySnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CopySnapshotInput) (*elasticache.CopySnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CopySnapshotInput) *elasticache.CopySnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CopySnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CopySnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopySnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CopySnapshotRequest(_a0 *elasticache.CopySnapshotInput) (*request.Request, *elasticache.CopySnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CopySnapshotOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CopySnapshotInput) (*request.Request, *elasticache.CopySnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CopySnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CopySnapshotInput) *elasticache.CopySnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CopySnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopySnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CopySnapshotWithContext(_a0 context.Context, _a1 *elasticache.CopySnapshotInput, _a2 ...request.Option) (*elasticache.CopySnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CopySnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CopySnapshotInput, ...request.Option) (*elasticache.CopySnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CopySnapshotInput, ...request.Option) *elasticache.CopySnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CopySnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CopySnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheCluster provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheCluster(_a0 *elasticache.CreateCacheClusterInput) (*elasticache.CreateCacheClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheClusterInput) (*elasticache.CreateCacheClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheClusterInput) *elasticache.CreateCacheClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheClusterRequest(_a0 *elasticache.CreateCacheClusterInput) (*request.Request, *elasticache.CreateCacheClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateCacheClusterOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheClusterInput) (*request.Request, *elasticache.CreateCacheClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheClusterInput) *elasticache.CreateCacheClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateCacheClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCacheClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateCacheClusterWithContext(_a0 context.Context, _a1 *elasticache.CreateCacheClusterInput, _a2 ...request.Option) (*elasticache.CreateCacheClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheClusterInput, ...request.Option) (*elasticache.CreateCacheClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheClusterInput, ...request.Option) *elasticache.CreateCacheClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateCacheClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheParameterGroup(_a0 *elasticache.CreateCacheParameterGroupInput) (*elasticache.CreateCacheParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateCacheParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheParameterGroupInput) (*elasticache.CreateCacheParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheParameterGroupInput) *elasticache.CreateCacheParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheParameterGroupRequest(_a0 *elasticache.CreateCacheParameterGroupInput) (*request.Request, *elasticache.CreateCacheParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateCacheParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheParameterGroupInput) (*request.Request, *elasticache.CreateCacheParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheParameterGroupInput) *elasticache.CreateCacheParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateCacheParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCacheParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateCacheParameterGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateCacheParameterGroupInput, _a2 ...request.Option) (*elasticache.CreateCacheParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateCacheParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheParameterGroupInput, ...request.Option) (*elasticache.CreateCacheParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheParameterGroupInput, ...request.Option) *elasticache.CreateCacheParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateCacheParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheSecurityGroup(_a0 *elasticache.CreateCacheSecurityGroupInput) (*elasticache.CreateCacheSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateCacheSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSecurityGroupInput) (*elasticache.CreateCacheSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSecurityGroupInput) *elasticache.CreateCacheSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheSecurityGroupRequest(_a0 *elasticache.CreateCacheSecurityGroupInput) (*request.Request, *elasticache.CreateCacheSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateCacheSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSecurityGroupInput) (*request.Request, *elasticache.CreateCacheSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheSecurityGroupInput) *elasticache.CreateCacheSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateCacheSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCacheSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateCacheSecurityGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateCacheSecurityGroupInput, _a2 ...request.Option) (*elasticache.CreateCacheSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateCacheSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheSecurityGroupInput, ...request.Option) (*elasticache.CreateCacheSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheSecurityGroupInput, ...request.Option) *elasticache.CreateCacheSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateCacheSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheSubnetGroup(_a0 *elasticache.CreateCacheSubnetGroupInput) (*elasticache.CreateCacheSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSubnetGroupInput) (*elasticache.CreateCacheSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSubnetGroupInput) *elasticache.CreateCacheSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCacheSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateCacheSubnetGroupRequest(_a0 *elasticache.CreateCacheSubnetGroupInput) (*request.Request, *elasticache.CreateCacheSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateCacheSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSubnetGroupInput) (*request.Request, *elasticache.CreateCacheSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateCacheSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateCacheSubnetGroupInput) *elasticache.CreateCacheSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateCacheSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCacheSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateCacheSubnetGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateCacheSubnetGroupInput, _a2 ...request.Option) (*elasticache.CreateCacheSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheSubnetGroupInput, ...request.Option) (*elasticache.CreateCacheSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateCacheSubnetGroupInput, ...request.Option) *elasticache.CreateCacheSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateCacheSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateGlobalReplicationGroup(_a0 *elasticache.CreateGlobalReplicationGroupInput) (*elasticache.CreateGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateGlobalReplicationGroupInput) (*elasticache.CreateGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateGlobalReplicationGroupInput) *elasticache.CreateGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateGlobalReplicationGroupRequest(_a0 *elasticache.CreateGlobalReplicationGroupInput) (*request.Request, *elasticache.CreateGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateGlobalReplicationGroupInput) (*request.Request, *elasticache.CreateGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateGlobalReplicationGroupInput) *elasticache.CreateGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.CreateGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateGlobalReplicationGroupInput, ...request.Option) (*elasticache.CreateGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateGlobalReplicationGroupInput, ...request.Option) *elasticache.CreateGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateReplicationGroup(_a0 *elasticache.CreateReplicationGroupInput) (*elasticache.CreateReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateReplicationGroupInput) (*elasticache.CreateReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateReplicationGroupInput) *elasticache.CreateReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateReplicationGroupRequest(_a0 *elasticache.CreateReplicationGroupInput) (*request.Request, *elasticache.CreateReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateReplicationGroupInput) (*request.Request, *elasticache.CreateReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateReplicationGroupInput) *elasticache.CreateReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateReplicationGroupInput, _a2 ...request.Option) (*elasticache.CreateReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateReplicationGroupInput, ...request.Option) (*elasticache.CreateReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateReplicationGroupInput, ...request.Option) *elasticache.CreateReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateSnapshot(_a0 *elasticache.CreateSnapshotInput) (*elasticache.CreateSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateSnapshotInput) (*elasticache.CreateSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateSnapshotInput) *elasticache.CreateSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateSnapshotRequest(_a0 *elasticache.CreateSnapshotInput) (*request.Request, *elasticache.CreateSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateSnapshotOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateSnapshotInput) (*request.Request, *elasticache.CreateSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateSnapshotInput) *elasticache.CreateSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateSnapshotWithContext(_a0 context.Context, _a1 *elasticache.CreateSnapshotInput, _a2 ...request.Option) (*elasticache.CreateSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateSnapshotInput, ...request.Option) (*elasticache.CreateSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateSnapshotInput, ...request.Option) *elasticache.CreateSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUser provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateUser(_a0 *elasticache.CreateUserInput) (*elasticache.CreateUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserInput) (*elasticache.CreateUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserInput) *elasticache.CreateUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUserGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateUserGroup(_a0 *elasticache.CreateUserGroupInput) (*elasticache.CreateUserGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CreateUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserGroupInput) (*elasticache.CreateUserGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserGroupInput) *elasticache.CreateUserGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateUserGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUserGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateUserGroupRequest(_a0 *elasticache.CreateUserGroupInput) (*request.Request, *elasticache.CreateUserGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateUserGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserGroupInput) (*request.Request, *elasticache.CreateUserGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateUserGroupInput) *elasticache.CreateUserGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateUserGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateUserGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateUserGroupWithContext(_a0 context.Context, _a1 *elasticache.CreateUserGroupInput, _a2 ...request.Option) (*elasticache.CreateUserGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateUserGroupInput, ...request.Option) (*elasticache.CreateUserGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateUserGroupInput, ...request.Option) *elasticache.CreateUserGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateUserGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) CreateUserRequest(_a0 *elasticache.CreateUserInput) (*request.Request, *elasticache.CreateUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CreateUserOutput
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserInput) (*request.Request, *elasticache.CreateUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.CreateUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.CreateUserInput) *elasticache.CreateUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CreateUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) CreateUserWithContext(_a0 context.Context, _a1 *elasticache.CreateUserInput, _a2 ...request.Option) (*elasticache.CreateUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CreateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateUserInput, ...request.Option) (*elasticache.CreateUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.CreateUserInput, ...request.Option) *elasticache.CreateUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CreateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.CreateUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DecreaseNodeGroupsInGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DecreaseNodeGroupsInGlobalReplicationGroup(_a0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DecreaseNodeGroupsInGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DecreaseNodeGroupsInGlobalReplicationGroupRequest(_a0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DecreaseNodeGroupsInGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DecreaseNodeGroupsInGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DecreaseReplicaCount provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DecreaseReplicaCount(_a0 *elasticache.DecreaseReplicaCountInput) (*elasticache.DecreaseReplicaCountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DecreaseReplicaCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseReplicaCountInput) (*elasticache.DecreaseReplicaCountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseReplicaCountInput) *elasticache.DecreaseReplicaCountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DecreaseReplicaCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DecreaseReplicaCountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DecreaseReplicaCountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DecreaseReplicaCountRequest(_a0 *elasticache.DecreaseReplicaCountInput) (*request.Request, *elasticache.DecreaseReplicaCountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DecreaseReplicaCountOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseReplicaCountInput) (*request.Request, *elasticache.DecreaseReplicaCountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DecreaseReplicaCountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DecreaseReplicaCountInput) *elasticache.DecreaseReplicaCountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DecreaseReplicaCountOutput)
- }
- }
-
- return r0, r1
-}
-
-// DecreaseReplicaCountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DecreaseReplicaCountWithContext(_a0 context.Context, _a1 *elasticache.DecreaseReplicaCountInput, _a2 ...request.Option) (*elasticache.DecreaseReplicaCountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DecreaseReplicaCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DecreaseReplicaCountInput, ...request.Option) (*elasticache.DecreaseReplicaCountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DecreaseReplicaCountInput, ...request.Option) *elasticache.DecreaseReplicaCountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DecreaseReplicaCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DecreaseReplicaCountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheCluster provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheCluster(_a0 *elasticache.DeleteCacheClusterInput) (*elasticache.DeleteCacheClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheClusterInput) (*elasticache.DeleteCacheClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheClusterInput) *elasticache.DeleteCacheClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheClusterRequest(_a0 *elasticache.DeleteCacheClusterInput) (*request.Request, *elasticache.DeleteCacheClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteCacheClusterOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheClusterInput) (*request.Request, *elasticache.DeleteCacheClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheClusterInput) *elasticache.DeleteCacheClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteCacheClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCacheClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteCacheClusterWithContext(_a0 context.Context, _a1 *elasticache.DeleteCacheClusterInput, _a2 ...request.Option) (*elasticache.DeleteCacheClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheClusterInput, ...request.Option) (*elasticache.DeleteCacheClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheClusterInput, ...request.Option) *elasticache.DeleteCacheClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteCacheClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheParameterGroup(_a0 *elasticache.DeleteCacheParameterGroupInput) (*elasticache.DeleteCacheParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteCacheParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheParameterGroupInput) (*elasticache.DeleteCacheParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheParameterGroupInput) *elasticache.DeleteCacheParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheParameterGroupRequest(_a0 *elasticache.DeleteCacheParameterGroupInput) (*request.Request, *elasticache.DeleteCacheParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteCacheParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheParameterGroupInput) (*request.Request, *elasticache.DeleteCacheParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheParameterGroupInput) *elasticache.DeleteCacheParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteCacheParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCacheParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteCacheParameterGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteCacheParameterGroupInput, _a2 ...request.Option) (*elasticache.DeleteCacheParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteCacheParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheParameterGroupInput, ...request.Option) (*elasticache.DeleteCacheParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheParameterGroupInput, ...request.Option) *elasticache.DeleteCacheParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteCacheParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheSecurityGroup(_a0 *elasticache.DeleteCacheSecurityGroupInput) (*elasticache.DeleteCacheSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteCacheSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSecurityGroupInput) (*elasticache.DeleteCacheSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSecurityGroupInput) *elasticache.DeleteCacheSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheSecurityGroupRequest(_a0 *elasticache.DeleteCacheSecurityGroupInput) (*request.Request, *elasticache.DeleteCacheSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteCacheSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSecurityGroupInput) (*request.Request, *elasticache.DeleteCacheSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheSecurityGroupInput) *elasticache.DeleteCacheSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteCacheSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCacheSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteCacheSecurityGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteCacheSecurityGroupInput, _a2 ...request.Option) (*elasticache.DeleteCacheSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteCacheSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheSecurityGroupInput, ...request.Option) (*elasticache.DeleteCacheSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheSecurityGroupInput, ...request.Option) *elasticache.DeleteCacheSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteCacheSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheSubnetGroup(_a0 *elasticache.DeleteCacheSubnetGroupInput) (*elasticache.DeleteCacheSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSubnetGroupInput) (*elasticache.DeleteCacheSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSubnetGroupInput) *elasticache.DeleteCacheSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCacheSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteCacheSubnetGroupRequest(_a0 *elasticache.DeleteCacheSubnetGroupInput) (*request.Request, *elasticache.DeleteCacheSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteCacheSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSubnetGroupInput) (*request.Request, *elasticache.DeleteCacheSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteCacheSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteCacheSubnetGroupInput) *elasticache.DeleteCacheSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteCacheSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCacheSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteCacheSubnetGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteCacheSubnetGroupInput, _a2 ...request.Option) (*elasticache.DeleteCacheSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheSubnetGroupInput, ...request.Option) (*elasticache.DeleteCacheSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteCacheSubnetGroupInput, ...request.Option) *elasticache.DeleteCacheSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteCacheSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteGlobalReplicationGroup(_a0 *elasticache.DeleteGlobalReplicationGroupInput) (*elasticache.DeleteGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteGlobalReplicationGroupInput) (*elasticache.DeleteGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteGlobalReplicationGroupInput) *elasticache.DeleteGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteGlobalReplicationGroupRequest(_a0 *elasticache.DeleteGlobalReplicationGroupInput) (*request.Request, *elasticache.DeleteGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteGlobalReplicationGroupInput) (*request.Request, *elasticache.DeleteGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteGlobalReplicationGroupInput) *elasticache.DeleteGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.DeleteGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteGlobalReplicationGroupInput, ...request.Option) (*elasticache.DeleteGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteGlobalReplicationGroupInput, ...request.Option) *elasticache.DeleteGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteReplicationGroup(_a0 *elasticache.DeleteReplicationGroupInput) (*elasticache.DeleteReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteReplicationGroupInput) (*elasticache.DeleteReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteReplicationGroupInput) *elasticache.DeleteReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteReplicationGroupRequest(_a0 *elasticache.DeleteReplicationGroupInput) (*request.Request, *elasticache.DeleteReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteReplicationGroupInput) (*request.Request, *elasticache.DeleteReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteReplicationGroupInput) *elasticache.DeleteReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteReplicationGroupInput, _a2 ...request.Option) (*elasticache.DeleteReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteReplicationGroupInput, ...request.Option) (*elasticache.DeleteReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteReplicationGroupInput, ...request.Option) *elasticache.DeleteReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteSnapshot(_a0 *elasticache.DeleteSnapshotInput) (*elasticache.DeleteSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteSnapshotInput) (*elasticache.DeleteSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteSnapshotInput) *elasticache.DeleteSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteSnapshotRequest(_a0 *elasticache.DeleteSnapshotInput) (*request.Request, *elasticache.DeleteSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteSnapshotOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteSnapshotInput) (*request.Request, *elasticache.DeleteSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteSnapshotInput) *elasticache.DeleteSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteSnapshotWithContext(_a0 context.Context, _a1 *elasticache.DeleteSnapshotInput, _a2 ...request.Option) (*elasticache.DeleteSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteSnapshotInput, ...request.Option) (*elasticache.DeleteSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteSnapshotInput, ...request.Option) *elasticache.DeleteSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUser provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteUser(_a0 *elasticache.DeleteUserInput) (*elasticache.DeleteUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserInput) (*elasticache.DeleteUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserInput) *elasticache.DeleteUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteUserGroup(_a0 *elasticache.DeleteUserGroupInput) (*elasticache.DeleteUserGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DeleteUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserGroupInput) (*elasticache.DeleteUserGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserGroupInput) *elasticache.DeleteUserGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteUserGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteUserGroupRequest(_a0 *elasticache.DeleteUserGroupInput) (*request.Request, *elasticache.DeleteUserGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteUserGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserGroupInput) (*request.Request, *elasticache.DeleteUserGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteUserGroupInput) *elasticache.DeleteUserGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteUserGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUserGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteUserGroupWithContext(_a0 context.Context, _a1 *elasticache.DeleteUserGroupInput, _a2 ...request.Option) (*elasticache.DeleteUserGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteUserGroupInput, ...request.Option) (*elasticache.DeleteUserGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteUserGroupInput, ...request.Option) *elasticache.DeleteUserGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteUserGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DeleteUserRequest(_a0 *elasticache.DeleteUserInput) (*request.Request, *elasticache.DeleteUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DeleteUserOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserInput) (*request.Request, *elasticache.DeleteUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DeleteUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DeleteUserInput) *elasticache.DeleteUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DeleteUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DeleteUserWithContext(_a0 context.Context, _a1 *elasticache.DeleteUserInput, _a2 ...request.Option) (*elasticache.DeleteUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DeleteUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteUserInput, ...request.Option) (*elasticache.DeleteUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DeleteUserInput, ...request.Option) *elasticache.DeleteUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DeleteUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DeleteUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheClusters provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheClusters(_a0 *elasticache.DescribeCacheClustersInput) (*elasticache.DescribeCacheClustersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) (*elasticache.DescribeCacheClustersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) *elasticache.DescribeCacheClustersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheClustersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheClustersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheClustersPages(_a0 *elasticache.DescribeCacheClustersInput, _a1 func(*elasticache.DescribeCacheClustersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput, func(*elasticache.DescribeCacheClustersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheClustersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheClustersPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheClustersInput, _a2 func(*elasticache.DescribeCacheClustersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheClustersInput, func(*elasticache.DescribeCacheClustersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheClustersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheClustersRequest(_a0 *elasticache.DescribeCacheClustersInput) (*request.Request, *elasticache.DescribeCacheClustersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheClustersOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) (*request.Request, *elasticache.DescribeCacheClustersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheClustersInput) *elasticache.DescribeCacheClustersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheClustersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheClustersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheClustersWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheClustersInput, _a2 ...request.Option) (*elasticache.DescribeCacheClustersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheClustersInput, ...request.Option) (*elasticache.DescribeCacheClustersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheClustersInput, ...request.Option) *elasticache.DescribeCacheClustersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheClustersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheEngineVersions provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheEngineVersions(_a0 *elasticache.DescribeCacheEngineVersionsInput) (*elasticache.DescribeCacheEngineVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheEngineVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheEngineVersionsInput) (*elasticache.DescribeCacheEngineVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheEngineVersionsInput) *elasticache.DescribeCacheEngineVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheEngineVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheEngineVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheEngineVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheEngineVersionsPages(_a0 *elasticache.DescribeCacheEngineVersionsInput, _a1 func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheEngineVersionsInput, func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheEngineVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheEngineVersionsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheEngineVersionsInput, _a2 func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheEngineVersionsInput, func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheEngineVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheEngineVersionsRequest(_a0 *elasticache.DescribeCacheEngineVersionsInput) (*request.Request, *elasticache.DescribeCacheEngineVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheEngineVersionsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheEngineVersionsInput) (*request.Request, *elasticache.DescribeCacheEngineVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheEngineVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheEngineVersionsInput) *elasticache.DescribeCacheEngineVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheEngineVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheEngineVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheEngineVersionsWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheEngineVersionsInput, _a2 ...request.Option) (*elasticache.DescribeCacheEngineVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheEngineVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheEngineVersionsInput, ...request.Option) (*elasticache.DescribeCacheEngineVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheEngineVersionsInput, ...request.Option) *elasticache.DescribeCacheEngineVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheEngineVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheEngineVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheParameterGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheParameterGroups(_a0 *elasticache.DescribeCacheParameterGroupsInput) (*elasticache.DescribeCacheParameterGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParameterGroupsInput) (*elasticache.DescribeCacheParameterGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParameterGroupsInput) *elasticache.DescribeCacheParameterGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheParameterGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheParameterGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheParameterGroupsPages(_a0 *elasticache.DescribeCacheParameterGroupsInput, _a1 func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParameterGroupsInput, func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheParameterGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheParameterGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheParameterGroupsInput, _a2 func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParameterGroupsInput, func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheParameterGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheParameterGroupsRequest(_a0 *elasticache.DescribeCacheParameterGroupsInput) (*request.Request, *elasticache.DescribeCacheParameterGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheParameterGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParameterGroupsInput) (*request.Request, *elasticache.DescribeCacheParameterGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParameterGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheParameterGroupsInput) *elasticache.DescribeCacheParameterGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheParameterGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheParameterGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheParameterGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheParameterGroupsInput, _a2 ...request.Option) (*elasticache.DescribeCacheParameterGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParameterGroupsInput, ...request.Option) (*elasticache.DescribeCacheParameterGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParameterGroupsInput, ...request.Option) *elasticache.DescribeCacheParameterGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheParameterGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheParameters provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheParameters(_a0 *elasticache.DescribeCacheParametersInput) (*elasticache.DescribeCacheParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParametersInput) (*elasticache.DescribeCacheParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParametersInput) *elasticache.DescribeCacheParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheParametersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheParametersPages(_a0 *elasticache.DescribeCacheParametersInput, _a1 func(*elasticache.DescribeCacheParametersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParametersInput, func(*elasticache.DescribeCacheParametersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheParametersPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheParametersInput, _a2 func(*elasticache.DescribeCacheParametersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParametersInput, func(*elasticache.DescribeCacheParametersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheParametersRequest(_a0 *elasticache.DescribeCacheParametersInput) (*request.Request, *elasticache.DescribeCacheParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheParametersOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParametersInput) (*request.Request, *elasticache.DescribeCacheParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheParametersInput) *elasticache.DescribeCacheParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheParametersWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheParametersInput, _a2 ...request.Option) (*elasticache.DescribeCacheParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParametersInput, ...request.Option) (*elasticache.DescribeCacheParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheParametersInput, ...request.Option) *elasticache.DescribeCacheParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheSecurityGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheSecurityGroups(_a0 *elasticache.DescribeCacheSecurityGroupsInput) (*elasticache.DescribeCacheSecurityGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSecurityGroupsInput) (*elasticache.DescribeCacheSecurityGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSecurityGroupsInput) *elasticache.DescribeCacheSecurityGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheSecurityGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheSecurityGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheSecurityGroupsPages(_a0 *elasticache.DescribeCacheSecurityGroupsInput, _a1 func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSecurityGroupsInput, func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheSecurityGroupsInput, _a2 func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSecurityGroupsInput, func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheSecurityGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheSecurityGroupsRequest(_a0 *elasticache.DescribeCacheSecurityGroupsInput) (*request.Request, *elasticache.DescribeCacheSecurityGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheSecurityGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSecurityGroupsInput) (*request.Request, *elasticache.DescribeCacheSecurityGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSecurityGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheSecurityGroupsInput) *elasticache.DescribeCacheSecurityGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheSecurityGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheSecurityGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheSecurityGroupsInput, _a2 ...request.Option) (*elasticache.DescribeCacheSecurityGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSecurityGroupsInput, ...request.Option) (*elasticache.DescribeCacheSecurityGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSecurityGroupsInput, ...request.Option) *elasticache.DescribeCacheSecurityGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheSecurityGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheSubnetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheSubnetGroups(_a0 *elasticache.DescribeCacheSubnetGroupsInput) (*elasticache.DescribeCacheSubnetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeCacheSubnetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSubnetGroupsInput) (*elasticache.DescribeCacheSubnetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSubnetGroupsInput) *elasticache.DescribeCacheSubnetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheSubnetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheSubnetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCacheSubnetGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeCacheSubnetGroupsPages(_a0 *elasticache.DescribeCacheSubnetGroupsInput, _a1 func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSubnetGroupsInput, func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheSubnetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeCacheSubnetGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheSubnetGroupsInput, _a2 func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSubnetGroupsInput, func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCacheSubnetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeCacheSubnetGroupsRequest(_a0 *elasticache.DescribeCacheSubnetGroupsInput) (*request.Request, *elasticache.DescribeCacheSubnetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeCacheSubnetGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSubnetGroupsInput) (*request.Request, *elasticache.DescribeCacheSubnetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheSubnetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeCacheSubnetGroupsInput) *elasticache.DescribeCacheSubnetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeCacheSubnetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCacheSubnetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeCacheSubnetGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheSubnetGroupsInput, _a2 ...request.Option) (*elasticache.DescribeCacheSubnetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeCacheSubnetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSubnetGroupsInput, ...request.Option) (*elasticache.DescribeCacheSubnetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheSubnetGroupsInput, ...request.Option) *elasticache.DescribeCacheSubnetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeCacheSubnetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeCacheSubnetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParameters provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeEngineDefaultParameters(_a0 *elasticache.DescribeEngineDefaultParametersInput) (*elasticache.DescribeEngineDefaultParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeEngineDefaultParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEngineDefaultParametersInput) (*elasticache.DescribeEngineDefaultParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEngineDefaultParametersInput) *elasticache.DescribeEngineDefaultParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeEngineDefaultParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeEngineDefaultParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParametersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeEngineDefaultParametersPages(_a0 *elasticache.DescribeEngineDefaultParametersInput, _a1 func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEngineDefaultParametersInput, func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEngineDefaultParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeEngineDefaultParametersPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeEngineDefaultParametersInput, _a2 func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEngineDefaultParametersInput, func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEngineDefaultParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeEngineDefaultParametersRequest(_a0 *elasticache.DescribeEngineDefaultParametersInput) (*request.Request, *elasticache.DescribeEngineDefaultParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeEngineDefaultParametersOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEngineDefaultParametersInput) (*request.Request, *elasticache.DescribeEngineDefaultParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEngineDefaultParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeEngineDefaultParametersInput) *elasticache.DescribeEngineDefaultParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeEngineDefaultParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeEngineDefaultParametersWithContext(_a0 context.Context, _a1 *elasticache.DescribeEngineDefaultParametersInput, _a2 ...request.Option) (*elasticache.DescribeEngineDefaultParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeEngineDefaultParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEngineDefaultParametersInput, ...request.Option) (*elasticache.DescribeEngineDefaultParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEngineDefaultParametersInput, ...request.Option) *elasticache.DescribeEngineDefaultParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeEngineDefaultParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeEngineDefaultParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEvents provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeEvents(_a0 *elasticache.DescribeEventsInput) (*elasticache.DescribeEventsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEventsInput) (*elasticache.DescribeEventsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEventsInput) *elasticache.DescribeEventsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeEventsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeEventsPages(_a0 *elasticache.DescribeEventsInput, _a1 func(*elasticache.DescribeEventsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEventsInput, func(*elasticache.DescribeEventsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeEventsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeEventsInput, _a2 func(*elasticache.DescribeEventsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEventsInput, func(*elasticache.DescribeEventsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeEventsRequest(_a0 *elasticache.DescribeEventsInput) (*request.Request, *elasticache.DescribeEventsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeEventsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEventsInput) (*request.Request, *elasticache.DescribeEventsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeEventsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeEventsInput) *elasticache.DescribeEventsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeEventsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEventsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeEventsWithContext(_a0 context.Context, _a1 *elasticache.DescribeEventsInput, _a2 ...request.Option) (*elasticache.DescribeEventsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEventsInput, ...request.Option) (*elasticache.DescribeEventsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeEventsInput, ...request.Option) *elasticache.DescribeEventsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeEventsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalReplicationGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeGlobalReplicationGroups(_a0 *elasticache.DescribeGlobalReplicationGroupsInput) (*elasticache.DescribeGlobalReplicationGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeGlobalReplicationGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeGlobalReplicationGroupsInput) (*elasticache.DescribeGlobalReplicationGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeGlobalReplicationGroupsInput) *elasticache.DescribeGlobalReplicationGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeGlobalReplicationGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeGlobalReplicationGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalReplicationGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeGlobalReplicationGroupsPages(_a0 *elasticache.DescribeGlobalReplicationGroupsInput, _a1 func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeGlobalReplicationGroupsInput, func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeGlobalReplicationGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeGlobalReplicationGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeGlobalReplicationGroupsInput, _a2 func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeGlobalReplicationGroupsInput, func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeGlobalReplicationGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeGlobalReplicationGroupsRequest(_a0 *elasticache.DescribeGlobalReplicationGroupsInput) (*request.Request, *elasticache.DescribeGlobalReplicationGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeGlobalReplicationGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeGlobalReplicationGroupsInput) (*request.Request, *elasticache.DescribeGlobalReplicationGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeGlobalReplicationGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeGlobalReplicationGroupsInput) *elasticache.DescribeGlobalReplicationGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeGlobalReplicationGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeGlobalReplicationGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeGlobalReplicationGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeGlobalReplicationGroupsInput, _a2 ...request.Option) (*elasticache.DescribeGlobalReplicationGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeGlobalReplicationGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeGlobalReplicationGroupsInput, ...request.Option) (*elasticache.DescribeGlobalReplicationGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeGlobalReplicationGroupsInput, ...request.Option) *elasticache.DescribeGlobalReplicationGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeGlobalReplicationGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeGlobalReplicationGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReplicationGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReplicationGroups(_a0 *elasticache.DescribeReplicationGroupsInput) (*elasticache.DescribeReplicationGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeReplicationGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) (*elasticache.DescribeReplicationGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) *elasticache.DescribeReplicationGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReplicationGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReplicationGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReplicationGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeReplicationGroupsPages(_a0 *elasticache.DescribeReplicationGroupsInput, _a1 func(*elasticache.DescribeReplicationGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput, func(*elasticache.DescribeReplicationGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReplicationGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeReplicationGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeReplicationGroupsInput, _a2 func(*elasticache.DescribeReplicationGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, func(*elasticache.DescribeReplicationGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReplicationGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReplicationGroupsRequest(_a0 *elasticache.DescribeReplicationGroupsInput) (*request.Request, *elasticache.DescribeReplicationGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeReplicationGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) (*request.Request, *elasticache.DescribeReplicationGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReplicationGroupsInput) *elasticache.DescribeReplicationGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeReplicationGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReplicationGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeReplicationGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeReplicationGroupsInput, _a2 ...request.Option) (*elasticache.DescribeReplicationGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeReplicationGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, ...request.Option) (*elasticache.DescribeReplicationGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, ...request.Option) *elasticache.DescribeReplicationGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReplicationGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodes provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodes(_a0 *elasticache.DescribeReservedCacheNodesInput) (*elasticache.DescribeReservedCacheNodesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeReservedCacheNodesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesInput) (*elasticache.DescribeReservedCacheNodesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesInput) *elasticache.DescribeReservedCacheNodesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReservedCacheNodesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReservedCacheNodesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodesOfferings provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesOfferings(_a0 *elasticache.DescribeReservedCacheNodesOfferingsInput) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeReservedCacheNodesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) *elasticache.DescribeReservedCacheNodesOfferingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReservedCacheNodesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodesOfferingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesOfferingsPages(_a0 *elasticache.DescribeReservedCacheNodesOfferingsInput, _a1 func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput, func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedCacheNodesOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesOfferingsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeReservedCacheNodesOfferingsInput, _a2 func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesOfferingsInput, func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedCacheNodesOfferingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesOfferingsRequest(_a0 *elasticache.DescribeReservedCacheNodesOfferingsInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOfferingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeReservedCacheNodesOfferingsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOfferingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReservedCacheNodesOfferingsInput) *elasticache.DescribeReservedCacheNodesOfferingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeReservedCacheNodesOfferingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodesOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesOfferingsWithContext(_a0 context.Context, _a1 *elasticache.DescribeReservedCacheNodesOfferingsInput, _a2 ...request.Option) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeReservedCacheNodesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesOfferingsInput, ...request.Option) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesOfferingsInput, ...request.Option) *elasticache.DescribeReservedCacheNodesOfferingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReservedCacheNodesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeReservedCacheNodesOfferingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesPages(_a0 *elasticache.DescribeReservedCacheNodesInput, _a1 func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesInput, func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedCacheNodesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeReservedCacheNodesInput, _a2 func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesInput, func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedCacheNodesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesRequest(_a0 *elasticache.DescribeReservedCacheNodesInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeReservedCacheNodesOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReservedCacheNodesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeReservedCacheNodesInput) *elasticache.DescribeReservedCacheNodesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeReservedCacheNodesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedCacheNodesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeReservedCacheNodesWithContext(_a0 context.Context, _a1 *elasticache.DescribeReservedCacheNodesInput, _a2 ...request.Option) (*elasticache.DescribeReservedCacheNodesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeReservedCacheNodesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesInput, ...request.Option) (*elasticache.DescribeReservedCacheNodesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReservedCacheNodesInput, ...request.Option) *elasticache.DescribeReservedCacheNodesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeReservedCacheNodesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeReservedCacheNodesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeServiceUpdates provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeServiceUpdates(_a0 *elasticache.DescribeServiceUpdatesInput) (*elasticache.DescribeServiceUpdatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeServiceUpdatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeServiceUpdatesInput) (*elasticache.DescribeServiceUpdatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeServiceUpdatesInput) *elasticache.DescribeServiceUpdatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeServiceUpdatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeServiceUpdatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeServiceUpdatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeServiceUpdatesPages(_a0 *elasticache.DescribeServiceUpdatesInput, _a1 func(*elasticache.DescribeServiceUpdatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeServiceUpdatesInput, func(*elasticache.DescribeServiceUpdatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeServiceUpdatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeServiceUpdatesPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeServiceUpdatesInput, _a2 func(*elasticache.DescribeServiceUpdatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeServiceUpdatesInput, func(*elasticache.DescribeServiceUpdatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeServiceUpdatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeServiceUpdatesRequest(_a0 *elasticache.DescribeServiceUpdatesInput) (*request.Request, *elasticache.DescribeServiceUpdatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeServiceUpdatesOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeServiceUpdatesInput) (*request.Request, *elasticache.DescribeServiceUpdatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeServiceUpdatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeServiceUpdatesInput) *elasticache.DescribeServiceUpdatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeServiceUpdatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeServiceUpdatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeServiceUpdatesWithContext(_a0 context.Context, _a1 *elasticache.DescribeServiceUpdatesInput, _a2 ...request.Option) (*elasticache.DescribeServiceUpdatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeServiceUpdatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeServiceUpdatesInput, ...request.Option) (*elasticache.DescribeServiceUpdatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeServiceUpdatesInput, ...request.Option) *elasticache.DescribeServiceUpdatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeServiceUpdatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeServiceUpdatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshots provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeSnapshots(_a0 *elasticache.DescribeSnapshotsInput) (*elasticache.DescribeSnapshotsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeSnapshotsInput) (*elasticache.DescribeSnapshotsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeSnapshotsInput) *elasticache.DescribeSnapshotsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeSnapshotsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeSnapshotsPages(_a0 *elasticache.DescribeSnapshotsInput, _a1 func(*elasticache.DescribeSnapshotsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeSnapshotsInput, func(*elasticache.DescribeSnapshotsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeSnapshotsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeSnapshotsInput, _a2 func(*elasticache.DescribeSnapshotsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeSnapshotsInput, func(*elasticache.DescribeSnapshotsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSnapshotsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeSnapshotsRequest(_a0 *elasticache.DescribeSnapshotsInput) (*request.Request, *elasticache.DescribeSnapshotsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeSnapshotsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeSnapshotsInput) (*request.Request, *elasticache.DescribeSnapshotsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeSnapshotsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeSnapshotsInput) *elasticache.DescribeSnapshotsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeSnapshotsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeSnapshotsWithContext(_a0 context.Context, _a1 *elasticache.DescribeSnapshotsInput, _a2 ...request.Option) (*elasticache.DescribeSnapshotsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeSnapshotsInput, ...request.Option) (*elasticache.DescribeSnapshotsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeSnapshotsInput, ...request.Option) *elasticache.DescribeSnapshotsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeSnapshotsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUpdateActions provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUpdateActions(_a0 *elasticache.DescribeUpdateActionsInput) (*elasticache.DescribeUpdateActionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeUpdateActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUpdateActionsInput) (*elasticache.DescribeUpdateActionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUpdateActionsInput) *elasticache.DescribeUpdateActionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUpdateActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUpdateActionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUpdateActionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeUpdateActionsPages(_a0 *elasticache.DescribeUpdateActionsInput, _a1 func(*elasticache.DescribeUpdateActionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUpdateActionsInput, func(*elasticache.DescribeUpdateActionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUpdateActionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeUpdateActionsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeUpdateActionsInput, _a2 func(*elasticache.DescribeUpdateActionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUpdateActionsInput, func(*elasticache.DescribeUpdateActionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUpdateActionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUpdateActionsRequest(_a0 *elasticache.DescribeUpdateActionsInput) (*request.Request, *elasticache.DescribeUpdateActionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeUpdateActionsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUpdateActionsInput) (*request.Request, *elasticache.DescribeUpdateActionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUpdateActionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUpdateActionsInput) *elasticache.DescribeUpdateActionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeUpdateActionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeUpdateActionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeUpdateActionsWithContext(_a0 context.Context, _a1 *elasticache.DescribeUpdateActionsInput, _a2 ...request.Option) (*elasticache.DescribeUpdateActionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeUpdateActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUpdateActionsInput, ...request.Option) (*elasticache.DescribeUpdateActionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUpdateActionsInput, ...request.Option) *elasticache.DescribeUpdateActionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUpdateActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeUpdateActionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUserGroups provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUserGroups(_a0 *elasticache.DescribeUserGroupsInput) (*elasticache.DescribeUserGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeUserGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUserGroupsInput) (*elasticache.DescribeUserGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUserGroupsInput) *elasticache.DescribeUserGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUserGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUserGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUserGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeUserGroupsPages(_a0 *elasticache.DescribeUserGroupsInput, _a1 func(*elasticache.DescribeUserGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUserGroupsInput, func(*elasticache.DescribeUserGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUserGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeUserGroupsPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeUserGroupsInput, _a2 func(*elasticache.DescribeUserGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUserGroupsInput, func(*elasticache.DescribeUserGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUserGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUserGroupsRequest(_a0 *elasticache.DescribeUserGroupsInput) (*request.Request, *elasticache.DescribeUserGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeUserGroupsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUserGroupsInput) (*request.Request, *elasticache.DescribeUserGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUserGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUserGroupsInput) *elasticache.DescribeUserGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeUserGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeUserGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeUserGroupsWithContext(_a0 context.Context, _a1 *elasticache.DescribeUserGroupsInput, _a2 ...request.Option) (*elasticache.DescribeUserGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeUserGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUserGroupsInput, ...request.Option) (*elasticache.DescribeUserGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUserGroupsInput, ...request.Option) *elasticache.DescribeUserGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUserGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeUserGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUsers provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUsers(_a0 *elasticache.DescribeUsersInput) (*elasticache.DescribeUsersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DescribeUsersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUsersInput) (*elasticache.DescribeUsersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUsersInput) *elasticache.DescribeUsersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUsersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUsersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeUsersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeElastiCache) DescribeUsersPages(_a0 *elasticache.DescribeUsersInput, _a1 func(*elasticache.DescribeUsersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUsersInput, func(*elasticache.DescribeUsersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUsersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeElastiCache) DescribeUsersPagesWithContext(_a0 context.Context, _a1 *elasticache.DescribeUsersInput, _a2 func(*elasticache.DescribeUsersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUsersInput, func(*elasticache.DescribeUsersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeUsersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DescribeUsersRequest(_a0 *elasticache.DescribeUsersInput) (*request.Request, *elasticache.DescribeUsersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DescribeUsersOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUsersInput) (*request.Request, *elasticache.DescribeUsersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeUsersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DescribeUsersInput) *elasticache.DescribeUsersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DescribeUsersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeUsersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DescribeUsersWithContext(_a0 context.Context, _a1 *elasticache.DescribeUsersInput, _a2 ...request.Option) (*elasticache.DescribeUsersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DescribeUsersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUsersInput, ...request.Option) (*elasticache.DescribeUsersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeUsersInput, ...request.Option) *elasticache.DescribeUsersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DescribeUsersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DescribeUsersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DisassociateGlobalReplicationGroup(_a0 *elasticache.DisassociateGlobalReplicationGroupInput) (*elasticache.DisassociateGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.DisassociateGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.DisassociateGlobalReplicationGroupInput) (*elasticache.DisassociateGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DisassociateGlobalReplicationGroupInput) *elasticache.DisassociateGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DisassociateGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DisassociateGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) DisassociateGlobalReplicationGroupRequest(_a0 *elasticache.DisassociateGlobalReplicationGroupInput) (*request.Request, *elasticache.DisassociateGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.DisassociateGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.DisassociateGlobalReplicationGroupInput) (*request.Request, *elasticache.DisassociateGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.DisassociateGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.DisassociateGlobalReplicationGroupInput) *elasticache.DisassociateGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.DisassociateGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) DisassociateGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.DisassociateGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.DisassociateGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.DisassociateGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DisassociateGlobalReplicationGroupInput, ...request.Option) (*elasticache.DisassociateGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DisassociateGlobalReplicationGroupInput, ...request.Option) *elasticache.DisassociateGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.DisassociateGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.DisassociateGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) FailoverGlobalReplicationGroup(_a0 *elasticache.FailoverGlobalReplicationGroupInput) (*elasticache.FailoverGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.FailoverGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.FailoverGlobalReplicationGroupInput) (*elasticache.FailoverGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.FailoverGlobalReplicationGroupInput) *elasticache.FailoverGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.FailoverGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.FailoverGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) FailoverGlobalReplicationGroupRequest(_a0 *elasticache.FailoverGlobalReplicationGroupInput) (*request.Request, *elasticache.FailoverGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.FailoverGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.FailoverGlobalReplicationGroupInput) (*request.Request, *elasticache.FailoverGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.FailoverGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.FailoverGlobalReplicationGroupInput) *elasticache.FailoverGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.FailoverGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// FailoverGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) FailoverGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.FailoverGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.FailoverGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.FailoverGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.FailoverGlobalReplicationGroupInput, ...request.Option) (*elasticache.FailoverGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.FailoverGlobalReplicationGroupInput, ...request.Option) *elasticache.FailoverGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.FailoverGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.FailoverGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// IncreaseNodeGroupsInGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) IncreaseNodeGroupsInGlobalReplicationGroup(_a0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// IncreaseNodeGroupsInGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) IncreaseNodeGroupsInGlobalReplicationGroupRequest(_a0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// IncreaseNodeGroupsInGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) IncreaseNodeGroupsInGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// IncreaseReplicaCount provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) IncreaseReplicaCount(_a0 *elasticache.IncreaseReplicaCountInput) (*elasticache.IncreaseReplicaCountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.IncreaseReplicaCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseReplicaCountInput) (*elasticache.IncreaseReplicaCountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseReplicaCountInput) *elasticache.IncreaseReplicaCountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.IncreaseReplicaCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.IncreaseReplicaCountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// IncreaseReplicaCountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) IncreaseReplicaCountRequest(_a0 *elasticache.IncreaseReplicaCountInput) (*request.Request, *elasticache.IncreaseReplicaCountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.IncreaseReplicaCountOutput
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseReplicaCountInput) (*request.Request, *elasticache.IncreaseReplicaCountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.IncreaseReplicaCountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.IncreaseReplicaCountInput) *elasticache.IncreaseReplicaCountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.IncreaseReplicaCountOutput)
- }
- }
-
- return r0, r1
-}
-
-// IncreaseReplicaCountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) IncreaseReplicaCountWithContext(_a0 context.Context, _a1 *elasticache.IncreaseReplicaCountInput, _a2 ...request.Option) (*elasticache.IncreaseReplicaCountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.IncreaseReplicaCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.IncreaseReplicaCountInput, ...request.Option) (*elasticache.IncreaseReplicaCountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.IncreaseReplicaCountInput, ...request.Option) *elasticache.IncreaseReplicaCountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.IncreaseReplicaCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.IncreaseReplicaCountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllowedNodeTypeModifications provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ListAllowedNodeTypeModifications(_a0 *elasticache.ListAllowedNodeTypeModificationsInput) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ListAllowedNodeTypeModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ListAllowedNodeTypeModificationsInput) (*elasticache.ListAllowedNodeTypeModificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ListAllowedNodeTypeModificationsInput) *elasticache.ListAllowedNodeTypeModificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ListAllowedNodeTypeModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ListAllowedNodeTypeModificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAllowedNodeTypeModificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ListAllowedNodeTypeModificationsRequest(_a0 *elasticache.ListAllowedNodeTypeModificationsInput) (*request.Request, *elasticache.ListAllowedNodeTypeModificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ListAllowedNodeTypeModificationsOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ListAllowedNodeTypeModificationsInput) (*request.Request, *elasticache.ListAllowedNodeTypeModificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ListAllowedNodeTypeModificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ListAllowedNodeTypeModificationsInput) *elasticache.ListAllowedNodeTypeModificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ListAllowedNodeTypeModificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAllowedNodeTypeModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ListAllowedNodeTypeModificationsWithContext(_a0 context.Context, _a1 *elasticache.ListAllowedNodeTypeModificationsInput, _a2 ...request.Option) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ListAllowedNodeTypeModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ListAllowedNodeTypeModificationsInput, ...request.Option) (*elasticache.ListAllowedNodeTypeModificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ListAllowedNodeTypeModificationsInput, ...request.Option) *elasticache.ListAllowedNodeTypeModificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ListAllowedNodeTypeModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ListAllowedNodeTypeModificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ListTagsForResource(_a0 *elasticache.ListTagsForResourceInput) (*elasticache.TagListMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ListTagsForResourceInput) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ListTagsForResourceInput) *elasticache.TagListMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ListTagsForResourceRequest(_a0 *elasticache.ListTagsForResourceInput) (*request.Request, *elasticache.TagListMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.TagListMessage
- if rf, ok := ret.Get(0).(func(*elasticache.ListTagsForResourceInput) (*request.Request, *elasticache.TagListMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ListTagsForResourceInput) *elasticache.TagListMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.TagListMessage)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ListTagsForResourceWithContext(_a0 context.Context, _a1 *elasticache.ListTagsForResourceInput, _a2 ...request.Option) (*elasticache.TagListMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ListTagsForResourceInput, ...request.Option) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ListTagsForResourceInput, ...request.Option) *elasticache.TagListMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheCluster provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheCluster(_a0 *elasticache.ModifyCacheClusterInput) (*elasticache.ModifyCacheClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheClusterInput) (*elasticache.ModifyCacheClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheClusterInput) *elasticache.ModifyCacheClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheClusterRequest(_a0 *elasticache.ModifyCacheClusterInput) (*request.Request, *elasticache.ModifyCacheClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyCacheClusterOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheClusterInput) (*request.Request, *elasticache.ModifyCacheClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheClusterInput) *elasticache.ModifyCacheClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyCacheClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCacheClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyCacheClusterWithContext(_a0 context.Context, _a1 *elasticache.ModifyCacheClusterInput, _a2 ...request.Option) (*elasticache.ModifyCacheClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheClusterInput, ...request.Option) (*elasticache.ModifyCacheClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheClusterInput, ...request.Option) *elasticache.ModifyCacheClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyCacheClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheParameterGroup(_a0 *elasticache.ModifyCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CacheParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheParameterGroupInput) *elasticache.CacheParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheParameterGroupRequest(_a0 *elasticache.ModifyCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CacheParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheParameterGroupInput) *elasticache.CacheParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCacheParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyCacheParameterGroupWithContext(_a0 context.Context, _a1 *elasticache.ModifyCacheParameterGroupInput, _a2 ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CacheParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheParameterGroupInput, ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheParameterGroupInput, ...request.Option) *elasticache.CacheParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyCacheParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheSubnetGroup(_a0 *elasticache.ModifyCacheSubnetGroupInput) (*elasticache.ModifyCacheSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheSubnetGroupInput) (*elasticache.ModifyCacheSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheSubnetGroupInput) *elasticache.ModifyCacheSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCacheSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyCacheSubnetGroupRequest(_a0 *elasticache.ModifyCacheSubnetGroupInput) (*request.Request, *elasticache.ModifyCacheSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyCacheSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheSubnetGroupInput) (*request.Request, *elasticache.ModifyCacheSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyCacheSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyCacheSubnetGroupInput) *elasticache.ModifyCacheSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyCacheSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCacheSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyCacheSubnetGroupWithContext(_a0 context.Context, _a1 *elasticache.ModifyCacheSubnetGroupInput, _a2 ...request.Option) (*elasticache.ModifyCacheSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyCacheSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheSubnetGroupInput, ...request.Option) (*elasticache.ModifyCacheSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyCacheSubnetGroupInput, ...request.Option) *elasticache.ModifyCacheSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyCacheSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyCacheSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyGlobalReplicationGroup(_a0 *elasticache.ModifyGlobalReplicationGroupInput) (*elasticache.ModifyGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyGlobalReplicationGroupInput) (*elasticache.ModifyGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyGlobalReplicationGroupInput) *elasticache.ModifyGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyGlobalReplicationGroupRequest(_a0 *elasticache.ModifyGlobalReplicationGroupInput) (*request.Request, *elasticache.ModifyGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyGlobalReplicationGroupInput) (*request.Request, *elasticache.ModifyGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyGlobalReplicationGroupInput) *elasticache.ModifyGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.ModifyGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.ModifyGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyGlobalReplicationGroupInput, ...request.Option) (*elasticache.ModifyGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyGlobalReplicationGroupInput, ...request.Option) *elasticache.ModifyGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyReplicationGroup(_a0 *elasticache.ModifyReplicationGroupInput) (*elasticache.ModifyReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupInput) (*elasticache.ModifyReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupInput) *elasticache.ModifyReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyReplicationGroupRequest(_a0 *elasticache.ModifyReplicationGroupInput) (*request.Request, *elasticache.ModifyReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupInput) (*request.Request, *elasticache.ModifyReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyReplicationGroupInput) *elasticache.ModifyReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroupShardConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyReplicationGroupShardConfiguration(_a0 *elasticache.ModifyReplicationGroupShardConfigurationInput) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyReplicationGroupShardConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) *elasticache.ModifyReplicationGroupShardConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyReplicationGroupShardConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroupShardConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyReplicationGroupShardConfigurationRequest(_a0 *elasticache.ModifyReplicationGroupShardConfigurationInput) (*request.Request, *elasticache.ModifyReplicationGroupShardConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyReplicationGroupShardConfigurationOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) (*request.Request, *elasticache.ModifyReplicationGroupShardConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyReplicationGroupShardConfigurationInput) *elasticache.ModifyReplicationGroupShardConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyReplicationGroupShardConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroupShardConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyReplicationGroupShardConfigurationWithContext(_a0 context.Context, _a1 *elasticache.ModifyReplicationGroupShardConfigurationInput, _a2 ...request.Option) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyReplicationGroupShardConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyReplicationGroupShardConfigurationInput, ...request.Option) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyReplicationGroupShardConfigurationInput, ...request.Option) *elasticache.ModifyReplicationGroupShardConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyReplicationGroupShardConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyReplicationGroupShardConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.ModifyReplicationGroupInput, _a2 ...request.Option) (*elasticache.ModifyReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyReplicationGroupInput, ...request.Option) (*elasticache.ModifyReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyReplicationGroupInput, ...request.Option) *elasticache.ModifyReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyUser provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyUser(_a0 *elasticache.ModifyUserInput) (*elasticache.ModifyUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserInput) (*elasticache.ModifyUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserInput) *elasticache.ModifyUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyUserGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyUserGroup(_a0 *elasticache.ModifyUserGroupInput) (*elasticache.ModifyUserGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.ModifyUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserGroupInput) (*elasticache.ModifyUserGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserGroupInput) *elasticache.ModifyUserGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyUserGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyUserGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyUserGroupRequest(_a0 *elasticache.ModifyUserGroupInput) (*request.Request, *elasticache.ModifyUserGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyUserGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserGroupInput) (*request.Request, *elasticache.ModifyUserGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyUserGroupInput) *elasticache.ModifyUserGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyUserGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyUserGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyUserGroupWithContext(_a0 context.Context, _a1 *elasticache.ModifyUserGroupInput, _a2 ...request.Option) (*elasticache.ModifyUserGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyUserGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyUserGroupInput, ...request.Option) (*elasticache.ModifyUserGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyUserGroupInput, ...request.Option) *elasticache.ModifyUserGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyUserGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyUserGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ModifyUserRequest(_a0 *elasticache.ModifyUserInput) (*request.Request, *elasticache.ModifyUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.ModifyUserOutput
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserInput) (*request.Request, *elasticache.ModifyUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ModifyUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ModifyUserInput) *elasticache.ModifyUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.ModifyUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ModifyUserWithContext(_a0 context.Context, _a1 *elasticache.ModifyUserInput, _a2 ...request.Option) (*elasticache.ModifyUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.ModifyUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyUserInput, ...request.Option) (*elasticache.ModifyUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ModifyUserInput, ...request.Option) *elasticache.ModifyUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.ModifyUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ModifyUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedCacheNodesOffering provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) PurchaseReservedCacheNodesOffering(_a0 *elasticache.PurchaseReservedCacheNodesOfferingInput) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.PurchaseReservedCacheNodesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) *elasticache.PurchaseReservedCacheNodesOfferingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.PurchaseReservedCacheNodesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedCacheNodesOfferingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) PurchaseReservedCacheNodesOfferingRequest(_a0 *elasticache.PurchaseReservedCacheNodesOfferingInput) (*request.Request, *elasticache.PurchaseReservedCacheNodesOfferingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.PurchaseReservedCacheNodesOfferingOutput
- if rf, ok := ret.Get(0).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) (*request.Request, *elasticache.PurchaseReservedCacheNodesOfferingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.PurchaseReservedCacheNodesOfferingInput) *elasticache.PurchaseReservedCacheNodesOfferingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.PurchaseReservedCacheNodesOfferingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurchaseReservedCacheNodesOfferingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) PurchaseReservedCacheNodesOfferingWithContext(_a0 context.Context, _a1 *elasticache.PurchaseReservedCacheNodesOfferingInput, _a2 ...request.Option) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.PurchaseReservedCacheNodesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.PurchaseReservedCacheNodesOfferingInput, ...request.Option) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.PurchaseReservedCacheNodesOfferingInput, ...request.Option) *elasticache.PurchaseReservedCacheNodesOfferingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.PurchaseReservedCacheNodesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.PurchaseReservedCacheNodesOfferingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebalanceSlotsInGlobalReplicationGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RebalanceSlotsInGlobalReplicationGroup(_a0 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebalanceSlotsInGlobalReplicationGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RebalanceSlotsInGlobalReplicationGroupRequest(_a0 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*request.Request, *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput
- if rf, ok := ret.Get(0).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*request.Request, *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RebalanceSlotsInGlobalReplicationGroupInput) *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// RebalanceSlotsInGlobalReplicationGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) RebalanceSlotsInGlobalReplicationGroupWithContext(_a0 context.Context, _a1 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput, _a2 ...request.Option) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RebalanceSlotsInGlobalReplicationGroupInput, ...request.Option) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RebalanceSlotsInGlobalReplicationGroupInput, ...request.Option) *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.RebalanceSlotsInGlobalReplicationGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootCacheCluster provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RebootCacheCluster(_a0 *elasticache.RebootCacheClusterInput) (*elasticache.RebootCacheClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.RebootCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.RebootCacheClusterInput) (*elasticache.RebootCacheClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RebootCacheClusterInput) *elasticache.RebootCacheClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RebootCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RebootCacheClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootCacheClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RebootCacheClusterRequest(_a0 *elasticache.RebootCacheClusterInput) (*request.Request, *elasticache.RebootCacheClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.RebootCacheClusterOutput
- if rf, ok := ret.Get(0).(func(*elasticache.RebootCacheClusterInput) (*request.Request, *elasticache.RebootCacheClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RebootCacheClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RebootCacheClusterInput) *elasticache.RebootCacheClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.RebootCacheClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// RebootCacheClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) RebootCacheClusterWithContext(_a0 context.Context, _a1 *elasticache.RebootCacheClusterInput, _a2 ...request.Option) (*elasticache.RebootCacheClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.RebootCacheClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RebootCacheClusterInput, ...request.Option) (*elasticache.RebootCacheClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RebootCacheClusterInput, ...request.Option) *elasticache.RebootCacheClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RebootCacheClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.RebootCacheClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResource provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RemoveTagsFromResource(_a0 *elasticache.RemoveTagsFromResourceInput) (*elasticache.TagListMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.RemoveTagsFromResourceInput) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RemoveTagsFromResourceInput) *elasticache.TagListMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RemoveTagsFromResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RemoveTagsFromResourceRequest(_a0 *elasticache.RemoveTagsFromResourceInput) (*request.Request, *elasticache.TagListMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.TagListMessage
- if rf, ok := ret.Get(0).(func(*elasticache.RemoveTagsFromResourceInput) (*request.Request, *elasticache.TagListMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RemoveTagsFromResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RemoveTagsFromResourceInput) *elasticache.TagListMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.TagListMessage)
- }
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) RemoveTagsFromResourceWithContext(_a0 context.Context, _a1 *elasticache.RemoveTagsFromResourceInput, _a2 ...request.Option) (*elasticache.TagListMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.TagListMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RemoveTagsFromResourceInput, ...request.Option) (*elasticache.TagListMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RemoveTagsFromResourceInput, ...request.Option) *elasticache.TagListMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TagListMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.RemoveTagsFromResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetCacheParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ResetCacheParameterGroup(_a0 *elasticache.ResetCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.CacheParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.ResetCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ResetCacheParameterGroupInput) *elasticache.CacheParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ResetCacheParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetCacheParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) ResetCacheParameterGroupRequest(_a0 *elasticache.ResetCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.CacheParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*elasticache.ResetCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.ResetCacheParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.ResetCacheParameterGroupInput) *elasticache.CacheParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ResetCacheParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) ResetCacheParameterGroupWithContext(_a0 context.Context, _a1 *elasticache.ResetCacheParameterGroupInput, _a2 ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.CacheParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ResetCacheParameterGroupInput, ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.ResetCacheParameterGroupInput, ...request.Option) *elasticache.CacheParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.CacheParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.ResetCacheParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeCacheSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RevokeCacheSecurityGroupIngress(_a0 *elasticache.RevokeCacheSecurityGroupIngressInput) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.RevokeCacheSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) *elasticache.RevokeCacheSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RevokeCacheSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeCacheSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) RevokeCacheSecurityGroupIngressRequest(_a0 *elasticache.RevokeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.RevokeCacheSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.RevokeCacheSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.RevokeCacheSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.RevokeCacheSecurityGroupIngressInput) *elasticache.RevokeCacheSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.RevokeCacheSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeCacheSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) RevokeCacheSecurityGroupIngressWithContext(_a0 context.Context, _a1 *elasticache.RevokeCacheSecurityGroupIngressInput, _a2 ...request.Option) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.RevokeCacheSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RevokeCacheSecurityGroupIngressInput, ...request.Option) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.RevokeCacheSecurityGroupIngressInput, ...request.Option) *elasticache.RevokeCacheSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.RevokeCacheSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.RevokeCacheSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartMigration provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) StartMigration(_a0 *elasticache.StartMigrationInput) (*elasticache.StartMigrationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.StartMigrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.StartMigrationInput) (*elasticache.StartMigrationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.StartMigrationInput) *elasticache.StartMigrationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.StartMigrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.StartMigrationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartMigrationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) StartMigrationRequest(_a0 *elasticache.StartMigrationInput) (*request.Request, *elasticache.StartMigrationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.StartMigrationOutput
- if rf, ok := ret.Get(0).(func(*elasticache.StartMigrationInput) (*request.Request, *elasticache.StartMigrationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.StartMigrationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.StartMigrationInput) *elasticache.StartMigrationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.StartMigrationOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartMigrationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) StartMigrationWithContext(_a0 context.Context, _a1 *elasticache.StartMigrationInput, _a2 ...request.Option) (*elasticache.StartMigrationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.StartMigrationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.StartMigrationInput, ...request.Option) (*elasticache.StartMigrationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.StartMigrationInput, ...request.Option) *elasticache.StartMigrationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.StartMigrationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.StartMigrationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestFailover provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) TestFailover(_a0 *elasticache.TestFailoverInput) (*elasticache.TestFailoverOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *elasticache.TestFailoverOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*elasticache.TestFailoverInput) (*elasticache.TestFailoverOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.TestFailoverInput) *elasticache.TestFailoverOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TestFailoverOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.TestFailoverInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestFailoverRequest provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) TestFailoverRequest(_a0 *elasticache.TestFailoverInput) (*request.Request, *elasticache.TestFailoverOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *elasticache.TestFailoverOutput
- if rf, ok := ret.Get(0).(func(*elasticache.TestFailoverInput) (*request.Request, *elasticache.TestFailoverOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*elasticache.TestFailoverInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*elasticache.TestFailoverInput) *elasticache.TestFailoverOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*elasticache.TestFailoverOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestFailoverWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) TestFailoverWithContext(_a0 context.Context, _a1 *elasticache.TestFailoverInput, _a2 ...request.Option) (*elasticache.TestFailoverOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *elasticache.TestFailoverOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.TestFailoverInput, ...request.Option) (*elasticache.TestFailoverOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.TestFailoverInput, ...request.Option) *elasticache.TestFailoverOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*elasticache.TestFailoverOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *elasticache.TestFailoverInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilCacheClusterAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) WaitUntilCacheClusterAvailable(_a0 *elasticache.DescribeCacheClustersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilCacheClusterAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) WaitUntilCacheClusterAvailableWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheClustersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheClustersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilCacheClusterDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) WaitUntilCacheClusterDeleted(_a0 *elasticache.DescribeCacheClustersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeCacheClustersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilCacheClusterDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) WaitUntilCacheClusterDeletedWithContext(_a0 context.Context, _a1 *elasticache.DescribeCacheClustersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeCacheClustersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilReplicationGroupAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) WaitUntilReplicationGroupAvailable(_a0 *elasticache.DescribeReplicationGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilReplicationGroupAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) WaitUntilReplicationGroupAvailableWithContext(_a0 context.Context, _a1 *elasticache.DescribeReplicationGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilReplicationGroupDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeElastiCache) WaitUntilReplicationGroupDeleted(_a0 *elasticache.DescribeReplicationGroupsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*elasticache.DescribeReplicationGroupsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilReplicationGroupDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeElastiCache) WaitUntilReplicationGroupDeletedWithContext(_a0 context.Context, _a1 *elasticache.DescribeReplicationGroupsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *elasticache.DescribeReplicationGroupsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeElastiCache interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeElastiCache creates a new instance of MockFakeElastiCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeElastiCache(t mockConstructorTestingTNewMockFakeElastiCache) *MockFakeElastiCache {
- mock := &MockFakeElastiCache{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeIAM.go b/test/aws/mock_FakeIAM.go
deleted file mode 100644
index 0aa6be44e..000000000
--- a/test/aws/mock_FakeIAM.go
+++ /dev/null
@@ -1,14863 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- iam "github.com/aws/aws-sdk-go/service/iam"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeIAM is an autogenerated mock type for the FakeIAM type
-type MockFakeIAM struct {
- mock.Mock
-}
-
-// AddClientIDToOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddClientIDToOpenIDConnectProvider(_a0 *iam.AddClientIDToOpenIDConnectProviderInput) (*iam.AddClientIDToOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AddClientIDToOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AddClientIDToOpenIDConnectProviderInput) (*iam.AddClientIDToOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddClientIDToOpenIDConnectProviderInput) *iam.AddClientIDToOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddClientIDToOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddClientIDToOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddClientIDToOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddClientIDToOpenIDConnectProviderRequest(_a0 *iam.AddClientIDToOpenIDConnectProviderInput) (*request.Request, *iam.AddClientIDToOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AddClientIDToOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.AddClientIDToOpenIDConnectProviderInput) (*request.Request, *iam.AddClientIDToOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddClientIDToOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddClientIDToOpenIDConnectProviderInput) *iam.AddClientIDToOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AddClientIDToOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddClientIDToOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AddClientIDToOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.AddClientIDToOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.AddClientIDToOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AddClientIDToOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddClientIDToOpenIDConnectProviderInput, ...request.Option) (*iam.AddClientIDToOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddClientIDToOpenIDConnectProviderInput, ...request.Option) *iam.AddClientIDToOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddClientIDToOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AddClientIDToOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddRoleToInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddRoleToInstanceProfile(_a0 *iam.AddRoleToInstanceProfileInput) (*iam.AddRoleToInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AddRoleToInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AddRoleToInstanceProfileInput) (*iam.AddRoleToInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddRoleToInstanceProfileInput) *iam.AddRoleToInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddRoleToInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddRoleToInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddRoleToInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddRoleToInstanceProfileRequest(_a0 *iam.AddRoleToInstanceProfileInput) (*request.Request, *iam.AddRoleToInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AddRoleToInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.AddRoleToInstanceProfileInput) (*request.Request, *iam.AddRoleToInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddRoleToInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddRoleToInstanceProfileInput) *iam.AddRoleToInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AddRoleToInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddRoleToInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AddRoleToInstanceProfileWithContext(_a0 context.Context, _a1 *iam.AddRoleToInstanceProfileInput, _a2 ...request.Option) (*iam.AddRoleToInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AddRoleToInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddRoleToInstanceProfileInput, ...request.Option) (*iam.AddRoleToInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddRoleToInstanceProfileInput, ...request.Option) *iam.AddRoleToInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddRoleToInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AddRoleToInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddUserToGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddUserToGroup(_a0 *iam.AddUserToGroupInput) (*iam.AddUserToGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AddUserToGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AddUserToGroupInput) (*iam.AddUserToGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddUserToGroupInput) *iam.AddUserToGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddUserToGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddUserToGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddUserToGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AddUserToGroupRequest(_a0 *iam.AddUserToGroupInput) (*request.Request, *iam.AddUserToGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AddUserToGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.AddUserToGroupInput) (*request.Request, *iam.AddUserToGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AddUserToGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AddUserToGroupInput) *iam.AddUserToGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AddUserToGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddUserToGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AddUserToGroupWithContext(_a0 context.Context, _a1 *iam.AddUserToGroupInput, _a2 ...request.Option) (*iam.AddUserToGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AddUserToGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddUserToGroupInput, ...request.Option) (*iam.AddUserToGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AddUserToGroupInput, ...request.Option) *iam.AddUserToGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AddUserToGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AddUserToGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachGroupPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachGroupPolicy(_a0 *iam.AttachGroupPolicyInput) (*iam.AttachGroupPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AttachGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AttachGroupPolicyInput) (*iam.AttachGroupPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachGroupPolicyInput) *iam.AttachGroupPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachGroupPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachGroupPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachGroupPolicyRequest(_a0 *iam.AttachGroupPolicyInput) (*request.Request, *iam.AttachGroupPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AttachGroupPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.AttachGroupPolicyInput) (*request.Request, *iam.AttachGroupPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachGroupPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachGroupPolicyInput) *iam.AttachGroupPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AttachGroupPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachGroupPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AttachGroupPolicyWithContext(_a0 context.Context, _a1 *iam.AttachGroupPolicyInput, _a2 ...request.Option) (*iam.AttachGroupPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AttachGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachGroupPolicyInput, ...request.Option) (*iam.AttachGroupPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachGroupPolicyInput, ...request.Option) *iam.AttachGroupPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AttachGroupPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachRolePolicy(_a0 *iam.AttachRolePolicyInput) (*iam.AttachRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AttachRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AttachRolePolicyInput) (*iam.AttachRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachRolePolicyInput) *iam.AttachRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachRolePolicyRequest(_a0 *iam.AttachRolePolicyInput) (*request.Request, *iam.AttachRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AttachRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.AttachRolePolicyInput) (*request.Request, *iam.AttachRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachRolePolicyInput) *iam.AttachRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AttachRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AttachRolePolicyWithContext(_a0 context.Context, _a1 *iam.AttachRolePolicyInput, _a2 ...request.Option) (*iam.AttachRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AttachRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachRolePolicyInput, ...request.Option) (*iam.AttachRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachRolePolicyInput, ...request.Option) *iam.AttachRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AttachRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachUserPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachUserPolicy(_a0 *iam.AttachUserPolicyInput) (*iam.AttachUserPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.AttachUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.AttachUserPolicyInput) (*iam.AttachUserPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachUserPolicyInput) *iam.AttachUserPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachUserPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AttachUserPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) AttachUserPolicyRequest(_a0 *iam.AttachUserPolicyInput) (*request.Request, *iam.AttachUserPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.AttachUserPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.AttachUserPolicyInput) (*request.Request, *iam.AttachUserPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.AttachUserPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.AttachUserPolicyInput) *iam.AttachUserPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.AttachUserPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// AttachUserPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) AttachUserPolicyWithContext(_a0 context.Context, _a1 *iam.AttachUserPolicyInput, _a2 ...request.Option) (*iam.AttachUserPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.AttachUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachUserPolicyInput, ...request.Option) (*iam.AttachUserPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.AttachUserPolicyInput, ...request.Option) *iam.AttachUserPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.AttachUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.AttachUserPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangePassword provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ChangePassword(_a0 *iam.ChangePasswordInput) (*iam.ChangePasswordOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ChangePasswordOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ChangePasswordInput) (*iam.ChangePasswordOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ChangePasswordInput) *iam.ChangePasswordOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ChangePasswordOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ChangePasswordInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangePasswordRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ChangePasswordRequest(_a0 *iam.ChangePasswordInput) (*request.Request, *iam.ChangePasswordOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ChangePasswordOutput
- if rf, ok := ret.Get(0).(func(*iam.ChangePasswordInput) (*request.Request, *iam.ChangePasswordOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ChangePasswordInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ChangePasswordInput) *iam.ChangePasswordOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ChangePasswordOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangePasswordWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ChangePasswordWithContext(_a0 context.Context, _a1 *iam.ChangePasswordInput, _a2 ...request.Option) (*iam.ChangePasswordOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ChangePasswordOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ChangePasswordInput, ...request.Option) (*iam.ChangePasswordOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ChangePasswordInput, ...request.Option) *iam.ChangePasswordOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ChangePasswordOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ChangePasswordInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccessKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateAccessKey(_a0 *iam.CreateAccessKeyInput) (*iam.CreateAccessKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateAccessKeyInput) (*iam.CreateAccessKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateAccessKeyInput) *iam.CreateAccessKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateAccessKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccessKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateAccessKeyRequest(_a0 *iam.CreateAccessKeyInput) (*request.Request, *iam.CreateAccessKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateAccessKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateAccessKeyInput) (*request.Request, *iam.CreateAccessKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateAccessKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateAccessKeyInput) *iam.CreateAccessKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateAccessKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAccessKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateAccessKeyWithContext(_a0 context.Context, _a1 *iam.CreateAccessKeyInput, _a2 ...request.Option) (*iam.CreateAccessKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateAccessKeyInput, ...request.Option) (*iam.CreateAccessKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateAccessKeyInput, ...request.Option) *iam.CreateAccessKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateAccessKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccountAlias provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateAccountAlias(_a0 *iam.CreateAccountAliasInput) (*iam.CreateAccountAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateAccountAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateAccountAliasInput) (*iam.CreateAccountAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateAccountAliasInput) *iam.CreateAccountAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateAccountAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateAccountAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccountAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateAccountAliasRequest(_a0 *iam.CreateAccountAliasInput) (*request.Request, *iam.CreateAccountAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateAccountAliasOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateAccountAliasInput) (*request.Request, *iam.CreateAccountAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateAccountAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateAccountAliasInput) *iam.CreateAccountAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateAccountAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAccountAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateAccountAliasWithContext(_a0 context.Context, _a1 *iam.CreateAccountAliasInput, _a2 ...request.Option) (*iam.CreateAccountAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateAccountAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateAccountAliasInput, ...request.Option) (*iam.CreateAccountAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateAccountAliasInput, ...request.Option) *iam.CreateAccountAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateAccountAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateAccountAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateGroup(_a0 *iam.CreateGroupInput) (*iam.CreateGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateGroupInput) (*iam.CreateGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateGroupInput) *iam.CreateGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateGroupRequest(_a0 *iam.CreateGroupInput) (*request.Request, *iam.CreateGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateGroupInput) (*request.Request, *iam.CreateGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateGroupInput) *iam.CreateGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateGroupWithContext(_a0 context.Context, _a1 *iam.CreateGroupInput, _a2 ...request.Option) (*iam.CreateGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateGroupInput, ...request.Option) (*iam.CreateGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateGroupInput, ...request.Option) *iam.CreateGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateInstanceProfile(_a0 *iam.CreateInstanceProfileInput) (*iam.CreateInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateInstanceProfileInput) (*iam.CreateInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateInstanceProfileInput) *iam.CreateInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateInstanceProfileRequest(_a0 *iam.CreateInstanceProfileInput) (*request.Request, *iam.CreateInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateInstanceProfileInput) (*request.Request, *iam.CreateInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateInstanceProfileInput) *iam.CreateInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateInstanceProfileWithContext(_a0 context.Context, _a1 *iam.CreateInstanceProfileInput, _a2 ...request.Option) (*iam.CreateInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateInstanceProfileInput, ...request.Option) (*iam.CreateInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateInstanceProfileInput, ...request.Option) *iam.CreateInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoginProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateLoginProfile(_a0 *iam.CreateLoginProfileInput) (*iam.CreateLoginProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateLoginProfileInput) (*iam.CreateLoginProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateLoginProfileInput) *iam.CreateLoginProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateLoginProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateLoginProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateLoginProfileRequest(_a0 *iam.CreateLoginProfileInput) (*request.Request, *iam.CreateLoginProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateLoginProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateLoginProfileInput) (*request.Request, *iam.CreateLoginProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateLoginProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateLoginProfileInput) *iam.CreateLoginProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateLoginProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateLoginProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateLoginProfileWithContext(_a0 context.Context, _a1 *iam.CreateLoginProfileInput, _a2 ...request.Option) (*iam.CreateLoginProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateLoginProfileInput, ...request.Option) (*iam.CreateLoginProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateLoginProfileInput, ...request.Option) *iam.CreateLoginProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateLoginProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateOpenIDConnectProvider(_a0 *iam.CreateOpenIDConnectProviderInput) (*iam.CreateOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateOpenIDConnectProviderInput) (*iam.CreateOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateOpenIDConnectProviderInput) *iam.CreateOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateOpenIDConnectProviderRequest(_a0 *iam.CreateOpenIDConnectProviderInput) (*request.Request, *iam.CreateOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateOpenIDConnectProviderInput) (*request.Request, *iam.CreateOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateOpenIDConnectProviderInput) *iam.CreateOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.CreateOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.CreateOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateOpenIDConnectProviderInput, ...request.Option) (*iam.CreateOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateOpenIDConnectProviderInput, ...request.Option) *iam.CreateOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreatePolicy(_a0 *iam.CreatePolicyInput) (*iam.CreatePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreatePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyInput) (*iam.CreatePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyInput) *iam.CreatePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreatePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreatePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreatePolicyRequest(_a0 *iam.CreatePolicyInput) (*request.Request, *iam.CreatePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreatePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyInput) (*request.Request, *iam.CreatePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreatePolicyInput) *iam.CreatePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreatePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePolicyVersion provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreatePolicyVersion(_a0 *iam.CreatePolicyVersionInput) (*iam.CreatePolicyVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreatePolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyVersionInput) (*iam.CreatePolicyVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyVersionInput) *iam.CreatePolicyVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreatePolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreatePolicyVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePolicyVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreatePolicyVersionRequest(_a0 *iam.CreatePolicyVersionInput) (*request.Request, *iam.CreatePolicyVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreatePolicyVersionOutput
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyVersionInput) (*request.Request, *iam.CreatePolicyVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreatePolicyVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreatePolicyVersionInput) *iam.CreatePolicyVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreatePolicyVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePolicyVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreatePolicyVersionWithContext(_a0 context.Context, _a1 *iam.CreatePolicyVersionInput, _a2 ...request.Option) (*iam.CreatePolicyVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreatePolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreatePolicyVersionInput, ...request.Option) (*iam.CreatePolicyVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreatePolicyVersionInput, ...request.Option) *iam.CreatePolicyVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreatePolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreatePolicyVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreatePolicyWithContext(_a0 context.Context, _a1 *iam.CreatePolicyInput, _a2 ...request.Option) (*iam.CreatePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreatePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreatePolicyInput, ...request.Option) (*iam.CreatePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreatePolicyInput, ...request.Option) *iam.CreatePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreatePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreatePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateRole(_a0 *iam.CreateRoleInput) (*iam.CreateRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateRoleInput) (*iam.CreateRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateRoleInput) *iam.CreateRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateRoleRequest(_a0 *iam.CreateRoleInput) (*request.Request, *iam.CreateRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateRoleInput) (*request.Request, *iam.CreateRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateRoleInput) *iam.CreateRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateRoleWithContext(_a0 context.Context, _a1 *iam.CreateRoleInput, _a2 ...request.Option) (*iam.CreateRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateRoleInput, ...request.Option) (*iam.CreateRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateRoleInput, ...request.Option) *iam.CreateRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateSAMLProvider(_a0 *iam.CreateSAMLProviderInput) (*iam.CreateSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateSAMLProviderInput) (*iam.CreateSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateSAMLProviderInput) *iam.CreateSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateSAMLProviderRequest(_a0 *iam.CreateSAMLProviderInput) (*request.Request, *iam.CreateSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateSAMLProviderInput) (*request.Request, *iam.CreateSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateSAMLProviderInput) *iam.CreateSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateSAMLProviderWithContext(_a0 context.Context, _a1 *iam.CreateSAMLProviderInput, _a2 ...request.Option) (*iam.CreateSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateSAMLProviderInput, ...request.Option) (*iam.CreateSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateSAMLProviderInput, ...request.Option) *iam.CreateSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateServiceLinkedRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateServiceLinkedRole(_a0 *iam.CreateServiceLinkedRoleInput) (*iam.CreateServiceLinkedRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateServiceLinkedRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceLinkedRoleInput) (*iam.CreateServiceLinkedRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceLinkedRoleInput) *iam.CreateServiceLinkedRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateServiceLinkedRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateServiceLinkedRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateServiceLinkedRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateServiceLinkedRoleRequest(_a0 *iam.CreateServiceLinkedRoleInput) (*request.Request, *iam.CreateServiceLinkedRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateServiceLinkedRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceLinkedRoleInput) (*request.Request, *iam.CreateServiceLinkedRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceLinkedRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateServiceLinkedRoleInput) *iam.CreateServiceLinkedRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateServiceLinkedRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateServiceLinkedRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateServiceLinkedRoleWithContext(_a0 context.Context, _a1 *iam.CreateServiceLinkedRoleInput, _a2 ...request.Option) (*iam.CreateServiceLinkedRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateServiceLinkedRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateServiceLinkedRoleInput, ...request.Option) (*iam.CreateServiceLinkedRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateServiceLinkedRoleInput, ...request.Option) *iam.CreateServiceLinkedRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateServiceLinkedRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateServiceLinkedRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateServiceSpecificCredential provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateServiceSpecificCredential(_a0 *iam.CreateServiceSpecificCredentialInput) (*iam.CreateServiceSpecificCredentialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceSpecificCredentialInput) (*iam.CreateServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceSpecificCredentialInput) *iam.CreateServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateServiceSpecificCredentialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateServiceSpecificCredentialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateServiceSpecificCredentialRequest(_a0 *iam.CreateServiceSpecificCredentialInput) (*request.Request, *iam.CreateServiceSpecificCredentialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateServiceSpecificCredentialOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceSpecificCredentialInput) (*request.Request, *iam.CreateServiceSpecificCredentialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateServiceSpecificCredentialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateServiceSpecificCredentialInput) *iam.CreateServiceSpecificCredentialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateServiceSpecificCredentialOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateServiceSpecificCredentialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateServiceSpecificCredentialWithContext(_a0 context.Context, _a1 *iam.CreateServiceSpecificCredentialInput, _a2 ...request.Option) (*iam.CreateServiceSpecificCredentialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateServiceSpecificCredentialInput, ...request.Option) (*iam.CreateServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateServiceSpecificCredentialInput, ...request.Option) *iam.CreateServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateServiceSpecificCredentialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateUser(_a0 *iam.CreateUserInput) (*iam.CreateUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateUserInput) (*iam.CreateUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateUserInput) *iam.CreateUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateUserRequest(_a0 *iam.CreateUserInput) (*request.Request, *iam.CreateUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateUserOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateUserInput) (*request.Request, *iam.CreateUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateUserInput) *iam.CreateUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateUserWithContext(_a0 context.Context, _a1 *iam.CreateUserInput, _a2 ...request.Option) (*iam.CreateUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateUserInput, ...request.Option) (*iam.CreateUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateUserInput, ...request.Option) *iam.CreateUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVirtualMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateVirtualMFADevice(_a0 *iam.CreateVirtualMFADeviceInput) (*iam.CreateVirtualMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.CreateVirtualMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.CreateVirtualMFADeviceInput) (*iam.CreateVirtualMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateVirtualMFADeviceInput) *iam.CreateVirtualMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateVirtualMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateVirtualMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVirtualMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) CreateVirtualMFADeviceRequest(_a0 *iam.CreateVirtualMFADeviceInput) (*request.Request, *iam.CreateVirtualMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.CreateVirtualMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.CreateVirtualMFADeviceInput) (*request.Request, *iam.CreateVirtualMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.CreateVirtualMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.CreateVirtualMFADeviceInput) *iam.CreateVirtualMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.CreateVirtualMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVirtualMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) CreateVirtualMFADeviceWithContext(_a0 context.Context, _a1 *iam.CreateVirtualMFADeviceInput, _a2 ...request.Option) (*iam.CreateVirtualMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.CreateVirtualMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateVirtualMFADeviceInput, ...request.Option) (*iam.CreateVirtualMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.CreateVirtualMFADeviceInput, ...request.Option) *iam.CreateVirtualMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.CreateVirtualMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.CreateVirtualMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeactivateMFADevice(_a0 *iam.DeactivateMFADeviceInput) (*iam.DeactivateMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeactivateMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeactivateMFADeviceInput) (*iam.DeactivateMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeactivateMFADeviceInput) *iam.DeactivateMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeactivateMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeactivateMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeactivateMFADeviceRequest(_a0 *iam.DeactivateMFADeviceInput) (*request.Request, *iam.DeactivateMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeactivateMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.DeactivateMFADeviceInput) (*request.Request, *iam.DeactivateMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeactivateMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeactivateMFADeviceInput) *iam.DeactivateMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeactivateMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeactivateMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeactivateMFADeviceWithContext(_a0 context.Context, _a1 *iam.DeactivateMFADeviceInput, _a2 ...request.Option) (*iam.DeactivateMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeactivateMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeactivateMFADeviceInput, ...request.Option) (*iam.DeactivateMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeactivateMFADeviceInput, ...request.Option) *iam.DeactivateMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeactivateMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeactivateMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccessKey(_a0 *iam.DeleteAccessKeyInput) (*iam.DeleteAccessKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccessKeyInput) (*iam.DeleteAccessKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccessKeyInput) *iam.DeleteAccessKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccessKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccessKeyRequest(_a0 *iam.DeleteAccessKeyInput) (*request.Request, *iam.DeleteAccessKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteAccessKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccessKeyInput) (*request.Request, *iam.DeleteAccessKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccessKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccessKeyInput) *iam.DeleteAccessKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteAccessKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteAccessKeyWithContext(_a0 context.Context, _a1 *iam.DeleteAccessKeyInput, _a2 ...request.Option) (*iam.DeleteAccessKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccessKeyInput, ...request.Option) (*iam.DeleteAccessKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccessKeyInput, ...request.Option) *iam.DeleteAccessKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteAccessKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccountAlias provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccountAlias(_a0 *iam.DeleteAccountAliasInput) (*iam.DeleteAccountAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteAccountAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountAliasInput) (*iam.DeleteAccountAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountAliasInput) *iam.DeleteAccountAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccountAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccountAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccountAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccountAliasRequest(_a0 *iam.DeleteAccountAliasInput) (*request.Request, *iam.DeleteAccountAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteAccountAliasOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountAliasInput) (*request.Request, *iam.DeleteAccountAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccountAliasInput) *iam.DeleteAccountAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteAccountAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccountAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteAccountAliasWithContext(_a0 context.Context, _a1 *iam.DeleteAccountAliasInput, _a2 ...request.Option) (*iam.DeleteAccountAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteAccountAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccountAliasInput, ...request.Option) (*iam.DeleteAccountAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccountAliasInput, ...request.Option) *iam.DeleteAccountAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccountAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteAccountAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccountPasswordPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccountPasswordPolicy(_a0 *iam.DeleteAccountPasswordPolicyInput) (*iam.DeleteAccountPasswordPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountPasswordPolicyInput) (*iam.DeleteAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountPasswordPolicyInput) *iam.DeleteAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccountPasswordPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccountPasswordPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteAccountPasswordPolicyRequest(_a0 *iam.DeleteAccountPasswordPolicyInput) (*request.Request, *iam.DeleteAccountPasswordPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteAccountPasswordPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountPasswordPolicyInput) (*request.Request, *iam.DeleteAccountPasswordPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteAccountPasswordPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteAccountPasswordPolicyInput) *iam.DeleteAccountPasswordPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteAccountPasswordPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccountPasswordPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteAccountPasswordPolicyWithContext(_a0 context.Context, _a1 *iam.DeleteAccountPasswordPolicyInput, _a2 ...request.Option) (*iam.DeleteAccountPasswordPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccountPasswordPolicyInput, ...request.Option) (*iam.DeleteAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteAccountPasswordPolicyInput, ...request.Option) *iam.DeleteAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteAccountPasswordPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteGroup(_a0 *iam.DeleteGroupInput) (*iam.DeleteGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupInput) (*iam.DeleteGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupInput) *iam.DeleteGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGroupPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteGroupPolicy(_a0 *iam.DeleteGroupPolicyInput) (*iam.DeleteGroupPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupPolicyInput) (*iam.DeleteGroupPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupPolicyInput) *iam.DeleteGroupPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteGroupPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGroupPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteGroupPolicyRequest(_a0 *iam.DeleteGroupPolicyInput) (*request.Request, *iam.DeleteGroupPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteGroupPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupPolicyInput) (*request.Request, *iam.DeleteGroupPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteGroupPolicyInput) *iam.DeleteGroupPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteGroupPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteGroupPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteGroupPolicyWithContext(_a0 context.Context, _a1 *iam.DeleteGroupPolicyInput, _a2 ...request.Option) (*iam.DeleteGroupPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteGroupPolicyInput, ...request.Option) (*iam.DeleteGroupPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteGroupPolicyInput, ...request.Option) *iam.DeleteGroupPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteGroupPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteGroupRequest(_a0 *iam.DeleteGroupInput) (*request.Request, *iam.DeleteGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupInput) (*request.Request, *iam.DeleteGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteGroupInput) *iam.DeleteGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteGroupWithContext(_a0 context.Context, _a1 *iam.DeleteGroupInput, _a2 ...request.Option) (*iam.DeleteGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteGroupInput, ...request.Option) (*iam.DeleteGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteGroupInput, ...request.Option) *iam.DeleteGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteInstanceProfile(_a0 *iam.DeleteInstanceProfileInput) (*iam.DeleteInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteInstanceProfileInput) (*iam.DeleteInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteInstanceProfileInput) *iam.DeleteInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteInstanceProfileRequest(_a0 *iam.DeleteInstanceProfileInput) (*request.Request, *iam.DeleteInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteInstanceProfileInput) (*request.Request, *iam.DeleteInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteInstanceProfileInput) *iam.DeleteInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteInstanceProfileWithContext(_a0 context.Context, _a1 *iam.DeleteInstanceProfileInput, _a2 ...request.Option) (*iam.DeleteInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteInstanceProfileInput, ...request.Option) (*iam.DeleteInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteInstanceProfileInput, ...request.Option) *iam.DeleteInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoginProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteLoginProfile(_a0 *iam.DeleteLoginProfileInput) (*iam.DeleteLoginProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteLoginProfileInput) (*iam.DeleteLoginProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteLoginProfileInput) *iam.DeleteLoginProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteLoginProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLoginProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteLoginProfileRequest(_a0 *iam.DeleteLoginProfileInput) (*request.Request, *iam.DeleteLoginProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteLoginProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteLoginProfileInput) (*request.Request, *iam.DeleteLoginProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteLoginProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteLoginProfileInput) *iam.DeleteLoginProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteLoginProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLoginProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteLoginProfileWithContext(_a0 context.Context, _a1 *iam.DeleteLoginProfileInput, _a2 ...request.Option) (*iam.DeleteLoginProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteLoginProfileInput, ...request.Option) (*iam.DeleteLoginProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteLoginProfileInput, ...request.Option) *iam.DeleteLoginProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteLoginProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteOpenIDConnectProvider(_a0 *iam.DeleteOpenIDConnectProviderInput) (*iam.DeleteOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteOpenIDConnectProviderInput) (*iam.DeleteOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteOpenIDConnectProviderInput) *iam.DeleteOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteOpenIDConnectProviderRequest(_a0 *iam.DeleteOpenIDConnectProviderInput) (*request.Request, *iam.DeleteOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteOpenIDConnectProviderInput) (*request.Request, *iam.DeleteOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteOpenIDConnectProviderInput) *iam.DeleteOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.DeleteOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.DeleteOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteOpenIDConnectProviderInput, ...request.Option) (*iam.DeleteOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteOpenIDConnectProviderInput, ...request.Option) *iam.DeleteOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeletePolicy(_a0 *iam.DeletePolicyInput) (*iam.DeletePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeletePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyInput) (*iam.DeletePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyInput) *iam.DeletePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeletePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeletePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeletePolicyRequest(_a0 *iam.DeletePolicyInput) (*request.Request, *iam.DeletePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeletePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyInput) (*request.Request, *iam.DeletePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeletePolicyInput) *iam.DeletePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeletePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePolicyVersion provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeletePolicyVersion(_a0 *iam.DeletePolicyVersionInput) (*iam.DeletePolicyVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeletePolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyVersionInput) (*iam.DeletePolicyVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyVersionInput) *iam.DeletePolicyVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeletePolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeletePolicyVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicyVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeletePolicyVersionRequest(_a0 *iam.DeletePolicyVersionInput) (*request.Request, *iam.DeletePolicyVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeletePolicyVersionOutput
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyVersionInput) (*request.Request, *iam.DeletePolicyVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeletePolicyVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeletePolicyVersionInput) *iam.DeletePolicyVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeletePolicyVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePolicyVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeletePolicyVersionWithContext(_a0 context.Context, _a1 *iam.DeletePolicyVersionInput, _a2 ...request.Option) (*iam.DeletePolicyVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeletePolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyVersionInput, ...request.Option) (*iam.DeletePolicyVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyVersionInput, ...request.Option) *iam.DeletePolicyVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeletePolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeletePolicyVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeletePolicyWithContext(_a0 context.Context, _a1 *iam.DeletePolicyInput, _a2 ...request.Option) (*iam.DeletePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeletePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyInput, ...request.Option) (*iam.DeletePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeletePolicyInput, ...request.Option) *iam.DeletePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeletePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeletePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRole(_a0 *iam.DeleteRoleInput) (*iam.DeleteRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteRoleInput) (*iam.DeleteRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRoleInput) *iam.DeleteRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRolePermissionsBoundary provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRolePermissionsBoundary(_a0 *iam.DeleteRolePermissionsBoundaryInput) (*iam.DeleteRolePermissionsBoundaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteRolePermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePermissionsBoundaryInput) (*iam.DeleteRolePermissionsBoundaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePermissionsBoundaryInput) *iam.DeleteRolePermissionsBoundaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRolePermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRolePermissionsBoundaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRolePermissionsBoundaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRolePermissionsBoundaryRequest(_a0 *iam.DeleteRolePermissionsBoundaryInput) (*request.Request, *iam.DeleteRolePermissionsBoundaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteRolePermissionsBoundaryOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePermissionsBoundaryInput) (*request.Request, *iam.DeleteRolePermissionsBoundaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePermissionsBoundaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRolePermissionsBoundaryInput) *iam.DeleteRolePermissionsBoundaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteRolePermissionsBoundaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRolePermissionsBoundaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteRolePermissionsBoundaryWithContext(_a0 context.Context, _a1 *iam.DeleteRolePermissionsBoundaryInput, _a2 ...request.Option) (*iam.DeleteRolePermissionsBoundaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteRolePermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRolePermissionsBoundaryInput, ...request.Option) (*iam.DeleteRolePermissionsBoundaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRolePermissionsBoundaryInput, ...request.Option) *iam.DeleteRolePermissionsBoundaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRolePermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteRolePermissionsBoundaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRolePolicy(_a0 *iam.DeleteRolePolicyInput) (*iam.DeleteRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePolicyInput) (*iam.DeleteRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePolicyInput) *iam.DeleteRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRolePolicyRequest(_a0 *iam.DeleteRolePolicyInput) (*request.Request, *iam.DeleteRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePolicyInput) (*request.Request, *iam.DeleteRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRolePolicyInput) *iam.DeleteRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteRolePolicyWithContext(_a0 context.Context, _a1 *iam.DeleteRolePolicyInput, _a2 ...request.Option) (*iam.DeleteRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRolePolicyInput, ...request.Option) (*iam.DeleteRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRolePolicyInput, ...request.Option) *iam.DeleteRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteRoleRequest(_a0 *iam.DeleteRoleInput) (*request.Request, *iam.DeleteRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteRoleInput) (*request.Request, *iam.DeleteRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteRoleInput) *iam.DeleteRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteRoleWithContext(_a0 context.Context, _a1 *iam.DeleteRoleInput, _a2 ...request.Option) (*iam.DeleteRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRoleInput, ...request.Option) (*iam.DeleteRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteRoleInput, ...request.Option) *iam.DeleteRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSAMLProvider(_a0 *iam.DeleteSAMLProviderInput) (*iam.DeleteSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteSAMLProviderInput) (*iam.DeleteSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSAMLProviderInput) *iam.DeleteSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSAMLProviderRequest(_a0 *iam.DeleteSAMLProviderInput) (*request.Request, *iam.DeleteSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteSAMLProviderInput) (*request.Request, *iam.DeleteSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSAMLProviderInput) *iam.DeleteSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteSAMLProviderWithContext(_a0 context.Context, _a1 *iam.DeleteSAMLProviderInput, _a2 ...request.Option) (*iam.DeleteSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSAMLProviderInput, ...request.Option) (*iam.DeleteSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSAMLProviderInput, ...request.Option) *iam.DeleteSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSSHPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSSHPublicKey(_a0 *iam.DeleteSSHPublicKeyInput) (*iam.DeleteSSHPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteSSHPublicKeyInput) (*iam.DeleteSSHPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSSHPublicKeyInput) *iam.DeleteSSHPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSSHPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSSHPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSSHPublicKeyRequest(_a0 *iam.DeleteSSHPublicKeyInput) (*request.Request, *iam.DeleteSSHPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteSSHPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteSSHPublicKeyInput) (*request.Request, *iam.DeleteSSHPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSSHPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSSHPublicKeyInput) *iam.DeleteSSHPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteSSHPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSSHPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteSSHPublicKeyWithContext(_a0 context.Context, _a1 *iam.DeleteSSHPublicKeyInput, _a2 ...request.Option) (*iam.DeleteSSHPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSSHPublicKeyInput, ...request.Option) (*iam.DeleteSSHPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSSHPublicKeyInput, ...request.Option) *iam.DeleteSSHPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteSSHPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServerCertificate(_a0 *iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServerCertificateInput) *iam.DeleteServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServerCertificateRequest(_a0 *iam.DeleteServerCertificateInput) (*request.Request, *iam.DeleteServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteServerCertificateInput) (*request.Request, *iam.DeleteServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServerCertificateInput) *iam.DeleteServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteServerCertificateWithContext(_a0 context.Context, _a1 *iam.DeleteServerCertificateInput, _a2 ...request.Option) (*iam.DeleteServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServerCertificateInput, ...request.Option) (*iam.DeleteServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServerCertificateInput, ...request.Option) *iam.DeleteServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServiceLinkedRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServiceLinkedRole(_a0 *iam.DeleteServiceLinkedRoleInput) (*iam.DeleteServiceLinkedRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteServiceLinkedRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceLinkedRoleInput) (*iam.DeleteServiceLinkedRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceLinkedRoleInput) *iam.DeleteServiceLinkedRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServiceLinkedRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServiceLinkedRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServiceLinkedRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServiceLinkedRoleRequest(_a0 *iam.DeleteServiceLinkedRoleInput) (*request.Request, *iam.DeleteServiceLinkedRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteServiceLinkedRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceLinkedRoleInput) (*request.Request, *iam.DeleteServiceLinkedRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceLinkedRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServiceLinkedRoleInput) *iam.DeleteServiceLinkedRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteServiceLinkedRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteServiceLinkedRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteServiceLinkedRoleWithContext(_a0 context.Context, _a1 *iam.DeleteServiceLinkedRoleInput, _a2 ...request.Option) (*iam.DeleteServiceLinkedRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteServiceLinkedRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServiceLinkedRoleInput, ...request.Option) (*iam.DeleteServiceLinkedRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServiceLinkedRoleInput, ...request.Option) *iam.DeleteServiceLinkedRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServiceLinkedRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteServiceLinkedRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServiceSpecificCredential provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServiceSpecificCredential(_a0 *iam.DeleteServiceSpecificCredentialInput) (*iam.DeleteServiceSpecificCredentialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceSpecificCredentialInput) (*iam.DeleteServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceSpecificCredentialInput) *iam.DeleteServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServiceSpecificCredentialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteServiceSpecificCredentialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteServiceSpecificCredentialRequest(_a0 *iam.DeleteServiceSpecificCredentialInput) (*request.Request, *iam.DeleteServiceSpecificCredentialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteServiceSpecificCredentialOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceSpecificCredentialInput) (*request.Request, *iam.DeleteServiceSpecificCredentialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteServiceSpecificCredentialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteServiceSpecificCredentialInput) *iam.DeleteServiceSpecificCredentialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteServiceSpecificCredentialOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteServiceSpecificCredentialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteServiceSpecificCredentialWithContext(_a0 context.Context, _a1 *iam.DeleteServiceSpecificCredentialInput, _a2 ...request.Option) (*iam.DeleteServiceSpecificCredentialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServiceSpecificCredentialInput, ...request.Option) (*iam.DeleteServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteServiceSpecificCredentialInput, ...request.Option) *iam.DeleteServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteServiceSpecificCredentialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSigningCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSigningCertificate(_a0 *iam.DeleteSigningCertificateInput) (*iam.DeleteSigningCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteSigningCertificateInput) (*iam.DeleteSigningCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSigningCertificateInput) *iam.DeleteSigningCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSigningCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSigningCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteSigningCertificateRequest(_a0 *iam.DeleteSigningCertificateInput) (*request.Request, *iam.DeleteSigningCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteSigningCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteSigningCertificateInput) (*request.Request, *iam.DeleteSigningCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteSigningCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteSigningCertificateInput) *iam.DeleteSigningCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteSigningCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSigningCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteSigningCertificateWithContext(_a0 context.Context, _a1 *iam.DeleteSigningCertificateInput, _a2 ...request.Option) (*iam.DeleteSigningCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSigningCertificateInput, ...request.Option) (*iam.DeleteSigningCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteSigningCertificateInput, ...request.Option) *iam.DeleteSigningCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteSigningCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUser(_a0 *iam.DeleteUserInput) (*iam.DeleteUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserInput) (*iam.DeleteUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserInput) *iam.DeleteUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserPermissionsBoundary provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUserPermissionsBoundary(_a0 *iam.DeleteUserPermissionsBoundaryInput) (*iam.DeleteUserPermissionsBoundaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteUserPermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPermissionsBoundaryInput) (*iam.DeleteUserPermissionsBoundaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPermissionsBoundaryInput) *iam.DeleteUserPermissionsBoundaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserPermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserPermissionsBoundaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserPermissionsBoundaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUserPermissionsBoundaryRequest(_a0 *iam.DeleteUserPermissionsBoundaryInput) (*request.Request, *iam.DeleteUserPermissionsBoundaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteUserPermissionsBoundaryOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPermissionsBoundaryInput) (*request.Request, *iam.DeleteUserPermissionsBoundaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPermissionsBoundaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserPermissionsBoundaryInput) *iam.DeleteUserPermissionsBoundaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteUserPermissionsBoundaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUserPermissionsBoundaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteUserPermissionsBoundaryWithContext(_a0 context.Context, _a1 *iam.DeleteUserPermissionsBoundaryInput, _a2 ...request.Option) (*iam.DeleteUserPermissionsBoundaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteUserPermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserPermissionsBoundaryInput, ...request.Option) (*iam.DeleteUserPermissionsBoundaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserPermissionsBoundaryInput, ...request.Option) *iam.DeleteUserPermissionsBoundaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserPermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteUserPermissionsBoundaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUserPolicy(_a0 *iam.DeleteUserPolicyInput) (*iam.DeleteUserPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPolicyInput) (*iam.DeleteUserPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPolicyInput) *iam.DeleteUserPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUserPolicyRequest(_a0 *iam.DeleteUserPolicyInput) (*request.Request, *iam.DeleteUserPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteUserPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPolicyInput) (*request.Request, *iam.DeleteUserPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserPolicyInput) *iam.DeleteUserPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteUserPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUserPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteUserPolicyWithContext(_a0 context.Context, _a1 *iam.DeleteUserPolicyInput, _a2 ...request.Option) (*iam.DeleteUserPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserPolicyInput, ...request.Option) (*iam.DeleteUserPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserPolicyInput, ...request.Option) *iam.DeleteUserPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteUserPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteUserRequest(_a0 *iam.DeleteUserInput) (*request.Request, *iam.DeleteUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteUserOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserInput) (*request.Request, *iam.DeleteUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteUserInput) *iam.DeleteUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteUserWithContext(_a0 context.Context, _a1 *iam.DeleteUserInput, _a2 ...request.Option) (*iam.DeleteUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserInput, ...request.Option) (*iam.DeleteUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteUserInput, ...request.Option) *iam.DeleteUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVirtualMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteVirtualMFADevice(_a0 *iam.DeleteVirtualMFADeviceInput) (*iam.DeleteVirtualMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DeleteVirtualMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DeleteVirtualMFADeviceInput) (*iam.DeleteVirtualMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteVirtualMFADeviceInput) *iam.DeleteVirtualMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteVirtualMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteVirtualMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVirtualMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DeleteVirtualMFADeviceRequest(_a0 *iam.DeleteVirtualMFADeviceInput) (*request.Request, *iam.DeleteVirtualMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DeleteVirtualMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.DeleteVirtualMFADeviceInput) (*request.Request, *iam.DeleteVirtualMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DeleteVirtualMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DeleteVirtualMFADeviceInput) *iam.DeleteVirtualMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DeleteVirtualMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVirtualMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DeleteVirtualMFADeviceWithContext(_a0 context.Context, _a1 *iam.DeleteVirtualMFADeviceInput, _a2 ...request.Option) (*iam.DeleteVirtualMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DeleteVirtualMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteVirtualMFADeviceInput, ...request.Option) (*iam.DeleteVirtualMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DeleteVirtualMFADeviceInput, ...request.Option) *iam.DeleteVirtualMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DeleteVirtualMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DeleteVirtualMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachGroupPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachGroupPolicy(_a0 *iam.DetachGroupPolicyInput) (*iam.DetachGroupPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DetachGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DetachGroupPolicyInput) (*iam.DetachGroupPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachGroupPolicyInput) *iam.DetachGroupPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachGroupPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachGroupPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachGroupPolicyRequest(_a0 *iam.DetachGroupPolicyInput) (*request.Request, *iam.DetachGroupPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DetachGroupPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DetachGroupPolicyInput) (*request.Request, *iam.DetachGroupPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachGroupPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachGroupPolicyInput) *iam.DetachGroupPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DetachGroupPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachGroupPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DetachGroupPolicyWithContext(_a0 context.Context, _a1 *iam.DetachGroupPolicyInput, _a2 ...request.Option) (*iam.DetachGroupPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DetachGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachGroupPolicyInput, ...request.Option) (*iam.DetachGroupPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachGroupPolicyInput, ...request.Option) *iam.DetachGroupPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DetachGroupPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachRolePolicy(_a0 *iam.DetachRolePolicyInput) (*iam.DetachRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DetachRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DetachRolePolicyInput) (*iam.DetachRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachRolePolicyInput) *iam.DetachRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachRolePolicyRequest(_a0 *iam.DetachRolePolicyInput) (*request.Request, *iam.DetachRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DetachRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DetachRolePolicyInput) (*request.Request, *iam.DetachRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachRolePolicyInput) *iam.DetachRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DetachRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DetachRolePolicyWithContext(_a0 context.Context, _a1 *iam.DetachRolePolicyInput, _a2 ...request.Option) (*iam.DetachRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DetachRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachRolePolicyInput, ...request.Option) (*iam.DetachRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachRolePolicyInput, ...request.Option) *iam.DetachRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DetachRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachUserPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachUserPolicy(_a0 *iam.DetachUserPolicyInput) (*iam.DetachUserPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.DetachUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.DetachUserPolicyInput) (*iam.DetachUserPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachUserPolicyInput) *iam.DetachUserPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachUserPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DetachUserPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) DetachUserPolicyRequest(_a0 *iam.DetachUserPolicyInput) (*request.Request, *iam.DetachUserPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.DetachUserPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.DetachUserPolicyInput) (*request.Request, *iam.DetachUserPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.DetachUserPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.DetachUserPolicyInput) *iam.DetachUserPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.DetachUserPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DetachUserPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) DetachUserPolicyWithContext(_a0 context.Context, _a1 *iam.DetachUserPolicyInput, _a2 ...request.Option) (*iam.DetachUserPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.DetachUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachUserPolicyInput, ...request.Option) (*iam.DetachUserPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.DetachUserPolicyInput, ...request.Option) *iam.DetachUserPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.DetachUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.DetachUserPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) EnableMFADevice(_a0 *iam.EnableMFADeviceInput) (*iam.EnableMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.EnableMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.EnableMFADeviceInput) (*iam.EnableMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.EnableMFADeviceInput) *iam.EnableMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.EnableMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.EnableMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) EnableMFADeviceRequest(_a0 *iam.EnableMFADeviceInput) (*request.Request, *iam.EnableMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.EnableMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.EnableMFADeviceInput) (*request.Request, *iam.EnableMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.EnableMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.EnableMFADeviceInput) *iam.EnableMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.EnableMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) EnableMFADeviceWithContext(_a0 context.Context, _a1 *iam.EnableMFADeviceInput, _a2 ...request.Option) (*iam.EnableMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.EnableMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.EnableMFADeviceInput, ...request.Option) (*iam.EnableMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.EnableMFADeviceInput, ...request.Option) *iam.EnableMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.EnableMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.EnableMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateCredentialReport provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateCredentialReport(_a0 *iam.GenerateCredentialReportInput) (*iam.GenerateCredentialReportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GenerateCredentialReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GenerateCredentialReportInput) (*iam.GenerateCredentialReportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateCredentialReportInput) *iam.GenerateCredentialReportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateCredentialReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateCredentialReportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateCredentialReportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateCredentialReportRequest(_a0 *iam.GenerateCredentialReportInput) (*request.Request, *iam.GenerateCredentialReportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GenerateCredentialReportOutput
- if rf, ok := ret.Get(0).(func(*iam.GenerateCredentialReportInput) (*request.Request, *iam.GenerateCredentialReportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateCredentialReportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateCredentialReportInput) *iam.GenerateCredentialReportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GenerateCredentialReportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateCredentialReportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GenerateCredentialReportWithContext(_a0 context.Context, _a1 *iam.GenerateCredentialReportInput, _a2 ...request.Option) (*iam.GenerateCredentialReportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GenerateCredentialReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateCredentialReportInput, ...request.Option) (*iam.GenerateCredentialReportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateCredentialReportInput, ...request.Option) *iam.GenerateCredentialReportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateCredentialReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GenerateCredentialReportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateOrganizationsAccessReport provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateOrganizationsAccessReport(_a0 *iam.GenerateOrganizationsAccessReportInput) (*iam.GenerateOrganizationsAccessReportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GenerateOrganizationsAccessReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GenerateOrganizationsAccessReportInput) (*iam.GenerateOrganizationsAccessReportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateOrganizationsAccessReportInput) *iam.GenerateOrganizationsAccessReportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateOrganizationsAccessReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateOrganizationsAccessReportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateOrganizationsAccessReportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateOrganizationsAccessReportRequest(_a0 *iam.GenerateOrganizationsAccessReportInput) (*request.Request, *iam.GenerateOrganizationsAccessReportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GenerateOrganizationsAccessReportOutput
- if rf, ok := ret.Get(0).(func(*iam.GenerateOrganizationsAccessReportInput) (*request.Request, *iam.GenerateOrganizationsAccessReportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateOrganizationsAccessReportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateOrganizationsAccessReportInput) *iam.GenerateOrganizationsAccessReportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GenerateOrganizationsAccessReportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateOrganizationsAccessReportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GenerateOrganizationsAccessReportWithContext(_a0 context.Context, _a1 *iam.GenerateOrganizationsAccessReportInput, _a2 ...request.Option) (*iam.GenerateOrganizationsAccessReportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GenerateOrganizationsAccessReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateOrganizationsAccessReportInput, ...request.Option) (*iam.GenerateOrganizationsAccessReportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateOrganizationsAccessReportInput, ...request.Option) *iam.GenerateOrganizationsAccessReportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateOrganizationsAccessReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GenerateOrganizationsAccessReportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateServiceLastAccessedDetails provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateServiceLastAccessedDetails(_a0 *iam.GenerateServiceLastAccessedDetailsInput) (*iam.GenerateServiceLastAccessedDetailsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GenerateServiceLastAccessedDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GenerateServiceLastAccessedDetailsInput) (*iam.GenerateServiceLastAccessedDetailsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateServiceLastAccessedDetailsInput) *iam.GenerateServiceLastAccessedDetailsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateServiceLastAccessedDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateServiceLastAccessedDetailsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateServiceLastAccessedDetailsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GenerateServiceLastAccessedDetailsRequest(_a0 *iam.GenerateServiceLastAccessedDetailsInput) (*request.Request, *iam.GenerateServiceLastAccessedDetailsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GenerateServiceLastAccessedDetailsOutput
- if rf, ok := ret.Get(0).(func(*iam.GenerateServiceLastAccessedDetailsInput) (*request.Request, *iam.GenerateServiceLastAccessedDetailsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GenerateServiceLastAccessedDetailsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GenerateServiceLastAccessedDetailsInput) *iam.GenerateServiceLastAccessedDetailsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GenerateServiceLastAccessedDetailsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateServiceLastAccessedDetailsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GenerateServiceLastAccessedDetailsWithContext(_a0 context.Context, _a1 *iam.GenerateServiceLastAccessedDetailsInput, _a2 ...request.Option) (*iam.GenerateServiceLastAccessedDetailsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GenerateServiceLastAccessedDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateServiceLastAccessedDetailsInput, ...request.Option) (*iam.GenerateServiceLastAccessedDetailsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GenerateServiceLastAccessedDetailsInput, ...request.Option) *iam.GenerateServiceLastAccessedDetailsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GenerateServiceLastAccessedDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GenerateServiceLastAccessedDetailsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessKeyLastUsed provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccessKeyLastUsed(_a0 *iam.GetAccessKeyLastUsedInput) (*iam.GetAccessKeyLastUsedOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetAccessKeyLastUsedOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetAccessKeyLastUsedInput) (*iam.GetAccessKeyLastUsedOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccessKeyLastUsedInput) *iam.GetAccessKeyLastUsedOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccessKeyLastUsedOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccessKeyLastUsedInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessKeyLastUsedRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccessKeyLastUsedRequest(_a0 *iam.GetAccessKeyLastUsedInput) (*request.Request, *iam.GetAccessKeyLastUsedOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetAccessKeyLastUsedOutput
- if rf, ok := ret.Get(0).(func(*iam.GetAccessKeyLastUsedInput) (*request.Request, *iam.GetAccessKeyLastUsedOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccessKeyLastUsedInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccessKeyLastUsedInput) *iam.GetAccessKeyLastUsedOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetAccessKeyLastUsedOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessKeyLastUsedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetAccessKeyLastUsedWithContext(_a0 context.Context, _a1 *iam.GetAccessKeyLastUsedInput, _a2 ...request.Option) (*iam.GetAccessKeyLastUsedOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetAccessKeyLastUsedOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccessKeyLastUsedInput, ...request.Option) (*iam.GetAccessKeyLastUsedOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccessKeyLastUsedInput, ...request.Option) *iam.GetAccessKeyLastUsedOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccessKeyLastUsedOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetAccessKeyLastUsedInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountAuthorizationDetails provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountAuthorizationDetails(_a0 *iam.GetAccountAuthorizationDetailsInput) (*iam.GetAccountAuthorizationDetailsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetAccountAuthorizationDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetAccountAuthorizationDetailsInput) (*iam.GetAccountAuthorizationDetailsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountAuthorizationDetailsInput) *iam.GetAccountAuthorizationDetailsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountAuthorizationDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountAuthorizationDetailsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountAuthorizationDetailsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) GetAccountAuthorizationDetailsPages(_a0 *iam.GetAccountAuthorizationDetailsInput, _a1 func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetAccountAuthorizationDetailsInput, func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetAccountAuthorizationDetailsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) GetAccountAuthorizationDetailsPagesWithContext(_a0 context.Context, _a1 *iam.GetAccountAuthorizationDetailsInput, _a2 func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountAuthorizationDetailsInput, func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetAccountAuthorizationDetailsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountAuthorizationDetailsRequest(_a0 *iam.GetAccountAuthorizationDetailsInput) (*request.Request, *iam.GetAccountAuthorizationDetailsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetAccountAuthorizationDetailsOutput
- if rf, ok := ret.Get(0).(func(*iam.GetAccountAuthorizationDetailsInput) (*request.Request, *iam.GetAccountAuthorizationDetailsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountAuthorizationDetailsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountAuthorizationDetailsInput) *iam.GetAccountAuthorizationDetailsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetAccountAuthorizationDetailsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountAuthorizationDetailsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetAccountAuthorizationDetailsWithContext(_a0 context.Context, _a1 *iam.GetAccountAuthorizationDetailsInput, _a2 ...request.Option) (*iam.GetAccountAuthorizationDetailsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetAccountAuthorizationDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountAuthorizationDetailsInput, ...request.Option) (*iam.GetAccountAuthorizationDetailsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountAuthorizationDetailsInput, ...request.Option) *iam.GetAccountAuthorizationDetailsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountAuthorizationDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetAccountAuthorizationDetailsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountPasswordPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountPasswordPolicy(_a0 *iam.GetAccountPasswordPolicyInput) (*iam.GetAccountPasswordPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetAccountPasswordPolicyInput) (*iam.GetAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountPasswordPolicyInput) *iam.GetAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountPasswordPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountPasswordPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountPasswordPolicyRequest(_a0 *iam.GetAccountPasswordPolicyInput) (*request.Request, *iam.GetAccountPasswordPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetAccountPasswordPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetAccountPasswordPolicyInput) (*request.Request, *iam.GetAccountPasswordPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountPasswordPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountPasswordPolicyInput) *iam.GetAccountPasswordPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetAccountPasswordPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountPasswordPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetAccountPasswordPolicyWithContext(_a0 context.Context, _a1 *iam.GetAccountPasswordPolicyInput, _a2 ...request.Option) (*iam.GetAccountPasswordPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountPasswordPolicyInput, ...request.Option) (*iam.GetAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountPasswordPolicyInput, ...request.Option) *iam.GetAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetAccountPasswordPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountSummary provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountSummary(_a0 *iam.GetAccountSummaryInput) (*iam.GetAccountSummaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetAccountSummaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetAccountSummaryInput) (*iam.GetAccountSummaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountSummaryInput) *iam.GetAccountSummaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountSummaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountSummaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountSummaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetAccountSummaryRequest(_a0 *iam.GetAccountSummaryInput) (*request.Request, *iam.GetAccountSummaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetAccountSummaryOutput
- if rf, ok := ret.Get(0).(func(*iam.GetAccountSummaryInput) (*request.Request, *iam.GetAccountSummaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetAccountSummaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetAccountSummaryInput) *iam.GetAccountSummaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetAccountSummaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountSummaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetAccountSummaryWithContext(_a0 context.Context, _a1 *iam.GetAccountSummaryInput, _a2 ...request.Option) (*iam.GetAccountSummaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetAccountSummaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountSummaryInput, ...request.Option) (*iam.GetAccountSummaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetAccountSummaryInput, ...request.Option) *iam.GetAccountSummaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetAccountSummaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetAccountSummaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetContextKeysForCustomPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetContextKeysForCustomPolicy(_a0 *iam.GetContextKeysForCustomPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetContextKeysForPolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForCustomPolicyInput) (*iam.GetContextKeysForPolicyResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForCustomPolicyInput) *iam.GetContextKeysForPolicyResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetContextKeysForCustomPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetContextKeysForCustomPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetContextKeysForCustomPolicyRequest(_a0 *iam.GetContextKeysForCustomPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetContextKeysForPolicyResponse
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForCustomPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForCustomPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetContextKeysForCustomPolicyInput) *iam.GetContextKeysForPolicyResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- return r0, r1
-}
-
-// GetContextKeysForCustomPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetContextKeysForCustomPolicyWithContext(_a0 context.Context, _a1 *iam.GetContextKeysForCustomPolicyInput, _a2 ...request.Option) (*iam.GetContextKeysForPolicyResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetContextKeysForPolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetContextKeysForCustomPolicyInput, ...request.Option) (*iam.GetContextKeysForPolicyResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetContextKeysForCustomPolicyInput, ...request.Option) *iam.GetContextKeysForPolicyResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetContextKeysForCustomPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetContextKeysForPrincipalPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetContextKeysForPrincipalPolicy(_a0 *iam.GetContextKeysForPrincipalPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetContextKeysForPolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForPrincipalPolicyInput) (*iam.GetContextKeysForPolicyResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForPrincipalPolicyInput) *iam.GetContextKeysForPolicyResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetContextKeysForPrincipalPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetContextKeysForPrincipalPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetContextKeysForPrincipalPolicyRequest(_a0 *iam.GetContextKeysForPrincipalPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetContextKeysForPolicyResponse
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForPrincipalPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetContextKeysForPrincipalPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetContextKeysForPrincipalPolicyInput) *iam.GetContextKeysForPolicyResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- return r0, r1
-}
-
-// GetContextKeysForPrincipalPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetContextKeysForPrincipalPolicyWithContext(_a0 context.Context, _a1 *iam.GetContextKeysForPrincipalPolicyInput, _a2 ...request.Option) (*iam.GetContextKeysForPolicyResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetContextKeysForPolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetContextKeysForPrincipalPolicyInput, ...request.Option) (*iam.GetContextKeysForPolicyResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetContextKeysForPrincipalPolicyInput, ...request.Option) *iam.GetContextKeysForPolicyResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetContextKeysForPolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetContextKeysForPrincipalPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCredentialReport provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetCredentialReport(_a0 *iam.GetCredentialReportInput) (*iam.GetCredentialReportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetCredentialReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetCredentialReportInput) (*iam.GetCredentialReportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetCredentialReportInput) *iam.GetCredentialReportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetCredentialReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetCredentialReportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCredentialReportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetCredentialReportRequest(_a0 *iam.GetCredentialReportInput) (*request.Request, *iam.GetCredentialReportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetCredentialReportOutput
- if rf, ok := ret.Get(0).(func(*iam.GetCredentialReportInput) (*request.Request, *iam.GetCredentialReportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetCredentialReportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetCredentialReportInput) *iam.GetCredentialReportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetCredentialReportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCredentialReportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetCredentialReportWithContext(_a0 context.Context, _a1 *iam.GetCredentialReportInput, _a2 ...request.Option) (*iam.GetCredentialReportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetCredentialReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetCredentialReportInput, ...request.Option) (*iam.GetCredentialReportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetCredentialReportInput, ...request.Option) *iam.GetCredentialReportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetCredentialReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetCredentialReportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetGroup(_a0 *iam.GetGroupInput) (*iam.GetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetGroupInput) (*iam.GetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetGroupInput) *iam.GetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroupPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) GetGroupPages(_a0 *iam.GetGroupInput, _a1 func(*iam.GetGroupOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetGroupInput, func(*iam.GetGroupOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetGroupPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) GetGroupPagesWithContext(_a0 context.Context, _a1 *iam.GetGroupInput, _a2 func(*iam.GetGroupOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetGroupInput, func(*iam.GetGroupOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// GetGroupPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetGroupPolicy(_a0 *iam.GetGroupPolicyInput) (*iam.GetGroupPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetGroupPolicyInput) (*iam.GetGroupPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetGroupPolicyInput) *iam.GetGroupPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetGroupPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroupPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetGroupPolicyRequest(_a0 *iam.GetGroupPolicyInput) (*request.Request, *iam.GetGroupPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetGroupPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetGroupPolicyInput) (*request.Request, *iam.GetGroupPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetGroupPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetGroupPolicyInput) *iam.GetGroupPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetGroupPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGroupPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetGroupPolicyWithContext(_a0 context.Context, _a1 *iam.GetGroupPolicyInput, _a2 ...request.Option) (*iam.GetGroupPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetGroupPolicyInput, ...request.Option) (*iam.GetGroupPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetGroupPolicyInput, ...request.Option) *iam.GetGroupPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetGroupPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetGroupRequest(_a0 *iam.GetGroupInput) (*request.Request, *iam.GetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.GetGroupInput) (*request.Request, *iam.GetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetGroupInput) *iam.GetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetGroupWithContext(_a0 context.Context, _a1 *iam.GetGroupInput, _a2 ...request.Option) (*iam.GetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetGroupInput, ...request.Option) (*iam.GetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetGroupInput, ...request.Option) *iam.GetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetInstanceProfile(_a0 *iam.GetInstanceProfileInput) (*iam.GetInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetInstanceProfileInput) (*iam.GetInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetInstanceProfileInput) *iam.GetInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetInstanceProfileRequest(_a0 *iam.GetInstanceProfileInput) (*request.Request, *iam.GetInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.GetInstanceProfileInput) (*request.Request, *iam.GetInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetInstanceProfileInput) *iam.GetInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetInstanceProfileWithContext(_a0 context.Context, _a1 *iam.GetInstanceProfileInput, _a2 ...request.Option) (*iam.GetInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetInstanceProfileInput, ...request.Option) (*iam.GetInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetInstanceProfileInput, ...request.Option) *iam.GetInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLoginProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetLoginProfile(_a0 *iam.GetLoginProfileInput) (*iam.GetLoginProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetLoginProfileInput) (*iam.GetLoginProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetLoginProfileInput) *iam.GetLoginProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetLoginProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLoginProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetLoginProfileRequest(_a0 *iam.GetLoginProfileInput) (*request.Request, *iam.GetLoginProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetLoginProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.GetLoginProfileInput) (*request.Request, *iam.GetLoginProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetLoginProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetLoginProfileInput) *iam.GetLoginProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetLoginProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLoginProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetLoginProfileWithContext(_a0 context.Context, _a1 *iam.GetLoginProfileInput, _a2 ...request.Option) (*iam.GetLoginProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetLoginProfileInput, ...request.Option) (*iam.GetLoginProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetLoginProfileInput, ...request.Option) *iam.GetLoginProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetLoginProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetOpenIDConnectProvider(_a0 *iam.GetOpenIDConnectProviderInput) (*iam.GetOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetOpenIDConnectProviderInput) (*iam.GetOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetOpenIDConnectProviderInput) *iam.GetOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetOpenIDConnectProviderRequest(_a0 *iam.GetOpenIDConnectProviderInput) (*request.Request, *iam.GetOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.GetOpenIDConnectProviderInput) (*request.Request, *iam.GetOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetOpenIDConnectProviderInput) *iam.GetOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.GetOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.GetOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetOpenIDConnectProviderInput, ...request.Option) (*iam.GetOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetOpenIDConnectProviderInput, ...request.Option) *iam.GetOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOrganizationsAccessReport provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetOrganizationsAccessReport(_a0 *iam.GetOrganizationsAccessReportInput) (*iam.GetOrganizationsAccessReportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetOrganizationsAccessReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetOrganizationsAccessReportInput) (*iam.GetOrganizationsAccessReportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetOrganizationsAccessReportInput) *iam.GetOrganizationsAccessReportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetOrganizationsAccessReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetOrganizationsAccessReportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetOrganizationsAccessReportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetOrganizationsAccessReportRequest(_a0 *iam.GetOrganizationsAccessReportInput) (*request.Request, *iam.GetOrganizationsAccessReportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetOrganizationsAccessReportOutput
- if rf, ok := ret.Get(0).(func(*iam.GetOrganizationsAccessReportInput) (*request.Request, *iam.GetOrganizationsAccessReportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetOrganizationsAccessReportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetOrganizationsAccessReportInput) *iam.GetOrganizationsAccessReportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetOrganizationsAccessReportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetOrganizationsAccessReportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetOrganizationsAccessReportWithContext(_a0 context.Context, _a1 *iam.GetOrganizationsAccessReportInput, _a2 ...request.Option) (*iam.GetOrganizationsAccessReportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetOrganizationsAccessReportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetOrganizationsAccessReportInput, ...request.Option) (*iam.GetOrganizationsAccessReportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetOrganizationsAccessReportInput, ...request.Option) *iam.GetOrganizationsAccessReportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetOrganizationsAccessReportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetOrganizationsAccessReportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetPolicy(_a0 *iam.GetPolicyInput) (*iam.GetPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyInput) (*iam.GetPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyInput) *iam.GetPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetPolicyRequest(_a0 *iam.GetPolicyInput) (*request.Request, *iam.GetPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyInput) (*request.Request, *iam.GetPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetPolicyInput) *iam.GetPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPolicyVersion provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetPolicyVersion(_a0 *iam.GetPolicyVersionInput) (*iam.GetPolicyVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyVersionInput) (*iam.GetPolicyVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyVersionInput) *iam.GetPolicyVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetPolicyVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicyVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetPolicyVersionRequest(_a0 *iam.GetPolicyVersionInput) (*request.Request, *iam.GetPolicyVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetPolicyVersionOutput
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyVersionInput) (*request.Request, *iam.GetPolicyVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetPolicyVersionInput) *iam.GetPolicyVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetPolicyVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPolicyVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetPolicyVersionWithContext(_a0 context.Context, _a1 *iam.GetPolicyVersionInput, _a2 ...request.Option) (*iam.GetPolicyVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyVersionInput, ...request.Option) (*iam.GetPolicyVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyVersionInput, ...request.Option) *iam.GetPolicyVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetPolicyVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetPolicyWithContext(_a0 context.Context, _a1 *iam.GetPolicyInput, _a2 ...request.Option) (*iam.GetPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyInput, ...request.Option) (*iam.GetPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyInput, ...request.Option) *iam.GetPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetRole(_a0 *iam.GetRoleInput) (*iam.GetRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetRoleInput) (*iam.GetRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetRoleInput) *iam.GetRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetRolePolicy(_a0 *iam.GetRolePolicyInput) (*iam.GetRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetRolePolicyInput) (*iam.GetRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetRolePolicyInput) *iam.GetRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetRolePolicyRequest(_a0 *iam.GetRolePolicyInput) (*request.Request, *iam.GetRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetRolePolicyInput) (*request.Request, *iam.GetRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetRolePolicyInput) *iam.GetRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetRolePolicyWithContext(_a0 context.Context, _a1 *iam.GetRolePolicyInput, _a2 ...request.Option) (*iam.GetRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRolePolicyInput, ...request.Option) (*iam.GetRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRolePolicyInput, ...request.Option) *iam.GetRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetRoleRequest(_a0 *iam.GetRoleInput) (*request.Request, *iam.GetRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.GetRoleInput) (*request.Request, *iam.GetRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetRoleInput) *iam.GetRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetRoleWithContext(_a0 context.Context, _a1 *iam.GetRoleInput, _a2 ...request.Option) (*iam.GetRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRoleInput, ...request.Option) (*iam.GetRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRoleInput, ...request.Option) *iam.GetRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetSAMLProvider(_a0 *iam.GetSAMLProviderInput) (*iam.GetSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetSAMLProviderInput) (*iam.GetSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetSAMLProviderInput) *iam.GetSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetSAMLProviderRequest(_a0 *iam.GetSAMLProviderInput) (*request.Request, *iam.GetSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.GetSAMLProviderInput) (*request.Request, *iam.GetSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetSAMLProviderInput) *iam.GetSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetSAMLProviderWithContext(_a0 context.Context, _a1 *iam.GetSAMLProviderInput, _a2 ...request.Option) (*iam.GetSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetSAMLProviderInput, ...request.Option) (*iam.GetSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetSAMLProviderInput, ...request.Option) *iam.GetSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSSHPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetSSHPublicKey(_a0 *iam.GetSSHPublicKeyInput) (*iam.GetSSHPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetSSHPublicKeyInput) (*iam.GetSSHPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetSSHPublicKeyInput) *iam.GetSSHPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetSSHPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSSHPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetSSHPublicKeyRequest(_a0 *iam.GetSSHPublicKeyInput) (*request.Request, *iam.GetSSHPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetSSHPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetSSHPublicKeyInput) (*request.Request, *iam.GetSSHPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetSSHPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetSSHPublicKeyInput) *iam.GetSSHPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetSSHPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSSHPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetSSHPublicKeyWithContext(_a0 context.Context, _a1 *iam.GetSSHPublicKeyInput, _a2 ...request.Option) (*iam.GetSSHPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetSSHPublicKeyInput, ...request.Option) (*iam.GetSSHPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetSSHPublicKeyInput, ...request.Option) *iam.GetSSHPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetSSHPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServerCertificate(_a0 *iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServerCertificateInput) *iam.GetServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServerCertificateRequest(_a0 *iam.GetServerCertificateInput) (*request.Request, *iam.GetServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.GetServerCertificateInput) (*request.Request, *iam.GetServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServerCertificateInput) *iam.GetServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetServerCertificateWithContext(_a0 context.Context, _a1 *iam.GetServerCertificateInput, _a2 ...request.Option) (*iam.GetServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServerCertificateInput, ...request.Option) (*iam.GetServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServerCertificateInput, ...request.Option) *iam.GetServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetails provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLastAccessedDetails(_a0 *iam.GetServiceLastAccessedDetailsInput) (*iam.GetServiceLastAccessedDetailsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetServiceLastAccessedDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsInput) (*iam.GetServiceLastAccessedDetailsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsInput) *iam.GetServiceLastAccessedDetailsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLastAccessedDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLastAccessedDetailsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetailsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLastAccessedDetailsRequest(_a0 *iam.GetServiceLastAccessedDetailsInput) (*request.Request, *iam.GetServiceLastAccessedDetailsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetServiceLastAccessedDetailsOutput
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsInput) (*request.Request, *iam.GetServiceLastAccessedDetailsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLastAccessedDetailsInput) *iam.GetServiceLastAccessedDetailsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetServiceLastAccessedDetailsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetailsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetServiceLastAccessedDetailsWithContext(_a0 context.Context, _a1 *iam.GetServiceLastAccessedDetailsInput, _a2 ...request.Option) (*iam.GetServiceLastAccessedDetailsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetServiceLastAccessedDetailsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLastAccessedDetailsInput, ...request.Option) (*iam.GetServiceLastAccessedDetailsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLastAccessedDetailsInput, ...request.Option) *iam.GetServiceLastAccessedDetailsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLastAccessedDetailsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetServiceLastAccessedDetailsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetailsWithEntities provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLastAccessedDetailsWithEntities(_a0 *iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetServiceLastAccessedDetailsWithEntitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) *iam.GetServiceLastAccessedDetailsWithEntitiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetailsWithEntitiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLastAccessedDetailsWithEntitiesRequest(_a0 *iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*request.Request, *iam.GetServiceLastAccessedDetailsWithEntitiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetServiceLastAccessedDetailsWithEntitiesOutput
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*request.Request, *iam.GetServiceLastAccessedDetailsWithEntitiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLastAccessedDetailsWithEntitiesInput) *iam.GetServiceLastAccessedDetailsWithEntitiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetServiceLastAccessedDetailsWithEntitiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetServiceLastAccessedDetailsWithEntitiesWithContext(_a0 context.Context, _a1 *iam.GetServiceLastAccessedDetailsWithEntitiesInput, _a2 ...request.Option) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetServiceLastAccessedDetailsWithEntitiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLastAccessedDetailsWithEntitiesInput, ...request.Option) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLastAccessedDetailsWithEntitiesInput, ...request.Option) *iam.GetServiceLastAccessedDetailsWithEntitiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetServiceLastAccessedDetailsWithEntitiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLinkedRoleDeletionStatus provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLinkedRoleDeletionStatus(_a0 *iam.GetServiceLinkedRoleDeletionStatusInput) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetServiceLinkedRoleDeletionStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) *iam.GetServiceLinkedRoleDeletionStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLinkedRoleDeletionStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetServiceLinkedRoleDeletionStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetServiceLinkedRoleDeletionStatusRequest(_a0 *iam.GetServiceLinkedRoleDeletionStatusInput) (*request.Request, *iam.GetServiceLinkedRoleDeletionStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetServiceLinkedRoleDeletionStatusOutput
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) (*request.Request, *iam.GetServiceLinkedRoleDeletionStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetServiceLinkedRoleDeletionStatusInput) *iam.GetServiceLinkedRoleDeletionStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetServiceLinkedRoleDeletionStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetServiceLinkedRoleDeletionStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetServiceLinkedRoleDeletionStatusWithContext(_a0 context.Context, _a1 *iam.GetServiceLinkedRoleDeletionStatusInput, _a2 ...request.Option) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetServiceLinkedRoleDeletionStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLinkedRoleDeletionStatusInput, ...request.Option) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetServiceLinkedRoleDeletionStatusInput, ...request.Option) *iam.GetServiceLinkedRoleDeletionStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetServiceLinkedRoleDeletionStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetServiceLinkedRoleDeletionStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetUser(_a0 *iam.GetUserInput) (*iam.GetUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetUserInput) (*iam.GetUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetUserInput) *iam.GetUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUserPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetUserPolicy(_a0 *iam.GetUserPolicyInput) (*iam.GetUserPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.GetUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.GetUserPolicyInput) (*iam.GetUserPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetUserPolicyInput) *iam.GetUserPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetUserPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUserPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetUserPolicyRequest(_a0 *iam.GetUserPolicyInput) (*request.Request, *iam.GetUserPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetUserPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.GetUserPolicyInput) (*request.Request, *iam.GetUserPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetUserPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetUserPolicyInput) *iam.GetUserPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetUserPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetUserPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetUserPolicyWithContext(_a0 context.Context, _a1 *iam.GetUserPolicyInput, _a2 ...request.Option) (*iam.GetUserPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserPolicyInput, ...request.Option) (*iam.GetUserPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserPolicyInput, ...request.Option) *iam.GetUserPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetUserPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) GetUserRequest(_a0 *iam.GetUserInput) (*request.Request, *iam.GetUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.GetUserOutput
- if rf, ok := ret.Get(0).(func(*iam.GetUserInput) (*request.Request, *iam.GetUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.GetUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.GetUserInput) *iam.GetUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.GetUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) GetUserWithContext(_a0 context.Context, _a1 *iam.GetUserInput, _a2 ...request.Option) (*iam.GetUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.GetUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserInput, ...request.Option) (*iam.GetUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserInput, ...request.Option) *iam.GetUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.GetUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.GetUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessKeys provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAccessKeys(_a0 *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListAccessKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAccessKeysInput) *iam.ListAccessKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAccessKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAccessKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListAccessKeysPages(_a0 *iam.ListAccessKeysInput, _a1 func(*iam.ListAccessKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListAccessKeysInput, func(*iam.ListAccessKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListAccessKeysPagesWithContext(_a0 context.Context, _a1 *iam.ListAccessKeysInput, _a2 func(*iam.ListAccessKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccessKeysInput, func(*iam.ListAccessKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAccessKeysRequest(_a0 *iam.ListAccessKeysInput) (*request.Request, *iam.ListAccessKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListAccessKeysOutput
- if rf, ok := ret.Get(0).(func(*iam.ListAccessKeysInput) (*request.Request, *iam.ListAccessKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAccessKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAccessKeysInput) *iam.ListAccessKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListAccessKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAccessKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListAccessKeysWithContext(_a0 context.Context, _a1 *iam.ListAccessKeysInput, _a2 ...request.Option) (*iam.ListAccessKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListAccessKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccessKeysInput, ...request.Option) (*iam.ListAccessKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccessKeysInput, ...request.Option) *iam.ListAccessKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAccessKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListAccessKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccountAliases provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAccountAliases(_a0 *iam.ListAccountAliasesInput) (*iam.ListAccountAliasesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListAccountAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListAccountAliasesInput) (*iam.ListAccountAliasesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAccountAliasesInput) *iam.ListAccountAliasesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAccountAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAccountAliasesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccountAliasesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListAccountAliasesPages(_a0 *iam.ListAccountAliasesInput, _a1 func(*iam.ListAccountAliasesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListAccountAliasesInput, func(*iam.ListAccountAliasesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccountAliasesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListAccountAliasesPagesWithContext(_a0 context.Context, _a1 *iam.ListAccountAliasesInput, _a2 func(*iam.ListAccountAliasesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccountAliasesInput, func(*iam.ListAccountAliasesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccountAliasesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAccountAliasesRequest(_a0 *iam.ListAccountAliasesInput) (*request.Request, *iam.ListAccountAliasesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListAccountAliasesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListAccountAliasesInput) (*request.Request, *iam.ListAccountAliasesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAccountAliasesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAccountAliasesInput) *iam.ListAccountAliasesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListAccountAliasesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAccountAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListAccountAliasesWithContext(_a0 context.Context, _a1 *iam.ListAccountAliasesInput, _a2 ...request.Option) (*iam.ListAccountAliasesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListAccountAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccountAliasesInput, ...request.Option) (*iam.ListAccountAliasesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAccountAliasesInput, ...request.Option) *iam.ListAccountAliasesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAccountAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListAccountAliasesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedGroupPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedGroupPolicies(_a0 *iam.ListAttachedGroupPoliciesInput) (*iam.ListAttachedGroupPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListAttachedGroupPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedGroupPoliciesInput) (*iam.ListAttachedGroupPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedGroupPoliciesInput) *iam.ListAttachedGroupPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedGroupPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedGroupPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedGroupPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListAttachedGroupPoliciesPages(_a0 *iam.ListAttachedGroupPoliciesInput, _a1 func(*iam.ListAttachedGroupPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedGroupPoliciesInput, func(*iam.ListAttachedGroupPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedGroupPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListAttachedGroupPoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListAttachedGroupPoliciesInput, _a2 func(*iam.ListAttachedGroupPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedGroupPoliciesInput, func(*iam.ListAttachedGroupPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedGroupPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedGroupPoliciesRequest(_a0 *iam.ListAttachedGroupPoliciesInput) (*request.Request, *iam.ListAttachedGroupPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListAttachedGroupPoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedGroupPoliciesInput) (*request.Request, *iam.ListAttachedGroupPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedGroupPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedGroupPoliciesInput) *iam.ListAttachedGroupPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListAttachedGroupPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAttachedGroupPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListAttachedGroupPoliciesWithContext(_a0 context.Context, _a1 *iam.ListAttachedGroupPoliciesInput, _a2 ...request.Option) (*iam.ListAttachedGroupPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListAttachedGroupPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedGroupPoliciesInput, ...request.Option) (*iam.ListAttachedGroupPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedGroupPoliciesInput, ...request.Option) *iam.ListAttachedGroupPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedGroupPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListAttachedGroupPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedRolePolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedRolePolicies(_a0 *iam.ListAttachedRolePoliciesInput) (*iam.ListAttachedRolePoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListAttachedRolePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedRolePoliciesInput) (*iam.ListAttachedRolePoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedRolePoliciesInput) *iam.ListAttachedRolePoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedRolePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedRolePoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedRolePoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListAttachedRolePoliciesPages(_a0 *iam.ListAttachedRolePoliciesInput, _a1 func(*iam.ListAttachedRolePoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedRolePoliciesInput, func(*iam.ListAttachedRolePoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedRolePoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListAttachedRolePoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListAttachedRolePoliciesInput, _a2 func(*iam.ListAttachedRolePoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedRolePoliciesInput, func(*iam.ListAttachedRolePoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedRolePoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedRolePoliciesRequest(_a0 *iam.ListAttachedRolePoliciesInput) (*request.Request, *iam.ListAttachedRolePoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListAttachedRolePoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedRolePoliciesInput) (*request.Request, *iam.ListAttachedRolePoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedRolePoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedRolePoliciesInput) *iam.ListAttachedRolePoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListAttachedRolePoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAttachedRolePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListAttachedRolePoliciesWithContext(_a0 context.Context, _a1 *iam.ListAttachedRolePoliciesInput, _a2 ...request.Option) (*iam.ListAttachedRolePoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListAttachedRolePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedRolePoliciesInput, ...request.Option) (*iam.ListAttachedRolePoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedRolePoliciesInput, ...request.Option) *iam.ListAttachedRolePoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedRolePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListAttachedRolePoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedUserPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedUserPolicies(_a0 *iam.ListAttachedUserPoliciesInput) (*iam.ListAttachedUserPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListAttachedUserPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedUserPoliciesInput) (*iam.ListAttachedUserPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedUserPoliciesInput) *iam.ListAttachedUserPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedUserPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedUserPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAttachedUserPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListAttachedUserPoliciesPages(_a0 *iam.ListAttachedUserPoliciesInput, _a1 func(*iam.ListAttachedUserPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedUserPoliciesInput, func(*iam.ListAttachedUserPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedUserPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListAttachedUserPoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListAttachedUserPoliciesInput, _a2 func(*iam.ListAttachedUserPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedUserPoliciesInput, func(*iam.ListAttachedUserPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAttachedUserPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListAttachedUserPoliciesRequest(_a0 *iam.ListAttachedUserPoliciesInput) (*request.Request, *iam.ListAttachedUserPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListAttachedUserPoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedUserPoliciesInput) (*request.Request, *iam.ListAttachedUserPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListAttachedUserPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListAttachedUserPoliciesInput) *iam.ListAttachedUserPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListAttachedUserPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAttachedUserPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListAttachedUserPoliciesWithContext(_a0 context.Context, _a1 *iam.ListAttachedUserPoliciesInput, _a2 ...request.Option) (*iam.ListAttachedUserPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListAttachedUserPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedUserPoliciesInput, ...request.Option) (*iam.ListAttachedUserPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListAttachedUserPoliciesInput, ...request.Option) *iam.ListAttachedUserPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListAttachedUserPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListAttachedUserPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEntitiesForPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListEntitiesForPolicy(_a0 *iam.ListEntitiesForPolicyInput) (*iam.ListEntitiesForPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListEntitiesForPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListEntitiesForPolicyInput) (*iam.ListEntitiesForPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListEntitiesForPolicyInput) *iam.ListEntitiesForPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListEntitiesForPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListEntitiesForPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEntitiesForPolicyPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListEntitiesForPolicyPages(_a0 *iam.ListEntitiesForPolicyInput, _a1 func(*iam.ListEntitiesForPolicyOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListEntitiesForPolicyInput, func(*iam.ListEntitiesForPolicyOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEntitiesForPolicyPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListEntitiesForPolicyPagesWithContext(_a0 context.Context, _a1 *iam.ListEntitiesForPolicyInput, _a2 func(*iam.ListEntitiesForPolicyOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListEntitiesForPolicyInput, func(*iam.ListEntitiesForPolicyOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEntitiesForPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListEntitiesForPolicyRequest(_a0 *iam.ListEntitiesForPolicyInput) (*request.Request, *iam.ListEntitiesForPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListEntitiesForPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.ListEntitiesForPolicyInput) (*request.Request, *iam.ListEntitiesForPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListEntitiesForPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListEntitiesForPolicyInput) *iam.ListEntitiesForPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListEntitiesForPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListEntitiesForPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListEntitiesForPolicyWithContext(_a0 context.Context, _a1 *iam.ListEntitiesForPolicyInput, _a2 ...request.Option) (*iam.ListEntitiesForPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListEntitiesForPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListEntitiesForPolicyInput, ...request.Option) (*iam.ListEntitiesForPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListEntitiesForPolicyInput, ...request.Option) *iam.ListEntitiesForPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListEntitiesForPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListEntitiesForPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroupPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroupPolicies(_a0 *iam.ListGroupPoliciesInput) (*iam.ListGroupPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListGroupPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupPoliciesInput) (*iam.ListGroupPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupPoliciesInput) *iam.ListGroupPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroupPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListGroupPoliciesPages(_a0 *iam.ListGroupPoliciesInput, _a1 func(*iam.ListGroupPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupPoliciesInput, func(*iam.ListGroupPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListGroupPoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListGroupPoliciesInput, _a2 func(*iam.ListGroupPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupPoliciesInput, func(*iam.ListGroupPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroupPoliciesRequest(_a0 *iam.ListGroupPoliciesInput) (*request.Request, *iam.ListGroupPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListGroupPoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListGroupPoliciesInput) (*request.Request, *iam.ListGroupPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupPoliciesInput) *iam.ListGroupPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListGroupPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListGroupPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListGroupPoliciesWithContext(_a0 context.Context, _a1 *iam.ListGroupPoliciesInput, _a2 ...request.Option) (*iam.ListGroupPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListGroupPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupPoliciesInput, ...request.Option) (*iam.ListGroupPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupPoliciesInput, ...request.Option) *iam.ListGroupPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListGroupPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroups provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroups(_a0 *iam.ListGroupsInput) (*iam.ListGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsInput) (*iam.ListGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsInput) *iam.ListGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroupsForUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroupsForUser(_a0 *iam.ListGroupsForUserInput) (*iam.ListGroupsForUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListGroupsForUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsForUserInput) (*iam.ListGroupsForUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsForUserInput) *iam.ListGroupsForUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupsForUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupsForUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroupsForUserPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListGroupsForUserPages(_a0 *iam.ListGroupsForUserInput, _a1 func(*iam.ListGroupsForUserOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsForUserInput, func(*iam.ListGroupsForUserOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupsForUserPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListGroupsForUserPagesWithContext(_a0 context.Context, _a1 *iam.ListGroupsForUserInput, _a2 func(*iam.ListGroupsForUserOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsForUserInput, func(*iam.ListGroupsForUserOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupsForUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroupsForUserRequest(_a0 *iam.ListGroupsForUserInput) (*request.Request, *iam.ListGroupsForUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListGroupsForUserOutput
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsForUserInput) (*request.Request, *iam.ListGroupsForUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsForUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupsForUserInput) *iam.ListGroupsForUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListGroupsForUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListGroupsForUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListGroupsForUserWithContext(_a0 context.Context, _a1 *iam.ListGroupsForUserInput, _a2 ...request.Option) (*iam.ListGroupsForUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListGroupsForUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsForUserInput, ...request.Option) (*iam.ListGroupsForUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsForUserInput, ...request.Option) *iam.ListGroupsForUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupsForUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListGroupsForUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListGroupsPages(_a0 *iam.ListGroupsInput, _a1 func(*iam.ListGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsInput, func(*iam.ListGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListGroupsPagesWithContext(_a0 context.Context, _a1 *iam.ListGroupsInput, _a2 func(*iam.ListGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsInput, func(*iam.ListGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListGroupsRequest(_a0 *iam.ListGroupsInput) (*request.Request, *iam.ListGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListGroupsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsInput) (*request.Request, *iam.ListGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListGroupsInput) *iam.ListGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListGroupsWithContext(_a0 context.Context, _a1 *iam.ListGroupsInput, _a2 ...request.Option) (*iam.ListGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsInput, ...request.Option) (*iam.ListGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListGroupsInput, ...request.Option) *iam.ListGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfileTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfileTags(_a0 *iam.ListInstanceProfileTagsInput) (*iam.ListInstanceProfileTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListInstanceProfileTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) (*iam.ListInstanceProfileTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) *iam.ListInstanceProfileTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfileTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfileTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfileTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfileTagsRequest(_a0 *iam.ListInstanceProfileTagsInput) (*request.Request, *iam.ListInstanceProfileTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListInstanceProfileTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) (*request.Request, *iam.ListInstanceProfileTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfileTagsInput) *iam.ListInstanceProfileTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListInstanceProfileTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListInstanceProfileTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListInstanceProfileTagsWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfileTagsInput, _a2 ...request.Option) (*iam.ListInstanceProfileTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListInstanceProfileTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfileTagsInput, ...request.Option) (*iam.ListInstanceProfileTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfileTagsInput, ...request.Option) *iam.ListInstanceProfileTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfileTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListInstanceProfileTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfiles provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfiles(_a0 *iam.ListInstanceProfilesInput) (*iam.ListInstanceProfilesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListInstanceProfilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesInput) (*iam.ListInstanceProfilesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesInput) *iam.ListInstanceProfilesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfilesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfilesForRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfilesForRole(_a0 *iam.ListInstanceProfilesForRoleInput) (*iam.ListInstanceProfilesForRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListInstanceProfilesForRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesForRoleInput) (*iam.ListInstanceProfilesForRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesForRoleInput) *iam.ListInstanceProfilesForRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfilesForRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfilesForRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfilesForRolePages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListInstanceProfilesForRolePages(_a0 *iam.ListInstanceProfilesForRoleInput, _a1 func(*iam.ListInstanceProfilesForRoleOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesForRoleInput, func(*iam.ListInstanceProfilesForRoleOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInstanceProfilesForRolePagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListInstanceProfilesForRolePagesWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfilesForRoleInput, _a2 func(*iam.ListInstanceProfilesForRoleOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesForRoleInput, func(*iam.ListInstanceProfilesForRoleOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInstanceProfilesForRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfilesForRoleRequest(_a0 *iam.ListInstanceProfilesForRoleInput) (*request.Request, *iam.ListInstanceProfilesForRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListInstanceProfilesForRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesForRoleInput) (*request.Request, *iam.ListInstanceProfilesForRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesForRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfilesForRoleInput) *iam.ListInstanceProfilesForRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListInstanceProfilesForRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListInstanceProfilesForRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListInstanceProfilesForRoleWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfilesForRoleInput, _a2 ...request.Option) (*iam.ListInstanceProfilesForRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListInstanceProfilesForRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesForRoleInput, ...request.Option) (*iam.ListInstanceProfilesForRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesForRoleInput, ...request.Option) *iam.ListInstanceProfilesForRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfilesForRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListInstanceProfilesForRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListInstanceProfilesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListInstanceProfilesPages(_a0 *iam.ListInstanceProfilesInput, _a1 func(*iam.ListInstanceProfilesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesInput, func(*iam.ListInstanceProfilesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInstanceProfilesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListInstanceProfilesPagesWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfilesInput, _a2 func(*iam.ListInstanceProfilesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesInput, func(*iam.ListInstanceProfilesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListInstanceProfilesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListInstanceProfilesRequest(_a0 *iam.ListInstanceProfilesInput) (*request.Request, *iam.ListInstanceProfilesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListInstanceProfilesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesInput) (*request.Request, *iam.ListInstanceProfilesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfilesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfilesInput) *iam.ListInstanceProfilesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListInstanceProfilesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListInstanceProfilesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListInstanceProfilesWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfilesInput, _a2 ...request.Option) (*iam.ListInstanceProfilesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListInstanceProfilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesInput, ...request.Option) (*iam.ListInstanceProfilesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfilesInput, ...request.Option) *iam.ListInstanceProfilesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListInstanceProfilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListInstanceProfilesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMFADeviceTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListMFADeviceTags(_a0 *iam.ListMFADeviceTagsInput) (*iam.ListMFADeviceTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListMFADeviceTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) (*iam.ListMFADeviceTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) *iam.ListMFADeviceTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListMFADeviceTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListMFADeviceTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMFADeviceTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListMFADeviceTagsRequest(_a0 *iam.ListMFADeviceTagsInput) (*request.Request, *iam.ListMFADeviceTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListMFADeviceTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) (*request.Request, *iam.ListMFADeviceTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListMFADeviceTagsInput) *iam.ListMFADeviceTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListMFADeviceTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListMFADeviceTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListMFADeviceTagsWithContext(_a0 context.Context, _a1 *iam.ListMFADeviceTagsInput, _a2 ...request.Option) (*iam.ListMFADeviceTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListMFADeviceTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADeviceTagsInput, ...request.Option) (*iam.ListMFADeviceTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADeviceTagsInput, ...request.Option) *iam.ListMFADeviceTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListMFADeviceTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListMFADeviceTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMFADevices provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListMFADevices(_a0 *iam.ListMFADevicesInput) (*iam.ListMFADevicesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListMFADevicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListMFADevicesInput) (*iam.ListMFADevicesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListMFADevicesInput) *iam.ListMFADevicesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListMFADevicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListMFADevicesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMFADevicesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListMFADevicesPages(_a0 *iam.ListMFADevicesInput, _a1 func(*iam.ListMFADevicesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListMFADevicesInput, func(*iam.ListMFADevicesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMFADevicesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListMFADevicesPagesWithContext(_a0 context.Context, _a1 *iam.ListMFADevicesInput, _a2 func(*iam.ListMFADevicesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADevicesInput, func(*iam.ListMFADevicesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMFADevicesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListMFADevicesRequest(_a0 *iam.ListMFADevicesInput) (*request.Request, *iam.ListMFADevicesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListMFADevicesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListMFADevicesInput) (*request.Request, *iam.ListMFADevicesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListMFADevicesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListMFADevicesInput) *iam.ListMFADevicesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListMFADevicesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListMFADevicesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListMFADevicesWithContext(_a0 context.Context, _a1 *iam.ListMFADevicesInput, _a2 ...request.Option) (*iam.ListMFADevicesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListMFADevicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADevicesInput, ...request.Option) (*iam.ListMFADevicesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADevicesInput, ...request.Option) *iam.ListMFADevicesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListMFADevicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListMFADevicesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProviderTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListOpenIDConnectProviderTags(_a0 *iam.ListOpenIDConnectProviderTagsInput) (*iam.ListOpenIDConnectProviderTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListOpenIDConnectProviderTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) (*iam.ListOpenIDConnectProviderTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) *iam.ListOpenIDConnectProviderTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListOpenIDConnectProviderTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProviderTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProviderTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListOpenIDConnectProviderTagsRequest(_a0 *iam.ListOpenIDConnectProviderTagsInput) (*request.Request, *iam.ListOpenIDConnectProviderTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListOpenIDConnectProviderTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) (*request.Request, *iam.ListOpenIDConnectProviderTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProviderTagsInput) *iam.ListOpenIDConnectProviderTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListOpenIDConnectProviderTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProviderTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListOpenIDConnectProviderTagsWithContext(_a0 context.Context, _a1 *iam.ListOpenIDConnectProviderTagsInput, _a2 ...request.Option) (*iam.ListOpenIDConnectProviderTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListOpenIDConnectProviderTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListOpenIDConnectProviderTagsInput, ...request.Option) (*iam.ListOpenIDConnectProviderTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListOpenIDConnectProviderTagsInput, ...request.Option) *iam.ListOpenIDConnectProviderTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListOpenIDConnectProviderTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListOpenIDConnectProviderTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProviders provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListOpenIDConnectProviders(_a0 *iam.ListOpenIDConnectProvidersInput) (*iam.ListOpenIDConnectProvidersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListOpenIDConnectProvidersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProvidersInput) (*iam.ListOpenIDConnectProvidersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProvidersInput) *iam.ListOpenIDConnectProvidersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListOpenIDConnectProvidersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProvidersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProvidersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListOpenIDConnectProvidersRequest(_a0 *iam.ListOpenIDConnectProvidersInput) (*request.Request, *iam.ListOpenIDConnectProvidersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListOpenIDConnectProvidersOutput
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProvidersInput) (*request.Request, *iam.ListOpenIDConnectProvidersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProvidersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProvidersInput) *iam.ListOpenIDConnectProvidersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListOpenIDConnectProvidersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListOpenIDConnectProvidersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListOpenIDConnectProvidersWithContext(_a0 context.Context, _a1 *iam.ListOpenIDConnectProvidersInput, _a2 ...request.Option) (*iam.ListOpenIDConnectProvidersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListOpenIDConnectProvidersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListOpenIDConnectProvidersInput, ...request.Option) (*iam.ListOpenIDConnectProvidersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListOpenIDConnectProvidersInput, ...request.Option) *iam.ListOpenIDConnectProvidersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListOpenIDConnectProvidersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListOpenIDConnectProvidersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPolicies(_a0 *iam.ListPoliciesInput) (*iam.ListPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesInput) (*iam.ListPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesInput) *iam.ListPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPoliciesGrantingServiceAccess provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPoliciesGrantingServiceAccess(_a0 *iam.ListPoliciesGrantingServiceAccessInput) (*iam.ListPoliciesGrantingServiceAccessOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListPoliciesGrantingServiceAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesGrantingServiceAccessInput) (*iam.ListPoliciesGrantingServiceAccessOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesGrantingServiceAccessInput) *iam.ListPoliciesGrantingServiceAccessOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPoliciesGrantingServiceAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPoliciesGrantingServiceAccessInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPoliciesGrantingServiceAccessRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPoliciesGrantingServiceAccessRequest(_a0 *iam.ListPoliciesGrantingServiceAccessInput) (*request.Request, *iam.ListPoliciesGrantingServiceAccessOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListPoliciesGrantingServiceAccessOutput
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesGrantingServiceAccessInput) (*request.Request, *iam.ListPoliciesGrantingServiceAccessOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesGrantingServiceAccessInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPoliciesGrantingServiceAccessInput) *iam.ListPoliciesGrantingServiceAccessOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListPoliciesGrantingServiceAccessOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPoliciesGrantingServiceAccessWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListPoliciesGrantingServiceAccessWithContext(_a0 context.Context, _a1 *iam.ListPoliciesGrantingServiceAccessInput, _a2 ...request.Option) (*iam.ListPoliciesGrantingServiceAccessOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListPoliciesGrantingServiceAccessOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPoliciesGrantingServiceAccessInput, ...request.Option) (*iam.ListPoliciesGrantingServiceAccessOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPoliciesGrantingServiceAccessInput, ...request.Option) *iam.ListPoliciesGrantingServiceAccessOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPoliciesGrantingServiceAccessOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListPoliciesGrantingServiceAccessInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListPoliciesPages(_a0 *iam.ListPoliciesInput, _a1 func(*iam.ListPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesInput, func(*iam.ListPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListPoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListPoliciesInput, _a2 func(*iam.ListPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPoliciesInput, func(*iam.ListPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPoliciesRequest(_a0 *iam.ListPoliciesInput) (*request.Request, *iam.ListPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListPoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesInput) (*request.Request, *iam.ListPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPoliciesInput) *iam.ListPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListPoliciesWithContext(_a0 context.Context, _a1 *iam.ListPoliciesInput, _a2 ...request.Option) (*iam.ListPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPoliciesInput, ...request.Option) (*iam.ListPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPoliciesInput, ...request.Option) *iam.ListPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPolicyTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPolicyTags(_a0 *iam.ListPolicyTagsInput) (*iam.ListPolicyTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListPolicyTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) (*iam.ListPolicyTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) *iam.ListPolicyTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPolicyTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPolicyTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPolicyTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPolicyTagsRequest(_a0 *iam.ListPolicyTagsInput) (*request.Request, *iam.ListPolicyTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListPolicyTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) (*request.Request, *iam.ListPolicyTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPolicyTagsInput) *iam.ListPolicyTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListPolicyTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPolicyTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListPolicyTagsWithContext(_a0 context.Context, _a1 *iam.ListPolicyTagsInput, _a2 ...request.Option) (*iam.ListPolicyTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListPolicyTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyTagsInput, ...request.Option) (*iam.ListPolicyTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyTagsInput, ...request.Option) *iam.ListPolicyTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPolicyTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListPolicyTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPolicyVersions provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPolicyVersions(_a0 *iam.ListPolicyVersionsInput) (*iam.ListPolicyVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListPolicyVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyVersionsInput) (*iam.ListPolicyVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyVersionsInput) *iam.ListPolicyVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPolicyVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPolicyVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPolicyVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListPolicyVersionsPages(_a0 *iam.ListPolicyVersionsInput, _a1 func(*iam.ListPolicyVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyVersionsInput, func(*iam.ListPolicyVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPolicyVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListPolicyVersionsPagesWithContext(_a0 context.Context, _a1 *iam.ListPolicyVersionsInput, _a2 func(*iam.ListPolicyVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyVersionsInput, func(*iam.ListPolicyVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPolicyVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListPolicyVersionsRequest(_a0 *iam.ListPolicyVersionsInput) (*request.Request, *iam.ListPolicyVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListPolicyVersionsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyVersionsInput) (*request.Request, *iam.ListPolicyVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListPolicyVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListPolicyVersionsInput) *iam.ListPolicyVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListPolicyVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPolicyVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListPolicyVersionsWithContext(_a0 context.Context, _a1 *iam.ListPolicyVersionsInput, _a2 ...request.Option) (*iam.ListPolicyVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListPolicyVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyVersionsInput, ...request.Option) (*iam.ListPolicyVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyVersionsInput, ...request.Option) *iam.ListPolicyVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListPolicyVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListPolicyVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRolePolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRolePolicies(_a0 *iam.ListRolePoliciesInput) (*iam.ListRolePoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListRolePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListRolePoliciesInput) (*iam.ListRolePoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRolePoliciesInput) *iam.ListRolePoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRolePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRolePoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRolePoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListRolePoliciesPages(_a0 *iam.ListRolePoliciesInput, _a1 func(*iam.ListRolePoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListRolePoliciesInput, func(*iam.ListRolePoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRolePoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListRolePoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListRolePoliciesInput, _a2 func(*iam.ListRolePoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolePoliciesInput, func(*iam.ListRolePoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRolePoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRolePoliciesRequest(_a0 *iam.ListRolePoliciesInput) (*request.Request, *iam.ListRolePoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListRolePoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListRolePoliciesInput) (*request.Request, *iam.ListRolePoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRolePoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRolePoliciesInput) *iam.ListRolePoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListRolePoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListRolePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListRolePoliciesWithContext(_a0 context.Context, _a1 *iam.ListRolePoliciesInput, _a2 ...request.Option) (*iam.ListRolePoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListRolePoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolePoliciesInput, ...request.Option) (*iam.ListRolePoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolePoliciesInput, ...request.Option) *iam.ListRolePoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRolePoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListRolePoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRoleTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRoleTags(_a0 *iam.ListRoleTagsInput) (*iam.ListRoleTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListRoleTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListRoleTagsInput) (*iam.ListRoleTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRoleTagsInput) *iam.ListRoleTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRoleTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRoleTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRoleTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRoleTagsRequest(_a0 *iam.ListRoleTagsInput) (*request.Request, *iam.ListRoleTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListRoleTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListRoleTagsInput) (*request.Request, *iam.ListRoleTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRoleTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRoleTagsInput) *iam.ListRoleTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListRoleTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListRoleTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListRoleTagsWithContext(_a0 context.Context, _a1 *iam.ListRoleTagsInput, _a2 ...request.Option) (*iam.ListRoleTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListRoleTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRoleTagsInput, ...request.Option) (*iam.ListRoleTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRoleTagsInput, ...request.Option) *iam.ListRoleTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRoleTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListRoleTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRoles provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRoles(_a0 *iam.ListRolesInput) (*iam.ListRolesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListRolesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListRolesInput) (*iam.ListRolesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRolesInput) *iam.ListRolesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRolesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRolesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRolesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListRolesPages(_a0 *iam.ListRolesInput, _a1 func(*iam.ListRolesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListRolesInput, func(*iam.ListRolesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRolesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListRolesPagesWithContext(_a0 context.Context, _a1 *iam.ListRolesInput, _a2 func(*iam.ListRolesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolesInput, func(*iam.ListRolesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRolesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListRolesRequest(_a0 *iam.ListRolesInput) (*request.Request, *iam.ListRolesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListRolesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListRolesInput) (*request.Request, *iam.ListRolesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListRolesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListRolesInput) *iam.ListRolesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListRolesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListRolesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListRolesWithContext(_a0 context.Context, _a1 *iam.ListRolesInput, _a2 ...request.Option) (*iam.ListRolesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListRolesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolesInput, ...request.Option) (*iam.ListRolesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListRolesInput, ...request.Option) *iam.ListRolesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListRolesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListRolesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSAMLProviderTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSAMLProviderTags(_a0 *iam.ListSAMLProviderTagsInput) (*iam.ListSAMLProviderTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListSAMLProviderTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) (*iam.ListSAMLProviderTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) *iam.ListSAMLProviderTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSAMLProviderTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSAMLProviderTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSAMLProviderTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSAMLProviderTagsRequest(_a0 *iam.ListSAMLProviderTagsInput) (*request.Request, *iam.ListSAMLProviderTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListSAMLProviderTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) (*request.Request, *iam.ListSAMLProviderTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSAMLProviderTagsInput) *iam.ListSAMLProviderTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListSAMLProviderTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSAMLProviderTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListSAMLProviderTagsWithContext(_a0 context.Context, _a1 *iam.ListSAMLProviderTagsInput, _a2 ...request.Option) (*iam.ListSAMLProviderTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListSAMLProviderTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProviderTagsInput, ...request.Option) (*iam.ListSAMLProviderTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProviderTagsInput, ...request.Option) *iam.ListSAMLProviderTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSAMLProviderTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListSAMLProviderTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSAMLProviders provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSAMLProviders(_a0 *iam.ListSAMLProvidersInput) (*iam.ListSAMLProvidersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListSAMLProvidersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) (*iam.ListSAMLProvidersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSAMLProvidersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSAMLProvidersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSAMLProvidersRequest(_a0 *iam.ListSAMLProvidersInput) (*request.Request, *iam.ListSAMLProvidersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListSAMLProvidersOutput
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) (*request.Request, *iam.ListSAMLProvidersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListSAMLProvidersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSAMLProvidersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListSAMLProvidersWithContext(_a0 context.Context, _a1 *iam.ListSAMLProvidersInput, _a2 ...request.Option) (*iam.ListSAMLProvidersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListSAMLProvidersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProvidersInput, ...request.Option) (*iam.ListSAMLProvidersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProvidersInput, ...request.Option) *iam.ListSAMLProvidersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSAMLProvidersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListSAMLProvidersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSSHPublicKeys provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSSHPublicKeys(_a0 *iam.ListSSHPublicKeysInput) (*iam.ListSSHPublicKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListSSHPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListSSHPublicKeysInput) (*iam.ListSSHPublicKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSSHPublicKeysInput) *iam.ListSSHPublicKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSSHPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSSHPublicKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSSHPublicKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListSSHPublicKeysPages(_a0 *iam.ListSSHPublicKeysInput, _a1 func(*iam.ListSSHPublicKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListSSHPublicKeysInput, func(*iam.ListSSHPublicKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSSHPublicKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListSSHPublicKeysPagesWithContext(_a0 context.Context, _a1 *iam.ListSSHPublicKeysInput, _a2 func(*iam.ListSSHPublicKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSSHPublicKeysInput, func(*iam.ListSSHPublicKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSSHPublicKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSSHPublicKeysRequest(_a0 *iam.ListSSHPublicKeysInput) (*request.Request, *iam.ListSSHPublicKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListSSHPublicKeysOutput
- if rf, ok := ret.Get(0).(func(*iam.ListSSHPublicKeysInput) (*request.Request, *iam.ListSSHPublicKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSSHPublicKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSSHPublicKeysInput) *iam.ListSSHPublicKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListSSHPublicKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSSHPublicKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListSSHPublicKeysWithContext(_a0 context.Context, _a1 *iam.ListSSHPublicKeysInput, _a2 ...request.Option) (*iam.ListSSHPublicKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListSSHPublicKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSSHPublicKeysInput, ...request.Option) (*iam.ListSSHPublicKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSSHPublicKeysInput, ...request.Option) *iam.ListSSHPublicKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSSHPublicKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListSSHPublicKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServerCertificateTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServerCertificateTags(_a0 *iam.ListServerCertificateTagsInput) (*iam.ListServerCertificateTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListServerCertificateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) (*iam.ListServerCertificateTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) *iam.ListServerCertificateTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServerCertificateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServerCertificateTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServerCertificateTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServerCertificateTagsRequest(_a0 *iam.ListServerCertificateTagsInput) (*request.Request, *iam.ListServerCertificateTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListServerCertificateTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) (*request.Request, *iam.ListServerCertificateTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServerCertificateTagsInput) *iam.ListServerCertificateTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListServerCertificateTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListServerCertificateTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListServerCertificateTagsWithContext(_a0 context.Context, _a1 *iam.ListServerCertificateTagsInput, _a2 ...request.Option) (*iam.ListServerCertificateTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListServerCertificateTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificateTagsInput, ...request.Option) (*iam.ListServerCertificateTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificateTagsInput, ...request.Option) *iam.ListServerCertificateTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServerCertificateTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListServerCertificateTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServerCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServerCertificates(_a0 *iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListServerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificatesInput) *iam.ListServerCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServerCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServerCertificatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListServerCertificatesPages(_a0 *iam.ListServerCertificatesInput, _a1 func(*iam.ListServerCertificatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificatesInput, func(*iam.ListServerCertificatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListServerCertificatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListServerCertificatesPagesWithContext(_a0 context.Context, _a1 *iam.ListServerCertificatesInput, _a2 func(*iam.ListServerCertificatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificatesInput, func(*iam.ListServerCertificatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListServerCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServerCertificatesRequest(_a0 *iam.ListServerCertificatesInput) (*request.Request, *iam.ListServerCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListServerCertificatesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificatesInput) (*request.Request, *iam.ListServerCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServerCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServerCertificatesInput) *iam.ListServerCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListServerCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListServerCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListServerCertificatesWithContext(_a0 context.Context, _a1 *iam.ListServerCertificatesInput, _a2 ...request.Option) (*iam.ListServerCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListServerCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificatesInput, ...request.Option) (*iam.ListServerCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificatesInput, ...request.Option) *iam.ListServerCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServerCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListServerCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServiceSpecificCredentials provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServiceSpecificCredentials(_a0 *iam.ListServiceSpecificCredentialsInput) (*iam.ListServiceSpecificCredentialsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListServiceSpecificCredentialsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListServiceSpecificCredentialsInput) (*iam.ListServiceSpecificCredentialsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServiceSpecificCredentialsInput) *iam.ListServiceSpecificCredentialsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServiceSpecificCredentialsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServiceSpecificCredentialsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListServiceSpecificCredentialsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListServiceSpecificCredentialsRequest(_a0 *iam.ListServiceSpecificCredentialsInput) (*request.Request, *iam.ListServiceSpecificCredentialsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListServiceSpecificCredentialsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListServiceSpecificCredentialsInput) (*request.Request, *iam.ListServiceSpecificCredentialsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListServiceSpecificCredentialsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListServiceSpecificCredentialsInput) *iam.ListServiceSpecificCredentialsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListServiceSpecificCredentialsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListServiceSpecificCredentialsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListServiceSpecificCredentialsWithContext(_a0 context.Context, _a1 *iam.ListServiceSpecificCredentialsInput, _a2 ...request.Option) (*iam.ListServiceSpecificCredentialsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListServiceSpecificCredentialsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServiceSpecificCredentialsInput, ...request.Option) (*iam.ListServiceSpecificCredentialsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServiceSpecificCredentialsInput, ...request.Option) *iam.ListServiceSpecificCredentialsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListServiceSpecificCredentialsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListServiceSpecificCredentialsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSigningCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSigningCertificates(_a0 *iam.ListSigningCertificatesInput) (*iam.ListSigningCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListSigningCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListSigningCertificatesInput) (*iam.ListSigningCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSigningCertificatesInput) *iam.ListSigningCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSigningCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSigningCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSigningCertificatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListSigningCertificatesPages(_a0 *iam.ListSigningCertificatesInput, _a1 func(*iam.ListSigningCertificatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListSigningCertificatesInput, func(*iam.ListSigningCertificatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSigningCertificatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListSigningCertificatesPagesWithContext(_a0 context.Context, _a1 *iam.ListSigningCertificatesInput, _a2 func(*iam.ListSigningCertificatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSigningCertificatesInput, func(*iam.ListSigningCertificatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSigningCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListSigningCertificatesRequest(_a0 *iam.ListSigningCertificatesInput) (*request.Request, *iam.ListSigningCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListSigningCertificatesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListSigningCertificatesInput) (*request.Request, *iam.ListSigningCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListSigningCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListSigningCertificatesInput) *iam.ListSigningCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListSigningCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSigningCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListSigningCertificatesWithContext(_a0 context.Context, _a1 *iam.ListSigningCertificatesInput, _a2 ...request.Option) (*iam.ListSigningCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListSigningCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSigningCertificatesInput, ...request.Option) (*iam.ListSigningCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSigningCertificatesInput, ...request.Option) *iam.ListSigningCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListSigningCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListSigningCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUserPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUserPolicies(_a0 *iam.ListUserPoliciesInput) (*iam.ListUserPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListUserPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListUserPoliciesInput) (*iam.ListUserPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUserPoliciesInput) *iam.ListUserPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUserPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUserPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUserPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListUserPoliciesPages(_a0 *iam.ListUserPoliciesInput, _a1 func(*iam.ListUserPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListUserPoliciesInput, func(*iam.ListUserPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUserPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListUserPoliciesPagesWithContext(_a0 context.Context, _a1 *iam.ListUserPoliciesInput, _a2 func(*iam.ListUserPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserPoliciesInput, func(*iam.ListUserPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUserPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUserPoliciesRequest(_a0 *iam.ListUserPoliciesInput) (*request.Request, *iam.ListUserPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListUserPoliciesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListUserPoliciesInput) (*request.Request, *iam.ListUserPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUserPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUserPoliciesInput) *iam.ListUserPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListUserPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListUserPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListUserPoliciesWithContext(_a0 context.Context, _a1 *iam.ListUserPoliciesInput, _a2 ...request.Option) (*iam.ListUserPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListUserPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserPoliciesInput, ...request.Option) (*iam.ListUserPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserPoliciesInput, ...request.Option) *iam.ListUserPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUserPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListUserPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUserTags provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUserTags(_a0 *iam.ListUserTagsInput) (*iam.ListUserTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListUserTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput) (*iam.ListUserTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput) *iam.ListUserTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUserTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUserTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUserTagsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListUserTagsPages(_a0 *iam.ListUserTagsInput, _a1 func(*iam.ListUserTagsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput, func(*iam.ListUserTagsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUserTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListUserTagsPagesWithContext(_a0 context.Context, _a1 *iam.ListUserTagsInput, _a2 func(*iam.ListUserTagsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserTagsInput, func(*iam.ListUserTagsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUserTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUserTagsRequest(_a0 *iam.ListUserTagsInput) (*request.Request, *iam.ListUserTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListUserTagsOutput
- if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput) (*request.Request, *iam.ListUserTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUserTagsInput) *iam.ListUserTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListUserTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListUserTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListUserTagsWithContext(_a0 context.Context, _a1 *iam.ListUserTagsInput, _a2 ...request.Option) (*iam.ListUserTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListUserTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserTagsInput, ...request.Option) (*iam.ListUserTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUserTagsInput, ...request.Option) *iam.ListUserTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUserTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListUserTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUsers provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUsers(_a0 *iam.ListUsersInput) (*iam.ListUsersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListUsersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListUsersInput) (*iam.ListUsersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUsersInput) *iam.ListUsersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUsersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUsersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListUsersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListUsersPages(_a0 *iam.ListUsersInput, _a1 func(*iam.ListUsersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListUsersInput, func(*iam.ListUsersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUsersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListUsersPagesWithContext(_a0 context.Context, _a1 *iam.ListUsersInput, _a2 func(*iam.ListUsersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUsersInput, func(*iam.ListUsersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListUsersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListUsersRequest(_a0 *iam.ListUsersInput) (*request.Request, *iam.ListUsersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListUsersOutput
- if rf, ok := ret.Get(0).(func(*iam.ListUsersInput) (*request.Request, *iam.ListUsersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListUsersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListUsersInput) *iam.ListUsersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListUsersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListUsersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListUsersWithContext(_a0 context.Context, _a1 *iam.ListUsersInput, _a2 ...request.Option) (*iam.ListUsersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListUsersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUsersInput, ...request.Option) (*iam.ListUsersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListUsersInput, ...request.Option) *iam.ListUsersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListUsersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListUsersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVirtualMFADevices provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListVirtualMFADevices(_a0 *iam.ListVirtualMFADevicesInput) (*iam.ListVirtualMFADevicesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ListVirtualMFADevicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ListVirtualMFADevicesInput) (*iam.ListVirtualMFADevicesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListVirtualMFADevicesInput) *iam.ListVirtualMFADevicesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListVirtualMFADevicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListVirtualMFADevicesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVirtualMFADevicesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) ListVirtualMFADevicesPages(_a0 *iam.ListVirtualMFADevicesInput, _a1 func(*iam.ListVirtualMFADevicesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.ListVirtualMFADevicesInput, func(*iam.ListVirtualMFADevicesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListVirtualMFADevicesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) ListVirtualMFADevicesPagesWithContext(_a0 context.Context, _a1 *iam.ListVirtualMFADevicesInput, _a2 func(*iam.ListVirtualMFADevicesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListVirtualMFADevicesInput, func(*iam.ListVirtualMFADevicesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListVirtualMFADevicesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ListVirtualMFADevicesRequest(_a0 *iam.ListVirtualMFADevicesInput) (*request.Request, *iam.ListVirtualMFADevicesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ListVirtualMFADevicesOutput
- if rf, ok := ret.Get(0).(func(*iam.ListVirtualMFADevicesInput) (*request.Request, *iam.ListVirtualMFADevicesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ListVirtualMFADevicesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ListVirtualMFADevicesInput) *iam.ListVirtualMFADevicesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ListVirtualMFADevicesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListVirtualMFADevicesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ListVirtualMFADevicesWithContext(_a0 context.Context, _a1 *iam.ListVirtualMFADevicesInput, _a2 ...request.Option) (*iam.ListVirtualMFADevicesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ListVirtualMFADevicesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListVirtualMFADevicesInput, ...request.Option) (*iam.ListVirtualMFADevicesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ListVirtualMFADevicesInput, ...request.Option) *iam.ListVirtualMFADevicesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ListVirtualMFADevicesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ListVirtualMFADevicesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutGroupPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutGroupPolicy(_a0 *iam.PutGroupPolicyInput) (*iam.PutGroupPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.PutGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.PutGroupPolicyInput) (*iam.PutGroupPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutGroupPolicyInput) *iam.PutGroupPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutGroupPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutGroupPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutGroupPolicyRequest(_a0 *iam.PutGroupPolicyInput) (*request.Request, *iam.PutGroupPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.PutGroupPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.PutGroupPolicyInput) (*request.Request, *iam.PutGroupPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutGroupPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutGroupPolicyInput) *iam.PutGroupPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.PutGroupPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutGroupPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) PutGroupPolicyWithContext(_a0 context.Context, _a1 *iam.PutGroupPolicyInput, _a2 ...request.Option) (*iam.PutGroupPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.PutGroupPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutGroupPolicyInput, ...request.Option) (*iam.PutGroupPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutGroupPolicyInput, ...request.Option) *iam.PutGroupPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutGroupPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.PutGroupPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRolePermissionsBoundary provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutRolePermissionsBoundary(_a0 *iam.PutRolePermissionsBoundaryInput) (*iam.PutRolePermissionsBoundaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.PutRolePermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.PutRolePermissionsBoundaryInput) (*iam.PutRolePermissionsBoundaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutRolePermissionsBoundaryInput) *iam.PutRolePermissionsBoundaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutRolePermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutRolePermissionsBoundaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRolePermissionsBoundaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutRolePermissionsBoundaryRequest(_a0 *iam.PutRolePermissionsBoundaryInput) (*request.Request, *iam.PutRolePermissionsBoundaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.PutRolePermissionsBoundaryOutput
- if rf, ok := ret.Get(0).(func(*iam.PutRolePermissionsBoundaryInput) (*request.Request, *iam.PutRolePermissionsBoundaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutRolePermissionsBoundaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutRolePermissionsBoundaryInput) *iam.PutRolePermissionsBoundaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.PutRolePermissionsBoundaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutRolePermissionsBoundaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) PutRolePermissionsBoundaryWithContext(_a0 context.Context, _a1 *iam.PutRolePermissionsBoundaryInput, _a2 ...request.Option) (*iam.PutRolePermissionsBoundaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.PutRolePermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRolePermissionsBoundaryInput, ...request.Option) (*iam.PutRolePermissionsBoundaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRolePermissionsBoundaryInput, ...request.Option) *iam.PutRolePermissionsBoundaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutRolePermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.PutRolePermissionsBoundaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutRolePolicy(_a0 *iam.PutRolePolicyInput) (*iam.PutRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.PutRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.PutRolePolicyInput) (*iam.PutRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutRolePolicyInput) *iam.PutRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutRolePolicyRequest(_a0 *iam.PutRolePolicyInput) (*request.Request, *iam.PutRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.PutRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.PutRolePolicyInput) (*request.Request, *iam.PutRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutRolePolicyInput) *iam.PutRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.PutRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) PutRolePolicyWithContext(_a0 context.Context, _a1 *iam.PutRolePolicyInput, _a2 ...request.Option) (*iam.PutRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.PutRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRolePolicyInput, ...request.Option) (*iam.PutRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutRolePolicyInput, ...request.Option) *iam.PutRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.PutRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutUserPermissionsBoundary provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutUserPermissionsBoundary(_a0 *iam.PutUserPermissionsBoundaryInput) (*iam.PutUserPermissionsBoundaryOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.PutUserPermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.PutUserPermissionsBoundaryInput) (*iam.PutUserPermissionsBoundaryOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutUserPermissionsBoundaryInput) *iam.PutUserPermissionsBoundaryOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutUserPermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutUserPermissionsBoundaryInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutUserPermissionsBoundaryRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutUserPermissionsBoundaryRequest(_a0 *iam.PutUserPermissionsBoundaryInput) (*request.Request, *iam.PutUserPermissionsBoundaryOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.PutUserPermissionsBoundaryOutput
- if rf, ok := ret.Get(0).(func(*iam.PutUserPermissionsBoundaryInput) (*request.Request, *iam.PutUserPermissionsBoundaryOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutUserPermissionsBoundaryInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutUserPermissionsBoundaryInput) *iam.PutUserPermissionsBoundaryOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.PutUserPermissionsBoundaryOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutUserPermissionsBoundaryWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) PutUserPermissionsBoundaryWithContext(_a0 context.Context, _a1 *iam.PutUserPermissionsBoundaryInput, _a2 ...request.Option) (*iam.PutUserPermissionsBoundaryOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.PutUserPermissionsBoundaryOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserPermissionsBoundaryInput, ...request.Option) (*iam.PutUserPermissionsBoundaryOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserPermissionsBoundaryInput, ...request.Option) *iam.PutUserPermissionsBoundaryOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutUserPermissionsBoundaryOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.PutUserPermissionsBoundaryInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutUserPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutUserPolicy(_a0 *iam.PutUserPolicyInput) (*iam.PutUserPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.PutUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.PutUserPolicyInput) (*iam.PutUserPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutUserPolicyInput) *iam.PutUserPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutUserPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutUserPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) PutUserPolicyRequest(_a0 *iam.PutUserPolicyInput) (*request.Request, *iam.PutUserPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.PutUserPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.PutUserPolicyInput) (*request.Request, *iam.PutUserPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.PutUserPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.PutUserPolicyInput) *iam.PutUserPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.PutUserPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutUserPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) PutUserPolicyWithContext(_a0 context.Context, _a1 *iam.PutUserPolicyInput, _a2 ...request.Option) (*iam.PutUserPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.PutUserPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserPolicyInput, ...request.Option) (*iam.PutUserPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.PutUserPolicyInput, ...request.Option) *iam.PutUserPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.PutUserPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.PutUserPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveClientIDFromOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveClientIDFromOpenIDConnectProvider(_a0 *iam.RemoveClientIDFromOpenIDConnectProviderInput) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.RemoveClientIDFromOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) *iam.RemoveClientIDFromOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveClientIDFromOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveClientIDFromOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveClientIDFromOpenIDConnectProviderRequest(_a0 *iam.RemoveClientIDFromOpenIDConnectProviderInput) (*request.Request, *iam.RemoveClientIDFromOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.RemoveClientIDFromOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) (*request.Request, *iam.RemoveClientIDFromOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveClientIDFromOpenIDConnectProviderInput) *iam.RemoveClientIDFromOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.RemoveClientIDFromOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveClientIDFromOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) RemoveClientIDFromOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.RemoveClientIDFromOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.RemoveClientIDFromOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveClientIDFromOpenIDConnectProviderInput, ...request.Option) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveClientIDFromOpenIDConnectProviderInput, ...request.Option) *iam.RemoveClientIDFromOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveClientIDFromOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.RemoveClientIDFromOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveRoleFromInstanceProfile(_a0 *iam.RemoveRoleFromInstanceProfileInput) (*iam.RemoveRoleFromInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.RemoveRoleFromInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.RemoveRoleFromInstanceProfileInput) (*iam.RemoveRoleFromInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveRoleFromInstanceProfileInput) *iam.RemoveRoleFromInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveRoleFromInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveRoleFromInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveRoleFromInstanceProfileRequest(_a0 *iam.RemoveRoleFromInstanceProfileInput) (*request.Request, *iam.RemoveRoleFromInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.RemoveRoleFromInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.RemoveRoleFromInstanceProfileInput) (*request.Request, *iam.RemoveRoleFromInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveRoleFromInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveRoleFromInstanceProfileInput) *iam.RemoveRoleFromInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.RemoveRoleFromInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) RemoveRoleFromInstanceProfileWithContext(_a0 context.Context, _a1 *iam.RemoveRoleFromInstanceProfileInput, _a2 ...request.Option) (*iam.RemoveRoleFromInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.RemoveRoleFromInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveRoleFromInstanceProfileInput, ...request.Option) (*iam.RemoveRoleFromInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveRoleFromInstanceProfileInput, ...request.Option) *iam.RemoveRoleFromInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveRoleFromInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.RemoveRoleFromInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveUserFromGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveUserFromGroup(_a0 *iam.RemoveUserFromGroupInput) (*iam.RemoveUserFromGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.RemoveUserFromGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.RemoveUserFromGroupInput) (*iam.RemoveUserFromGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveUserFromGroupInput) *iam.RemoveUserFromGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveUserFromGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveUserFromGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveUserFromGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) RemoveUserFromGroupRequest(_a0 *iam.RemoveUserFromGroupInput) (*request.Request, *iam.RemoveUserFromGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.RemoveUserFromGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.RemoveUserFromGroupInput) (*request.Request, *iam.RemoveUserFromGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.RemoveUserFromGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.RemoveUserFromGroupInput) *iam.RemoveUserFromGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.RemoveUserFromGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveUserFromGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) RemoveUserFromGroupWithContext(_a0 context.Context, _a1 *iam.RemoveUserFromGroupInput, _a2 ...request.Option) (*iam.RemoveUserFromGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.RemoveUserFromGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveUserFromGroupInput, ...request.Option) (*iam.RemoveUserFromGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.RemoveUserFromGroupInput, ...request.Option) *iam.RemoveUserFromGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.RemoveUserFromGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.RemoveUserFromGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetServiceSpecificCredential provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ResetServiceSpecificCredential(_a0 *iam.ResetServiceSpecificCredentialInput) (*iam.ResetServiceSpecificCredentialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ResetServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ResetServiceSpecificCredentialInput) (*iam.ResetServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ResetServiceSpecificCredentialInput) *iam.ResetServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ResetServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ResetServiceSpecificCredentialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetServiceSpecificCredentialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ResetServiceSpecificCredentialRequest(_a0 *iam.ResetServiceSpecificCredentialInput) (*request.Request, *iam.ResetServiceSpecificCredentialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ResetServiceSpecificCredentialOutput
- if rf, ok := ret.Get(0).(func(*iam.ResetServiceSpecificCredentialInput) (*request.Request, *iam.ResetServiceSpecificCredentialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ResetServiceSpecificCredentialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ResetServiceSpecificCredentialInput) *iam.ResetServiceSpecificCredentialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ResetServiceSpecificCredentialOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResetServiceSpecificCredentialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ResetServiceSpecificCredentialWithContext(_a0 context.Context, _a1 *iam.ResetServiceSpecificCredentialInput, _a2 ...request.Option) (*iam.ResetServiceSpecificCredentialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ResetServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ResetServiceSpecificCredentialInput, ...request.Option) (*iam.ResetServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ResetServiceSpecificCredentialInput, ...request.Option) *iam.ResetServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ResetServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ResetServiceSpecificCredentialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResyncMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ResyncMFADevice(_a0 *iam.ResyncMFADeviceInput) (*iam.ResyncMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.ResyncMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.ResyncMFADeviceInput) (*iam.ResyncMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ResyncMFADeviceInput) *iam.ResyncMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ResyncMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ResyncMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResyncMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) ResyncMFADeviceRequest(_a0 *iam.ResyncMFADeviceInput) (*request.Request, *iam.ResyncMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.ResyncMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.ResyncMFADeviceInput) (*request.Request, *iam.ResyncMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.ResyncMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.ResyncMFADeviceInput) *iam.ResyncMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.ResyncMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ResyncMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) ResyncMFADeviceWithContext(_a0 context.Context, _a1 *iam.ResyncMFADeviceInput, _a2 ...request.Option) (*iam.ResyncMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.ResyncMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ResyncMFADeviceInput, ...request.Option) (*iam.ResyncMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.ResyncMFADeviceInput, ...request.Option) *iam.ResyncMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.ResyncMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.ResyncMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetDefaultPolicyVersion provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SetDefaultPolicyVersion(_a0 *iam.SetDefaultPolicyVersionInput) (*iam.SetDefaultPolicyVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.SetDefaultPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.SetDefaultPolicyVersionInput) (*iam.SetDefaultPolicyVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SetDefaultPolicyVersionInput) *iam.SetDefaultPolicyVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SetDefaultPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SetDefaultPolicyVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetDefaultPolicyVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SetDefaultPolicyVersionRequest(_a0 *iam.SetDefaultPolicyVersionInput) (*request.Request, *iam.SetDefaultPolicyVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.SetDefaultPolicyVersionOutput
- if rf, ok := ret.Get(0).(func(*iam.SetDefaultPolicyVersionInput) (*request.Request, *iam.SetDefaultPolicyVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SetDefaultPolicyVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SetDefaultPolicyVersionInput) *iam.SetDefaultPolicyVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.SetDefaultPolicyVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetDefaultPolicyVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) SetDefaultPolicyVersionWithContext(_a0 context.Context, _a1 *iam.SetDefaultPolicyVersionInput, _a2 ...request.Option) (*iam.SetDefaultPolicyVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.SetDefaultPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SetDefaultPolicyVersionInput, ...request.Option) (*iam.SetDefaultPolicyVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SetDefaultPolicyVersionInput, ...request.Option) *iam.SetDefaultPolicyVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SetDefaultPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.SetDefaultPolicyVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSecurityTokenServicePreferences provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SetSecurityTokenServicePreferences(_a0 *iam.SetSecurityTokenServicePreferencesInput) (*iam.SetSecurityTokenServicePreferencesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.SetSecurityTokenServicePreferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.SetSecurityTokenServicePreferencesInput) (*iam.SetSecurityTokenServicePreferencesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SetSecurityTokenServicePreferencesInput) *iam.SetSecurityTokenServicePreferencesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SetSecurityTokenServicePreferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SetSecurityTokenServicePreferencesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSecurityTokenServicePreferencesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SetSecurityTokenServicePreferencesRequest(_a0 *iam.SetSecurityTokenServicePreferencesInput) (*request.Request, *iam.SetSecurityTokenServicePreferencesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.SetSecurityTokenServicePreferencesOutput
- if rf, ok := ret.Get(0).(func(*iam.SetSecurityTokenServicePreferencesInput) (*request.Request, *iam.SetSecurityTokenServicePreferencesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SetSecurityTokenServicePreferencesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SetSecurityTokenServicePreferencesInput) *iam.SetSecurityTokenServicePreferencesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.SetSecurityTokenServicePreferencesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetSecurityTokenServicePreferencesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) SetSecurityTokenServicePreferencesWithContext(_a0 context.Context, _a1 *iam.SetSecurityTokenServicePreferencesInput, _a2 ...request.Option) (*iam.SetSecurityTokenServicePreferencesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.SetSecurityTokenServicePreferencesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SetSecurityTokenServicePreferencesInput, ...request.Option) (*iam.SetSecurityTokenServicePreferencesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SetSecurityTokenServicePreferencesInput, ...request.Option) *iam.SetSecurityTokenServicePreferencesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SetSecurityTokenServicePreferencesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.SetSecurityTokenServicePreferencesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SimulateCustomPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SimulateCustomPolicy(_a0 *iam.SimulateCustomPolicyInput) (*iam.SimulatePolicyResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.SimulatePolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.SimulateCustomPolicyInput) (*iam.SimulatePolicyResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SimulateCustomPolicyInput) *iam.SimulatePolicyResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SimulatePolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SimulateCustomPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SimulateCustomPolicyPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) SimulateCustomPolicyPages(_a0 *iam.SimulateCustomPolicyInput, _a1 func(*iam.SimulatePolicyResponse, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.SimulateCustomPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SimulateCustomPolicyPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) SimulateCustomPolicyPagesWithContext(_a0 context.Context, _a1 *iam.SimulateCustomPolicyInput, _a2 func(*iam.SimulatePolicyResponse, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulateCustomPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SimulateCustomPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SimulateCustomPolicyRequest(_a0 *iam.SimulateCustomPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.SimulatePolicyResponse
- if rf, ok := ret.Get(0).(func(*iam.SimulateCustomPolicyInput) (*request.Request, *iam.SimulatePolicyResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SimulateCustomPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SimulateCustomPolicyInput) *iam.SimulatePolicyResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.SimulatePolicyResponse)
- }
- }
-
- return r0, r1
-}
-
-// SimulateCustomPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) SimulateCustomPolicyWithContext(_a0 context.Context, _a1 *iam.SimulateCustomPolicyInput, _a2 ...request.Option) (*iam.SimulatePolicyResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.SimulatePolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulateCustomPolicyInput, ...request.Option) (*iam.SimulatePolicyResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulateCustomPolicyInput, ...request.Option) *iam.SimulatePolicyResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SimulatePolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.SimulateCustomPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SimulatePrincipalPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SimulatePrincipalPolicy(_a0 *iam.SimulatePrincipalPolicyInput) (*iam.SimulatePolicyResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.SimulatePolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.SimulatePrincipalPolicyInput) (*iam.SimulatePolicyResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SimulatePrincipalPolicyInput) *iam.SimulatePolicyResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SimulatePolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SimulatePrincipalPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SimulatePrincipalPolicyPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeIAM) SimulatePrincipalPolicyPages(_a0 *iam.SimulatePrincipalPolicyInput, _a1 func(*iam.SimulatePolicyResponse, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.SimulatePrincipalPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SimulatePrincipalPolicyPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeIAM) SimulatePrincipalPolicyPagesWithContext(_a0 context.Context, _a1 *iam.SimulatePrincipalPolicyInput, _a2 func(*iam.SimulatePolicyResponse, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulatePrincipalPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// SimulatePrincipalPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) SimulatePrincipalPolicyRequest(_a0 *iam.SimulatePrincipalPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.SimulatePolicyResponse
- if rf, ok := ret.Get(0).(func(*iam.SimulatePrincipalPolicyInput) (*request.Request, *iam.SimulatePolicyResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.SimulatePrincipalPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.SimulatePrincipalPolicyInput) *iam.SimulatePolicyResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.SimulatePolicyResponse)
- }
- }
-
- return r0, r1
-}
-
-// SimulatePrincipalPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) SimulatePrincipalPolicyWithContext(_a0 context.Context, _a1 *iam.SimulatePrincipalPolicyInput, _a2 ...request.Option) (*iam.SimulatePolicyResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.SimulatePolicyResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulatePrincipalPolicyInput, ...request.Option) (*iam.SimulatePolicyResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.SimulatePrincipalPolicyInput, ...request.Option) *iam.SimulatePolicyResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.SimulatePolicyResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.SimulatePrincipalPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagInstanceProfile(_a0 *iam.TagInstanceProfileInput) (*iam.TagInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) (*iam.TagInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) *iam.TagInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagInstanceProfileRequest(_a0 *iam.TagInstanceProfileInput) (*request.Request, *iam.TagInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) (*request.Request, *iam.TagInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagInstanceProfileInput) *iam.TagInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagInstanceProfileWithContext(_a0 context.Context, _a1 *iam.TagInstanceProfileInput, _a2 ...request.Option) (*iam.TagInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagInstanceProfileInput, ...request.Option) (*iam.TagInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagInstanceProfileInput, ...request.Option) *iam.TagInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagMFADevice(_a0 *iam.TagMFADeviceInput) (*iam.TagMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) (*iam.TagMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) *iam.TagMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagMFADeviceRequest(_a0 *iam.TagMFADeviceInput) (*request.Request, *iam.TagMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) (*request.Request, *iam.TagMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagMFADeviceInput) *iam.TagMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagMFADeviceWithContext(_a0 context.Context, _a1 *iam.TagMFADeviceInput, _a2 ...request.Option) (*iam.TagMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagMFADeviceInput, ...request.Option) (*iam.TagMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagMFADeviceInput, ...request.Option) *iam.TagMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagOpenIDConnectProvider(_a0 *iam.TagOpenIDConnectProviderInput) (*iam.TagOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) (*iam.TagOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) *iam.TagOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagOpenIDConnectProviderRequest(_a0 *iam.TagOpenIDConnectProviderInput) (*request.Request, *iam.TagOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) (*request.Request, *iam.TagOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagOpenIDConnectProviderInput) *iam.TagOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.TagOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.TagOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagOpenIDConnectProviderInput, ...request.Option) (*iam.TagOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagOpenIDConnectProviderInput, ...request.Option) *iam.TagOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagPolicy(_a0 *iam.TagPolicyInput) (*iam.TagPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) (*iam.TagPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) *iam.TagPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagPolicyRequest(_a0 *iam.TagPolicyInput) (*request.Request, *iam.TagPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) (*request.Request, *iam.TagPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagPolicyInput) *iam.TagPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagPolicyWithContext(_a0 context.Context, _a1 *iam.TagPolicyInput, _a2 ...request.Option) (*iam.TagPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagPolicyInput, ...request.Option) (*iam.TagPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagPolicyInput, ...request.Option) *iam.TagPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagRole(_a0 *iam.TagRoleInput) (*iam.TagRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) (*iam.TagRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagRoleRequest(_a0 *iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagRoleWithContext(_a0 context.Context, _a1 *iam.TagRoleInput, _a2 ...request.Option) (*iam.TagRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagRoleInput, ...request.Option) (*iam.TagRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagRoleInput, ...request.Option) *iam.TagRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagSAMLProvider(_a0 *iam.TagSAMLProviderInput) (*iam.TagSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) (*iam.TagSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) *iam.TagSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagSAMLProviderRequest(_a0 *iam.TagSAMLProviderInput) (*request.Request, *iam.TagSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) (*request.Request, *iam.TagSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagSAMLProviderInput) *iam.TagSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagSAMLProviderWithContext(_a0 context.Context, _a1 *iam.TagSAMLProviderInput, _a2 ...request.Option) (*iam.TagSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagSAMLProviderInput, ...request.Option) (*iam.TagSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagSAMLProviderInput, ...request.Option) *iam.TagSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagServerCertificate(_a0 *iam.TagServerCertificateInput) (*iam.TagServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) (*iam.TagServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) *iam.TagServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagServerCertificateRequest(_a0 *iam.TagServerCertificateInput) (*request.Request, *iam.TagServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) (*request.Request, *iam.TagServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagServerCertificateInput) *iam.TagServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagServerCertificateWithContext(_a0 context.Context, _a1 *iam.TagServerCertificateInput, _a2 ...request.Option) (*iam.TagServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagServerCertificateInput, ...request.Option) (*iam.TagServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagServerCertificateInput, ...request.Option) *iam.TagServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagUser(_a0 *iam.TagUserInput) (*iam.TagUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.TagUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.TagUserInput) (*iam.TagUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *iam.TagUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) TagUserRequest(_a0 *iam.TagUserInput) (*request.Request, *iam.TagUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.TagUserOutput
- if rf, ok := ret.Get(0).(func(*iam.TagUserInput) (*request.Request, *iam.TagUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.TagUserInput) *iam.TagUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.TagUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) TagUserWithContext(_a0 context.Context, _a1 *iam.TagUserInput, _a2 ...request.Option) (*iam.TagUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.TagUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagUserInput, ...request.Option) (*iam.TagUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.TagUserInput, ...request.Option) *iam.TagUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.TagUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.TagUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagInstanceProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagInstanceProfile(_a0 *iam.UntagInstanceProfileInput) (*iam.UntagInstanceProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) (*iam.UntagInstanceProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) *iam.UntagInstanceProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagInstanceProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagInstanceProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagInstanceProfileRequest(_a0 *iam.UntagInstanceProfileInput) (*request.Request, *iam.UntagInstanceProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagInstanceProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) (*request.Request, *iam.UntagInstanceProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagInstanceProfileInput) *iam.UntagInstanceProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagInstanceProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagInstanceProfileWithContext(_a0 context.Context, _a1 *iam.UntagInstanceProfileInput, _a2 ...request.Option) (*iam.UntagInstanceProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagInstanceProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagInstanceProfileInput, ...request.Option) (*iam.UntagInstanceProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagInstanceProfileInput, ...request.Option) *iam.UntagInstanceProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagInstanceProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagInstanceProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagMFADevice provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagMFADevice(_a0 *iam.UntagMFADeviceInput) (*iam.UntagMFADeviceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) (*iam.UntagMFADeviceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) *iam.UntagMFADeviceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagMFADeviceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagMFADeviceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagMFADeviceRequest(_a0 *iam.UntagMFADeviceInput) (*request.Request, *iam.UntagMFADeviceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagMFADeviceOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) (*request.Request, *iam.UntagMFADeviceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagMFADeviceInput) *iam.UntagMFADeviceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagMFADeviceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagMFADeviceWithContext(_a0 context.Context, _a1 *iam.UntagMFADeviceInput, _a2 ...request.Option) (*iam.UntagMFADeviceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagMFADeviceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagMFADeviceInput, ...request.Option) (*iam.UntagMFADeviceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagMFADeviceInput, ...request.Option) *iam.UntagMFADeviceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagMFADeviceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagMFADeviceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagOpenIDConnectProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagOpenIDConnectProvider(_a0 *iam.UntagOpenIDConnectProviderInput) (*iam.UntagOpenIDConnectProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) (*iam.UntagOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) *iam.UntagOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagOpenIDConnectProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagOpenIDConnectProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagOpenIDConnectProviderRequest(_a0 *iam.UntagOpenIDConnectProviderInput) (*request.Request, *iam.UntagOpenIDConnectProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagOpenIDConnectProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) (*request.Request, *iam.UntagOpenIDConnectProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagOpenIDConnectProviderInput) *iam.UntagOpenIDConnectProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagOpenIDConnectProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.UntagOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.UntagOpenIDConnectProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagOpenIDConnectProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagOpenIDConnectProviderInput, ...request.Option) (*iam.UntagOpenIDConnectProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagOpenIDConnectProviderInput, ...request.Option) *iam.UntagOpenIDConnectProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagOpenIDConnectProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagOpenIDConnectProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagPolicy(_a0 *iam.UntagPolicyInput) (*iam.UntagPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) (*iam.UntagPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) *iam.UntagPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagPolicyRequest(_a0 *iam.UntagPolicyInput) (*request.Request, *iam.UntagPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) (*request.Request, *iam.UntagPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagPolicyInput) *iam.UntagPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagPolicyWithContext(_a0 context.Context, _a1 *iam.UntagPolicyInput, _a2 ...request.Option) (*iam.UntagPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagPolicyInput, ...request.Option) (*iam.UntagPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagPolicyInput, ...request.Option) *iam.UntagPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagRole(_a0 *iam.UntagRoleInput) (*iam.UntagRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) (*iam.UntagRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagRoleRequest(_a0 *iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagRoleWithContext(_a0 context.Context, _a1 *iam.UntagRoleInput, _a2 ...request.Option) (*iam.UntagRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagRoleInput, ...request.Option) (*iam.UntagRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagRoleInput, ...request.Option) *iam.UntagRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagSAMLProvider(_a0 *iam.UntagSAMLProviderInput) (*iam.UntagSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) (*iam.UntagSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) *iam.UntagSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagSAMLProviderRequest(_a0 *iam.UntagSAMLProviderInput) (*request.Request, *iam.UntagSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) (*request.Request, *iam.UntagSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagSAMLProviderInput) *iam.UntagSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagSAMLProviderWithContext(_a0 context.Context, _a1 *iam.UntagSAMLProviderInput, _a2 ...request.Option) (*iam.UntagSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagSAMLProviderInput, ...request.Option) (*iam.UntagSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagSAMLProviderInput, ...request.Option) *iam.UntagSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagServerCertificate(_a0 *iam.UntagServerCertificateInput) (*iam.UntagServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) (*iam.UntagServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) *iam.UntagServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagServerCertificateRequest(_a0 *iam.UntagServerCertificateInput) (*request.Request, *iam.UntagServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) (*request.Request, *iam.UntagServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagServerCertificateInput) *iam.UntagServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagServerCertificateWithContext(_a0 context.Context, _a1 *iam.UntagServerCertificateInput, _a2 ...request.Option) (*iam.UntagServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagServerCertificateInput, ...request.Option) (*iam.UntagServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagServerCertificateInput, ...request.Option) *iam.UntagServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagUser(_a0 *iam.UntagUserInput) (*iam.UntagUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UntagUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UntagUserInput) (*iam.UntagUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagUserInput) *iam.UntagUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UntagUserRequest(_a0 *iam.UntagUserInput) (*request.Request, *iam.UntagUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UntagUserOutput
- if rf, ok := ret.Get(0).(func(*iam.UntagUserInput) (*request.Request, *iam.UntagUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UntagUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UntagUserInput) *iam.UntagUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UntagUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UntagUserWithContext(_a0 context.Context, _a1 *iam.UntagUserInput, _a2 ...request.Option) (*iam.UntagUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UntagUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagUserInput, ...request.Option) (*iam.UntagUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagUserInput, ...request.Option) *iam.UntagUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UntagUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccessKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAccessKey(_a0 *iam.UpdateAccessKeyInput) (*iam.UpdateAccessKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccessKeyInput) (*iam.UpdateAccessKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccessKeyInput) *iam.UpdateAccessKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAccessKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccessKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAccessKeyRequest(_a0 *iam.UpdateAccessKeyInput) (*request.Request, *iam.UpdateAccessKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateAccessKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccessKeyInput) (*request.Request, *iam.UpdateAccessKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccessKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAccessKeyInput) *iam.UpdateAccessKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateAccessKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAccessKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateAccessKeyWithContext(_a0 context.Context, _a1 *iam.UpdateAccessKeyInput, _a2 ...request.Option) (*iam.UpdateAccessKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateAccessKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAccessKeyInput, ...request.Option) (*iam.UpdateAccessKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAccessKeyInput, ...request.Option) *iam.UpdateAccessKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAccessKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateAccessKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccountPasswordPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAccountPasswordPolicy(_a0 *iam.UpdateAccountPasswordPolicyInput) (*iam.UpdateAccountPasswordPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccountPasswordPolicyInput) (*iam.UpdateAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccountPasswordPolicyInput) *iam.UpdateAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAccountPasswordPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAccountPasswordPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAccountPasswordPolicyRequest(_a0 *iam.UpdateAccountPasswordPolicyInput) (*request.Request, *iam.UpdateAccountPasswordPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateAccountPasswordPolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccountPasswordPolicyInput) (*request.Request, *iam.UpdateAccountPasswordPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAccountPasswordPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAccountPasswordPolicyInput) *iam.UpdateAccountPasswordPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateAccountPasswordPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAccountPasswordPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateAccountPasswordPolicyWithContext(_a0 context.Context, _a1 *iam.UpdateAccountPasswordPolicyInput, _a2 ...request.Option) (*iam.UpdateAccountPasswordPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateAccountPasswordPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAccountPasswordPolicyInput, ...request.Option) (*iam.UpdateAccountPasswordPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAccountPasswordPolicyInput, ...request.Option) *iam.UpdateAccountPasswordPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAccountPasswordPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateAccountPasswordPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAssumeRolePolicy provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAssumeRolePolicy(_a0 *iam.UpdateAssumeRolePolicyInput) (*iam.UpdateAssumeRolePolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateAssumeRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateAssumeRolePolicyInput) (*iam.UpdateAssumeRolePolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAssumeRolePolicyInput) *iam.UpdateAssumeRolePolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAssumeRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAssumeRolePolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAssumeRolePolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateAssumeRolePolicyRequest(_a0 *iam.UpdateAssumeRolePolicyInput) (*request.Request, *iam.UpdateAssumeRolePolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateAssumeRolePolicyOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateAssumeRolePolicyInput) (*request.Request, *iam.UpdateAssumeRolePolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateAssumeRolePolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateAssumeRolePolicyInput) *iam.UpdateAssumeRolePolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateAssumeRolePolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAssumeRolePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateAssumeRolePolicyWithContext(_a0 context.Context, _a1 *iam.UpdateAssumeRolePolicyInput, _a2 ...request.Option) (*iam.UpdateAssumeRolePolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateAssumeRolePolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAssumeRolePolicyInput, ...request.Option) (*iam.UpdateAssumeRolePolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateAssumeRolePolicyInput, ...request.Option) *iam.UpdateAssumeRolePolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateAssumeRolePolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateAssumeRolePolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGroup provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateGroup(_a0 *iam.UpdateGroupInput) (*iam.UpdateGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateGroupInput) (*iam.UpdateGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateGroupInput) *iam.UpdateGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateGroupRequest(_a0 *iam.UpdateGroupInput) (*request.Request, *iam.UpdateGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateGroupOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateGroupInput) (*request.Request, *iam.UpdateGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateGroupInput) *iam.UpdateGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateGroupWithContext(_a0 context.Context, _a1 *iam.UpdateGroupInput, _a2 ...request.Option) (*iam.UpdateGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateGroupInput, ...request.Option) (*iam.UpdateGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateGroupInput, ...request.Option) *iam.UpdateGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateLoginProfile provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateLoginProfile(_a0 *iam.UpdateLoginProfileInput) (*iam.UpdateLoginProfileOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateLoginProfileInput) (*iam.UpdateLoginProfileOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateLoginProfileInput) *iam.UpdateLoginProfileOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateLoginProfileInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateLoginProfileRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateLoginProfileRequest(_a0 *iam.UpdateLoginProfileInput) (*request.Request, *iam.UpdateLoginProfileOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateLoginProfileOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateLoginProfileInput) (*request.Request, *iam.UpdateLoginProfileOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateLoginProfileInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateLoginProfileInput) *iam.UpdateLoginProfileOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateLoginProfileOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateLoginProfileWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateLoginProfileWithContext(_a0 context.Context, _a1 *iam.UpdateLoginProfileInput, _a2 ...request.Option) (*iam.UpdateLoginProfileOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateLoginProfileOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateLoginProfileInput, ...request.Option) (*iam.UpdateLoginProfileOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateLoginProfileInput, ...request.Option) *iam.UpdateLoginProfileOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateLoginProfileOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateLoginProfileInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOpenIDConnectProviderThumbprint provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateOpenIDConnectProviderThumbprint(_a0 *iam.UpdateOpenIDConnectProviderThumbprintInput) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateOpenIDConnectProviderThumbprintOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) *iam.UpdateOpenIDConnectProviderThumbprintOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateOpenIDConnectProviderThumbprintOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateOpenIDConnectProviderThumbprintRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateOpenIDConnectProviderThumbprintRequest(_a0 *iam.UpdateOpenIDConnectProviderThumbprintInput) (*request.Request, *iam.UpdateOpenIDConnectProviderThumbprintOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateOpenIDConnectProviderThumbprintOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) (*request.Request, *iam.UpdateOpenIDConnectProviderThumbprintOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateOpenIDConnectProviderThumbprintInput) *iam.UpdateOpenIDConnectProviderThumbprintOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateOpenIDConnectProviderThumbprintOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateOpenIDConnectProviderThumbprintWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateOpenIDConnectProviderThumbprintWithContext(_a0 context.Context, _a1 *iam.UpdateOpenIDConnectProviderThumbprintInput, _a2 ...request.Option) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateOpenIDConnectProviderThumbprintOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateOpenIDConnectProviderThumbprintInput, ...request.Option) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateOpenIDConnectProviderThumbprintInput, ...request.Option) *iam.UpdateOpenIDConnectProviderThumbprintOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateOpenIDConnectProviderThumbprintOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateOpenIDConnectProviderThumbprintInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRole provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateRole(_a0 *iam.UpdateRoleInput) (*iam.UpdateRoleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleInput) (*iam.UpdateRoleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleInput) *iam.UpdateRoleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateRoleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRoleDescription provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateRoleDescription(_a0 *iam.UpdateRoleDescriptionInput) (*iam.UpdateRoleDescriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateRoleDescriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleDescriptionInput) (*iam.UpdateRoleDescriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleDescriptionInput) *iam.UpdateRoleDescriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateRoleDescriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateRoleDescriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRoleDescriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateRoleDescriptionRequest(_a0 *iam.UpdateRoleDescriptionInput) (*request.Request, *iam.UpdateRoleDescriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateRoleDescriptionOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleDescriptionInput) (*request.Request, *iam.UpdateRoleDescriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleDescriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateRoleDescriptionInput) *iam.UpdateRoleDescriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateRoleDescriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRoleDescriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateRoleDescriptionWithContext(_a0 context.Context, _a1 *iam.UpdateRoleDescriptionInput, _a2 ...request.Option) (*iam.UpdateRoleDescriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateRoleDescriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateRoleDescriptionInput, ...request.Option) (*iam.UpdateRoleDescriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateRoleDescriptionInput, ...request.Option) *iam.UpdateRoleDescriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateRoleDescriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateRoleDescriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRoleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateRoleRequest(_a0 *iam.UpdateRoleInput) (*request.Request, *iam.UpdateRoleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateRoleOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleInput) (*request.Request, *iam.UpdateRoleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateRoleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateRoleInput) *iam.UpdateRoleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateRoleOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateRoleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateRoleWithContext(_a0 context.Context, _a1 *iam.UpdateRoleInput, _a2 ...request.Option) (*iam.UpdateRoleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateRoleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateRoleInput, ...request.Option) (*iam.UpdateRoleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateRoleInput, ...request.Option) *iam.UpdateRoleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateRoleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateRoleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSAMLProvider provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSAMLProvider(_a0 *iam.UpdateSAMLProviderInput) (*iam.UpdateSAMLProviderOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateSAMLProviderInput) (*iam.UpdateSAMLProviderOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSAMLProviderInput) *iam.UpdateSAMLProviderOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSAMLProviderInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSAMLProviderRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSAMLProviderRequest(_a0 *iam.UpdateSAMLProviderInput) (*request.Request, *iam.UpdateSAMLProviderOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateSAMLProviderOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateSAMLProviderInput) (*request.Request, *iam.UpdateSAMLProviderOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSAMLProviderInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSAMLProviderInput) *iam.UpdateSAMLProviderOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateSAMLProviderOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateSAMLProviderWithContext(_a0 context.Context, _a1 *iam.UpdateSAMLProviderInput, _a2 ...request.Option) (*iam.UpdateSAMLProviderOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateSAMLProviderOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSAMLProviderInput, ...request.Option) (*iam.UpdateSAMLProviderOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSAMLProviderInput, ...request.Option) *iam.UpdateSAMLProviderOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSAMLProviderOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateSAMLProviderInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSSHPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSSHPublicKey(_a0 *iam.UpdateSSHPublicKeyInput) (*iam.UpdateSSHPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateSSHPublicKeyInput) (*iam.UpdateSSHPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSSHPublicKeyInput) *iam.UpdateSSHPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSSHPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSSHPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSSHPublicKeyRequest(_a0 *iam.UpdateSSHPublicKeyInput) (*request.Request, *iam.UpdateSSHPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateSSHPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateSSHPublicKeyInput) (*request.Request, *iam.UpdateSSHPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSSHPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSSHPublicKeyInput) *iam.UpdateSSHPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateSSHPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateSSHPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateSSHPublicKeyWithContext(_a0 context.Context, _a1 *iam.UpdateSSHPublicKeyInput, _a2 ...request.Option) (*iam.UpdateSSHPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSSHPublicKeyInput, ...request.Option) (*iam.UpdateSSHPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSSHPublicKeyInput, ...request.Option) *iam.UpdateSSHPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateSSHPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateServerCertificate(_a0 *iam.UpdateServerCertificateInput) (*iam.UpdateServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateServerCertificateInput) (*iam.UpdateServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateServerCertificateInput) *iam.UpdateServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateServerCertificateRequest(_a0 *iam.UpdateServerCertificateInput) (*request.Request, *iam.UpdateServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateServerCertificateInput) (*request.Request, *iam.UpdateServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateServerCertificateInput) *iam.UpdateServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateServerCertificateWithContext(_a0 context.Context, _a1 *iam.UpdateServerCertificateInput, _a2 ...request.Option) (*iam.UpdateServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateServerCertificateInput, ...request.Option) (*iam.UpdateServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateServerCertificateInput, ...request.Option) *iam.UpdateServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateServiceSpecificCredential provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateServiceSpecificCredential(_a0 *iam.UpdateServiceSpecificCredentialInput) (*iam.UpdateServiceSpecificCredentialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateServiceSpecificCredentialInput) (*iam.UpdateServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateServiceSpecificCredentialInput) *iam.UpdateServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateServiceSpecificCredentialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateServiceSpecificCredentialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateServiceSpecificCredentialRequest(_a0 *iam.UpdateServiceSpecificCredentialInput) (*request.Request, *iam.UpdateServiceSpecificCredentialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateServiceSpecificCredentialOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateServiceSpecificCredentialInput) (*request.Request, *iam.UpdateServiceSpecificCredentialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateServiceSpecificCredentialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateServiceSpecificCredentialInput) *iam.UpdateServiceSpecificCredentialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateServiceSpecificCredentialOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateServiceSpecificCredentialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateServiceSpecificCredentialWithContext(_a0 context.Context, _a1 *iam.UpdateServiceSpecificCredentialInput, _a2 ...request.Option) (*iam.UpdateServiceSpecificCredentialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateServiceSpecificCredentialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateServiceSpecificCredentialInput, ...request.Option) (*iam.UpdateServiceSpecificCredentialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateServiceSpecificCredentialInput, ...request.Option) *iam.UpdateServiceSpecificCredentialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateServiceSpecificCredentialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateServiceSpecificCredentialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSigningCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSigningCertificate(_a0 *iam.UpdateSigningCertificateInput) (*iam.UpdateSigningCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateSigningCertificateInput) (*iam.UpdateSigningCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSigningCertificateInput) *iam.UpdateSigningCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSigningCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateSigningCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateSigningCertificateRequest(_a0 *iam.UpdateSigningCertificateInput) (*request.Request, *iam.UpdateSigningCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateSigningCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateSigningCertificateInput) (*request.Request, *iam.UpdateSigningCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateSigningCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateSigningCertificateInput) *iam.UpdateSigningCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateSigningCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateSigningCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateSigningCertificateWithContext(_a0 context.Context, _a1 *iam.UpdateSigningCertificateInput, _a2 ...request.Option) (*iam.UpdateSigningCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSigningCertificateInput, ...request.Option) (*iam.UpdateSigningCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateSigningCertificateInput, ...request.Option) *iam.UpdateSigningCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateSigningCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUser provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateUser(_a0 *iam.UpdateUserInput) (*iam.UpdateUserOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UpdateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UpdateUserInput) (*iam.UpdateUserOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateUserInput) *iam.UpdateUserOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateUserInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateUserRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UpdateUserRequest(_a0 *iam.UpdateUserInput) (*request.Request, *iam.UpdateUserOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UpdateUserOutput
- if rf, ok := ret.Get(0).(func(*iam.UpdateUserInput) (*request.Request, *iam.UpdateUserOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UpdateUserInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UpdateUserInput) *iam.UpdateUserOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UpdateUserOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateUserWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UpdateUserWithContext(_a0 context.Context, _a1 *iam.UpdateUserInput, _a2 ...request.Option) (*iam.UpdateUserOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UpdateUserOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateUserInput, ...request.Option) (*iam.UpdateUserOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UpdateUserInput, ...request.Option) *iam.UpdateUserOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UpdateUserOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UpdateUserInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadSSHPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadSSHPublicKey(_a0 *iam.UploadSSHPublicKeyInput) (*iam.UploadSSHPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UploadSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UploadSSHPublicKeyInput) (*iam.UploadSSHPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadSSHPublicKeyInput) *iam.UploadSSHPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadSSHPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadSSHPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadSSHPublicKeyRequest(_a0 *iam.UploadSSHPublicKeyInput) (*request.Request, *iam.UploadSSHPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UploadSSHPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*iam.UploadSSHPublicKeyInput) (*request.Request, *iam.UploadSSHPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadSSHPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadSSHPublicKeyInput) *iam.UploadSSHPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UploadSSHPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadSSHPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UploadSSHPublicKeyWithContext(_a0 context.Context, _a1 *iam.UploadSSHPublicKeyInput, _a2 ...request.Option) (*iam.UploadSSHPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UploadSSHPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadSSHPublicKeyInput, ...request.Option) (*iam.UploadSSHPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadSSHPublicKeyInput, ...request.Option) *iam.UploadSSHPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadSSHPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UploadSSHPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadServerCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadServerCertificate(_a0 *iam.UploadServerCertificateInput) (*iam.UploadServerCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UploadServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UploadServerCertificateInput) (*iam.UploadServerCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadServerCertificateInput) *iam.UploadServerCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadServerCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadServerCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadServerCertificateRequest(_a0 *iam.UploadServerCertificateInput) (*request.Request, *iam.UploadServerCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UploadServerCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.UploadServerCertificateInput) (*request.Request, *iam.UploadServerCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadServerCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadServerCertificateInput) *iam.UploadServerCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UploadServerCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UploadServerCertificateWithContext(_a0 context.Context, _a1 *iam.UploadServerCertificateInput, _a2 ...request.Option) (*iam.UploadServerCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UploadServerCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadServerCertificateInput, ...request.Option) (*iam.UploadServerCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadServerCertificateInput, ...request.Option) *iam.UploadServerCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadServerCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UploadServerCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadSigningCertificate provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadSigningCertificate(_a0 *iam.UploadSigningCertificateInput) (*iam.UploadSigningCertificateOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *iam.UploadSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*iam.UploadSigningCertificateInput) (*iam.UploadSigningCertificateOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadSigningCertificateInput) *iam.UploadSigningCertificateOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadSigningCertificateInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadSigningCertificateRequest provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) UploadSigningCertificateRequest(_a0 *iam.UploadSigningCertificateInput) (*request.Request, *iam.UploadSigningCertificateOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *iam.UploadSigningCertificateOutput
- if rf, ok := ret.Get(0).(func(*iam.UploadSigningCertificateInput) (*request.Request, *iam.UploadSigningCertificateOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*iam.UploadSigningCertificateInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*iam.UploadSigningCertificateInput) *iam.UploadSigningCertificateOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*iam.UploadSigningCertificateOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadSigningCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) UploadSigningCertificateWithContext(_a0 context.Context, _a1 *iam.UploadSigningCertificateInput, _a2 ...request.Option) (*iam.UploadSigningCertificateOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *iam.UploadSigningCertificateOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadSigningCertificateInput, ...request.Option) (*iam.UploadSigningCertificateOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *iam.UploadSigningCertificateInput, ...request.Option) *iam.UploadSigningCertificateOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*iam.UploadSigningCertificateOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *iam.UploadSigningCertificateInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilInstanceProfileExists provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) WaitUntilInstanceProfileExists(_a0 *iam.GetInstanceProfileInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetInstanceProfileInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilInstanceProfileExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) WaitUntilInstanceProfileExistsWithContext(_a0 context.Context, _a1 *iam.GetInstanceProfileInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetInstanceProfileInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilPolicyExists provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) WaitUntilPolicyExists(_a0 *iam.GetPolicyInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetPolicyInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilPolicyExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) WaitUntilPolicyExistsWithContext(_a0 context.Context, _a1 *iam.GetPolicyInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetPolicyInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilRoleExists provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) WaitUntilRoleExists(_a0 *iam.GetRoleInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetRoleInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilRoleExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) WaitUntilRoleExistsWithContext(_a0 context.Context, _a1 *iam.GetRoleInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetRoleInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilUserExists provides a mock function with given fields: _a0
-func (_m *MockFakeIAM) WaitUntilUserExists(_a0 *iam.GetUserInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*iam.GetUserInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilUserExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeIAM) WaitUntilUserExistsWithContext(_a0 context.Context, _a1 *iam.GetUserInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *iam.GetUserInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeIAM interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeIAM creates a new instance of MockFakeIAM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeIAM(t mockConstructorTestingTNewMockFakeIAM) *MockFakeIAM {
- mock := &MockFakeIAM{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeKMS.go b/test/aws/mock_FakeKMS.go
deleted file mode 100644
index 9e9c7f134..000000000
--- a/test/aws/mock_FakeKMS.go
+++ /dev/null
@@ -1,4627 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- kms "github.com/aws/aws-sdk-go/service/kms"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeKMS is an autogenerated mock type for the FakeKMS type
-type MockFakeKMS struct {
- mock.Mock
-}
-
-// CancelKeyDeletion provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CancelKeyDeletion(_a0 *kms.CancelKeyDeletionInput) (*kms.CancelKeyDeletionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.CancelKeyDeletionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.CancelKeyDeletionInput) (*kms.CancelKeyDeletionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CancelKeyDeletionInput) *kms.CancelKeyDeletionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CancelKeyDeletionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CancelKeyDeletionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelKeyDeletionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CancelKeyDeletionRequest(_a0 *kms.CancelKeyDeletionInput) (*request.Request, *kms.CancelKeyDeletionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.CancelKeyDeletionOutput
- if rf, ok := ret.Get(0).(func(*kms.CancelKeyDeletionInput) (*request.Request, *kms.CancelKeyDeletionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CancelKeyDeletionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CancelKeyDeletionInput) *kms.CancelKeyDeletionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.CancelKeyDeletionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelKeyDeletionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) CancelKeyDeletionWithContext(_a0 context.Context, _a1 *kms.CancelKeyDeletionInput, _a2 ...request.Option) (*kms.CancelKeyDeletionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.CancelKeyDeletionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CancelKeyDeletionInput, ...request.Option) (*kms.CancelKeyDeletionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CancelKeyDeletionInput, ...request.Option) *kms.CancelKeyDeletionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CancelKeyDeletionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.CancelKeyDeletionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConnectCustomKeyStore provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ConnectCustomKeyStore(_a0 *kms.ConnectCustomKeyStoreInput) (*kms.ConnectCustomKeyStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ConnectCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ConnectCustomKeyStoreInput) (*kms.ConnectCustomKeyStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ConnectCustomKeyStoreInput) *kms.ConnectCustomKeyStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ConnectCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ConnectCustomKeyStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConnectCustomKeyStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ConnectCustomKeyStoreRequest(_a0 *kms.ConnectCustomKeyStoreInput) (*request.Request, *kms.ConnectCustomKeyStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ConnectCustomKeyStoreOutput
- if rf, ok := ret.Get(0).(func(*kms.ConnectCustomKeyStoreInput) (*request.Request, *kms.ConnectCustomKeyStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ConnectCustomKeyStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ConnectCustomKeyStoreInput) *kms.ConnectCustomKeyStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ConnectCustomKeyStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// ConnectCustomKeyStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ConnectCustomKeyStoreWithContext(_a0 context.Context, _a1 *kms.ConnectCustomKeyStoreInput, _a2 ...request.Option) (*kms.ConnectCustomKeyStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ConnectCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ConnectCustomKeyStoreInput, ...request.Option) (*kms.ConnectCustomKeyStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ConnectCustomKeyStoreInput, ...request.Option) *kms.ConnectCustomKeyStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ConnectCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ConnectCustomKeyStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAlias provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateAlias(_a0 *kms.CreateAliasInput) (*kms.CreateAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.CreateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.CreateAliasInput) (*kms.CreateAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateAliasInput) *kms.CreateAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateAliasRequest(_a0 *kms.CreateAliasInput) (*request.Request, *kms.CreateAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.CreateAliasOutput
- if rf, ok := ret.Get(0).(func(*kms.CreateAliasInput) (*request.Request, *kms.CreateAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateAliasInput) *kms.CreateAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.CreateAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) CreateAliasWithContext(_a0 context.Context, _a1 *kms.CreateAliasInput, _a2 ...request.Option) (*kms.CreateAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.CreateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateAliasInput, ...request.Option) (*kms.CreateAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateAliasInput, ...request.Option) *kms.CreateAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.CreateAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomKeyStore provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateCustomKeyStore(_a0 *kms.CreateCustomKeyStoreInput) (*kms.CreateCustomKeyStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.CreateCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.CreateCustomKeyStoreInput) (*kms.CreateCustomKeyStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateCustomKeyStoreInput) *kms.CreateCustomKeyStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateCustomKeyStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomKeyStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateCustomKeyStoreRequest(_a0 *kms.CreateCustomKeyStoreInput) (*request.Request, *kms.CreateCustomKeyStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.CreateCustomKeyStoreOutput
- if rf, ok := ret.Get(0).(func(*kms.CreateCustomKeyStoreInput) (*request.Request, *kms.CreateCustomKeyStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateCustomKeyStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateCustomKeyStoreInput) *kms.CreateCustomKeyStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.CreateCustomKeyStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCustomKeyStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) CreateCustomKeyStoreWithContext(_a0 context.Context, _a1 *kms.CreateCustomKeyStoreInput, _a2 ...request.Option) (*kms.CreateCustomKeyStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.CreateCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateCustomKeyStoreInput, ...request.Option) (*kms.CreateCustomKeyStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateCustomKeyStoreInput, ...request.Option) *kms.CreateCustomKeyStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.CreateCustomKeyStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGrant provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateGrant(_a0 *kms.CreateGrantInput) (*kms.CreateGrantOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.CreateGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.CreateGrantInput) (*kms.CreateGrantOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateGrantInput) *kms.CreateGrantOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateGrantInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGrantRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateGrantRequest(_a0 *kms.CreateGrantInput) (*request.Request, *kms.CreateGrantOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.CreateGrantOutput
- if rf, ok := ret.Get(0).(func(*kms.CreateGrantInput) (*request.Request, *kms.CreateGrantOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateGrantInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateGrantInput) *kms.CreateGrantOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.CreateGrantOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateGrantWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) CreateGrantWithContext(_a0 context.Context, _a1 *kms.CreateGrantInput, _a2 ...request.Option) (*kms.CreateGrantOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.CreateGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateGrantInput, ...request.Option) (*kms.CreateGrantOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateGrantInput, ...request.Option) *kms.CreateGrantOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.CreateGrantInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateKey(_a0 *kms.CreateKeyInput) (*kms.CreateKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.CreateKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.CreateKeyInput) (*kms.CreateKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateKeyInput) *kms.CreateKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) CreateKeyRequest(_a0 *kms.CreateKeyInput) (*request.Request, *kms.CreateKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.CreateKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.CreateKeyInput) (*request.Request, *kms.CreateKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.CreateKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.CreateKeyInput) *kms.CreateKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.CreateKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) CreateKeyWithContext(_a0 context.Context, _a1 *kms.CreateKeyInput, _a2 ...request.Option) (*kms.CreateKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.CreateKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateKeyInput, ...request.Option) (*kms.CreateKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.CreateKeyInput, ...request.Option) *kms.CreateKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.CreateKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.CreateKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Decrypt provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) Decrypt(_a0 *kms.DecryptInput) (*kms.DecryptOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DecryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DecryptInput) (*kms.DecryptOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DecryptInput) *kms.DecryptOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DecryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DecryptInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DecryptRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DecryptRequest(_a0 *kms.DecryptInput) (*request.Request, *kms.DecryptOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DecryptOutput
- if rf, ok := ret.Get(0).(func(*kms.DecryptInput) (*request.Request, *kms.DecryptOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DecryptInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DecryptInput) *kms.DecryptOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DecryptOutput)
- }
- }
-
- return r0, r1
-}
-
-// DecryptWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DecryptWithContext(_a0 context.Context, _a1 *kms.DecryptInput, _a2 ...request.Option) (*kms.DecryptOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DecryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DecryptInput, ...request.Option) (*kms.DecryptOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DecryptInput, ...request.Option) *kms.DecryptOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DecryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DecryptInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAlias provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteAlias(_a0 *kms.DeleteAliasInput) (*kms.DeleteAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DeleteAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DeleteAliasInput) (*kms.DeleteAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteAliasInput) *kms.DeleteAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteAliasRequest(_a0 *kms.DeleteAliasInput) (*request.Request, *kms.DeleteAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DeleteAliasOutput
- if rf, ok := ret.Get(0).(func(*kms.DeleteAliasInput) (*request.Request, *kms.DeleteAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteAliasInput) *kms.DeleteAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DeleteAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DeleteAliasWithContext(_a0 context.Context, _a1 *kms.DeleteAliasInput, _a2 ...request.Option) (*kms.DeleteAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DeleteAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteAliasInput, ...request.Option) (*kms.DeleteAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteAliasInput, ...request.Option) *kms.DeleteAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DeleteAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomKeyStore provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteCustomKeyStore(_a0 *kms.DeleteCustomKeyStoreInput) (*kms.DeleteCustomKeyStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DeleteCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DeleteCustomKeyStoreInput) (*kms.DeleteCustomKeyStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteCustomKeyStoreInput) *kms.DeleteCustomKeyStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteCustomKeyStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomKeyStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteCustomKeyStoreRequest(_a0 *kms.DeleteCustomKeyStoreInput) (*request.Request, *kms.DeleteCustomKeyStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DeleteCustomKeyStoreOutput
- if rf, ok := ret.Get(0).(func(*kms.DeleteCustomKeyStoreInput) (*request.Request, *kms.DeleteCustomKeyStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteCustomKeyStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteCustomKeyStoreInput) *kms.DeleteCustomKeyStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DeleteCustomKeyStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCustomKeyStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DeleteCustomKeyStoreWithContext(_a0 context.Context, _a1 *kms.DeleteCustomKeyStoreInput, _a2 ...request.Option) (*kms.DeleteCustomKeyStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DeleteCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteCustomKeyStoreInput, ...request.Option) (*kms.DeleteCustomKeyStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteCustomKeyStoreInput, ...request.Option) *kms.DeleteCustomKeyStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DeleteCustomKeyStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteImportedKeyMaterial provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteImportedKeyMaterial(_a0 *kms.DeleteImportedKeyMaterialInput) (*kms.DeleteImportedKeyMaterialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DeleteImportedKeyMaterialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DeleteImportedKeyMaterialInput) (*kms.DeleteImportedKeyMaterialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteImportedKeyMaterialInput) *kms.DeleteImportedKeyMaterialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteImportedKeyMaterialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteImportedKeyMaterialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteImportedKeyMaterialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DeleteImportedKeyMaterialRequest(_a0 *kms.DeleteImportedKeyMaterialInput) (*request.Request, *kms.DeleteImportedKeyMaterialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DeleteImportedKeyMaterialOutput
- if rf, ok := ret.Get(0).(func(*kms.DeleteImportedKeyMaterialInput) (*request.Request, *kms.DeleteImportedKeyMaterialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DeleteImportedKeyMaterialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DeleteImportedKeyMaterialInput) *kms.DeleteImportedKeyMaterialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DeleteImportedKeyMaterialOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteImportedKeyMaterialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DeleteImportedKeyMaterialWithContext(_a0 context.Context, _a1 *kms.DeleteImportedKeyMaterialInput, _a2 ...request.Option) (*kms.DeleteImportedKeyMaterialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DeleteImportedKeyMaterialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteImportedKeyMaterialInput, ...request.Option) (*kms.DeleteImportedKeyMaterialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DeleteImportedKeyMaterialInput, ...request.Option) *kms.DeleteImportedKeyMaterialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DeleteImportedKeyMaterialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DeleteImportedKeyMaterialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCustomKeyStores provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DescribeCustomKeyStores(_a0 *kms.DescribeCustomKeyStoresInput) (*kms.DescribeCustomKeyStoresOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DescribeCustomKeyStoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DescribeCustomKeyStoresInput) (*kms.DescribeCustomKeyStoresOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DescribeCustomKeyStoresInput) *kms.DescribeCustomKeyStoresOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DescribeCustomKeyStoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DescribeCustomKeyStoresInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCustomKeyStoresPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) DescribeCustomKeyStoresPages(_a0 *kms.DescribeCustomKeyStoresInput, _a1 func(*kms.DescribeCustomKeyStoresOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.DescribeCustomKeyStoresInput, func(*kms.DescribeCustomKeyStoresOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCustomKeyStoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) DescribeCustomKeyStoresPagesWithContext(_a0 context.Context, _a1 *kms.DescribeCustomKeyStoresInput, _a2 func(*kms.DescribeCustomKeyStoresOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DescribeCustomKeyStoresInput, func(*kms.DescribeCustomKeyStoresOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCustomKeyStoresRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DescribeCustomKeyStoresRequest(_a0 *kms.DescribeCustomKeyStoresInput) (*request.Request, *kms.DescribeCustomKeyStoresOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DescribeCustomKeyStoresOutput
- if rf, ok := ret.Get(0).(func(*kms.DescribeCustomKeyStoresInput) (*request.Request, *kms.DescribeCustomKeyStoresOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DescribeCustomKeyStoresInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DescribeCustomKeyStoresInput) *kms.DescribeCustomKeyStoresOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DescribeCustomKeyStoresOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCustomKeyStoresWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DescribeCustomKeyStoresWithContext(_a0 context.Context, _a1 *kms.DescribeCustomKeyStoresInput, _a2 ...request.Option) (*kms.DescribeCustomKeyStoresOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DescribeCustomKeyStoresOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DescribeCustomKeyStoresInput, ...request.Option) (*kms.DescribeCustomKeyStoresOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DescribeCustomKeyStoresInput, ...request.Option) *kms.DescribeCustomKeyStoresOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DescribeCustomKeyStoresOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DescribeCustomKeyStoresInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DescribeKey(_a0 *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DescribeKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DescribeKeyInput) *kms.DescribeKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DescribeKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DescribeKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DescribeKeyRequest(_a0 *kms.DescribeKeyInput) (*request.Request, *kms.DescribeKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DescribeKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.DescribeKeyInput) (*request.Request, *kms.DescribeKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DescribeKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DescribeKeyInput) *kms.DescribeKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DescribeKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DescribeKeyWithContext(_a0 context.Context, _a1 *kms.DescribeKeyInput, _a2 ...request.Option) (*kms.DescribeKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DescribeKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DescribeKeyInput, ...request.Option) (*kms.DescribeKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DescribeKeyInput, ...request.Option) *kms.DescribeKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DescribeKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DescribeKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisableKey(_a0 *kms.DisableKeyInput) (*kms.DisableKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DisableKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyInput) (*kms.DisableKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyInput) *kms.DisableKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisableKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisableKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisableKeyRequest(_a0 *kms.DisableKeyInput) (*request.Request, *kms.DisableKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DisableKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyInput) (*request.Request, *kms.DisableKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisableKeyInput) *kms.DisableKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DisableKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableKeyRotation provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisableKeyRotation(_a0 *kms.DisableKeyRotationInput) (*kms.DisableKeyRotationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DisableKeyRotationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyRotationInput) (*kms.DisableKeyRotationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyRotationInput) *kms.DisableKeyRotationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisableKeyRotationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisableKeyRotationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKeyRotationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisableKeyRotationRequest(_a0 *kms.DisableKeyRotationInput) (*request.Request, *kms.DisableKeyRotationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DisableKeyRotationOutput
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyRotationInput) (*request.Request, *kms.DisableKeyRotationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisableKeyRotationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisableKeyRotationInput) *kms.DisableKeyRotationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DisableKeyRotationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableKeyRotationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DisableKeyRotationWithContext(_a0 context.Context, _a1 *kms.DisableKeyRotationInput, _a2 ...request.Option) (*kms.DisableKeyRotationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DisableKeyRotationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisableKeyRotationInput, ...request.Option) (*kms.DisableKeyRotationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisableKeyRotationInput, ...request.Option) *kms.DisableKeyRotationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisableKeyRotationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DisableKeyRotationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DisableKeyWithContext(_a0 context.Context, _a1 *kms.DisableKeyInput, _a2 ...request.Option) (*kms.DisableKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DisableKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisableKeyInput, ...request.Option) (*kms.DisableKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisableKeyInput, ...request.Option) *kms.DisableKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisableKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DisableKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisconnectCustomKeyStore provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisconnectCustomKeyStore(_a0 *kms.DisconnectCustomKeyStoreInput) (*kms.DisconnectCustomKeyStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.DisconnectCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.DisconnectCustomKeyStoreInput) (*kms.DisconnectCustomKeyStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisconnectCustomKeyStoreInput) *kms.DisconnectCustomKeyStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisconnectCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisconnectCustomKeyStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisconnectCustomKeyStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) DisconnectCustomKeyStoreRequest(_a0 *kms.DisconnectCustomKeyStoreInput) (*request.Request, *kms.DisconnectCustomKeyStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.DisconnectCustomKeyStoreOutput
- if rf, ok := ret.Get(0).(func(*kms.DisconnectCustomKeyStoreInput) (*request.Request, *kms.DisconnectCustomKeyStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.DisconnectCustomKeyStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.DisconnectCustomKeyStoreInput) *kms.DisconnectCustomKeyStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.DisconnectCustomKeyStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisconnectCustomKeyStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) DisconnectCustomKeyStoreWithContext(_a0 context.Context, _a1 *kms.DisconnectCustomKeyStoreInput, _a2 ...request.Option) (*kms.DisconnectCustomKeyStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.DisconnectCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisconnectCustomKeyStoreInput, ...request.Option) (*kms.DisconnectCustomKeyStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.DisconnectCustomKeyStoreInput, ...request.Option) *kms.DisconnectCustomKeyStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.DisconnectCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.DisconnectCustomKeyStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) EnableKey(_a0 *kms.EnableKeyInput) (*kms.EnableKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.EnableKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyInput) (*kms.EnableKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyInput) *kms.EnableKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EnableKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EnableKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) EnableKeyRequest(_a0 *kms.EnableKeyInput) (*request.Request, *kms.EnableKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.EnableKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyInput) (*request.Request, *kms.EnableKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EnableKeyInput) *kms.EnableKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.EnableKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableKeyRotation provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) EnableKeyRotation(_a0 *kms.EnableKeyRotationInput) (*kms.EnableKeyRotationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.EnableKeyRotationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyRotationInput) (*kms.EnableKeyRotationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyRotationInput) *kms.EnableKeyRotationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EnableKeyRotationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EnableKeyRotationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKeyRotationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) EnableKeyRotationRequest(_a0 *kms.EnableKeyRotationInput) (*request.Request, *kms.EnableKeyRotationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.EnableKeyRotationOutput
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyRotationInput) (*request.Request, *kms.EnableKeyRotationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EnableKeyRotationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EnableKeyRotationInput) *kms.EnableKeyRotationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.EnableKeyRotationOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableKeyRotationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) EnableKeyRotationWithContext(_a0 context.Context, _a1 *kms.EnableKeyRotationInput, _a2 ...request.Option) (*kms.EnableKeyRotationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.EnableKeyRotationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EnableKeyRotationInput, ...request.Option) (*kms.EnableKeyRotationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EnableKeyRotationInput, ...request.Option) *kms.EnableKeyRotationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EnableKeyRotationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.EnableKeyRotationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) EnableKeyWithContext(_a0 context.Context, _a1 *kms.EnableKeyInput, _a2 ...request.Option) (*kms.EnableKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.EnableKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EnableKeyInput, ...request.Option) (*kms.EnableKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EnableKeyInput, ...request.Option) *kms.EnableKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EnableKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.EnableKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Encrypt provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) Encrypt(_a0 *kms.EncryptInput) (*kms.EncryptOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.EncryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.EncryptInput) (*kms.EncryptOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EncryptInput) *kms.EncryptOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EncryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EncryptInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EncryptRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) EncryptRequest(_a0 *kms.EncryptInput) (*request.Request, *kms.EncryptOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.EncryptOutput
- if rf, ok := ret.Get(0).(func(*kms.EncryptInput) (*request.Request, *kms.EncryptOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.EncryptInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.EncryptInput) *kms.EncryptOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.EncryptOutput)
- }
- }
-
- return r0, r1
-}
-
-// EncryptWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) EncryptWithContext(_a0 context.Context, _a1 *kms.EncryptInput, _a2 ...request.Option) (*kms.EncryptOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.EncryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EncryptInput, ...request.Option) (*kms.EncryptOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.EncryptInput, ...request.Option) *kms.EncryptOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.EncryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.EncryptInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKey(_a0 *kms.GenerateDataKeyInput) (*kms.GenerateDataKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateDataKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyInput) (*kms.GenerateDataKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyInput) *kms.GenerateDataKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPair provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyPair(_a0 *kms.GenerateDataKeyPairInput) (*kms.GenerateDataKeyPairOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateDataKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairInput) (*kms.GenerateDataKeyPairOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairInput) *kms.GenerateDataKeyPairOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyPairInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPairRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyPairRequest(_a0 *kms.GenerateDataKeyPairInput) (*request.Request, *kms.GenerateDataKeyPairOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateDataKeyPairOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairInput) (*request.Request, *kms.GenerateDataKeyPairOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyPairInput) *kms.GenerateDataKeyPairOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateDataKeyPairOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateDataKeyPairWithContext(_a0 context.Context, _a1 *kms.GenerateDataKeyPairInput, _a2 ...request.Option) (*kms.GenerateDataKeyPairOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateDataKeyPairOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyPairInput, ...request.Option) (*kms.GenerateDataKeyPairOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyPairInput, ...request.Option) *kms.GenerateDataKeyPairOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyPairOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateDataKeyPairInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPairWithoutPlaintext provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyPairWithoutPlaintext(_a0 *kms.GenerateDataKeyPairWithoutPlaintextInput) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateDataKeyPairWithoutPlaintextOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) *kms.GenerateDataKeyPairWithoutPlaintextOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyPairWithoutPlaintextOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPairWithoutPlaintextRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyPairWithoutPlaintextRequest(_a0 *kms.GenerateDataKeyPairWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyPairWithoutPlaintextOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateDataKeyPairWithoutPlaintextOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyPairWithoutPlaintextOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyPairWithoutPlaintextInput) *kms.GenerateDataKeyPairWithoutPlaintextOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateDataKeyPairWithoutPlaintextOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyPairWithoutPlaintextWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateDataKeyPairWithoutPlaintextWithContext(_a0 context.Context, _a1 *kms.GenerateDataKeyPairWithoutPlaintextInput, _a2 ...request.Option) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateDataKeyPairWithoutPlaintextOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyPairWithoutPlaintextInput, ...request.Option) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyPairWithoutPlaintextInput, ...request.Option) *kms.GenerateDataKeyPairWithoutPlaintextOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyPairWithoutPlaintextOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateDataKeyPairWithoutPlaintextInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyRequest(_a0 *kms.GenerateDataKeyInput) (*request.Request, *kms.GenerateDataKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateDataKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyInput) (*request.Request, *kms.GenerateDataKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyInput) *kms.GenerateDataKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateDataKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateDataKeyWithContext(_a0 context.Context, _a1 *kms.GenerateDataKeyInput, _a2 ...request.Option) (*kms.GenerateDataKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateDataKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyInput, ...request.Option) (*kms.GenerateDataKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyInput, ...request.Option) *kms.GenerateDataKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateDataKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyWithoutPlaintext provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyWithoutPlaintext(_a0 *kms.GenerateDataKeyWithoutPlaintextInput) (*kms.GenerateDataKeyWithoutPlaintextOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateDataKeyWithoutPlaintextOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyWithoutPlaintextInput) (*kms.GenerateDataKeyWithoutPlaintextOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyWithoutPlaintextInput) *kms.GenerateDataKeyWithoutPlaintextOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyWithoutPlaintextOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyWithoutPlaintextInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyWithoutPlaintextRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateDataKeyWithoutPlaintextRequest(_a0 *kms.GenerateDataKeyWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyWithoutPlaintextOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateDataKeyWithoutPlaintextOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyWithoutPlaintextOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateDataKeyWithoutPlaintextInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateDataKeyWithoutPlaintextInput) *kms.GenerateDataKeyWithoutPlaintextOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateDataKeyWithoutPlaintextOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateDataKeyWithoutPlaintextWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateDataKeyWithoutPlaintextWithContext(_a0 context.Context, _a1 *kms.GenerateDataKeyWithoutPlaintextInput, _a2 ...request.Option) (*kms.GenerateDataKeyWithoutPlaintextOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateDataKeyWithoutPlaintextOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyWithoutPlaintextInput, ...request.Option) (*kms.GenerateDataKeyWithoutPlaintextOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateDataKeyWithoutPlaintextInput, ...request.Option) *kms.GenerateDataKeyWithoutPlaintextOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateDataKeyWithoutPlaintextOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateDataKeyWithoutPlaintextInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateMac provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateMac(_a0 *kms.GenerateMacInput) (*kms.GenerateMacOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateMacOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateMacInput) (*kms.GenerateMacOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateMacInput) *kms.GenerateMacOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateMacOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateMacInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateMacRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateMacRequest(_a0 *kms.GenerateMacInput) (*request.Request, *kms.GenerateMacOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateMacOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateMacInput) (*request.Request, *kms.GenerateMacOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateMacInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateMacInput) *kms.GenerateMacOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateMacOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateMacWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateMacWithContext(_a0 context.Context, _a1 *kms.GenerateMacInput, _a2 ...request.Option) (*kms.GenerateMacOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateMacOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateMacInput, ...request.Option) (*kms.GenerateMacOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateMacInput, ...request.Option) *kms.GenerateMacOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateMacOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateMacInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateRandom provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateRandom(_a0 *kms.GenerateRandomInput) (*kms.GenerateRandomOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GenerateRandomOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GenerateRandomInput) (*kms.GenerateRandomOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateRandomInput) *kms.GenerateRandomOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateRandomOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateRandomInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GenerateRandomRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GenerateRandomRequest(_a0 *kms.GenerateRandomInput) (*request.Request, *kms.GenerateRandomOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GenerateRandomOutput
- if rf, ok := ret.Get(0).(func(*kms.GenerateRandomInput) (*request.Request, *kms.GenerateRandomOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GenerateRandomInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GenerateRandomInput) *kms.GenerateRandomOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GenerateRandomOutput)
- }
- }
-
- return r0, r1
-}
-
-// GenerateRandomWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GenerateRandomWithContext(_a0 context.Context, _a1 *kms.GenerateRandomInput, _a2 ...request.Option) (*kms.GenerateRandomOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GenerateRandomOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateRandomInput, ...request.Option) (*kms.GenerateRandomOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GenerateRandomInput, ...request.Option) *kms.GenerateRandomOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GenerateRandomOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GenerateRandomInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetKeyPolicy(_a0 *kms.GetKeyPolicyInput) (*kms.GetKeyPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GetKeyPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GetKeyPolicyInput) (*kms.GetKeyPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetKeyPolicyInput) *kms.GetKeyPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetKeyPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetKeyPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetKeyPolicyRequest(_a0 *kms.GetKeyPolicyInput) (*request.Request, *kms.GetKeyPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GetKeyPolicyOutput
- if rf, ok := ret.Get(0).(func(*kms.GetKeyPolicyInput) (*request.Request, *kms.GetKeyPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetKeyPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetKeyPolicyInput) *kms.GetKeyPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GetKeyPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetKeyPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GetKeyPolicyWithContext(_a0 context.Context, _a1 *kms.GetKeyPolicyInput, _a2 ...request.Option) (*kms.GetKeyPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GetKeyPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetKeyPolicyInput, ...request.Option) (*kms.GetKeyPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetKeyPolicyInput, ...request.Option) *kms.GetKeyPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetKeyPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GetKeyPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyRotationStatus provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetKeyRotationStatus(_a0 *kms.GetKeyRotationStatusInput) (*kms.GetKeyRotationStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GetKeyRotationStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GetKeyRotationStatusInput) (*kms.GetKeyRotationStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetKeyRotationStatusInput) *kms.GetKeyRotationStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetKeyRotationStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetKeyRotationStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetKeyRotationStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetKeyRotationStatusRequest(_a0 *kms.GetKeyRotationStatusInput) (*request.Request, *kms.GetKeyRotationStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GetKeyRotationStatusOutput
- if rf, ok := ret.Get(0).(func(*kms.GetKeyRotationStatusInput) (*request.Request, *kms.GetKeyRotationStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetKeyRotationStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetKeyRotationStatusInput) *kms.GetKeyRotationStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GetKeyRotationStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetKeyRotationStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GetKeyRotationStatusWithContext(_a0 context.Context, _a1 *kms.GetKeyRotationStatusInput, _a2 ...request.Option) (*kms.GetKeyRotationStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GetKeyRotationStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetKeyRotationStatusInput, ...request.Option) (*kms.GetKeyRotationStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetKeyRotationStatusInput, ...request.Option) *kms.GetKeyRotationStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetKeyRotationStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GetKeyRotationStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetParametersForImport provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetParametersForImport(_a0 *kms.GetParametersForImportInput) (*kms.GetParametersForImportOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GetParametersForImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GetParametersForImportInput) (*kms.GetParametersForImportOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetParametersForImportInput) *kms.GetParametersForImportOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetParametersForImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetParametersForImportInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetParametersForImportRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetParametersForImportRequest(_a0 *kms.GetParametersForImportInput) (*request.Request, *kms.GetParametersForImportOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GetParametersForImportOutput
- if rf, ok := ret.Get(0).(func(*kms.GetParametersForImportInput) (*request.Request, *kms.GetParametersForImportOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetParametersForImportInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetParametersForImportInput) *kms.GetParametersForImportOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GetParametersForImportOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetParametersForImportWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GetParametersForImportWithContext(_a0 context.Context, _a1 *kms.GetParametersForImportInput, _a2 ...request.Option) (*kms.GetParametersForImportOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GetParametersForImportOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetParametersForImportInput, ...request.Option) (*kms.GetParametersForImportOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetParametersForImportInput, ...request.Option) *kms.GetParametersForImportOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetParametersForImportOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GetParametersForImportInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetPublicKey(_a0 *kms.GetPublicKeyInput) (*kms.GetPublicKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.GetPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.GetPublicKeyInput) (*kms.GetPublicKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetPublicKeyInput) *kms.GetPublicKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetPublicKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) GetPublicKeyRequest(_a0 *kms.GetPublicKeyInput) (*request.Request, *kms.GetPublicKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.GetPublicKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.GetPublicKeyInput) (*request.Request, *kms.GetPublicKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.GetPublicKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.GetPublicKeyInput) *kms.GetPublicKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.GetPublicKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) GetPublicKeyWithContext(_a0 context.Context, _a1 *kms.GetPublicKeyInput, _a2 ...request.Option) (*kms.GetPublicKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.GetPublicKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetPublicKeyInput, ...request.Option) (*kms.GetPublicKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.GetPublicKeyInput, ...request.Option) *kms.GetPublicKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.GetPublicKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.GetPublicKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportKeyMaterial provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ImportKeyMaterial(_a0 *kms.ImportKeyMaterialInput) (*kms.ImportKeyMaterialOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ImportKeyMaterialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ImportKeyMaterialInput) (*kms.ImportKeyMaterialOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ImportKeyMaterialInput) *kms.ImportKeyMaterialOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ImportKeyMaterialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ImportKeyMaterialInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ImportKeyMaterialRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ImportKeyMaterialRequest(_a0 *kms.ImportKeyMaterialInput) (*request.Request, *kms.ImportKeyMaterialOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ImportKeyMaterialOutput
- if rf, ok := ret.Get(0).(func(*kms.ImportKeyMaterialInput) (*request.Request, *kms.ImportKeyMaterialOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ImportKeyMaterialInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ImportKeyMaterialInput) *kms.ImportKeyMaterialOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ImportKeyMaterialOutput)
- }
- }
-
- return r0, r1
-}
-
-// ImportKeyMaterialWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ImportKeyMaterialWithContext(_a0 context.Context, _a1 *kms.ImportKeyMaterialInput, _a2 ...request.Option) (*kms.ImportKeyMaterialOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ImportKeyMaterialOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ImportKeyMaterialInput, ...request.Option) (*kms.ImportKeyMaterialOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ImportKeyMaterialInput, ...request.Option) *kms.ImportKeyMaterialOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ImportKeyMaterialOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ImportKeyMaterialInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAliases provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListAliases(_a0 *kms.ListAliasesInput) (*kms.ListAliasesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListAliasesInput) (*kms.ListAliasesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListAliasesInput) *kms.ListAliasesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListAliasesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAliasesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListAliasesPages(_a0 *kms.ListAliasesInput, _a1 func(*kms.ListAliasesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListAliasesInput, func(*kms.ListAliasesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAliasesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListAliasesPagesWithContext(_a0 context.Context, _a1 *kms.ListAliasesInput, _a2 func(*kms.ListAliasesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListAliasesInput, func(*kms.ListAliasesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAliasesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListAliasesRequest(_a0 *kms.ListAliasesInput) (*request.Request, *kms.ListAliasesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListAliasesOutput
- if rf, ok := ret.Get(0).(func(*kms.ListAliasesInput) (*request.Request, *kms.ListAliasesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListAliasesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListAliasesInput) *kms.ListAliasesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListAliasesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListAliasesWithContext(_a0 context.Context, _a1 *kms.ListAliasesInput, _a2 ...request.Option) (*kms.ListAliasesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListAliasesInput, ...request.Option) (*kms.ListAliasesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListAliasesInput, ...request.Option) *kms.ListAliasesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListAliasesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGrants provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListGrants(_a0 *kms.ListGrantsInput) (*kms.ListGrantsResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListGrantsResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListGrantsInput) (*kms.ListGrantsResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListGrantsInput) *kms.ListGrantsResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListGrantsResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListGrantsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGrantsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListGrantsPages(_a0 *kms.ListGrantsInput, _a1 func(*kms.ListGrantsResponse, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListGrantsInput, func(*kms.ListGrantsResponse, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGrantsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListGrantsPagesWithContext(_a0 context.Context, _a1 *kms.ListGrantsInput, _a2 func(*kms.ListGrantsResponse, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListGrantsInput, func(*kms.ListGrantsResponse, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListGrantsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListGrantsRequest(_a0 *kms.ListGrantsInput) (*request.Request, *kms.ListGrantsResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListGrantsResponse
- if rf, ok := ret.Get(0).(func(*kms.ListGrantsInput) (*request.Request, *kms.ListGrantsResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListGrantsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListGrantsInput) *kms.ListGrantsResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListGrantsResponse)
- }
- }
-
- return r0, r1
-}
-
-// ListGrantsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListGrantsWithContext(_a0 context.Context, _a1 *kms.ListGrantsInput, _a2 ...request.Option) (*kms.ListGrantsResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListGrantsResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListGrantsInput, ...request.Option) (*kms.ListGrantsResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListGrantsInput, ...request.Option) *kms.ListGrantsResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListGrantsResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListGrantsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeyPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListKeyPolicies(_a0 *kms.ListKeyPoliciesInput) (*kms.ListKeyPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListKeyPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListKeyPoliciesInput) (*kms.ListKeyPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListKeyPoliciesInput) *kms.ListKeyPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListKeyPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListKeyPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeyPoliciesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListKeyPoliciesPages(_a0 *kms.ListKeyPoliciesInput, _a1 func(*kms.ListKeyPoliciesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListKeyPoliciesInput, func(*kms.ListKeyPoliciesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListKeyPoliciesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListKeyPoliciesPagesWithContext(_a0 context.Context, _a1 *kms.ListKeyPoliciesInput, _a2 func(*kms.ListKeyPoliciesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeyPoliciesInput, func(*kms.ListKeyPoliciesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListKeyPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListKeyPoliciesRequest(_a0 *kms.ListKeyPoliciesInput) (*request.Request, *kms.ListKeyPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListKeyPoliciesOutput
- if rf, ok := ret.Get(0).(func(*kms.ListKeyPoliciesInput) (*request.Request, *kms.ListKeyPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListKeyPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListKeyPoliciesInput) *kms.ListKeyPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListKeyPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListKeyPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListKeyPoliciesWithContext(_a0 context.Context, _a1 *kms.ListKeyPoliciesInput, _a2 ...request.Option) (*kms.ListKeyPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListKeyPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeyPoliciesInput, ...request.Option) (*kms.ListKeyPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeyPoliciesInput, ...request.Option) *kms.ListKeyPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListKeyPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListKeyPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeys provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListKeys(_a0 *kms.ListKeysInput) (*kms.ListKeysOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListKeysInput) (*kms.ListKeysOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListKeysInput) *kms.ListKeysOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListKeysInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListKeysPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListKeysPages(_a0 *kms.ListKeysInput, _a1 func(*kms.ListKeysOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListKeysInput, func(*kms.ListKeysOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListKeysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListKeysPagesWithContext(_a0 context.Context, _a1 *kms.ListKeysInput, _a2 func(*kms.ListKeysOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeysInput, func(*kms.ListKeysOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListKeysRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListKeysRequest(_a0 *kms.ListKeysInput) (*request.Request, *kms.ListKeysOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListKeysOutput
- if rf, ok := ret.Get(0).(func(*kms.ListKeysInput) (*request.Request, *kms.ListKeysOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListKeysInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListKeysInput) *kms.ListKeysOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListKeysOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListKeysWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListKeysWithContext(_a0 context.Context, _a1 *kms.ListKeysInput, _a2 ...request.Option) (*kms.ListKeysOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListKeysOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeysInput, ...request.Option) (*kms.ListKeysOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListKeysInput, ...request.Option) *kms.ListKeysOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListKeysOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListKeysInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResourceTags provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListResourceTags(_a0 *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListResourceTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListResourceTagsInput) *kms.ListResourceTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListResourceTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListResourceTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResourceTagsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListResourceTagsPages(_a0 *kms.ListResourceTagsInput, _a1 func(*kms.ListResourceTagsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListResourceTagsInput, func(*kms.ListResourceTagsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListResourceTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListResourceTagsPagesWithContext(_a0 context.Context, _a1 *kms.ListResourceTagsInput, _a2 func(*kms.ListResourceTagsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListResourceTagsInput, func(*kms.ListResourceTagsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListResourceTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListResourceTagsRequest(_a0 *kms.ListResourceTagsInput) (*request.Request, *kms.ListResourceTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListResourceTagsOutput
- if rf, ok := ret.Get(0).(func(*kms.ListResourceTagsInput) (*request.Request, *kms.ListResourceTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListResourceTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListResourceTagsInput) *kms.ListResourceTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListResourceTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListResourceTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListResourceTagsWithContext(_a0 context.Context, _a1 *kms.ListResourceTagsInput, _a2 ...request.Option) (*kms.ListResourceTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListResourceTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListResourceTagsInput, ...request.Option) (*kms.ListResourceTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListResourceTagsInput, ...request.Option) *kms.ListResourceTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListResourceTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListResourceTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRetirableGrants provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListRetirableGrants(_a0 *kms.ListRetirableGrantsInput) (*kms.ListGrantsResponse, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ListGrantsResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ListRetirableGrantsInput) (*kms.ListGrantsResponse, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListRetirableGrantsInput) *kms.ListGrantsResponse); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListGrantsResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListRetirableGrantsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRetirableGrantsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeKMS) ListRetirableGrantsPages(_a0 *kms.ListRetirableGrantsInput, _a1 func(*kms.ListGrantsResponse, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*kms.ListRetirableGrantsInput, func(*kms.ListGrantsResponse, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRetirableGrantsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeKMS) ListRetirableGrantsPagesWithContext(_a0 context.Context, _a1 *kms.ListRetirableGrantsInput, _a2 func(*kms.ListGrantsResponse, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListRetirableGrantsInput, func(*kms.ListGrantsResponse, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRetirableGrantsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ListRetirableGrantsRequest(_a0 *kms.ListRetirableGrantsInput) (*request.Request, *kms.ListGrantsResponse) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ListGrantsResponse
- if rf, ok := ret.Get(0).(func(*kms.ListRetirableGrantsInput) (*request.Request, *kms.ListGrantsResponse)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ListRetirableGrantsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ListRetirableGrantsInput) *kms.ListGrantsResponse); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ListGrantsResponse)
- }
- }
-
- return r0, r1
-}
-
-// ListRetirableGrantsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ListRetirableGrantsWithContext(_a0 context.Context, _a1 *kms.ListRetirableGrantsInput, _a2 ...request.Option) (*kms.ListGrantsResponse, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ListGrantsResponse
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListRetirableGrantsInput, ...request.Option) (*kms.ListGrantsResponse, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ListRetirableGrantsInput, ...request.Option) *kms.ListGrantsResponse); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ListGrantsResponse)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ListRetirableGrantsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutKeyPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) PutKeyPolicy(_a0 *kms.PutKeyPolicyInput) (*kms.PutKeyPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.PutKeyPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.PutKeyPolicyInput) (*kms.PutKeyPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.PutKeyPolicyInput) *kms.PutKeyPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.PutKeyPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.PutKeyPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutKeyPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) PutKeyPolicyRequest(_a0 *kms.PutKeyPolicyInput) (*request.Request, *kms.PutKeyPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.PutKeyPolicyOutput
- if rf, ok := ret.Get(0).(func(*kms.PutKeyPolicyInput) (*request.Request, *kms.PutKeyPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.PutKeyPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.PutKeyPolicyInput) *kms.PutKeyPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.PutKeyPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutKeyPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) PutKeyPolicyWithContext(_a0 context.Context, _a1 *kms.PutKeyPolicyInput, _a2 ...request.Option) (*kms.PutKeyPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.PutKeyPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.PutKeyPolicyInput, ...request.Option) (*kms.PutKeyPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.PutKeyPolicyInput, ...request.Option) *kms.PutKeyPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.PutKeyPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.PutKeyPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReEncrypt provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ReEncrypt(_a0 *kms.ReEncryptInput) (*kms.ReEncryptOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ReEncryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ReEncryptInput) (*kms.ReEncryptOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ReEncryptInput) *kms.ReEncryptOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ReEncryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ReEncryptInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReEncryptRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ReEncryptRequest(_a0 *kms.ReEncryptInput) (*request.Request, *kms.ReEncryptOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ReEncryptOutput
- if rf, ok := ret.Get(0).(func(*kms.ReEncryptInput) (*request.Request, *kms.ReEncryptOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ReEncryptInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ReEncryptInput) *kms.ReEncryptOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ReEncryptOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReEncryptWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ReEncryptWithContext(_a0 context.Context, _a1 *kms.ReEncryptInput, _a2 ...request.Option) (*kms.ReEncryptOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ReEncryptOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ReEncryptInput, ...request.Option) (*kms.ReEncryptOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ReEncryptInput, ...request.Option) *kms.ReEncryptOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ReEncryptOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ReEncryptInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplicateKey provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ReplicateKey(_a0 *kms.ReplicateKeyInput) (*kms.ReplicateKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ReplicateKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) (*kms.ReplicateKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) *kms.ReplicateKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ReplicateKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ReplicateKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReplicateKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ReplicateKeyRequest(_a0 *kms.ReplicateKeyInput) (*request.Request, *kms.ReplicateKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ReplicateKeyOutput
- if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) (*request.Request, *kms.ReplicateKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ReplicateKeyInput) *kms.ReplicateKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ReplicateKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReplicateKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ReplicateKeyWithContext(_a0 context.Context, _a1 *kms.ReplicateKeyInput, _a2 ...request.Option) (*kms.ReplicateKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ReplicateKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ReplicateKeyInput, ...request.Option) (*kms.ReplicateKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ReplicateKeyInput, ...request.Option) *kms.ReplicateKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ReplicateKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ReplicateKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RetireGrant provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) RetireGrant(_a0 *kms.RetireGrantInput) (*kms.RetireGrantOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.RetireGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.RetireGrantInput) (*kms.RetireGrantOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.RetireGrantInput) *kms.RetireGrantOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.RetireGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.RetireGrantInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RetireGrantRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) RetireGrantRequest(_a0 *kms.RetireGrantInput) (*request.Request, *kms.RetireGrantOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.RetireGrantOutput
- if rf, ok := ret.Get(0).(func(*kms.RetireGrantInput) (*request.Request, *kms.RetireGrantOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.RetireGrantInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.RetireGrantInput) *kms.RetireGrantOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.RetireGrantOutput)
- }
- }
-
- return r0, r1
-}
-
-// RetireGrantWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) RetireGrantWithContext(_a0 context.Context, _a1 *kms.RetireGrantInput, _a2 ...request.Option) (*kms.RetireGrantOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.RetireGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.RetireGrantInput, ...request.Option) (*kms.RetireGrantOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.RetireGrantInput, ...request.Option) *kms.RetireGrantOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.RetireGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.RetireGrantInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeGrant provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) RevokeGrant(_a0 *kms.RevokeGrantInput) (*kms.RevokeGrantOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.RevokeGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.RevokeGrantInput) (*kms.RevokeGrantOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.RevokeGrantInput) *kms.RevokeGrantOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.RevokeGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.RevokeGrantInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeGrantRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) RevokeGrantRequest(_a0 *kms.RevokeGrantInput) (*request.Request, *kms.RevokeGrantOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.RevokeGrantOutput
- if rf, ok := ret.Get(0).(func(*kms.RevokeGrantInput) (*request.Request, *kms.RevokeGrantOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.RevokeGrantInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.RevokeGrantInput) *kms.RevokeGrantOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.RevokeGrantOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeGrantWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) RevokeGrantWithContext(_a0 context.Context, _a1 *kms.RevokeGrantInput, _a2 ...request.Option) (*kms.RevokeGrantOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.RevokeGrantOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.RevokeGrantInput, ...request.Option) (*kms.RevokeGrantOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.RevokeGrantInput, ...request.Option) *kms.RevokeGrantOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.RevokeGrantOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.RevokeGrantInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ScheduleKeyDeletion provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ScheduleKeyDeletion(_a0 *kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.ScheduleKeyDeletionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ScheduleKeyDeletionInput) *kms.ScheduleKeyDeletionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ScheduleKeyDeletionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ScheduleKeyDeletionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ScheduleKeyDeletionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) ScheduleKeyDeletionRequest(_a0 *kms.ScheduleKeyDeletionInput) (*request.Request, *kms.ScheduleKeyDeletionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.ScheduleKeyDeletionOutput
- if rf, ok := ret.Get(0).(func(*kms.ScheduleKeyDeletionInput) (*request.Request, *kms.ScheduleKeyDeletionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.ScheduleKeyDeletionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.ScheduleKeyDeletionInput) *kms.ScheduleKeyDeletionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.ScheduleKeyDeletionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ScheduleKeyDeletionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) ScheduleKeyDeletionWithContext(_a0 context.Context, _a1 *kms.ScheduleKeyDeletionInput, _a2 ...request.Option) (*kms.ScheduleKeyDeletionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.ScheduleKeyDeletionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ScheduleKeyDeletionInput, ...request.Option) (*kms.ScheduleKeyDeletionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.ScheduleKeyDeletionInput, ...request.Option) *kms.ScheduleKeyDeletionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.ScheduleKeyDeletionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.ScheduleKeyDeletionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Sign provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) Sign(_a0 *kms.SignInput) (*kms.SignOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.SignOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.SignInput) (*kms.SignOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.SignInput) *kms.SignOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.SignOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.SignInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SignRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) SignRequest(_a0 *kms.SignInput) (*request.Request, *kms.SignOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.SignOutput
- if rf, ok := ret.Get(0).(func(*kms.SignInput) (*request.Request, *kms.SignOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.SignInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.SignInput) *kms.SignOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.SignOutput)
- }
- }
-
- return r0, r1
-}
-
-// SignWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) SignWithContext(_a0 context.Context, _a1 *kms.SignInput, _a2 ...request.Option) (*kms.SignOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.SignOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.SignInput, ...request.Option) (*kms.SignOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.SignInput, ...request.Option) *kms.SignOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.SignOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.SignInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) TagResource(_a0 *kms.TagResourceInput) (*kms.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.TagResourceInput) (*kms.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.TagResourceInput) *kms.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) TagResourceRequest(_a0 *kms.TagResourceInput) (*request.Request, *kms.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*kms.TagResourceInput) (*request.Request, *kms.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.TagResourceInput) *kms.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) TagResourceWithContext(_a0 context.Context, _a1 *kms.TagResourceInput, _a2 ...request.Option) (*kms.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.TagResourceInput, ...request.Option) (*kms.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.TagResourceInput, ...request.Option) *kms.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UntagResource(_a0 *kms.UntagResourceInput) (*kms.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.UntagResourceInput) (*kms.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UntagResourceInput) *kms.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UntagResourceRequest(_a0 *kms.UntagResourceInput) (*request.Request, *kms.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*kms.UntagResourceInput) (*request.Request, *kms.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UntagResourceInput) *kms.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) UntagResourceWithContext(_a0 context.Context, _a1 *kms.UntagResourceInput, _a2 ...request.Option) (*kms.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UntagResourceInput, ...request.Option) (*kms.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UntagResourceInput, ...request.Option) *kms.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAlias provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateAlias(_a0 *kms.UpdateAliasInput) (*kms.UpdateAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.UpdateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.UpdateAliasInput) (*kms.UpdateAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateAliasInput) *kms.UpdateAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateAliasRequest(_a0 *kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.UpdateAliasOutput
- if rf, ok := ret.Get(0).(func(*kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateAliasInput) *kms.UpdateAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.UpdateAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) UpdateAliasWithContext(_a0 context.Context, _a1 *kms.UpdateAliasInput, _a2 ...request.Option) (*kms.UpdateAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.UpdateAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateAliasInput, ...request.Option) (*kms.UpdateAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateAliasInput, ...request.Option) *kms.UpdateAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.UpdateAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCustomKeyStore provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateCustomKeyStore(_a0 *kms.UpdateCustomKeyStoreInput) (*kms.UpdateCustomKeyStoreOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.UpdateCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.UpdateCustomKeyStoreInput) (*kms.UpdateCustomKeyStoreOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateCustomKeyStoreInput) *kms.UpdateCustomKeyStoreOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateCustomKeyStoreInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCustomKeyStoreRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateCustomKeyStoreRequest(_a0 *kms.UpdateCustomKeyStoreInput) (*request.Request, *kms.UpdateCustomKeyStoreOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.UpdateCustomKeyStoreOutput
- if rf, ok := ret.Get(0).(func(*kms.UpdateCustomKeyStoreInput) (*request.Request, *kms.UpdateCustomKeyStoreOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateCustomKeyStoreInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateCustomKeyStoreInput) *kms.UpdateCustomKeyStoreOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.UpdateCustomKeyStoreOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateCustomKeyStoreWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) UpdateCustomKeyStoreWithContext(_a0 context.Context, _a1 *kms.UpdateCustomKeyStoreInput, _a2 ...request.Option) (*kms.UpdateCustomKeyStoreOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.UpdateCustomKeyStoreOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateCustomKeyStoreInput, ...request.Option) (*kms.UpdateCustomKeyStoreOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateCustomKeyStoreInput, ...request.Option) *kms.UpdateCustomKeyStoreOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateCustomKeyStoreOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.UpdateCustomKeyStoreInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateKeyDescription provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateKeyDescription(_a0 *kms.UpdateKeyDescriptionInput) (*kms.UpdateKeyDescriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.UpdateKeyDescriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.UpdateKeyDescriptionInput) (*kms.UpdateKeyDescriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateKeyDescriptionInput) *kms.UpdateKeyDescriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateKeyDescriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateKeyDescriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateKeyDescriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdateKeyDescriptionRequest(_a0 *kms.UpdateKeyDescriptionInput) (*request.Request, *kms.UpdateKeyDescriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.UpdateKeyDescriptionOutput
- if rf, ok := ret.Get(0).(func(*kms.UpdateKeyDescriptionInput) (*request.Request, *kms.UpdateKeyDescriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdateKeyDescriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdateKeyDescriptionInput) *kms.UpdateKeyDescriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.UpdateKeyDescriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateKeyDescriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) UpdateKeyDescriptionWithContext(_a0 context.Context, _a1 *kms.UpdateKeyDescriptionInput, _a2 ...request.Option) (*kms.UpdateKeyDescriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.UpdateKeyDescriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateKeyDescriptionInput, ...request.Option) (*kms.UpdateKeyDescriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdateKeyDescriptionInput, ...request.Option) *kms.UpdateKeyDescriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdateKeyDescriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.UpdateKeyDescriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdatePrimaryRegion provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdatePrimaryRegion(_a0 *kms.UpdatePrimaryRegionInput) (*kms.UpdatePrimaryRegionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.UpdatePrimaryRegionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) (*kms.UpdatePrimaryRegionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) *kms.UpdatePrimaryRegionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdatePrimaryRegionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdatePrimaryRegionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdatePrimaryRegionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) UpdatePrimaryRegionRequest(_a0 *kms.UpdatePrimaryRegionInput) (*request.Request, *kms.UpdatePrimaryRegionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.UpdatePrimaryRegionOutput
- if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) (*request.Request, *kms.UpdatePrimaryRegionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.UpdatePrimaryRegionInput) *kms.UpdatePrimaryRegionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.UpdatePrimaryRegionOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdatePrimaryRegionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) UpdatePrimaryRegionWithContext(_a0 context.Context, _a1 *kms.UpdatePrimaryRegionInput, _a2 ...request.Option) (*kms.UpdatePrimaryRegionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.UpdatePrimaryRegionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdatePrimaryRegionInput, ...request.Option) (*kms.UpdatePrimaryRegionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdatePrimaryRegionInput, ...request.Option) *kms.UpdatePrimaryRegionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.UpdatePrimaryRegionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.UpdatePrimaryRegionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Verify provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) Verify(_a0 *kms.VerifyInput) (*kms.VerifyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.VerifyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.VerifyInput) (*kms.VerifyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.VerifyInput) *kms.VerifyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.VerifyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.VerifyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// VerifyMac provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) VerifyMac(_a0 *kms.VerifyMacInput) (*kms.VerifyMacOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *kms.VerifyMacOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*kms.VerifyMacInput) (*kms.VerifyMacOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.VerifyMacInput) *kms.VerifyMacOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.VerifyMacOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.VerifyMacInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// VerifyMacRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) VerifyMacRequest(_a0 *kms.VerifyMacInput) (*request.Request, *kms.VerifyMacOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.VerifyMacOutput
- if rf, ok := ret.Get(0).(func(*kms.VerifyMacInput) (*request.Request, *kms.VerifyMacOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.VerifyMacInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.VerifyMacInput) *kms.VerifyMacOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.VerifyMacOutput)
- }
- }
-
- return r0, r1
-}
-
-// VerifyMacWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) VerifyMacWithContext(_a0 context.Context, _a1 *kms.VerifyMacInput, _a2 ...request.Option) (*kms.VerifyMacOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.VerifyMacOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.VerifyMacInput, ...request.Option) (*kms.VerifyMacOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.VerifyMacInput, ...request.Option) *kms.VerifyMacOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.VerifyMacOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.VerifyMacInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// VerifyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeKMS) VerifyRequest(_a0 *kms.VerifyInput) (*request.Request, *kms.VerifyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *kms.VerifyOutput
- if rf, ok := ret.Get(0).(func(*kms.VerifyInput) (*request.Request, *kms.VerifyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*kms.VerifyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*kms.VerifyInput) *kms.VerifyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*kms.VerifyOutput)
- }
- }
-
- return r0, r1
-}
-
-// VerifyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeKMS) VerifyWithContext(_a0 context.Context, _a1 *kms.VerifyInput, _a2 ...request.Option) (*kms.VerifyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *kms.VerifyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *kms.VerifyInput, ...request.Option) (*kms.VerifyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *kms.VerifyInput, ...request.Option) *kms.VerifyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*kms.VerifyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *kms.VerifyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeKMS interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeKMS creates a new instance of MockFakeKMS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeKMS(t mockConstructorTestingTNewMockFakeKMS) *MockFakeKMS {
- mock := &MockFakeKMS{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeLambda.go b/test/aws/mock_FakeLambda.go
deleted file mode 100644
index e1d430ca7..000000000
--- a/test/aws/mock_FakeLambda.go
+++ /dev/null
@@ -1,6073 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- lambda "github.com/aws/aws-sdk-go/service/lambda"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeLambda is an autogenerated mock type for the FakeLambda type
-type MockFakeLambda struct {
- mock.Mock
-}
-
-// AddLayerVersionPermission provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) AddLayerVersionPermission(_a0 *lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.AddLayerVersionPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.AddLayerVersionPermissionInput) *lambda.AddLayerVersionPermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AddLayerVersionPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.AddLayerVersionPermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddLayerVersionPermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) AddLayerVersionPermissionRequest(_a0 *lambda.AddLayerVersionPermissionInput) (*request.Request, *lambda.AddLayerVersionPermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.AddLayerVersionPermissionOutput
- if rf, ok := ret.Get(0).(func(*lambda.AddLayerVersionPermissionInput) (*request.Request, *lambda.AddLayerVersionPermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.AddLayerVersionPermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.AddLayerVersionPermissionInput) *lambda.AddLayerVersionPermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.AddLayerVersionPermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddLayerVersionPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) AddLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.AddLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.AddLayerVersionPermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.AddLayerVersionPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.AddLayerVersionPermissionInput, ...request.Option) (*lambda.AddLayerVersionPermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.AddLayerVersionPermissionInput, ...request.Option) *lambda.AddLayerVersionPermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AddLayerVersionPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.AddLayerVersionPermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddPermission provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) AddPermission(_a0 *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.AddPermissionInput) *lambda.AddPermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.AddPermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddPermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) AddPermissionRequest(_a0 *lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.AddPermissionOutput
- if rf, ok := ret.Get(0).(func(*lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.AddPermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.AddPermissionInput) *lambda.AddPermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.AddPermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) AddPermissionWithContext(_a0 context.Context, _a1 *lambda.AddPermissionInput, _a2 ...request.Option) (*lambda.AddPermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.AddPermissionInput, ...request.Option) (*lambda.AddPermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.AddPermissionInput, ...request.Option) *lambda.AddPermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.AddPermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAlias provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateAlias(_a0 *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.CreateAliasInput) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateAliasInput) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateAliasRequest(_a0 *lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.AliasConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateAliasInput) *lambda.AliasConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.AliasConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// CreateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) CreateAliasWithContext(_a0 context.Context, _a1 *lambda.CreateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateAliasInput, ...request.Option) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateAliasInput, ...request.Option) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateCodeSigningConfig(_a0 *lambda.CreateCodeSigningConfigInput) (*lambda.CreateCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.CreateCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) (*lambda.CreateCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) *lambda.CreateCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.CreateCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateCodeSigningConfigRequest(_a0 *lambda.CreateCodeSigningConfigInput) (*request.Request, *lambda.CreateCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.CreateCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) (*request.Request, *lambda.CreateCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateCodeSigningConfigInput) *lambda.CreateCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.CreateCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) CreateCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.CreateCodeSigningConfigInput, _a2 ...request.Option) (*lambda.CreateCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.CreateCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateCodeSigningConfigInput, ...request.Option) (*lambda.CreateCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateCodeSigningConfigInput, ...request.Option) *lambda.CreateCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.CreateCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventSourceMapping provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateEventSourceMapping(_a0 *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateEventSourceMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventSourceMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateEventSourceMappingRequest(_a0 *lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.EventSourceMappingConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateEventSourceMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// CreateEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) CreateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.CreateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateEventSourceMappingInput, ...request.Option) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateEventSourceMappingInput, ...request.Option) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateEventSourceMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunction provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateFunction(_a0 *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionInput) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateFunctionRequest(_a0 *lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.FunctionConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateFunctionInput) *lambda.FunctionConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.FunctionConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// CreateFunctionUrlConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateFunctionUrlConfig(_a0 *lambda.CreateFunctionUrlConfigInput) (*lambda.CreateFunctionUrlConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.CreateFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionUrlConfigInput) (*lambda.CreateFunctionUrlConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionUrlConfigInput) *lambda.CreateFunctionUrlConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.CreateFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateFunctionUrlConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunctionUrlConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) CreateFunctionUrlConfigRequest(_a0 *lambda.CreateFunctionUrlConfigInput) (*request.Request, *lambda.CreateFunctionUrlConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.CreateFunctionUrlConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionUrlConfigInput) (*request.Request, *lambda.CreateFunctionUrlConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.CreateFunctionUrlConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.CreateFunctionUrlConfigInput) *lambda.CreateFunctionUrlConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.CreateFunctionUrlConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateFunctionUrlConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) CreateFunctionUrlConfigWithContext(_a0 context.Context, _a1 *lambda.CreateFunctionUrlConfigInput, _a2 ...request.Option) (*lambda.CreateFunctionUrlConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.CreateFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateFunctionUrlConfigInput, ...request.Option) (*lambda.CreateFunctionUrlConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateFunctionUrlConfigInput, ...request.Option) *lambda.CreateFunctionUrlConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.CreateFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateFunctionUrlConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) CreateFunctionWithContext(_a0 context.Context, _a1 *lambda.CreateFunctionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateFunctionInput, ...request.Option) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateFunctionInput, ...request.Option) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAlias provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteAlias(_a0 *lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteAliasInput) *lambda.DeleteAliasOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteAliasRequest(_a0 *lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteAliasOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteAliasInput) *lambda.DeleteAliasOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteAliasOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteAliasWithContext(_a0 context.Context, _a1 *lambda.DeleteAliasInput, _a2 ...request.Option) (*lambda.DeleteAliasOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteAliasOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteAliasInput, ...request.Option) (*lambda.DeleteAliasOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteAliasInput, ...request.Option) *lambda.DeleteAliasOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteAliasOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteCodeSigningConfig(_a0 *lambda.DeleteCodeSigningConfigInput) (*lambda.DeleteCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) (*lambda.DeleteCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) *lambda.DeleteCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteCodeSigningConfigRequest(_a0 *lambda.DeleteCodeSigningConfigInput) (*request.Request, *lambda.DeleteCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) (*request.Request, *lambda.DeleteCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteCodeSigningConfigInput) *lambda.DeleteCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteCodeSigningConfigInput, _a2 ...request.Option) (*lambda.DeleteCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteCodeSigningConfigInput, ...request.Option) (*lambda.DeleteCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteCodeSigningConfigInput, ...request.Option) *lambda.DeleteCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventSourceMapping provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteEventSourceMapping(_a0 *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteEventSourceMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventSourceMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteEventSourceMappingRequest(_a0 *lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.EventSourceMappingConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteEventSourceMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// DeleteEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.DeleteEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteEventSourceMappingInput, ...request.Option) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteEventSourceMappingInput, ...request.Option) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteEventSourceMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunction provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunction(_a0 *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionInput) *lambda.DeleteFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfig(_a0 *lambda.DeleteFunctionCodeSigningConfigInput) (*lambda.DeleteFunctionCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) (*lambda.DeleteFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *lambda.DeleteFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfigRequest(_a0 *lambda.DeleteFunctionCodeSigningConfigInput) (*request.Request, *lambda.DeleteFunctionCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteFunctionCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) (*request.Request, *lambda.DeleteFunctionCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *lambda.DeleteFunctionCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteFunctionCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionCodeSigningConfigInput, ...request.Option) (*lambda.DeleteFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionCodeSigningConfigInput, ...request.Option) *lambda.DeleteFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionConcurrency provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionConcurrency(_a0 *lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionConcurrencyInput) *lambda.DeleteFunctionConcurrencyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionConcurrencyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionConcurrencyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionConcurrencyRequest(_a0 *lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteFunctionConcurrencyOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionConcurrencyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionConcurrencyInput) *lambda.DeleteFunctionConcurrencyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteFunctionConcurrencyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionConcurrencyInput, ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionConcurrencyInput, ...request.Option) *lambda.DeleteFunctionConcurrencyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionConcurrencyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionEventInvokeConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfig(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionEventInvokeConfigInput) (*lambda.DeleteFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionEventInvokeConfigInput) *lambda.DeleteFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionEventInvokeConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfigRequest(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteFunctionEventInvokeConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionEventInvokeConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionEventInvokeConfigInput) *lambda.DeleteFunctionEventInvokeConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteFunctionEventInvokeConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionEventInvokeConfigInput, ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionEventInvokeConfigInput, ...request.Option) *lambda.DeleteFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionEventInvokeConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionRequest(_a0 *lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteFunctionOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionInput) *lambda.DeleteFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionUrlConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionUrlConfig(_a0 *lambda.DeleteFunctionUrlConfigInput) (*lambda.DeleteFunctionUrlConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionUrlConfigInput) (*lambda.DeleteFunctionUrlConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionUrlConfigInput) *lambda.DeleteFunctionUrlConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionUrlConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionUrlConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteFunctionUrlConfigRequest(_a0 *lambda.DeleteFunctionUrlConfigInput) (*request.Request, *lambda.DeleteFunctionUrlConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteFunctionUrlConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionUrlConfigInput) (*request.Request, *lambda.DeleteFunctionUrlConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionUrlConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionUrlConfigInput) *lambda.DeleteFunctionUrlConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteFunctionUrlConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteFunctionUrlConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteFunctionUrlConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionUrlConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionUrlConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionUrlConfigInput, ...request.Option) (*lambda.DeleteFunctionUrlConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionUrlConfigInput, ...request.Option) *lambda.DeleteFunctionUrlConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionUrlConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteFunctionWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionInput, _a2 ...request.Option) (*lambda.DeleteFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionInput, ...request.Option) (*lambda.DeleteFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionInput, ...request.Option) *lambda.DeleteFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLayerVersion provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteLayerVersion(_a0 *lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteLayerVersionInput) *lambda.DeleteLayerVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteLayerVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteLayerVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteLayerVersionRequest(_a0 *lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteLayerVersionOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteLayerVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteLayerVersionInput) *lambda.DeleteLayerVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteLayerVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteLayerVersionWithContext(_a0 context.Context, _a1 *lambda.DeleteLayerVersionInput, _a2 ...request.Option) (*lambda.DeleteLayerVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteLayerVersionInput, ...request.Option) (*lambda.DeleteLayerVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteLayerVersionInput, ...request.Option) *lambda.DeleteLayerVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteLayerVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteProvisionedConcurrencyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfig(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.DeleteProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) *lambda.DeleteProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfigRequest(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*request.Request, *lambda.DeleteProvisionedConcurrencyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.DeleteProvisionedConcurrencyConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) (*request.Request, *lambda.DeleteProvisionedConcurrencyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.DeleteProvisionedConcurrencyConfigInput) *lambda.DeleteProvisionedConcurrencyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.DeleteProvisionedConcurrencyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.DeleteProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteProvisionedConcurrencyConfigInput, ...request.Option) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteProvisionedConcurrencyConfigInput, ...request.Option) *lambda.DeleteProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.DeleteProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteProvisionedConcurrencyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountSettings provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetAccountSettings(_a0 *lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetAccountSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetAccountSettingsInput) *lambda.GetAccountSettingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetAccountSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetAccountSettingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountSettingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetAccountSettingsRequest(_a0 *lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetAccountSettingsOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetAccountSettingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetAccountSettingsInput) *lambda.GetAccountSettingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetAccountSettingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetAccountSettingsWithContext(_a0 context.Context, _a1 *lambda.GetAccountSettingsInput, _a2 ...request.Option) (*lambda.GetAccountSettingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetAccountSettingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetAccountSettingsInput, ...request.Option) (*lambda.GetAccountSettingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetAccountSettingsInput, ...request.Option) *lambda.GetAccountSettingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetAccountSettingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetAccountSettingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAlias provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetAlias(_a0 *lambda.GetAliasInput) (*lambda.AliasConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetAliasInput) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetAliasInput) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetAliasRequest(_a0 *lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.AliasConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetAliasInput) *lambda.AliasConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.AliasConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// GetAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetAliasWithContext(_a0 context.Context, _a1 *lambda.GetAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetAliasInput, ...request.Option) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetAliasInput, ...request.Option) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetCodeSigningConfig(_a0 *lambda.GetCodeSigningConfigInput) (*lambda.GetCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) (*lambda.GetCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) *lambda.GetCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetCodeSigningConfigRequest(_a0 *lambda.GetCodeSigningConfigInput) (*request.Request, *lambda.GetCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) (*request.Request, *lambda.GetCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetCodeSigningConfigInput) *lambda.GetCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.GetCodeSigningConfigInput, _a2 ...request.Option) (*lambda.GetCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetCodeSigningConfigInput, ...request.Option) (*lambda.GetCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetCodeSigningConfigInput, ...request.Option) *lambda.GetCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventSourceMapping provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetEventSourceMapping(_a0 *lambda.GetEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetEventSourceMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEventSourceMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetEventSourceMappingRequest(_a0 *lambda.GetEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.EventSourceMappingConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.GetEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetEventSourceMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// GetEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.GetEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetEventSourceMappingInput, ...request.Option) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetEventSourceMappingInput, ...request.Option) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetEventSourceMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunction provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunction(_a0 *lambda.GetFunctionInput) (*lambda.GetFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) (*lambda.GetFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) *lambda.GetFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionCodeSigningConfig(_a0 *lambda.GetFunctionCodeSigningConfigInput) (*lambda.GetFunctionCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) (*lambda.GetFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) *lambda.GetFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionCodeSigningConfigRequest(_a0 *lambda.GetFunctionCodeSigningConfigInput) (*request.Request, *lambda.GetFunctionCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetFunctionCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) (*request.Request, *lambda.GetFunctionCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionCodeSigningConfigInput) *lambda.GetFunctionCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetFunctionCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.GetFunctionCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionCodeSigningConfigInput, ...request.Option) (*lambda.GetFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionCodeSigningConfigInput, ...request.Option) *lambda.GetFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionConcurrency provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionConcurrency(_a0 *lambda.GetFunctionConcurrencyInput) (*lambda.GetFunctionConcurrencyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConcurrencyInput) (*lambda.GetFunctionConcurrencyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConcurrencyInput) *lambda.GetFunctionConcurrencyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionConcurrencyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionConcurrencyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionConcurrencyRequest(_a0 *lambda.GetFunctionConcurrencyInput) (*request.Request, *lambda.GetFunctionConcurrencyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetFunctionConcurrencyOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConcurrencyInput) (*request.Request, *lambda.GetFunctionConcurrencyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConcurrencyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionConcurrencyInput) *lambda.GetFunctionConcurrencyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetFunctionConcurrencyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.GetFunctionConcurrencyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConcurrencyInput, ...request.Option) (*lambda.GetFunctionConcurrencyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConcurrencyInput, ...request.Option) *lambda.GetFunctionConcurrencyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionConcurrencyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionConfiguration(_a0 *lambda.GetFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionConfigurationRequest(_a0 *lambda.GetFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.FunctionConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionConfigurationInput) *lambda.FunctionConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.FunctionConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConfigurationInput, ...request.Option) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConfigurationInput, ...request.Option) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionEventInvokeConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionEventInvokeConfig(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*lambda.GetFunctionEventInvokeConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionEventInvokeConfigInput) (*lambda.GetFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionEventInvokeConfigInput) *lambda.GetFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionEventInvokeConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionEventInvokeConfigRequest(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetFunctionEventInvokeConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionEventInvokeConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionEventInvokeConfigInput) *lambda.GetFunctionEventInvokeConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetFunctionEventInvokeConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionEventInvokeConfigInput, ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionEventInvokeConfigInput, ...request.Option) *lambda.GetFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionEventInvokeConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionRequest(_a0 *lambda.GetFunctionInput) (*request.Request, *lambda.GetFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetFunctionOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) (*request.Request, *lambda.GetFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionInput) *lambda.GetFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionUrlConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionUrlConfig(_a0 *lambda.GetFunctionUrlConfigInput) (*lambda.GetFunctionUrlConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionUrlConfigInput) (*lambda.GetFunctionUrlConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionUrlConfigInput) *lambda.GetFunctionUrlConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionUrlConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionUrlConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetFunctionUrlConfigRequest(_a0 *lambda.GetFunctionUrlConfigInput) (*request.Request, *lambda.GetFunctionUrlConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetFunctionUrlConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionUrlConfigInput) (*request.Request, *lambda.GetFunctionUrlConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionUrlConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetFunctionUrlConfigInput) *lambda.GetFunctionUrlConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetFunctionUrlConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetFunctionUrlConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionUrlConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionUrlConfigInput, _a2 ...request.Option) (*lambda.GetFunctionUrlConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionUrlConfigInput, ...request.Option) (*lambda.GetFunctionUrlConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionUrlConfigInput, ...request.Option) *lambda.GetFunctionUrlConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionUrlConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetFunctionWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.Option) (*lambda.GetFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionInput, ...request.Option) (*lambda.GetFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionInput, ...request.Option) *lambda.GetFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersion provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersion(_a0 *lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionInput) *lambda.GetLayerVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersionByArn provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersionByArn(_a0 *lambda.GetLayerVersionByArnInput) (*lambda.GetLayerVersionByArnOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetLayerVersionByArnOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionByArnInput) (*lambda.GetLayerVersionByArnOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionByArnInput) *lambda.GetLayerVersionByArnOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionByArnOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionByArnInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersionByArnRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersionByArnRequest(_a0 *lambda.GetLayerVersionByArnInput) (*request.Request, *lambda.GetLayerVersionByArnOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetLayerVersionByArnOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionByArnInput) (*request.Request, *lambda.GetLayerVersionByArnOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionByArnInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionByArnInput) *lambda.GetLayerVersionByArnOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetLayerVersionByArnOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLayerVersionByArnWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetLayerVersionByArnWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionByArnInput, _a2 ...request.Option) (*lambda.GetLayerVersionByArnOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetLayerVersionByArnOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionByArnInput, ...request.Option) (*lambda.GetLayerVersionByArnOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionByArnInput, ...request.Option) *lambda.GetLayerVersionByArnOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionByArnOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetLayerVersionByArnInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersionPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersionPolicy(_a0 *lambda.GetLayerVersionPolicyInput) (*lambda.GetLayerVersionPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetLayerVersionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionPolicyInput) (*lambda.GetLayerVersionPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionPolicyInput) *lambda.GetLayerVersionPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersionPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersionPolicyRequest(_a0 *lambda.GetLayerVersionPolicyInput) (*request.Request, *lambda.GetLayerVersionPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetLayerVersionPolicyOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionPolicyInput) (*request.Request, *lambda.GetLayerVersionPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionPolicyInput) *lambda.GetLayerVersionPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetLayerVersionPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLayerVersionPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetLayerVersionPolicyWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionPolicyInput, _a2 ...request.Option) (*lambda.GetLayerVersionPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetLayerVersionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionPolicyInput, ...request.Option) (*lambda.GetLayerVersionPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionPolicyInput, ...request.Option) *lambda.GetLayerVersionPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetLayerVersionPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetLayerVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetLayerVersionRequest(_a0 *lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetLayerVersionOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetLayerVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetLayerVersionInput) *lambda.GetLayerVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetLayerVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetLayerVersionWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionInput, _a2 ...request.Option) (*lambda.GetLayerVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionInput, ...request.Option) (*lambda.GetLayerVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetLayerVersionInput, ...request.Option) *lambda.GetLayerVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetLayerVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetPolicy(_a0 *lambda.GetPolicyInput) (*lambda.GetPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetPolicyInput) (*lambda.GetPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetPolicyInput) *lambda.GetPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetPolicyRequest(_a0 *lambda.GetPolicyInput) (*request.Request, *lambda.GetPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetPolicyOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetPolicyInput) (*request.Request, *lambda.GetPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetPolicyInput) *lambda.GetPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetPolicyWithContext(_a0 context.Context, _a1 *lambda.GetPolicyInput, _a2 ...request.Option) (*lambda.GetPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetPolicyInput, ...request.Option) (*lambda.GetPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetPolicyInput, ...request.Option) *lambda.GetPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetProvisionedConcurrencyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetProvisionedConcurrencyConfig(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*lambda.GetProvisionedConcurrencyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.GetProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.GetProvisionedConcurrencyConfigInput) (*lambda.GetProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetProvisionedConcurrencyConfigInput) *lambda.GetProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetProvisionedConcurrencyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) GetProvisionedConcurrencyConfigRequest(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*request.Request, *lambda.GetProvisionedConcurrencyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.GetProvisionedConcurrencyConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.GetProvisionedConcurrencyConfigInput) (*request.Request, *lambda.GetProvisionedConcurrencyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.GetProvisionedConcurrencyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.GetProvisionedConcurrencyConfigInput) *lambda.GetProvisionedConcurrencyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.GetProvisionedConcurrencyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) GetProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.GetProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.GetProvisionedConcurrencyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.GetProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetProvisionedConcurrencyConfigInput, ...request.Option) (*lambda.GetProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetProvisionedConcurrencyConfigInput, ...request.Option) *lambda.GetProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.GetProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetProvisionedConcurrencyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Invoke provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) Invoke(_a0 *lambda.InvokeInput) (*lambda.InvokeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.InvokeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) (*lambda.InvokeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) *lambda.InvokeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.InvokeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.InvokeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// InvokeAsync provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) InvokeAsync(_a0 *lambda.InvokeAsyncInput) (*lambda.InvokeAsyncOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.InvokeAsyncOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.InvokeAsyncInput) (*lambda.InvokeAsyncOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.InvokeAsyncInput) *lambda.InvokeAsyncOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.InvokeAsyncOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.InvokeAsyncInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// InvokeAsyncRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) InvokeAsyncRequest(_a0 *lambda.InvokeAsyncInput) (*request.Request, *lambda.InvokeAsyncOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.InvokeAsyncOutput
- if rf, ok := ret.Get(0).(func(*lambda.InvokeAsyncInput) (*request.Request, *lambda.InvokeAsyncOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.InvokeAsyncInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.InvokeAsyncInput) *lambda.InvokeAsyncOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.InvokeAsyncOutput)
- }
- }
-
- return r0, r1
-}
-
-// InvokeAsyncWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) InvokeAsyncWithContext(_a0 context.Context, _a1 *lambda.InvokeAsyncInput, _a2 ...request.Option) (*lambda.InvokeAsyncOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.InvokeAsyncOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeAsyncInput, ...request.Option) (*lambda.InvokeAsyncOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeAsyncInput, ...request.Option) *lambda.InvokeAsyncOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.InvokeAsyncOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.InvokeAsyncInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// InvokeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) InvokeRequest(_a0 *lambda.InvokeInput) (*request.Request, *lambda.InvokeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.InvokeOutput
- if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) (*request.Request, *lambda.InvokeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.InvokeInput) *lambda.InvokeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.InvokeOutput)
- }
- }
-
- return r0, r1
-}
-
-// InvokeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) InvokeWithContext(_a0 context.Context, _a1 *lambda.InvokeInput, _a2 ...request.Option) (*lambda.InvokeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.InvokeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeInput, ...request.Option) (*lambda.InvokeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeInput, ...request.Option) *lambda.InvokeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.InvokeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.InvokeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAliases provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListAliases(_a0 *lambda.ListAliasesInput) (*lambda.ListAliasesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) (*lambda.ListAliasesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAliasesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListAliasesPages(_a0 *lambda.ListAliasesInput, _a1 func(*lambda.ListAliasesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAliasesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListAliasesPagesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 func(*lambda.ListAliasesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAliasesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListAliasesRequest(_a0 *lambda.ListAliasesInput) (*request.Request, *lambda.ListAliasesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListAliasesOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) (*request.Request, *lambda.ListAliasesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListAliasesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListAliasesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 ...request.Option) (*lambda.ListAliasesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListAliasesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) (*lambda.ListAliasesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) *lambda.ListAliasesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListAliasesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCodeSigningConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListCodeSigningConfigs(_a0 *lambda.ListCodeSigningConfigsInput) (*lambda.ListCodeSigningConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListCodeSigningConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) (*lambda.ListCodeSigningConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) *lambda.ListCodeSigningConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListCodeSigningConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListCodeSigningConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCodeSigningConfigsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListCodeSigningConfigsPages(_a0 *lambda.ListCodeSigningConfigsInput, _a1 func(*lambda.ListCodeSigningConfigsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput, func(*lambda.ListCodeSigningConfigsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCodeSigningConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListCodeSigningConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListCodeSigningConfigsInput, _a2 func(*lambda.ListCodeSigningConfigsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListCodeSigningConfigsInput, func(*lambda.ListCodeSigningConfigsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCodeSigningConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListCodeSigningConfigsRequest(_a0 *lambda.ListCodeSigningConfigsInput) (*request.Request, *lambda.ListCodeSigningConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListCodeSigningConfigsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) (*request.Request, *lambda.ListCodeSigningConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListCodeSigningConfigsInput) *lambda.ListCodeSigningConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListCodeSigningConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCodeSigningConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListCodeSigningConfigsWithContext(_a0 context.Context, _a1 *lambda.ListCodeSigningConfigsInput, _a2 ...request.Option) (*lambda.ListCodeSigningConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListCodeSigningConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListCodeSigningConfigsInput, ...request.Option) (*lambda.ListCodeSigningConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListCodeSigningConfigsInput, ...request.Option) *lambda.ListCodeSigningConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListCodeSigningConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListCodeSigningConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEventSourceMappings provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListEventSourceMappings(_a0 *lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListEventSourceMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListEventSourceMappingsInput) *lambda.ListEventSourceMappingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListEventSourceMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListEventSourceMappingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEventSourceMappingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListEventSourceMappingsPages(_a0 *lambda.ListEventSourceMappingsInput, _a1 func(*lambda.ListEventSourceMappingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListEventSourceMappingsInput, func(*lambda.ListEventSourceMappingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEventSourceMappingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListEventSourceMappingsPagesWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 func(*lambda.ListEventSourceMappingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListEventSourceMappingsInput, func(*lambda.ListEventSourceMappingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEventSourceMappingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListEventSourceMappingsRequest(_a0 *lambda.ListEventSourceMappingsInput) (*request.Request, *lambda.ListEventSourceMappingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListEventSourceMappingsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListEventSourceMappingsInput) (*request.Request, *lambda.ListEventSourceMappingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListEventSourceMappingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListEventSourceMappingsInput) *lambda.ListEventSourceMappingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListEventSourceMappingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListEventSourceMappingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListEventSourceMappingsWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 ...request.Option) (*lambda.ListEventSourceMappingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListEventSourceMappingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListEventSourceMappingsInput, ...request.Option) (*lambda.ListEventSourceMappingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListEventSourceMappingsInput, ...request.Option) *lambda.ListEventSourceMappingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListEventSourceMappingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListEventSourceMappingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionEventInvokeConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionEventInvokeConfigs(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*lambda.ListFunctionEventInvokeConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListFunctionEventInvokeConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionEventInvokeConfigsInput) (*lambda.ListFunctionEventInvokeConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionEventInvokeConfigsInput) *lambda.ListFunctionEventInvokeConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionEventInvokeConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionEventInvokeConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionEventInvokeConfigsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsPages(_a0 *lambda.ListFunctionEventInvokeConfigsInput, _a1 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionEventInvokeConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionEventInvokeConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsRequest(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*request.Request, *lambda.ListFunctionEventInvokeConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListFunctionEventInvokeConfigsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionEventInvokeConfigsInput) (*request.Request, *lambda.ListFunctionEventInvokeConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionEventInvokeConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionEventInvokeConfigsInput) *lambda.ListFunctionEventInvokeConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListFunctionEventInvokeConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFunctionEventInvokeConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 ...request.Option) (*lambda.ListFunctionEventInvokeConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListFunctionEventInvokeConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionEventInvokeConfigsInput, ...request.Option) (*lambda.ListFunctionEventInvokeConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionEventInvokeConfigsInput, ...request.Option) *lambda.ListFunctionEventInvokeConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionEventInvokeConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListFunctionEventInvokeConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionUrlConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionUrlConfigs(_a0 *lambda.ListFunctionUrlConfigsInput) (*lambda.ListFunctionUrlConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListFunctionUrlConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionUrlConfigsInput) (*lambda.ListFunctionUrlConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionUrlConfigsInput) *lambda.ListFunctionUrlConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionUrlConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionUrlConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionUrlConfigsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListFunctionUrlConfigsPages(_a0 *lambda.ListFunctionUrlConfigsInput, _a1 func(*lambda.ListFunctionUrlConfigsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionUrlConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListFunctionUrlConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionUrlConfigsInput, _a2 func(*lambda.ListFunctionUrlConfigsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionUrlConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionUrlConfigsRequest(_a0 *lambda.ListFunctionUrlConfigsInput) (*request.Request, *lambda.ListFunctionUrlConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListFunctionUrlConfigsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionUrlConfigsInput) (*request.Request, *lambda.ListFunctionUrlConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionUrlConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionUrlConfigsInput) *lambda.ListFunctionUrlConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListFunctionUrlConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFunctionUrlConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListFunctionUrlConfigsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionUrlConfigsInput, _a2 ...request.Option) (*lambda.ListFunctionUrlConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListFunctionUrlConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionUrlConfigsInput, ...request.Option) (*lambda.ListFunctionUrlConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionUrlConfigsInput, ...request.Option) *lambda.ListFunctionUrlConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionUrlConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListFunctionUrlConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctions provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctions(_a0 *lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListFunctionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsInput) *lambda.ListFunctionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionsByCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfig(_a0 *lambda.ListFunctionsByCodeSigningConfigInput) (*lambda.ListFunctionsByCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListFunctionsByCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) (*lambda.ListFunctionsByCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *lambda.ListFunctionsByCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionsByCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsByCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionsByCodeSigningConfigPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigPages(_a0 *lambda.ListFunctionsByCodeSigningConfigInput, _a1 func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput, func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionsByCodeSigningConfigPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsByCodeSigningConfigInput, _a2 func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionsByCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigRequest(_a0 *lambda.ListFunctionsByCodeSigningConfigInput) (*request.Request, *lambda.ListFunctionsByCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListFunctionsByCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) (*request.Request, *lambda.ListFunctionsByCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *lambda.ListFunctionsByCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListFunctionsByCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFunctionsByCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsByCodeSigningConfigInput, _a2 ...request.Option) (*lambda.ListFunctionsByCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListFunctionsByCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, ...request.Option) (*lambda.ListFunctionsByCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, ...request.Option) *lambda.ListFunctionsByCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionsByCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListFunctionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListFunctionsPages(_a0 *lambda.ListFunctionsInput, _a1 func(*lambda.ListFunctionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsInput, func(*lambda.ListFunctionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListFunctionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 func(*lambda.ListFunctionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsInput, func(*lambda.ListFunctionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListFunctionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListFunctionsRequest(_a0 *lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListFunctionsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsInput) *lambda.ListFunctionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListFunctionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListFunctionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListFunctionsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 ...request.Option) (*lambda.ListFunctionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListFunctionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsInput, ...request.Option) (*lambda.ListFunctionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsInput, ...request.Option) *lambda.ListFunctionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListFunctionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListFunctionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListLayerVersions provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListLayerVersions(_a0 *lambda.ListLayerVersionsInput) (*lambda.ListLayerVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListLayerVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListLayerVersionsInput) (*lambda.ListLayerVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListLayerVersionsInput) *lambda.ListLayerVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListLayerVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListLayerVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListLayerVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListLayerVersionsPages(_a0 *lambda.ListLayerVersionsInput, _a1 func(*lambda.ListLayerVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListLayerVersionsInput, func(*lambda.ListLayerVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListLayerVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListLayerVersionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 func(*lambda.ListLayerVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayerVersionsInput, func(*lambda.ListLayerVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListLayerVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListLayerVersionsRequest(_a0 *lambda.ListLayerVersionsInput) (*request.Request, *lambda.ListLayerVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListLayerVersionsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListLayerVersionsInput) (*request.Request, *lambda.ListLayerVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListLayerVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListLayerVersionsInput) *lambda.ListLayerVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListLayerVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListLayerVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListLayerVersionsWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 ...request.Option) (*lambda.ListLayerVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListLayerVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayerVersionsInput, ...request.Option) (*lambda.ListLayerVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayerVersionsInput, ...request.Option) *lambda.ListLayerVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListLayerVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListLayerVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListLayers provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListLayers(_a0 *lambda.ListLayersInput) (*lambda.ListLayersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListLayersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListLayersInput) (*lambda.ListLayersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListLayersInput) *lambda.ListLayersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListLayersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListLayersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListLayersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListLayersPages(_a0 *lambda.ListLayersInput, _a1 func(*lambda.ListLayersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListLayersInput, func(*lambda.ListLayersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListLayersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListLayersPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 func(*lambda.ListLayersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayersInput, func(*lambda.ListLayersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListLayersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListLayersRequest(_a0 *lambda.ListLayersInput) (*request.Request, *lambda.ListLayersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListLayersOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListLayersInput) (*request.Request, *lambda.ListLayersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListLayersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListLayersInput) *lambda.ListLayersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListLayersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListLayersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListLayersWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 ...request.Option) (*lambda.ListLayersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListLayersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayersInput, ...request.Option) (*lambda.ListLayersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListLayersInput, ...request.Option) *lambda.ListLayersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListLayersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListLayersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListProvisionedConcurrencyConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigs(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListProvisionedConcurrencyConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListProvisionedConcurrencyConfigsInput) (*lambda.ListProvisionedConcurrencyConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListProvisionedConcurrencyConfigsInput) *lambda.ListProvisionedConcurrencyConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListProvisionedConcurrencyConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListProvisionedConcurrencyConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListProvisionedConcurrencyConfigsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsPages(_a0 *lambda.ListProvisionedConcurrencyConfigsInput, _a1 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListProvisionedConcurrencyConfigsInput, func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListProvisionedConcurrencyConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListProvisionedConcurrencyConfigsInput, func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListProvisionedConcurrencyConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsRequest(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*request.Request, *lambda.ListProvisionedConcurrencyConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListProvisionedConcurrencyConfigsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListProvisionedConcurrencyConfigsInput) (*request.Request, *lambda.ListProvisionedConcurrencyConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListProvisionedConcurrencyConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListProvisionedConcurrencyConfigsInput) *lambda.ListProvisionedConcurrencyConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListProvisionedConcurrencyConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListProvisionedConcurrencyConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 ...request.Option) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListProvisionedConcurrencyConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListProvisionedConcurrencyConfigsInput, ...request.Option) (*lambda.ListProvisionedConcurrencyConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListProvisionedConcurrencyConfigsInput, ...request.Option) *lambda.ListProvisionedConcurrencyConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListProvisionedConcurrencyConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListProvisionedConcurrencyConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTags provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListTags(_a0 *lambda.ListTagsInput) (*lambda.ListTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListTagsInput) (*lambda.ListTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListTagsInput) *lambda.ListTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListTagsRequest(_a0 *lambda.ListTagsInput) (*request.Request, *lambda.ListTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListTagsOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListTagsInput) (*request.Request, *lambda.ListTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListTagsInput) *lambda.ListTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListTagsWithContext(_a0 context.Context, _a1 *lambda.ListTagsInput, _a2 ...request.Option) (*lambda.ListTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListTagsInput, ...request.Option) (*lambda.ListTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListTagsInput, ...request.Option) *lambda.ListTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVersionsByFunction provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListVersionsByFunction(_a0 *lambda.ListVersionsByFunctionInput) (*lambda.ListVersionsByFunctionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.ListVersionsByFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.ListVersionsByFunctionInput) (*lambda.ListVersionsByFunctionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListVersionsByFunctionInput) *lambda.ListVersionsByFunctionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListVersionsByFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListVersionsByFunctionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVersionsByFunctionPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeLambda) ListVersionsByFunctionPages(_a0 *lambda.ListVersionsByFunctionInput, _a1 func(*lambda.ListVersionsByFunctionOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.ListVersionsByFunctionInput, func(*lambda.ListVersionsByFunctionOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListVersionsByFunctionPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeLambda) ListVersionsByFunctionPagesWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 func(*lambda.ListVersionsByFunctionOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListVersionsByFunctionInput, func(*lambda.ListVersionsByFunctionOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListVersionsByFunctionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) ListVersionsByFunctionRequest(_a0 *lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.ListVersionsByFunctionOutput
- if rf, ok := ret.Get(0).(func(*lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.ListVersionsByFunctionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.ListVersionsByFunctionInput) *lambda.ListVersionsByFunctionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.ListVersionsByFunctionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListVersionsByFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) ListVersionsByFunctionWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 ...request.Option) (*lambda.ListVersionsByFunctionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.ListVersionsByFunctionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListVersionsByFunctionInput, ...request.Option) (*lambda.ListVersionsByFunctionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListVersionsByFunctionInput, ...request.Option) *lambda.ListVersionsByFunctionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.ListVersionsByFunctionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListVersionsByFunctionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishLayerVersion provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PublishLayerVersion(_a0 *lambda.PublishLayerVersionInput) (*lambda.PublishLayerVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.PublishLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PublishLayerVersionInput) (*lambda.PublishLayerVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PublishLayerVersionInput) *lambda.PublishLayerVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PublishLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PublishLayerVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishLayerVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PublishLayerVersionRequest(_a0 *lambda.PublishLayerVersionInput) (*request.Request, *lambda.PublishLayerVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.PublishLayerVersionOutput
- if rf, ok := ret.Get(0).(func(*lambda.PublishLayerVersionInput) (*request.Request, *lambda.PublishLayerVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PublishLayerVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PublishLayerVersionInput) *lambda.PublishLayerVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.PublishLayerVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PublishLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PublishLayerVersionWithContext(_a0 context.Context, _a1 *lambda.PublishLayerVersionInput, _a2 ...request.Option) (*lambda.PublishLayerVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.PublishLayerVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PublishLayerVersionInput, ...request.Option) (*lambda.PublishLayerVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PublishLayerVersionInput, ...request.Option) *lambda.PublishLayerVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PublishLayerVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PublishLayerVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishVersion provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PublishVersion(_a0 *lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PublishVersionInput) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PublishVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PublishVersionRequest(_a0 *lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.FunctionConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PublishVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PublishVersionInput) *lambda.FunctionConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.FunctionConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// PublishVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PublishVersionWithContext(_a0 context.Context, _a1 *lambda.PublishVersionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PublishVersionInput, ...request.Option) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PublishVersionInput, ...request.Option) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PublishVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionCodeSigningConfig(_a0 *lambda.PutFunctionCodeSigningConfigInput) (*lambda.PutFunctionCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.PutFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) (*lambda.PutFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) *lambda.PutFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionCodeSigningConfigRequest(_a0 *lambda.PutFunctionCodeSigningConfigInput) (*request.Request, *lambda.PutFunctionCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.PutFunctionCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) (*request.Request, *lambda.PutFunctionCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionCodeSigningConfigInput) *lambda.PutFunctionCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.PutFunctionCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PutFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.PutFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.PutFunctionCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.PutFunctionCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionCodeSigningConfigInput, ...request.Option) (*lambda.PutFunctionCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionCodeSigningConfigInput, ...request.Option) *lambda.PutFunctionCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PutFunctionCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionConcurrency provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionConcurrency(_a0 *lambda.PutFunctionConcurrencyInput) (*lambda.PutFunctionConcurrencyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.PutFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionConcurrencyInput) (*lambda.PutFunctionConcurrencyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionConcurrencyInput) *lambda.PutFunctionConcurrencyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionConcurrencyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionConcurrencyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionConcurrencyRequest(_a0 *lambda.PutFunctionConcurrencyInput) (*request.Request, *lambda.PutFunctionConcurrencyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.PutFunctionConcurrencyOutput
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionConcurrencyInput) (*request.Request, *lambda.PutFunctionConcurrencyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionConcurrencyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionConcurrencyInput) *lambda.PutFunctionConcurrencyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.PutFunctionConcurrencyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PutFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.PutFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.PutFunctionConcurrencyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.PutFunctionConcurrencyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionConcurrencyInput, ...request.Option) (*lambda.PutFunctionConcurrencyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionConcurrencyInput, ...request.Option) *lambda.PutFunctionConcurrencyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionConcurrencyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PutFunctionConcurrencyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionEventInvokeConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionEventInvokeConfig(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*lambda.PutFunctionEventInvokeConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.PutFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionEventInvokeConfigInput) (*lambda.PutFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionEventInvokeConfigInput) *lambda.PutFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionEventInvokeConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutFunctionEventInvokeConfigRequest(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*request.Request, *lambda.PutFunctionEventInvokeConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.PutFunctionEventInvokeConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionEventInvokeConfigInput) (*request.Request, *lambda.PutFunctionEventInvokeConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutFunctionEventInvokeConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutFunctionEventInvokeConfigInput) *lambda.PutFunctionEventInvokeConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.PutFunctionEventInvokeConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PutFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.PutFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.PutFunctionEventInvokeConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.PutFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionEventInvokeConfigInput, ...request.Option) (*lambda.PutFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionEventInvokeConfigInput, ...request.Option) *lambda.PutFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PutFunctionEventInvokeConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutProvisionedConcurrencyConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutProvisionedConcurrencyConfig(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*lambda.PutProvisionedConcurrencyConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.PutProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.PutProvisionedConcurrencyConfigInput) (*lambda.PutProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutProvisionedConcurrencyConfigInput) *lambda.PutProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutProvisionedConcurrencyConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) PutProvisionedConcurrencyConfigRequest(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*request.Request, *lambda.PutProvisionedConcurrencyConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.PutProvisionedConcurrencyConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.PutProvisionedConcurrencyConfigInput) (*request.Request, *lambda.PutProvisionedConcurrencyConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.PutProvisionedConcurrencyConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.PutProvisionedConcurrencyConfigInput) *lambda.PutProvisionedConcurrencyConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.PutProvisionedConcurrencyConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) PutProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.PutProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.PutProvisionedConcurrencyConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.PutProvisionedConcurrencyConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutProvisionedConcurrencyConfigInput, ...request.Option) (*lambda.PutProvisionedConcurrencyConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutProvisionedConcurrencyConfigInput, ...request.Option) *lambda.PutProvisionedConcurrencyConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.PutProvisionedConcurrencyConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.PutProvisionedConcurrencyConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveLayerVersionPermission provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) RemoveLayerVersionPermission(_a0 *lambda.RemoveLayerVersionPermissionInput) (*lambda.RemoveLayerVersionPermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.RemoveLayerVersionPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.RemoveLayerVersionPermissionInput) (*lambda.RemoveLayerVersionPermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.RemoveLayerVersionPermissionInput) *lambda.RemoveLayerVersionPermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.RemoveLayerVersionPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.RemoveLayerVersionPermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveLayerVersionPermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) RemoveLayerVersionPermissionRequest(_a0 *lambda.RemoveLayerVersionPermissionInput) (*request.Request, *lambda.RemoveLayerVersionPermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.RemoveLayerVersionPermissionOutput
- if rf, ok := ret.Get(0).(func(*lambda.RemoveLayerVersionPermissionInput) (*request.Request, *lambda.RemoveLayerVersionPermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.RemoveLayerVersionPermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.RemoveLayerVersionPermissionInput) *lambda.RemoveLayerVersionPermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.RemoveLayerVersionPermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveLayerVersionPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) RemoveLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.RemoveLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.RemoveLayerVersionPermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.RemoveLayerVersionPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.RemoveLayerVersionPermissionInput, ...request.Option) (*lambda.RemoveLayerVersionPermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.RemoveLayerVersionPermissionInput, ...request.Option) *lambda.RemoveLayerVersionPermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.RemoveLayerVersionPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.RemoveLayerVersionPermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermission provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) RemovePermission(_a0 *lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.RemovePermissionInput) *lambda.RemovePermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.RemovePermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) RemovePermissionRequest(_a0 *lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.RemovePermissionOutput
- if rf, ok := ret.Get(0).(func(*lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.RemovePermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.RemovePermissionInput) *lambda.RemovePermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.RemovePermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemovePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) RemovePermissionWithContext(_a0 context.Context, _a1 *lambda.RemovePermissionInput, _a2 ...request.Option) (*lambda.RemovePermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.RemovePermissionInput, ...request.Option) (*lambda.RemovePermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.RemovePermissionInput, ...request.Option) *lambda.RemovePermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.RemovePermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) TagResource(_a0 *lambda.TagResourceInput) (*lambda.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.TagResourceInput) (*lambda.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.TagResourceInput) *lambda.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) TagResourceRequest(_a0 *lambda.TagResourceInput) (*request.Request, *lambda.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*lambda.TagResourceInput) (*request.Request, *lambda.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.TagResourceInput) *lambda.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) TagResourceWithContext(_a0 context.Context, _a1 *lambda.TagResourceInput, _a2 ...request.Option) (*lambda.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.TagResourceInput, ...request.Option) (*lambda.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.TagResourceInput, ...request.Option) *lambda.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UntagResource(_a0 *lambda.UntagResourceInput) (*lambda.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UntagResourceInput) (*lambda.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UntagResourceInput) *lambda.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UntagResourceRequest(_a0 *lambda.UntagResourceInput) (*request.Request, *lambda.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*lambda.UntagResourceInput) (*request.Request, *lambda.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UntagResourceInput) *lambda.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UntagResourceWithContext(_a0 context.Context, _a1 *lambda.UntagResourceInput, _a2 ...request.Option) (*lambda.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UntagResourceInput, ...request.Option) (*lambda.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UntagResourceInput, ...request.Option) *lambda.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAlias provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateAlias(_a0 *lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateAliasInput) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateAliasInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateAliasRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateAliasRequest(_a0 *lambda.UpdateAliasInput) (*request.Request, *lambda.AliasConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.AliasConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.UpdateAliasInput) (*request.Request, *lambda.AliasConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateAliasInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateAliasInput) *lambda.AliasConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.AliasConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// UpdateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateAliasWithContext(_a0 context.Context, _a1 *lambda.UpdateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.AliasConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateAliasInput, ...request.Option) (*lambda.AliasConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateAliasInput, ...request.Option) *lambda.AliasConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.AliasConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateAliasInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCodeSigningConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateCodeSigningConfig(_a0 *lambda.UpdateCodeSigningConfigInput) (*lambda.UpdateCodeSigningConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.UpdateCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) (*lambda.UpdateCodeSigningConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) *lambda.UpdateCodeSigningConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateCodeSigningConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateCodeSigningConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateCodeSigningConfigRequest(_a0 *lambda.UpdateCodeSigningConfigInput) (*request.Request, *lambda.UpdateCodeSigningConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.UpdateCodeSigningConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) (*request.Request, *lambda.UpdateCodeSigningConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateCodeSigningConfigInput) *lambda.UpdateCodeSigningConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.UpdateCodeSigningConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateCodeSigningConfigInput, _a2 ...request.Option) (*lambda.UpdateCodeSigningConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.UpdateCodeSigningConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateCodeSigningConfigInput, ...request.Option) (*lambda.UpdateCodeSigningConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateCodeSigningConfigInput, ...request.Option) *lambda.UpdateCodeSigningConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateCodeSigningConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateCodeSigningConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateEventSourceMapping provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateEventSourceMapping(_a0 *lambda.UpdateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateEventSourceMappingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateEventSourceMappingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateEventSourceMappingRequest(_a0 *lambda.UpdateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.EventSourceMappingConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.UpdateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateEventSourceMappingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateEventSourceMappingInput) *lambda.EventSourceMappingConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// UpdateEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.UpdateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.EventSourceMappingConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateEventSourceMappingInput, ...request.Option) (*lambda.EventSourceMappingConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateEventSourceMappingInput, ...request.Option) *lambda.EventSourceMappingConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.EventSourceMappingConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateEventSourceMappingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionCode provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionCode(_a0 *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionCodeInput) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionCodeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionCodeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionCodeRequest(_a0 *lambda.UpdateFunctionCodeInput) (*request.Request, *lambda.FunctionConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.FunctionConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionCodeInput) (*request.Request, *lambda.FunctionConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionCodeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionCodeInput) *lambda.FunctionConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.FunctionConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFunctionCodeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateFunctionCodeWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionCodeInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionCodeInput, ...request.Option) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionCodeInput, ...request.Option) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateFunctionCodeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionConfiguration(_a0 *lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionConfigurationInput) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionConfigurationRequest(_a0 *lambda.UpdateFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.FunctionConfiguration
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionConfigurationInput) *lambda.FunctionConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.FunctionConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFunctionConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.FunctionConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionConfigurationInput, ...request.Option) (*lambda.FunctionConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionConfigurationInput, ...request.Option) *lambda.FunctionConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.FunctionConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateFunctionConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionEventInvokeConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfig(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.UpdateFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionEventInvokeConfigInput) (*lambda.UpdateFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionEventInvokeConfigInput) *lambda.UpdateFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionEventInvokeConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfigRequest(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.UpdateFunctionEventInvokeConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionEventInvokeConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionEventInvokeConfigInput) *lambda.UpdateFunctionEventInvokeConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.UpdateFunctionEventInvokeConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.UpdateFunctionEventInvokeConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionEventInvokeConfigInput, ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionEventInvokeConfigInput, ...request.Option) *lambda.UpdateFunctionEventInvokeConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateFunctionEventInvokeConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateFunctionEventInvokeConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionUrlConfig provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionUrlConfig(_a0 *lambda.UpdateFunctionUrlConfigInput) (*lambda.UpdateFunctionUrlConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *lambda.UpdateFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionUrlConfigInput) (*lambda.UpdateFunctionUrlConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionUrlConfigInput) *lambda.UpdateFunctionUrlConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionUrlConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateFunctionUrlConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) UpdateFunctionUrlConfigRequest(_a0 *lambda.UpdateFunctionUrlConfigInput) (*request.Request, *lambda.UpdateFunctionUrlConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *lambda.UpdateFunctionUrlConfigOutput
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionUrlConfigInput) (*request.Request, *lambda.UpdateFunctionUrlConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*lambda.UpdateFunctionUrlConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*lambda.UpdateFunctionUrlConfigInput) *lambda.UpdateFunctionUrlConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*lambda.UpdateFunctionUrlConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateFunctionUrlConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) UpdateFunctionUrlConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionUrlConfigInput, _a2 ...request.Option) (*lambda.UpdateFunctionUrlConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *lambda.UpdateFunctionUrlConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionUrlConfigInput, ...request.Option) (*lambda.UpdateFunctionUrlConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateFunctionUrlConfigInput, ...request.Option) *lambda.UpdateFunctionUrlConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*lambda.UpdateFunctionUrlConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateFunctionUrlConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilFunctionActive provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) WaitUntilFunctionActive(_a0 *lambda.GetFunctionConfigurationInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionActiveV2 provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) WaitUntilFunctionActiveV2(_a0 *lambda.GetFunctionInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionActiveV2WithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) WaitUntilFunctionActiveV2WithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionActiveWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) WaitUntilFunctionActiveWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConfigurationInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionExists provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) WaitUntilFunctionExists(_a0 *lambda.GetFunctionInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) WaitUntilFunctionExistsWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionUpdated provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) WaitUntilFunctionUpdated(_a0 *lambda.GetFunctionConfigurationInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionConfigurationInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionUpdatedV2 provides a mock function with given fields: _a0
-func (_m *MockFakeLambda) WaitUntilFunctionUpdatedV2(_a0 *lambda.GetFunctionInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*lambda.GetFunctionInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionUpdatedV2WithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) WaitUntilFunctionUpdatedV2WithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilFunctionUpdatedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeLambda) WaitUntilFunctionUpdatedWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionConfigurationInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeLambda interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeLambda creates a new instance of MockFakeLambda. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeLambda(t mockConstructorTestingTNewMockFakeLambda) *MockFakeLambda {
- mock := &MockFakeLambda{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeRDS.go b/test/aws/mock_FakeRDS.go
deleted file mode 100644
index fe0b05202..000000000
--- a/test/aws/mock_FakeRDS.go
+++ /dev/null
@@ -1,13386 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- rds "github.com/aws/aws-sdk-go/service/rds"
- mock "github.com/stretchr/testify/mock"
-
- request "github.com/aws/aws-sdk-go/aws/request"
-)
-
-// MockFakeRDS is an autogenerated mock type for the FakeRDS type
-type MockFakeRDS struct {
- mock.Mock
-}
-
-// AddRoleToDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddRoleToDBCluster(_a0 *rds.AddRoleToDBClusterInput) (*rds.AddRoleToDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.AddRoleToDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBClusterInput) (*rds.AddRoleToDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBClusterInput) *rds.AddRoleToDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddRoleToDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddRoleToDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddRoleToDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddRoleToDBClusterRequest(_a0 *rds.AddRoleToDBClusterInput) (*request.Request, *rds.AddRoleToDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.AddRoleToDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBClusterInput) (*request.Request, *rds.AddRoleToDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddRoleToDBClusterInput) *rds.AddRoleToDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.AddRoleToDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddRoleToDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) AddRoleToDBClusterWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBClusterInput, _a2 ...request.Option) (*rds.AddRoleToDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.AddRoleToDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddRoleToDBClusterInput, ...request.Option) (*rds.AddRoleToDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddRoleToDBClusterInput, ...request.Option) *rds.AddRoleToDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddRoleToDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.AddRoleToDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddRoleToDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddRoleToDBInstance(_a0 *rds.AddRoleToDBInstanceInput) (*rds.AddRoleToDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.AddRoleToDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBInstanceInput) (*rds.AddRoleToDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBInstanceInput) *rds.AddRoleToDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddRoleToDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddRoleToDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddRoleToDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddRoleToDBInstanceRequest(_a0 *rds.AddRoleToDBInstanceInput) (*request.Request, *rds.AddRoleToDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.AddRoleToDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBInstanceInput) (*request.Request, *rds.AddRoleToDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddRoleToDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddRoleToDBInstanceInput) *rds.AddRoleToDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.AddRoleToDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddRoleToDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) AddRoleToDBInstanceWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBInstanceInput, _a2 ...request.Option) (*rds.AddRoleToDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.AddRoleToDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddRoleToDBInstanceInput, ...request.Option) (*rds.AddRoleToDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddRoleToDBInstanceInput, ...request.Option) *rds.AddRoleToDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddRoleToDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.AddRoleToDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddSourceIdentifierToSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddSourceIdentifierToSubscription(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*rds.AddSourceIdentifierToSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.AddSourceIdentifierToSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.AddSourceIdentifierToSubscriptionInput) (*rds.AddSourceIdentifierToSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddSourceIdentifierToSubscriptionInput) *rds.AddSourceIdentifierToSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddSourceIdentifierToSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddSourceIdentifierToSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddSourceIdentifierToSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddSourceIdentifierToSubscriptionRequest(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*request.Request, *rds.AddSourceIdentifierToSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.AddSourceIdentifierToSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*rds.AddSourceIdentifierToSubscriptionInput) (*request.Request, *rds.AddSourceIdentifierToSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddSourceIdentifierToSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddSourceIdentifierToSubscriptionInput) *rds.AddSourceIdentifierToSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.AddSourceIdentifierToSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddSourceIdentifierToSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) AddSourceIdentifierToSubscriptionWithContext(_a0 context.Context, _a1 *rds.AddSourceIdentifierToSubscriptionInput, _a2 ...request.Option) (*rds.AddSourceIdentifierToSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.AddSourceIdentifierToSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddSourceIdentifierToSubscriptionInput, ...request.Option) (*rds.AddSourceIdentifierToSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddSourceIdentifierToSubscriptionInput, ...request.Option) *rds.AddSourceIdentifierToSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddSourceIdentifierToSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.AddSourceIdentifierToSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsToResource provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddTagsToResource(_a0 *rds.AddTagsToResourceInput) (*rds.AddTagsToResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.AddTagsToResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.AddTagsToResourceInput) (*rds.AddTagsToResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddTagsToResourceInput) *rds.AddTagsToResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddTagsToResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddTagsToResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddTagsToResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AddTagsToResourceRequest(_a0 *rds.AddTagsToResourceInput) (*request.Request, *rds.AddTagsToResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.AddTagsToResourceOutput
- if rf, ok := ret.Get(0).(func(*rds.AddTagsToResourceInput) (*request.Request, *rds.AddTagsToResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AddTagsToResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AddTagsToResourceInput) *rds.AddTagsToResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.AddTagsToResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddTagsToResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) AddTagsToResourceWithContext(_a0 context.Context, _a1 *rds.AddTagsToResourceInput, _a2 ...request.Option) (*rds.AddTagsToResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.AddTagsToResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddTagsToResourceInput, ...request.Option) (*rds.AddTagsToResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AddTagsToResourceInput, ...request.Option) *rds.AddTagsToResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AddTagsToResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.AddTagsToResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplyPendingMaintenanceAction provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ApplyPendingMaintenanceAction(_a0 *rds.ApplyPendingMaintenanceActionInput) (*rds.ApplyPendingMaintenanceActionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ApplyPendingMaintenanceActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ApplyPendingMaintenanceActionInput) (*rds.ApplyPendingMaintenanceActionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ApplyPendingMaintenanceActionInput) *rds.ApplyPendingMaintenanceActionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ApplyPendingMaintenanceActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ApplyPendingMaintenanceActionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ApplyPendingMaintenanceActionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ApplyPendingMaintenanceActionRequest(_a0 *rds.ApplyPendingMaintenanceActionInput) (*request.Request, *rds.ApplyPendingMaintenanceActionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ApplyPendingMaintenanceActionOutput
- if rf, ok := ret.Get(0).(func(*rds.ApplyPendingMaintenanceActionInput) (*request.Request, *rds.ApplyPendingMaintenanceActionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ApplyPendingMaintenanceActionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ApplyPendingMaintenanceActionInput) *rds.ApplyPendingMaintenanceActionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ApplyPendingMaintenanceActionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ApplyPendingMaintenanceActionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ApplyPendingMaintenanceActionWithContext(_a0 context.Context, _a1 *rds.ApplyPendingMaintenanceActionInput, _a2 ...request.Option) (*rds.ApplyPendingMaintenanceActionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ApplyPendingMaintenanceActionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ApplyPendingMaintenanceActionInput, ...request.Option) (*rds.ApplyPendingMaintenanceActionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ApplyPendingMaintenanceActionInput, ...request.Option) *rds.ApplyPendingMaintenanceActionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ApplyPendingMaintenanceActionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ApplyPendingMaintenanceActionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeDBSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngress(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.AuthorizeDBSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.AuthorizeDBSecurityGroupIngressInput) (*rds.AuthorizeDBSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AuthorizeDBSecurityGroupIngressInput) *rds.AuthorizeDBSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AuthorizeDBSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AuthorizeDBSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AuthorizeDBSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngressRequest(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*request.Request, *rds.AuthorizeDBSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.AuthorizeDBSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*rds.AuthorizeDBSecurityGroupIngressInput) (*request.Request, *rds.AuthorizeDBSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.AuthorizeDBSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.AuthorizeDBSecurityGroupIngressInput) *rds.AuthorizeDBSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.AuthorizeDBSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// AuthorizeDBSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.AuthorizeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.AuthorizeDBSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AuthorizeDBSecurityGroupIngressInput, ...request.Option) (*rds.AuthorizeDBSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.AuthorizeDBSecurityGroupIngressInput, ...request.Option) *rds.AuthorizeDBSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.AuthorizeDBSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.AuthorizeDBSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BacktrackDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) BacktrackDBCluster(_a0 *rds.BacktrackDBClusterInput) (*rds.BacktrackDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.BacktrackDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.BacktrackDBClusterInput) (*rds.BacktrackDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.BacktrackDBClusterInput) *rds.BacktrackDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.BacktrackDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.BacktrackDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// BacktrackDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) BacktrackDBClusterRequest(_a0 *rds.BacktrackDBClusterInput) (*request.Request, *rds.BacktrackDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.BacktrackDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.BacktrackDBClusterInput) (*request.Request, *rds.BacktrackDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.BacktrackDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.BacktrackDBClusterInput) *rds.BacktrackDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.BacktrackDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// BacktrackDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) BacktrackDBClusterWithContext(_a0 context.Context, _a1 *rds.BacktrackDBClusterInput, _a2 ...request.Option) (*rds.BacktrackDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.BacktrackDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.BacktrackDBClusterInput, ...request.Option) (*rds.BacktrackDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.BacktrackDBClusterInput, ...request.Option) *rds.BacktrackDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.BacktrackDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.BacktrackDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelExportTask provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CancelExportTask(_a0 *rds.CancelExportTaskInput) (*rds.CancelExportTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CancelExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CancelExportTaskInput) (*rds.CancelExportTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CancelExportTaskInput) *rds.CancelExportTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CancelExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CancelExportTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CancelExportTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CancelExportTaskRequest(_a0 *rds.CancelExportTaskInput) (*request.Request, *rds.CancelExportTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CancelExportTaskOutput
- if rf, ok := ret.Get(0).(func(*rds.CancelExportTaskInput) (*request.Request, *rds.CancelExportTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CancelExportTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CancelExportTaskInput) *rds.CancelExportTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CancelExportTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// CancelExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CancelExportTaskWithContext(_a0 context.Context, _a1 *rds.CancelExportTaskInput, _a2 ...request.Option) (*rds.CancelExportTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CancelExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CancelExportTaskInput, ...request.Option) (*rds.CancelExportTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CancelExportTaskInput, ...request.Option) *rds.CancelExportTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CancelExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CancelExportTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBClusterParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBClusterParameterGroup(_a0 *rds.CopyDBClusterParameterGroupInput) (*rds.CopyDBClusterParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CopyDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterParameterGroupInput) (*rds.CopyDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterParameterGroupInput) *rds.CopyDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBClusterParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBClusterParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBClusterParameterGroupRequest(_a0 *rds.CopyDBClusterParameterGroupInput) (*request.Request, *rds.CopyDBClusterParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CopyDBClusterParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterParameterGroupInput) (*request.Request, *rds.CopyDBClusterParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBClusterParameterGroupInput) *rds.CopyDBClusterParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CopyDBClusterParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CopyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBClusterParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CopyDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBClusterParameterGroupInput, ...request.Option) (*rds.CopyDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBClusterParameterGroupInput, ...request.Option) *rds.CopyDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CopyDBClusterParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBClusterSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBClusterSnapshot(_a0 *rds.CopyDBClusterSnapshotInput) (*rds.CopyDBClusterSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CopyDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterSnapshotInput) (*rds.CopyDBClusterSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterSnapshotInput) *rds.CopyDBClusterSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBClusterSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBClusterSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBClusterSnapshotRequest(_a0 *rds.CopyDBClusterSnapshotInput) (*request.Request, *rds.CopyDBClusterSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CopyDBClusterSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterSnapshotInput) (*request.Request, *rds.CopyDBClusterSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBClusterSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBClusterSnapshotInput) *rds.CopyDBClusterSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CopyDBClusterSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CopyDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CopyDBClusterSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CopyDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBClusterSnapshotInput, ...request.Option) (*rds.CopyDBClusterSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBClusterSnapshotInput, ...request.Option) *rds.CopyDBClusterSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CopyDBClusterSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBParameterGroup(_a0 *rds.CopyDBParameterGroupInput) (*rds.CopyDBParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CopyDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CopyDBParameterGroupInput) (*rds.CopyDBParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBParameterGroupInput) *rds.CopyDBParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBParameterGroupRequest(_a0 *rds.CopyDBParameterGroupInput) (*request.Request, *rds.CopyDBParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CopyDBParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CopyDBParameterGroupInput) (*request.Request, *rds.CopyDBParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBParameterGroupInput) *rds.CopyDBParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CopyDBParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CopyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CopyDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBParameterGroupInput, ...request.Option) (*rds.CopyDBParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBParameterGroupInput, ...request.Option) *rds.CopyDBParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CopyDBParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBSnapshot(_a0 *rds.CopyDBSnapshotInput) (*rds.CopyDBSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CopyDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CopyDBSnapshotInput) (*rds.CopyDBSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBSnapshotInput) *rds.CopyDBSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyDBSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyDBSnapshotRequest(_a0 *rds.CopyDBSnapshotInput) (*request.Request, *rds.CopyDBSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CopyDBSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.CopyDBSnapshotInput) (*request.Request, *rds.CopyDBSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyDBSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyDBSnapshotInput) *rds.CopyDBSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CopyDBSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CopyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBSnapshotInput, _a2 ...request.Option) (*rds.CopyDBSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CopyDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBSnapshotInput, ...request.Option) (*rds.CopyDBSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyDBSnapshotInput, ...request.Option) *rds.CopyDBSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CopyDBSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyOptionGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyOptionGroup(_a0 *rds.CopyOptionGroupInput) (*rds.CopyOptionGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CopyOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CopyOptionGroupInput) (*rds.CopyOptionGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyOptionGroupInput) *rds.CopyOptionGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyOptionGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyOptionGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CopyOptionGroupRequest(_a0 *rds.CopyOptionGroupInput) (*request.Request, *rds.CopyOptionGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CopyOptionGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CopyOptionGroupInput) (*request.Request, *rds.CopyOptionGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CopyOptionGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CopyOptionGroupInput) *rds.CopyOptionGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CopyOptionGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CopyOptionGroupWithContext(_a0 context.Context, _a1 *rds.CopyOptionGroupInput, _a2 ...request.Option) (*rds.CopyOptionGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CopyOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyOptionGroupInput, ...request.Option) (*rds.CopyOptionGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CopyOptionGroupInput, ...request.Option) *rds.CopyOptionGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CopyOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CopyOptionGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomDBEngineVersion provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateCustomDBEngineVersion(_a0 *rds.CreateCustomDBEngineVersionInput) (*rds.CreateCustomDBEngineVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateCustomDBEngineVersionInput) (*rds.CreateCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateCustomDBEngineVersionInput) *rds.CreateCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateCustomDBEngineVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCustomDBEngineVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateCustomDBEngineVersionRequest(_a0 *rds.CreateCustomDBEngineVersionInput) (*request.Request, *rds.CreateCustomDBEngineVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateCustomDBEngineVersionOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateCustomDBEngineVersionInput) (*request.Request, *rds.CreateCustomDBEngineVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateCustomDBEngineVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateCustomDBEngineVersionInput) *rds.CreateCustomDBEngineVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateCustomDBEngineVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCustomDBEngineVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateCustomDBEngineVersionWithContext(_a0 context.Context, _a1 *rds.CreateCustomDBEngineVersionInput, _a2 ...request.Option) (*rds.CreateCustomDBEngineVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateCustomDBEngineVersionInput, ...request.Option) (*rds.CreateCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateCustomDBEngineVersionInput, ...request.Option) *rds.CreateCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateCustomDBEngineVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBCluster(_a0 *rds.CreateDBClusterInput) (*rds.CreateDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterInput) (*rds.CreateDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterInput) *rds.CreateDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterEndpoint(_a0 *rds.CreateDBClusterEndpointInput) (*rds.CreateDBClusterEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterEndpointInput) (*rds.CreateDBClusterEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterEndpointInput) *rds.CreateDBClusterEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterEndpointRequest(_a0 *rds.CreateDBClusterEndpointInput) (*request.Request, *rds.CreateDBClusterEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBClusterEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterEndpointInput) (*request.Request, *rds.CreateDBClusterEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterEndpointInput) *rds.CreateDBClusterEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBClusterEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterEndpointInput, _a2 ...request.Option) (*rds.CreateDBClusterEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterEndpointInput, ...request.Option) (*rds.CreateDBClusterEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterEndpointInput, ...request.Option) *rds.CreateDBClusterEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBClusterEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterParameterGroup(_a0 *rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterParameterGroupInput) *rds.CreateDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterParameterGroupRequest(_a0 *rds.CreateDBClusterParameterGroupInput) (*request.Request, *rds.CreateDBClusterParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBClusterParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterParameterGroupInput) (*request.Request, *rds.CreateDBClusterParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterParameterGroupInput) *rds.CreateDBClusterParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBClusterParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBClusterParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterParameterGroupInput, ...request.Option) (*rds.CreateDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterParameterGroupInput, ...request.Option) *rds.CreateDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBClusterParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterRequest(_a0 *rds.CreateDBClusterInput) (*request.Request, *rds.CreateDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterInput) (*request.Request, *rds.CreateDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterInput) *rds.CreateDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBClusterSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterSnapshot(_a0 *rds.CreateDBClusterSnapshotInput) (*rds.CreateDBClusterSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterSnapshotInput) (*rds.CreateDBClusterSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterSnapshotInput) *rds.CreateDBClusterSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBClusterSnapshotRequest(_a0 *rds.CreateDBClusterSnapshotInput) (*request.Request, *rds.CreateDBClusterSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBClusterSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterSnapshotInput) (*request.Request, *rds.CreateDBClusterSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBClusterSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBClusterSnapshotInput) *rds.CreateDBClusterSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBClusterSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CreateDBClusterSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterSnapshotInput, ...request.Option) (*rds.CreateDBClusterSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterSnapshotInput, ...request.Option) *rds.CreateDBClusterSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBClusterSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBClusterWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterInput, _a2 ...request.Option) (*rds.CreateDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterInput, ...request.Option) (*rds.CreateDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBClusterInput, ...request.Option) *rds.CreateDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBInstance(_a0 *rds.CreateDBInstanceInput) (*rds.CreateDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceInput) (*rds.CreateDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceInput) *rds.CreateDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBInstanceReadReplica provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBInstanceReadReplica(_a0 *rds.CreateDBInstanceReadReplicaInput) (*rds.CreateDBInstanceReadReplicaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBInstanceReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceReadReplicaInput) (*rds.CreateDBInstanceReadReplicaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceReadReplicaInput) *rds.CreateDBInstanceReadReplicaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBInstanceReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBInstanceReadReplicaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBInstanceReadReplicaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBInstanceReadReplicaRequest(_a0 *rds.CreateDBInstanceReadReplicaInput) (*request.Request, *rds.CreateDBInstanceReadReplicaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBInstanceReadReplicaOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceReadReplicaInput) (*request.Request, *rds.CreateDBInstanceReadReplicaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceReadReplicaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBInstanceReadReplicaInput) *rds.CreateDBInstanceReadReplicaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBInstanceReadReplicaOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBInstanceReadReplicaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBInstanceReadReplicaWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceReadReplicaInput, _a2 ...request.Option) (*rds.CreateDBInstanceReadReplicaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBInstanceReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBInstanceReadReplicaInput, ...request.Option) (*rds.CreateDBInstanceReadReplicaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBInstanceReadReplicaInput, ...request.Option) *rds.CreateDBInstanceReadReplicaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBInstanceReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBInstanceReadReplicaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBInstanceRequest(_a0 *rds.CreateDBInstanceInput) (*request.Request, *rds.CreateDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceInput) (*request.Request, *rds.CreateDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBInstanceInput) *rds.CreateDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBInstanceWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceInput, _a2 ...request.Option) (*rds.CreateDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBInstanceInput, ...request.Option) (*rds.CreateDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBInstanceInput, ...request.Option) *rds.CreateDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBParameterGroup(_a0 *rds.CreateDBParameterGroupInput) (*rds.CreateDBParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBParameterGroupInput) (*rds.CreateDBParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBParameterGroupInput) *rds.CreateDBParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBParameterGroupRequest(_a0 *rds.CreateDBParameterGroupInput) (*request.Request, *rds.CreateDBParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBParameterGroupInput) (*request.Request, *rds.CreateDBParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBParameterGroupInput) *rds.CreateDBParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBParameterGroupInput, ...request.Option) (*rds.CreateDBParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBParameterGroupInput, ...request.Option) *rds.CreateDBParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBProxy provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBProxy(_a0 *rds.CreateDBProxyInput) (*rds.CreateDBProxyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyInput) (*rds.CreateDBProxyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyInput) *rds.CreateDBProxyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBProxyEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBProxyEndpoint(_a0 *rds.CreateDBProxyEndpointInput) (*rds.CreateDBProxyEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) (*rds.CreateDBProxyEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) *rds.CreateDBProxyEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBProxyEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBProxyEndpointRequest(_a0 *rds.CreateDBProxyEndpointInput) (*request.Request, *rds.CreateDBProxyEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBProxyEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) (*request.Request, *rds.CreateDBProxyEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyEndpointInput) *rds.CreateDBProxyEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBProxyEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.CreateDBProxyEndpointInput, _a2 ...request.Option) (*rds.CreateDBProxyEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBProxyEndpointInput, ...request.Option) (*rds.CreateDBProxyEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBProxyEndpointInput, ...request.Option) *rds.CreateDBProxyEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBProxyEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBProxyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBProxyRequest(_a0 *rds.CreateDBProxyInput) (*request.Request, *rds.CreateDBProxyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBProxyOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyInput) (*request.Request, *rds.CreateDBProxyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyInput) *rds.CreateDBProxyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBProxyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBProxyWithContext(_a0 context.Context, _a1 *rds.CreateDBProxyInput, _a2 ...request.Option) (*rds.CreateDBProxyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBProxyInput, ...request.Option) (*rds.CreateDBProxyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBProxyInput, ...request.Option) *rds.CreateDBProxyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBProxyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSecurityGroup(_a0 *rds.CreateDBSecurityGroupInput) (*rds.CreateDBSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSecurityGroupInput) (*rds.CreateDBSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSecurityGroupInput) *rds.CreateDBSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSecurityGroupRequest(_a0 *rds.CreateDBSecurityGroupInput) (*request.Request, *rds.CreateDBSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSecurityGroupInput) (*request.Request, *rds.CreateDBSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSecurityGroupInput) *rds.CreateDBSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSecurityGroupInput, _a2 ...request.Option) (*rds.CreateDBSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSecurityGroupInput, ...request.Option) (*rds.CreateDBSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSecurityGroupInput, ...request.Option) *rds.CreateDBSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSnapshot(_a0 *rds.CreateDBSnapshotInput) (*rds.CreateDBSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSnapshotInput) (*rds.CreateDBSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSnapshotInput) *rds.CreateDBSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSnapshotRequest(_a0 *rds.CreateDBSnapshotInput) (*request.Request, *rds.CreateDBSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSnapshotInput) (*request.Request, *rds.CreateDBSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSnapshotInput) *rds.CreateDBSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBSnapshotInput, _a2 ...request.Option) (*rds.CreateDBSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSnapshotInput, ...request.Option) (*rds.CreateDBSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSnapshotInput, ...request.Option) *rds.CreateDBSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSubnetGroup(_a0 *rds.CreateDBSubnetGroupInput) (*rds.CreateDBSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSubnetGroupInput) (*rds.CreateDBSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSubnetGroupInput) *rds.CreateDBSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateDBSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateDBSubnetGroupRequest(_a0 *rds.CreateDBSubnetGroupInput) (*request.Request, *rds.CreateDBSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateDBSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSubnetGroupInput) (*request.Request, *rds.CreateDBSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateDBSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateDBSubnetGroupInput) *rds.CreateDBSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateDBSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSubnetGroupInput, _a2 ...request.Option) (*rds.CreateDBSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSubnetGroupInput, ...request.Option) (*rds.CreateDBSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBSubnetGroupInput, ...request.Option) *rds.CreateDBSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateEventSubscription(_a0 *rds.CreateEventSubscriptionInput) (*rds.CreateEventSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateEventSubscriptionInput) (*rds.CreateEventSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateEventSubscriptionInput) *rds.CreateEventSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateEventSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateEventSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateEventSubscriptionRequest(_a0 *rds.CreateEventSubscriptionInput) (*request.Request, *rds.CreateEventSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateEventSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateEventSubscriptionInput) (*request.Request, *rds.CreateEventSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateEventSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateEventSubscriptionInput) *rds.CreateEventSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateEventSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.CreateEventSubscriptionInput, _a2 ...request.Option) (*rds.CreateEventSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateEventSubscriptionInput, ...request.Option) (*rds.CreateEventSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateEventSubscriptionInput, ...request.Option) *rds.CreateEventSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateEventSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateGlobalCluster(_a0 *rds.CreateGlobalClusterInput) (*rds.CreateGlobalClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateGlobalClusterInput) (*rds.CreateGlobalClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateGlobalClusterInput) *rds.CreateGlobalClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateGlobalClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateGlobalClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateGlobalClusterRequest(_a0 *rds.CreateGlobalClusterInput) (*request.Request, *rds.CreateGlobalClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateGlobalClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateGlobalClusterInput) (*request.Request, *rds.CreateGlobalClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateGlobalClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateGlobalClusterInput) *rds.CreateGlobalClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateGlobalClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateGlobalClusterWithContext(_a0 context.Context, _a1 *rds.CreateGlobalClusterInput, _a2 ...request.Option) (*rds.CreateGlobalClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateGlobalClusterInput, ...request.Option) (*rds.CreateGlobalClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateGlobalClusterInput, ...request.Option) *rds.CreateGlobalClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateGlobalClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOptionGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateOptionGroup(_a0 *rds.CreateOptionGroupInput) (*rds.CreateOptionGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.CreateOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.CreateOptionGroupInput) (*rds.CreateOptionGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateOptionGroupInput) *rds.CreateOptionGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateOptionGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateOptionGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) CreateOptionGroupRequest(_a0 *rds.CreateOptionGroupInput) (*request.Request, *rds.CreateOptionGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.CreateOptionGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.CreateOptionGroupInput) (*request.Request, *rds.CreateOptionGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.CreateOptionGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.CreateOptionGroupInput) *rds.CreateOptionGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.CreateOptionGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) CreateOptionGroupWithContext(_a0 context.Context, _a1 *rds.CreateOptionGroupInput, _a2 ...request.Option) (*rds.CreateOptionGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.CreateOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateOptionGroupInput, ...request.Option) (*rds.CreateOptionGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateOptionGroupInput, ...request.Option) *rds.CreateOptionGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.CreateOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateOptionGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomDBEngineVersion provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteCustomDBEngineVersion(_a0 *rds.DeleteCustomDBEngineVersionInput) (*rds.DeleteCustomDBEngineVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteCustomDBEngineVersionInput) (*rds.DeleteCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteCustomDBEngineVersionInput) *rds.DeleteCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteCustomDBEngineVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCustomDBEngineVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteCustomDBEngineVersionRequest(_a0 *rds.DeleteCustomDBEngineVersionInput) (*request.Request, *rds.DeleteCustomDBEngineVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteCustomDBEngineVersionOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteCustomDBEngineVersionInput) (*request.Request, *rds.DeleteCustomDBEngineVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteCustomDBEngineVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteCustomDBEngineVersionInput) *rds.DeleteCustomDBEngineVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteCustomDBEngineVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCustomDBEngineVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteCustomDBEngineVersionWithContext(_a0 context.Context, _a1 *rds.DeleteCustomDBEngineVersionInput, _a2 ...request.Option) (*rds.DeleteCustomDBEngineVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteCustomDBEngineVersionInput, ...request.Option) (*rds.DeleteCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteCustomDBEngineVersionInput, ...request.Option) *rds.DeleteCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteCustomDBEngineVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBCluster(_a0 *rds.DeleteDBClusterInput) (*rds.DeleteDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterInput) (*rds.DeleteDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterInput) *rds.DeleteDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterEndpoint(_a0 *rds.DeleteDBClusterEndpointInput) (*rds.DeleteDBClusterEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterEndpointInput) (*rds.DeleteDBClusterEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterEndpointInput) *rds.DeleteDBClusterEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterEndpointRequest(_a0 *rds.DeleteDBClusterEndpointInput) (*request.Request, *rds.DeleteDBClusterEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBClusterEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterEndpointInput) (*request.Request, *rds.DeleteDBClusterEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterEndpointInput) *rds.DeleteDBClusterEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBClusterEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterEndpointInput, _a2 ...request.Option) (*rds.DeleteDBClusterEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterEndpointInput, ...request.Option) (*rds.DeleteDBClusterEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterEndpointInput, ...request.Option) *rds.DeleteDBClusterEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBClusterEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterParameterGroup(_a0 *rds.DeleteDBClusterParameterGroupInput) (*rds.DeleteDBClusterParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterParameterGroupInput) (*rds.DeleteDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterParameterGroupInput) *rds.DeleteDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterParameterGroupRequest(_a0 *rds.DeleteDBClusterParameterGroupInput) (*request.Request, *rds.DeleteDBClusterParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBClusterParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterParameterGroupInput) (*request.Request, *rds.DeleteDBClusterParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterParameterGroupInput) *rds.DeleteDBClusterParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBClusterParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBClusterParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBClusterParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterParameterGroupInput, ...request.Option) (*rds.DeleteDBClusterParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterParameterGroupInput, ...request.Option) *rds.DeleteDBClusterParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBClusterParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterRequest(_a0 *rds.DeleteDBClusterInput) (*request.Request, *rds.DeleteDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterInput) (*request.Request, *rds.DeleteDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterInput) *rds.DeleteDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterSnapshot(_a0 *rds.DeleteDBClusterSnapshotInput) (*rds.DeleteDBClusterSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterSnapshotInput) (*rds.DeleteDBClusterSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterSnapshotInput) *rds.DeleteDBClusterSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBClusterSnapshotRequest(_a0 *rds.DeleteDBClusterSnapshotInput) (*request.Request, *rds.DeleteDBClusterSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBClusterSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterSnapshotInput) (*request.Request, *rds.DeleteDBClusterSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBClusterSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBClusterSnapshotInput) *rds.DeleteDBClusterSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBClusterSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBClusterSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBClusterSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterSnapshotInput, ...request.Option) (*rds.DeleteDBClusterSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterSnapshotInput, ...request.Option) *rds.DeleteDBClusterSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBClusterSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBClusterWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterInput, _a2 ...request.Option) (*rds.DeleteDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterInput, ...request.Option) (*rds.DeleteDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBClusterInput, ...request.Option) *rds.DeleteDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBInstance(_a0 *rds.DeleteDBInstanceInput) (*rds.DeleteDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceInput) (*rds.DeleteDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceInput) *rds.DeleteDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBInstanceAutomatedBackup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackup(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBInstanceAutomatedBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceAutomatedBackupInput) (*rds.DeleteDBInstanceAutomatedBackupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceAutomatedBackupInput) *rds.DeleteDBInstanceAutomatedBackupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBInstanceAutomatedBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBInstanceAutomatedBackupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBInstanceAutomatedBackupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackupRequest(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*request.Request, *rds.DeleteDBInstanceAutomatedBackupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBInstanceAutomatedBackupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceAutomatedBackupInput) (*request.Request, *rds.DeleteDBInstanceAutomatedBackupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceAutomatedBackupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBInstanceAutomatedBackupInput) *rds.DeleteDBInstanceAutomatedBackupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBInstanceAutomatedBackupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBInstanceAutomatedBackupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackupWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceAutomatedBackupInput, _a2 ...request.Option) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBInstanceAutomatedBackupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBInstanceAutomatedBackupInput, ...request.Option) (*rds.DeleteDBInstanceAutomatedBackupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBInstanceAutomatedBackupInput, ...request.Option) *rds.DeleteDBInstanceAutomatedBackupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBInstanceAutomatedBackupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBInstanceAutomatedBackupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBInstanceRequest(_a0 *rds.DeleteDBInstanceInput) (*request.Request, *rds.DeleteDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceInput) (*request.Request, *rds.DeleteDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBInstanceInput) *rds.DeleteDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBInstanceWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceInput, _a2 ...request.Option) (*rds.DeleteDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBInstanceInput, ...request.Option) (*rds.DeleteDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBInstanceInput, ...request.Option) *rds.DeleteDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBParameterGroup(_a0 *rds.DeleteDBParameterGroupInput) (*rds.DeleteDBParameterGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBParameterGroupInput) (*rds.DeleteDBParameterGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBParameterGroupInput) *rds.DeleteDBParameterGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBParameterGroupRequest(_a0 *rds.DeleteDBParameterGroupInput) (*request.Request, *rds.DeleteDBParameterGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBParameterGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBParameterGroupInput) (*request.Request, *rds.DeleteDBParameterGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBParameterGroupInput) *rds.DeleteDBParameterGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBParameterGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBParameterGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBParameterGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBParameterGroupInput, ...request.Option) (*rds.DeleteDBParameterGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBParameterGroupInput, ...request.Option) *rds.DeleteDBParameterGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBParameterGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBProxy provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBProxy(_a0 *rds.DeleteDBProxyInput) (*rds.DeleteDBProxyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyInput) (*rds.DeleteDBProxyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyInput) *rds.DeleteDBProxyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBProxyEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBProxyEndpoint(_a0 *rds.DeleteDBProxyEndpointInput) (*rds.DeleteDBProxyEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) (*rds.DeleteDBProxyEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) *rds.DeleteDBProxyEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBProxyEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBProxyEndpointRequest(_a0 *rds.DeleteDBProxyEndpointInput) (*request.Request, *rds.DeleteDBProxyEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBProxyEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) (*request.Request, *rds.DeleteDBProxyEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyEndpointInput) *rds.DeleteDBProxyEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBProxyEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.DeleteDBProxyEndpointInput, _a2 ...request.Option) (*rds.DeleteDBProxyEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBProxyEndpointInput, ...request.Option) (*rds.DeleteDBProxyEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBProxyEndpointInput, ...request.Option) *rds.DeleteDBProxyEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBProxyEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBProxyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBProxyRequest(_a0 *rds.DeleteDBProxyInput) (*request.Request, *rds.DeleteDBProxyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBProxyOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyInput) (*request.Request, *rds.DeleteDBProxyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyInput) *rds.DeleteDBProxyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBProxyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBProxyWithContext(_a0 context.Context, _a1 *rds.DeleteDBProxyInput, _a2 ...request.Option) (*rds.DeleteDBProxyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBProxyInput, ...request.Option) (*rds.DeleteDBProxyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBProxyInput, ...request.Option) *rds.DeleteDBProxyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBProxyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSecurityGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSecurityGroup(_a0 *rds.DeleteDBSecurityGroupInput) (*rds.DeleteDBSecurityGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSecurityGroupInput) (*rds.DeleteDBSecurityGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSecurityGroupInput) *rds.DeleteDBSecurityGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSecurityGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSecurityGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSecurityGroupRequest(_a0 *rds.DeleteDBSecurityGroupInput) (*request.Request, *rds.DeleteDBSecurityGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBSecurityGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSecurityGroupInput) (*request.Request, *rds.DeleteDBSecurityGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSecurityGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSecurityGroupInput) *rds.DeleteDBSecurityGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBSecurityGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSecurityGroupInput, _a2 ...request.Option) (*rds.DeleteDBSecurityGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBSecurityGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSecurityGroupInput, ...request.Option) (*rds.DeleteDBSecurityGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSecurityGroupInput, ...request.Option) *rds.DeleteDBSecurityGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSecurityGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBSecurityGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSnapshot(_a0 *rds.DeleteDBSnapshotInput) (*rds.DeleteDBSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSnapshotInput) (*rds.DeleteDBSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSnapshotInput) *rds.DeleteDBSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSnapshotRequest(_a0 *rds.DeleteDBSnapshotInput) (*request.Request, *rds.DeleteDBSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSnapshotInput) (*request.Request, *rds.DeleteDBSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSnapshotInput) *rds.DeleteDBSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSnapshotInput, ...request.Option) (*rds.DeleteDBSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSnapshotInput, ...request.Option) *rds.DeleteDBSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSubnetGroup(_a0 *rds.DeleteDBSubnetGroupInput) (*rds.DeleteDBSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSubnetGroupInput) (*rds.DeleteDBSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSubnetGroupInput) *rds.DeleteDBSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteDBSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteDBSubnetGroupRequest(_a0 *rds.DeleteDBSubnetGroupInput) (*request.Request, *rds.DeleteDBSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteDBSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSubnetGroupInput) (*request.Request, *rds.DeleteDBSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteDBSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteDBSubnetGroupInput) *rds.DeleteDBSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteDBSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSubnetGroupInput, _a2 ...request.Option) (*rds.DeleteDBSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSubnetGroupInput, ...request.Option) (*rds.DeleteDBSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBSubnetGroupInput, ...request.Option) *rds.DeleteDBSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteEventSubscription(_a0 *rds.DeleteEventSubscriptionInput) (*rds.DeleteEventSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteEventSubscriptionInput) (*rds.DeleteEventSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteEventSubscriptionInput) *rds.DeleteEventSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteEventSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEventSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteEventSubscriptionRequest(_a0 *rds.DeleteEventSubscriptionInput) (*request.Request, *rds.DeleteEventSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteEventSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteEventSubscriptionInput) (*request.Request, *rds.DeleteEventSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteEventSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteEventSubscriptionInput) *rds.DeleteEventSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteEventSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.DeleteEventSubscriptionInput, _a2 ...request.Option) (*rds.DeleteEventSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteEventSubscriptionInput, ...request.Option) (*rds.DeleteEventSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteEventSubscriptionInput, ...request.Option) *rds.DeleteEventSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteEventSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGlobalCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteGlobalCluster(_a0 *rds.DeleteGlobalClusterInput) (*rds.DeleteGlobalClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteGlobalClusterInput) (*rds.DeleteGlobalClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteGlobalClusterInput) *rds.DeleteGlobalClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteGlobalClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteGlobalClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteGlobalClusterRequest(_a0 *rds.DeleteGlobalClusterInput) (*request.Request, *rds.DeleteGlobalClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteGlobalClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteGlobalClusterInput) (*request.Request, *rds.DeleteGlobalClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteGlobalClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteGlobalClusterInput) *rds.DeleteGlobalClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteGlobalClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteGlobalClusterWithContext(_a0 context.Context, _a1 *rds.DeleteGlobalClusterInput, _a2 ...request.Option) (*rds.DeleteGlobalClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteGlobalClusterInput, ...request.Option) (*rds.DeleteGlobalClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteGlobalClusterInput, ...request.Option) *rds.DeleteGlobalClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteGlobalClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOptionGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteOptionGroup(_a0 *rds.DeleteOptionGroupInput) (*rds.DeleteOptionGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeleteOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeleteOptionGroupInput) (*rds.DeleteOptionGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteOptionGroupInput) *rds.DeleteOptionGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteOptionGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteOptionGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeleteOptionGroupRequest(_a0 *rds.DeleteOptionGroupInput) (*request.Request, *rds.DeleteOptionGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeleteOptionGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.DeleteOptionGroupInput) (*request.Request, *rds.DeleteOptionGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeleteOptionGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeleteOptionGroupInput) *rds.DeleteOptionGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeleteOptionGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeleteOptionGroupWithContext(_a0 context.Context, _a1 *rds.DeleteOptionGroupInput, _a2 ...request.Option) (*rds.DeleteOptionGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeleteOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteOptionGroupInput, ...request.Option) (*rds.DeleteOptionGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteOptionGroupInput, ...request.Option) *rds.DeleteOptionGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeleteOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteOptionGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterDBProxyTargets provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeregisterDBProxyTargets(_a0 *rds.DeregisterDBProxyTargetsInput) (*rds.DeregisterDBProxyTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DeregisterDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DeregisterDBProxyTargetsInput) (*rds.DeregisterDBProxyTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeregisterDBProxyTargetsInput) *rds.DeregisterDBProxyTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeregisterDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeregisterDBProxyTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeregisterDBProxyTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DeregisterDBProxyTargetsRequest(_a0 *rds.DeregisterDBProxyTargetsInput) (*request.Request, *rds.DeregisterDBProxyTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DeregisterDBProxyTargetsOutput
- if rf, ok := ret.Get(0).(func(*rds.DeregisterDBProxyTargetsInput) (*request.Request, *rds.DeregisterDBProxyTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DeregisterDBProxyTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DeregisterDBProxyTargetsInput) *rds.DeregisterDBProxyTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DeregisterDBProxyTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeregisterDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DeregisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DeregisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.DeregisterDBProxyTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DeregisterDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeregisterDBProxyTargetsInput, ...request.Option) (*rds.DeregisterDBProxyTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DeregisterDBProxyTargetsInput, ...request.Option) *rds.DeregisterDBProxyTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DeregisterDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DeregisterDBProxyTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeAccountAttributes(_a0 *rds.DescribeAccountAttributesInput) (*rds.DescribeAccountAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeAccountAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeAccountAttributesInput) (*rds.DescribeAccountAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeAccountAttributesInput) *rds.DescribeAccountAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeAccountAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeAccountAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeAccountAttributesRequest(_a0 *rds.DescribeAccountAttributesInput) (*request.Request, *rds.DescribeAccountAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeAccountAttributesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeAccountAttributesInput) (*request.Request, *rds.DescribeAccountAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeAccountAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeAccountAttributesInput) *rds.DescribeAccountAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeAccountAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeAccountAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeAccountAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeAccountAttributesInput, _a2 ...request.Option) (*rds.DescribeAccountAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeAccountAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeAccountAttributesInput, ...request.Option) (*rds.DescribeAccountAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeAccountAttributesInput, ...request.Option) *rds.DescribeAccountAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeAccountAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeAccountAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeCertificates(_a0 *rds.DescribeCertificatesInput) (*rds.DescribeCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeCertificatesInput) (*rds.DescribeCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeCertificatesInput) *rds.DescribeCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeCertificatesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeCertificatesPages(_a0 *rds.DescribeCertificatesInput, _a1 func(*rds.DescribeCertificatesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeCertificatesInput, func(*rds.DescribeCertificatesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCertificatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeCertificatesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 func(*rds.DescribeCertificatesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeCertificatesInput, func(*rds.DescribeCertificatesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeCertificatesRequest(_a0 *rds.DescribeCertificatesInput) (*request.Request, *rds.DescribeCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeCertificatesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeCertificatesInput) (*request.Request, *rds.DescribeCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeCertificatesInput) *rds.DescribeCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeCertificatesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 ...request.Option) (*rds.DescribeCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeCertificatesInput, ...request.Option) (*rds.DescribeCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeCertificatesInput, ...request.Option) *rds.DescribeCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterBacktracks provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterBacktracks(_a0 *rds.DescribeDBClusterBacktracksInput) (*rds.DescribeDBClusterBacktracksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterBacktracksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterBacktracksInput) (*rds.DescribeDBClusterBacktracksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterBacktracksInput) *rds.DescribeDBClusterBacktracksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterBacktracksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterBacktracksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterBacktracksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClusterBacktracksPages(_a0 *rds.DescribeDBClusterBacktracksInput, _a1 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterBacktracksInput, func(*rds.DescribeDBClusterBacktracksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterBacktracksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClusterBacktracksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterBacktracksInput, func(*rds.DescribeDBClusterBacktracksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterBacktracksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterBacktracksRequest(_a0 *rds.DescribeDBClusterBacktracksInput) (*request.Request, *rds.DescribeDBClusterBacktracksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterBacktracksOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterBacktracksInput) (*request.Request, *rds.DescribeDBClusterBacktracksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterBacktracksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterBacktracksInput) *rds.DescribeDBClusterBacktracksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterBacktracksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterBacktracksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterBacktracksWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 ...request.Option) (*rds.DescribeDBClusterBacktracksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterBacktracksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterBacktracksInput, ...request.Option) (*rds.DescribeDBClusterBacktracksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterBacktracksInput, ...request.Option) *rds.DescribeDBClusterBacktracksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterBacktracksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterBacktracksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterEndpoints(_a0 *rds.DescribeDBClusterEndpointsInput) (*rds.DescribeDBClusterEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterEndpointsInput) (*rds.DescribeDBClusterEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterEndpointsInput) *rds.DescribeDBClusterEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterEndpointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClusterEndpointsPages(_a0 *rds.DescribeDBClusterEndpointsInput, _a1 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterEndpointsInput, func(*rds.DescribeDBClusterEndpointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClusterEndpointsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterEndpointsInput, func(*rds.DescribeDBClusterEndpointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterEndpointsRequest(_a0 *rds.DescribeDBClusterEndpointsInput) (*request.Request, *rds.DescribeDBClusterEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterEndpointsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterEndpointsInput) (*request.Request, *rds.DescribeDBClusterEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterEndpointsInput) *rds.DescribeDBClusterEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterEndpointsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 ...request.Option) (*rds.DescribeDBClusterEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterEndpointsInput, ...request.Option) (*rds.DescribeDBClusterEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterEndpointsInput, ...request.Option) *rds.DescribeDBClusterEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParameterGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterParameterGroups(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*rds.DescribeDBClusterParameterGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParameterGroupsInput) (*rds.DescribeDBClusterParameterGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParameterGroupsInput) *rds.DescribeDBClusterParameterGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterParameterGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParameterGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsPages(_a0 *rds.DescribeDBClusterParameterGroupsInput, _a1 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParameterGroupsInput, func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterParameterGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParameterGroupsInput, func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterParameterGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsRequest(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*request.Request, *rds.DescribeDBClusterParameterGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterParameterGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParameterGroupsInput) (*request.Request, *rds.DescribeDBClusterParameterGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParameterGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterParameterGroupsInput) *rds.DescribeDBClusterParameterGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterParameterGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParameterGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBClusterParameterGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParameterGroupsInput, ...request.Option) (*rds.DescribeDBClusterParameterGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParameterGroupsInput, ...request.Option) *rds.DescribeDBClusterParameterGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterParameterGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParameters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterParameters(_a0 *rds.DescribeDBClusterParametersInput) (*rds.DescribeDBClusterParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParametersInput) (*rds.DescribeDBClusterParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParametersInput) *rds.DescribeDBClusterParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParametersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClusterParametersPages(_a0 *rds.DescribeDBClusterParametersInput, _a1 func(*rds.DescribeDBClusterParametersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParametersInput, func(*rds.DescribeDBClusterParametersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClusterParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 func(*rds.DescribeDBClusterParametersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParametersInput, func(*rds.DescribeDBClusterParametersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterParametersRequest(_a0 *rds.DescribeDBClusterParametersInput) (*request.Request, *rds.DescribeDBClusterParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterParametersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParametersInput) (*request.Request, *rds.DescribeDBClusterParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterParametersInput) *rds.DescribeDBClusterParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 ...request.Option) (*rds.DescribeDBClusterParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParametersInput, ...request.Option) (*rds.DescribeDBClusterParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterParametersInput, ...request.Option) *rds.DescribeDBClusterParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshotAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributes(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterSnapshotAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotAttributesInput) (*rds.DescribeDBClusterSnapshotAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotAttributesInput) *rds.DescribeDBClusterSnapshotAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterSnapshotAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterSnapshotAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshotAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributesRequest(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *rds.DescribeDBClusterSnapshotAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterSnapshotAttributesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *rds.DescribeDBClusterSnapshotAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterSnapshotAttributesInput) *rds.DescribeDBClusterSnapshotAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterSnapshotAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshotAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterSnapshotAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotAttributesInput, ...request.Option) (*rds.DescribeDBClusterSnapshotAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotAttributesInput, ...request.Option) *rds.DescribeDBClusterSnapshotAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterSnapshotAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterSnapshotAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshots provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterSnapshots(_a0 *rds.DescribeDBClusterSnapshotsInput) (*rds.DescribeDBClusterSnapshotsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClusterSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) (*rds.DescribeDBClusterSnapshotsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) *rds.DescribeDBClusterSnapshotsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterSnapshotsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshotsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotsPages(_a0 *rds.DescribeDBClusterSnapshotsInput, _a1 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput, func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClusterSnapshotsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotsRequest(_a0 *rds.DescribeDBClusterSnapshotsInput) (*request.Request, *rds.DescribeDBClusterSnapshotsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClusterSnapshotsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) (*request.Request, *rds.DescribeDBClusterSnapshotsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClusterSnapshotsInput) *rds.DescribeDBClusterSnapshotsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClusterSnapshotsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClusterSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClusterSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClusterSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, ...request.Option) (*rds.DescribeDBClusterSnapshotsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, ...request.Option) *rds.DescribeDBClusterSnapshotsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClusterSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClusters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClusters(_a0 *rds.DescribeDBClustersInput) (*rds.DescribeDBClustersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) (*rds.DescribeDBClustersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) *rds.DescribeDBClustersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClustersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBClustersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBClustersPages(_a0 *rds.DescribeDBClustersInput, _a1 func(*rds.DescribeDBClustersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput, func(*rds.DescribeDBClustersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClustersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 func(*rds.DescribeDBClustersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClustersInput, func(*rds.DescribeDBClustersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBClustersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBClustersRequest(_a0 *rds.DescribeDBClustersInput) (*request.Request, *rds.DescribeDBClustersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBClustersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) (*request.Request, *rds.DescribeDBClustersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBClustersInput) *rds.DescribeDBClustersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBClustersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBClustersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBClustersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 ...request.Option) (*rds.DescribeDBClustersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClustersInput, ...request.Option) (*rds.DescribeDBClustersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClustersInput, ...request.Option) *rds.DescribeDBClustersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBClustersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBEngineVersions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBEngineVersions(_a0 *rds.DescribeDBEngineVersionsInput) (*rds.DescribeDBEngineVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBEngineVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBEngineVersionsInput) (*rds.DescribeDBEngineVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBEngineVersionsInput) *rds.DescribeDBEngineVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBEngineVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBEngineVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBEngineVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBEngineVersionsPages(_a0 *rds.DescribeDBEngineVersionsInput, _a1 func(*rds.DescribeDBEngineVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBEngineVersionsInput, func(*rds.DescribeDBEngineVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBEngineVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBEngineVersionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 func(*rds.DescribeDBEngineVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBEngineVersionsInput, func(*rds.DescribeDBEngineVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBEngineVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBEngineVersionsRequest(_a0 *rds.DescribeDBEngineVersionsInput) (*request.Request, *rds.DescribeDBEngineVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBEngineVersionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBEngineVersionsInput) (*request.Request, *rds.DescribeDBEngineVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBEngineVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBEngineVersionsInput) *rds.DescribeDBEngineVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBEngineVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBEngineVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBEngineVersionsWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 ...request.Option) (*rds.DescribeDBEngineVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBEngineVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBEngineVersionsInput, ...request.Option) (*rds.DescribeDBEngineVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBEngineVersionsInput, ...request.Option) *rds.DescribeDBEngineVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBEngineVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBEngineVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBInstanceAutomatedBackups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackups(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBInstanceAutomatedBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) *rds.DescribeDBInstanceAutomatedBackupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBInstanceAutomatedBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBInstanceAutomatedBackupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsPages(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput, _a1 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstanceAutomatedBackupsInput, func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBInstanceAutomatedBackupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBInstanceAutomatedBackupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsRequest(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*request.Request, *rds.DescribeDBInstanceAutomatedBackupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBInstanceAutomatedBackupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) (*request.Request, *rds.DescribeDBInstanceAutomatedBackupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBInstanceAutomatedBackupsInput) *rds.DescribeDBInstanceAutomatedBackupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBInstanceAutomatedBackupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBInstanceAutomatedBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 ...request.Option) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBInstanceAutomatedBackupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, ...request.Option) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, ...request.Option) *rds.DescribeDBInstanceAutomatedBackupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBInstanceAutomatedBackupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBInstances provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBInstances(_a0 *rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) *rds.DescribeDBInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBInstancesPages(_a0 *rds.DescribeDBInstancesInput, _a1 func(*rds.DescribeDBInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput, func(*rds.DescribeDBInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 func(*rds.DescribeDBInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstancesInput, func(*rds.DescribeDBInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBInstancesRequest(_a0 *rds.DescribeDBInstancesInput) (*request.Request, *rds.DescribeDBInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBInstancesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) (*request.Request, *rds.DescribeDBInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBInstancesInput) *rds.DescribeDBInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.Option) (*rds.DescribeDBInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstancesInput, ...request.Option) (*rds.DescribeDBInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstancesInput, ...request.Option) *rds.DescribeDBInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBLogFiles provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBLogFiles(_a0 *rds.DescribeDBLogFilesInput) (*rds.DescribeDBLogFilesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBLogFilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBLogFilesInput) (*rds.DescribeDBLogFilesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBLogFilesInput) *rds.DescribeDBLogFilesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBLogFilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBLogFilesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBLogFilesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBLogFilesPages(_a0 *rds.DescribeDBLogFilesInput, _a1 func(*rds.DescribeDBLogFilesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBLogFilesInput, func(*rds.DescribeDBLogFilesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBLogFilesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBLogFilesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 func(*rds.DescribeDBLogFilesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBLogFilesInput, func(*rds.DescribeDBLogFilesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBLogFilesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBLogFilesRequest(_a0 *rds.DescribeDBLogFilesInput) (*request.Request, *rds.DescribeDBLogFilesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBLogFilesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBLogFilesInput) (*request.Request, *rds.DescribeDBLogFilesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBLogFilesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBLogFilesInput) *rds.DescribeDBLogFilesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBLogFilesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBLogFilesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBLogFilesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 ...request.Option) (*rds.DescribeDBLogFilesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBLogFilesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBLogFilesInput, ...request.Option) (*rds.DescribeDBLogFilesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBLogFilesInput, ...request.Option) *rds.DescribeDBLogFilesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBLogFilesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBLogFilesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBParameterGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBParameterGroups(_a0 *rds.DescribeDBParameterGroupsInput) (*rds.DescribeDBParameterGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParameterGroupsInput) (*rds.DescribeDBParameterGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParameterGroupsInput) *rds.DescribeDBParameterGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBParameterGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBParameterGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBParameterGroupsPages(_a0 *rds.DescribeDBParameterGroupsInput, _a1 func(*rds.DescribeDBParameterGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParameterGroupsInput, func(*rds.DescribeDBParameterGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBParameterGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 func(*rds.DescribeDBParameterGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParameterGroupsInput, func(*rds.DescribeDBParameterGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBParameterGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBParameterGroupsRequest(_a0 *rds.DescribeDBParameterGroupsInput) (*request.Request, *rds.DescribeDBParameterGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBParameterGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParameterGroupsInput) (*request.Request, *rds.DescribeDBParameterGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParameterGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBParameterGroupsInput) *rds.DescribeDBParameterGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBParameterGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBParameterGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBParameterGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBParameterGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParameterGroupsInput, ...request.Option) (*rds.DescribeDBParameterGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParameterGroupsInput, ...request.Option) *rds.DescribeDBParameterGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBParameterGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBParameterGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBParameters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBParameters(_a0 *rds.DescribeDBParametersInput) (*rds.DescribeDBParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParametersInput) (*rds.DescribeDBParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParametersInput) *rds.DescribeDBParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBParametersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBParametersPages(_a0 *rds.DescribeDBParametersInput, _a1 func(*rds.DescribeDBParametersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParametersInput, func(*rds.DescribeDBParametersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 func(*rds.DescribeDBParametersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParametersInput, func(*rds.DescribeDBParametersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBParametersRequest(_a0 *rds.DescribeDBParametersInput) (*request.Request, *rds.DescribeDBParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBParametersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParametersInput) (*request.Request, *rds.DescribeDBParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBParametersInput) *rds.DescribeDBParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 ...request.Option) (*rds.DescribeDBParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParametersInput, ...request.Option) (*rds.DescribeDBParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBParametersInput, ...request.Option) *rds.DescribeDBParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxies provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxies(_a0 *rds.DescribeDBProxiesInput) (*rds.DescribeDBProxiesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBProxiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxiesInput) (*rds.DescribeDBProxiesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxiesInput) *rds.DescribeDBProxiesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxiesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxiesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBProxiesPages(_a0 *rds.DescribeDBProxiesInput, _a1 func(*rds.DescribeDBProxiesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxiesInput, func(*rds.DescribeDBProxiesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBProxiesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 func(*rds.DescribeDBProxiesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxiesInput, func(*rds.DescribeDBProxiesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxiesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxiesRequest(_a0 *rds.DescribeDBProxiesInput) (*request.Request, *rds.DescribeDBProxiesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBProxiesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxiesInput) (*request.Request, *rds.DescribeDBProxiesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxiesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxiesInput) *rds.DescribeDBProxiesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBProxiesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBProxiesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBProxiesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 ...request.Option) (*rds.DescribeDBProxiesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBProxiesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxiesInput, ...request.Option) (*rds.DescribeDBProxiesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxiesInput, ...request.Option) *rds.DescribeDBProxiesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxiesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBProxiesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyEndpoints provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyEndpoints(_a0 *rds.DescribeDBProxyEndpointsInput) (*rds.DescribeDBProxyEndpointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBProxyEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) (*rds.DescribeDBProxyEndpointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) *rds.DescribeDBProxyEndpointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyEndpointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyEndpointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBProxyEndpointsPages(_a0 *rds.DescribeDBProxyEndpointsInput, _a1 func(*rds.DescribeDBProxyEndpointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput, func(*rds.DescribeDBProxyEndpointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBProxyEndpointsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyEndpointsInput, _a2 func(*rds.DescribeDBProxyEndpointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, func(*rds.DescribeDBProxyEndpointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyEndpointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyEndpointsRequest(_a0 *rds.DescribeDBProxyEndpointsInput) (*request.Request, *rds.DescribeDBProxyEndpointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBProxyEndpointsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) (*request.Request, *rds.DescribeDBProxyEndpointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyEndpointsInput) *rds.DescribeDBProxyEndpointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBProxyEndpointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBProxyEndpointsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyEndpointsInput, _a2 ...request.Option) (*rds.DescribeDBProxyEndpointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBProxyEndpointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, ...request.Option) (*rds.DescribeDBProxyEndpointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, ...request.Option) *rds.DescribeDBProxyEndpointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyEndpointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyTargetGroups(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*rds.DescribeDBProxyTargetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBProxyTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetGroupsInput) (*rds.DescribeDBProxyTargetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetGroupsInput) *rds.DescribeDBProxyTargetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyTargetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargetGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsPages(_a0 *rds.DescribeDBProxyTargetGroupsInput, _a1 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetGroupsInput, func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyTargetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetGroupsInput, func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyTargetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsRequest(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*request.Request, *rds.DescribeDBProxyTargetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBProxyTargetGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetGroupsInput) (*request.Request, *rds.DescribeDBProxyTargetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyTargetGroupsInput) *rds.DescribeDBProxyTargetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBProxyTargetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBProxyTargetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetGroupsInput, ...request.Option) (*rds.DescribeDBProxyTargetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetGroupsInput, ...request.Option) *rds.DescribeDBProxyTargetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyTargetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBProxyTargetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargets provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyTargets(_a0 *rds.DescribeDBProxyTargetsInput) (*rds.DescribeDBProxyTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetsInput) (*rds.DescribeDBProxyTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetsInput) *rds.DescribeDBProxyTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBProxyTargetsPages(_a0 *rds.DescribeDBProxyTargetsInput, _a1 func(*rds.DescribeDBProxyTargetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetsInput, func(*rds.DescribeDBProxyTargetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyTargetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBProxyTargetsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 func(*rds.DescribeDBProxyTargetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetsInput, func(*rds.DescribeDBProxyTargetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBProxyTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBProxyTargetsRequest(_a0 *rds.DescribeDBProxyTargetsInput) (*request.Request, *rds.DescribeDBProxyTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBProxyTargetsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetsInput) (*request.Request, *rds.DescribeDBProxyTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyTargetsInput) *rds.DescribeDBProxyTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBProxyTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetsInput, ...request.Option) (*rds.DescribeDBProxyTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyTargetsInput, ...request.Option) *rds.DescribeDBProxyTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBProxyTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSecurityGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSecurityGroups(_a0 *rds.DescribeDBSecurityGroupsInput) (*rds.DescribeDBSecurityGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSecurityGroupsInput) (*rds.DescribeDBSecurityGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSecurityGroupsInput) *rds.DescribeDBSecurityGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSecurityGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSecurityGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBSecurityGroupsPages(_a0 *rds.DescribeDBSecurityGroupsInput, _a1 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSecurityGroupsInput, func(*rds.DescribeDBSecurityGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSecurityGroupsInput, func(*rds.DescribeDBSecurityGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSecurityGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSecurityGroupsRequest(_a0 *rds.DescribeDBSecurityGroupsInput) (*request.Request, *rds.DescribeDBSecurityGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBSecurityGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSecurityGroupsInput) (*request.Request, *rds.DescribeDBSecurityGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSecurityGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSecurityGroupsInput) *rds.DescribeDBSecurityGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBSecurityGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBSecurityGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSecurityGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBSecurityGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSecurityGroupsInput, ...request.Option) (*rds.DescribeDBSecurityGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSecurityGroupsInput, ...request.Option) *rds.DescribeDBSecurityGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSecurityGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBSecurityGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshotAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSnapshotAttributes(_a0 *rds.DescribeDBSnapshotAttributesInput) (*rds.DescribeDBSnapshotAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBSnapshotAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotAttributesInput) (*rds.DescribeDBSnapshotAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotAttributesInput) *rds.DescribeDBSnapshotAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSnapshotAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSnapshotAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshotAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSnapshotAttributesRequest(_a0 *rds.DescribeDBSnapshotAttributesInput) (*request.Request, *rds.DescribeDBSnapshotAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBSnapshotAttributesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotAttributesInput) (*request.Request, *rds.DescribeDBSnapshotAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSnapshotAttributesInput) *rds.DescribeDBSnapshotAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBSnapshotAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshotAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBSnapshotAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotAttributesInput, ...request.Option) (*rds.DescribeDBSnapshotAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotAttributesInput, ...request.Option) *rds.DescribeDBSnapshotAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSnapshotAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBSnapshotAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshots provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSnapshots(_a0 *rds.DescribeDBSnapshotsInput) (*rds.DescribeDBSnapshotsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) (*rds.DescribeDBSnapshotsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) *rds.DescribeDBSnapshotsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSnapshotsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshotsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBSnapshotsPages(_a0 *rds.DescribeDBSnapshotsInput, _a1 func(*rds.DescribeDBSnapshotsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput, func(*rds.DescribeDBSnapshotsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 func(*rds.DescribeDBSnapshotsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotsInput, func(*rds.DescribeDBSnapshotsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSnapshotsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSnapshotsRequest(_a0 *rds.DescribeDBSnapshotsInput) (*request.Request, *rds.DescribeDBSnapshotsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBSnapshotsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) (*request.Request, *rds.DescribeDBSnapshotsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSnapshotsInput) *rds.DescribeDBSnapshotsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBSnapshotsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBSnapshotsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotsInput, ...request.Option) (*rds.DescribeDBSnapshotsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotsInput, ...request.Option) *rds.DescribeDBSnapshotsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSnapshotsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBSnapshotsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSubnetGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSubnetGroups(_a0 *rds.DescribeDBSubnetGroupsInput) (*rds.DescribeDBSubnetGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeDBSubnetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSubnetGroupsInput) (*rds.DescribeDBSubnetGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSubnetGroupsInput) *rds.DescribeDBSubnetGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSubnetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSubnetGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeDBSubnetGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeDBSubnetGroupsPages(_a0 *rds.DescribeDBSubnetGroupsInput, _a1 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSubnetGroupsInput, func(*rds.DescribeDBSubnetGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSubnetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeDBSubnetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSubnetGroupsInput, func(*rds.DescribeDBSubnetGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeDBSubnetGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeDBSubnetGroupsRequest(_a0 *rds.DescribeDBSubnetGroupsInput) (*request.Request, *rds.DescribeDBSubnetGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeDBSubnetGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSubnetGroupsInput) (*request.Request, *rds.DescribeDBSubnetGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSubnetGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeDBSubnetGroupsInput) *rds.DescribeDBSubnetGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeDBSubnetGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeDBSubnetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeDBSubnetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSubnetGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeDBSubnetGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSubnetGroupsInput, ...request.Option) (*rds.DescribeDBSubnetGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSubnetGroupsInput, ...request.Option) *rds.DescribeDBSubnetGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeDBSubnetGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBSubnetGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultClusterParameters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEngineDefaultClusterParameters(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*rds.DescribeEngineDefaultClusterParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeEngineDefaultClusterParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultClusterParametersInput) (*rds.DescribeEngineDefaultClusterParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultClusterParametersInput) *rds.DescribeEngineDefaultClusterParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEngineDefaultClusterParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEngineDefaultClusterParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultClusterParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEngineDefaultClusterParametersRequest(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*request.Request, *rds.DescribeEngineDefaultClusterParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeEngineDefaultClusterParametersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultClusterParametersInput) (*request.Request, *rds.DescribeEngineDefaultClusterParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultClusterParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEngineDefaultClusterParametersInput) *rds.DescribeEngineDefaultClusterParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeEngineDefaultClusterParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultClusterParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeEngineDefaultClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultClusterParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultClusterParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeEngineDefaultClusterParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEngineDefaultClusterParametersInput, ...request.Option) (*rds.DescribeEngineDefaultClusterParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEngineDefaultClusterParametersInput, ...request.Option) *rds.DescribeEngineDefaultClusterParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEngineDefaultClusterParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeEngineDefaultClusterParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParameters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEngineDefaultParameters(_a0 *rds.DescribeEngineDefaultParametersInput) (*rds.DescribeEngineDefaultParametersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeEngineDefaultParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultParametersInput) (*rds.DescribeEngineDefaultParametersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultParametersInput) *rds.DescribeEngineDefaultParametersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEngineDefaultParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEngineDefaultParametersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParametersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeEngineDefaultParametersPages(_a0 *rds.DescribeEngineDefaultParametersInput, _a1 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultParametersInput, func(*rds.DescribeEngineDefaultParametersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEngineDefaultParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeEngineDefaultParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEngineDefaultParametersInput, func(*rds.DescribeEngineDefaultParametersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEngineDefaultParametersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEngineDefaultParametersRequest(_a0 *rds.DescribeEngineDefaultParametersInput) (*request.Request, *rds.DescribeEngineDefaultParametersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeEngineDefaultParametersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultParametersInput) (*request.Request, *rds.DescribeEngineDefaultParametersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEngineDefaultParametersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEngineDefaultParametersInput) *rds.DescribeEngineDefaultParametersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeEngineDefaultParametersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEngineDefaultParametersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeEngineDefaultParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultParametersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeEngineDefaultParametersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEngineDefaultParametersInput, ...request.Option) (*rds.DescribeEngineDefaultParametersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEngineDefaultParametersInput, ...request.Option) *rds.DescribeEngineDefaultParametersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEngineDefaultParametersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeEngineDefaultParametersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventCategories provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEventCategories(_a0 *rds.DescribeEventCategoriesInput) (*rds.DescribeEventCategoriesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeEventCategoriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventCategoriesInput) (*rds.DescribeEventCategoriesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventCategoriesInput) *rds.DescribeEventCategoriesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventCategoriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventCategoriesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventCategoriesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEventCategoriesRequest(_a0 *rds.DescribeEventCategoriesInput) (*request.Request, *rds.DescribeEventCategoriesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeEventCategoriesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventCategoriesInput) (*request.Request, *rds.DescribeEventCategoriesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventCategoriesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventCategoriesInput) *rds.DescribeEventCategoriesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeEventCategoriesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEventCategoriesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeEventCategoriesWithContext(_a0 context.Context, _a1 *rds.DescribeEventCategoriesInput, _a2 ...request.Option) (*rds.DescribeEventCategoriesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeEventCategoriesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventCategoriesInput, ...request.Option) (*rds.DescribeEventCategoriesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventCategoriesInput, ...request.Option) *rds.DescribeEventCategoriesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventCategoriesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeEventCategoriesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventSubscriptions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEventSubscriptions(_a0 *rds.DescribeEventSubscriptionsInput) (*rds.DescribeEventSubscriptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeEventSubscriptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventSubscriptionsInput) (*rds.DescribeEventSubscriptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventSubscriptionsInput) *rds.DescribeEventSubscriptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventSubscriptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventSubscriptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventSubscriptionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeEventSubscriptionsPages(_a0 *rds.DescribeEventSubscriptionsInput, _a1 func(*rds.DescribeEventSubscriptionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventSubscriptionsInput, func(*rds.DescribeEventSubscriptionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventSubscriptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeEventSubscriptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 func(*rds.DescribeEventSubscriptionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventSubscriptionsInput, func(*rds.DescribeEventSubscriptionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventSubscriptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEventSubscriptionsRequest(_a0 *rds.DescribeEventSubscriptionsInput) (*request.Request, *rds.DescribeEventSubscriptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeEventSubscriptionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventSubscriptionsInput) (*request.Request, *rds.DescribeEventSubscriptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventSubscriptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventSubscriptionsInput) *rds.DescribeEventSubscriptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeEventSubscriptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEventSubscriptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeEventSubscriptionsWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 ...request.Option) (*rds.DescribeEventSubscriptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeEventSubscriptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventSubscriptionsInput, ...request.Option) (*rds.DescribeEventSubscriptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventSubscriptionsInput, ...request.Option) *rds.DescribeEventSubscriptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventSubscriptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeEventSubscriptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEvents provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEvents(_a0 *rds.DescribeEventsInput) (*rds.DescribeEventsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventsInput) (*rds.DescribeEventsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventsInput) *rds.DescribeEventsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeEventsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeEventsPages(_a0 *rds.DescribeEventsInput, _a1 func(*rds.DescribeEventsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventsInput, func(*rds.DescribeEventsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeEventsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 func(*rds.DescribeEventsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventsInput, func(*rds.DescribeEventsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeEventsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeEventsRequest(_a0 *rds.DescribeEventsInput) (*request.Request, *rds.DescribeEventsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeEventsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventsInput) (*request.Request, *rds.DescribeEventsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeEventsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeEventsInput) *rds.DescribeEventsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeEventsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeEventsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeEventsWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 ...request.Option) (*rds.DescribeEventsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeEventsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventsInput, ...request.Option) (*rds.DescribeEventsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeEventsInput, ...request.Option) *rds.DescribeEventsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeEventsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeEventsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportTasks provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeExportTasks(_a0 *rds.DescribeExportTasksInput) (*rds.DescribeExportTasksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeExportTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeExportTasksInput) (*rds.DescribeExportTasksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeExportTasksInput) *rds.DescribeExportTasksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeExportTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeExportTasksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeExportTasksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeExportTasksPages(_a0 *rds.DescribeExportTasksInput, _a1 func(*rds.DescribeExportTasksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeExportTasksInput, func(*rds.DescribeExportTasksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeExportTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeExportTasksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 func(*rds.DescribeExportTasksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeExportTasksInput, func(*rds.DescribeExportTasksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeExportTasksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeExportTasksRequest(_a0 *rds.DescribeExportTasksInput) (*request.Request, *rds.DescribeExportTasksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeExportTasksOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeExportTasksInput) (*request.Request, *rds.DescribeExportTasksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeExportTasksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeExportTasksInput) *rds.DescribeExportTasksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeExportTasksOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeExportTasksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeExportTasksWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 ...request.Option) (*rds.DescribeExportTasksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeExportTasksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeExportTasksInput, ...request.Option) (*rds.DescribeExportTasksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeExportTasksInput, ...request.Option) *rds.DescribeExportTasksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeExportTasksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeExportTasksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalClusters provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeGlobalClusters(_a0 *rds.DescribeGlobalClustersInput) (*rds.DescribeGlobalClustersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeGlobalClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeGlobalClustersInput) (*rds.DescribeGlobalClustersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeGlobalClustersInput) *rds.DescribeGlobalClustersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeGlobalClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeGlobalClustersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeGlobalClustersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeGlobalClustersPages(_a0 *rds.DescribeGlobalClustersInput, _a1 func(*rds.DescribeGlobalClustersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeGlobalClustersInput, func(*rds.DescribeGlobalClustersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeGlobalClustersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeGlobalClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 func(*rds.DescribeGlobalClustersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeGlobalClustersInput, func(*rds.DescribeGlobalClustersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeGlobalClustersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeGlobalClustersRequest(_a0 *rds.DescribeGlobalClustersInput) (*request.Request, *rds.DescribeGlobalClustersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeGlobalClustersOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeGlobalClustersInput) (*request.Request, *rds.DescribeGlobalClustersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeGlobalClustersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeGlobalClustersInput) *rds.DescribeGlobalClustersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeGlobalClustersOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeGlobalClustersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeGlobalClustersWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 ...request.Option) (*rds.DescribeGlobalClustersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeGlobalClustersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeGlobalClustersInput, ...request.Option) (*rds.DescribeGlobalClustersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeGlobalClustersInput, ...request.Option) *rds.DescribeGlobalClustersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeGlobalClustersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeGlobalClustersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroupOptions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOptionGroupOptions(_a0 *rds.DescribeOptionGroupOptionsInput) (*rds.DescribeOptionGroupOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeOptionGroupOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupOptionsInput) (*rds.DescribeOptionGroupOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupOptionsInput) *rds.DescribeOptionGroupOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOptionGroupOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOptionGroupOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroupOptionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeOptionGroupOptionsPages(_a0 *rds.DescribeOptionGroupOptionsInput, _a1 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupOptionsInput, func(*rds.DescribeOptionGroupOptionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOptionGroupOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeOptionGroupOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupOptionsInput, func(*rds.DescribeOptionGroupOptionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOptionGroupOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOptionGroupOptionsRequest(_a0 *rds.DescribeOptionGroupOptionsInput) (*request.Request, *rds.DescribeOptionGroupOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeOptionGroupOptionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupOptionsInput) (*request.Request, *rds.DescribeOptionGroupOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOptionGroupOptionsInput) *rds.DescribeOptionGroupOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeOptionGroupOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroupOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeOptionGroupOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeOptionGroupOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupOptionsInput, ...request.Option) (*rds.DescribeOptionGroupOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupOptionsInput, ...request.Option) *rds.DescribeOptionGroupOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOptionGroupOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeOptionGroupOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroups provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOptionGroups(_a0 *rds.DescribeOptionGroupsInput) (*rds.DescribeOptionGroupsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeOptionGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupsInput) (*rds.DescribeOptionGroupsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupsInput) *rds.DescribeOptionGroupsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOptionGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOptionGroupsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroupsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeOptionGroupsPages(_a0 *rds.DescribeOptionGroupsInput, _a1 func(*rds.DescribeOptionGroupsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupsInput, func(*rds.DescribeOptionGroupsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOptionGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeOptionGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 func(*rds.DescribeOptionGroupsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupsInput, func(*rds.DescribeOptionGroupsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOptionGroupsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOptionGroupsRequest(_a0 *rds.DescribeOptionGroupsInput) (*request.Request, *rds.DescribeOptionGroupsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeOptionGroupsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupsInput) (*request.Request, *rds.DescribeOptionGroupsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOptionGroupsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOptionGroupsInput) *rds.DescribeOptionGroupsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeOptionGroupsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeOptionGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeOptionGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeOptionGroupsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupsInput, ...request.Option) (*rds.DescribeOptionGroupsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOptionGroupsInput, ...request.Option) *rds.DescribeOptionGroupsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOptionGroupsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeOptionGroupsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOrderableDBInstanceOptions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptions(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeOrderableDBInstanceOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOrderableDBInstanceOptionsInput) (*rds.DescribeOrderableDBInstanceOptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOrderableDBInstanceOptionsInput) *rds.DescribeOrderableDBInstanceOptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOrderableDBInstanceOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOrderableDBInstanceOptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeOrderableDBInstanceOptionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsPages(_a0 *rds.DescribeOrderableDBInstanceOptionsInput, _a1 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeOrderableDBInstanceOptionsInput, func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOrderableDBInstanceOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOrderableDBInstanceOptionsInput, func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeOrderableDBInstanceOptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsRequest(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *rds.DescribeOrderableDBInstanceOptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeOrderableDBInstanceOptionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *rds.DescribeOrderableDBInstanceOptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeOrderableDBInstanceOptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeOrderableDBInstanceOptionsInput) *rds.DescribeOrderableDBInstanceOptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeOrderableDBInstanceOptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeOrderableDBInstanceOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 ...request.Option) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeOrderableDBInstanceOptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOrderableDBInstanceOptionsInput, ...request.Option) (*rds.DescribeOrderableDBInstanceOptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeOrderableDBInstanceOptionsInput, ...request.Option) *rds.DescribeOrderableDBInstanceOptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeOrderableDBInstanceOptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeOrderableDBInstanceOptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePendingMaintenanceActions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribePendingMaintenanceActions(_a0 *rds.DescribePendingMaintenanceActionsInput) (*rds.DescribePendingMaintenanceActionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribePendingMaintenanceActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribePendingMaintenanceActionsInput) (*rds.DescribePendingMaintenanceActionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribePendingMaintenanceActionsInput) *rds.DescribePendingMaintenanceActionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribePendingMaintenanceActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribePendingMaintenanceActionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribePendingMaintenanceActionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribePendingMaintenanceActionsPages(_a0 *rds.DescribePendingMaintenanceActionsInput, _a1 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribePendingMaintenanceActionsInput, func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePendingMaintenanceActionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribePendingMaintenanceActionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribePendingMaintenanceActionsInput, func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribePendingMaintenanceActionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribePendingMaintenanceActionsRequest(_a0 *rds.DescribePendingMaintenanceActionsInput) (*request.Request, *rds.DescribePendingMaintenanceActionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribePendingMaintenanceActionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribePendingMaintenanceActionsInput) (*request.Request, *rds.DescribePendingMaintenanceActionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribePendingMaintenanceActionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribePendingMaintenanceActionsInput) *rds.DescribePendingMaintenanceActionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribePendingMaintenanceActionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribePendingMaintenanceActionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribePendingMaintenanceActionsWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 ...request.Option) (*rds.DescribePendingMaintenanceActionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribePendingMaintenanceActionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribePendingMaintenanceActionsInput, ...request.Option) (*rds.DescribePendingMaintenanceActionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribePendingMaintenanceActionsInput, ...request.Option) *rds.DescribePendingMaintenanceActionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribePendingMaintenanceActionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribePendingMaintenanceActionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstances provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeReservedDBInstances(_a0 *rds.DescribeReservedDBInstancesInput) (*rds.DescribeReservedDBInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeReservedDBInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesInput) (*rds.DescribeReservedDBInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesInput) *rds.DescribeReservedDBInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeReservedDBInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeReservedDBInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstancesOfferings provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferings(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeReservedDBInstancesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesOfferingsInput) (*rds.DescribeReservedDBInstancesOfferingsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesOfferingsInput) *rds.DescribeReservedDBInstancesOfferingsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeReservedDBInstancesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeReservedDBInstancesOfferingsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstancesOfferingsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsPages(_a0 *rds.DescribeReservedDBInstancesOfferingsInput, _a1 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesOfferingsInput, func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedDBInstancesOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesOfferingsInput, func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedDBInstancesOfferingsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsRequest(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*request.Request, *rds.DescribeReservedDBInstancesOfferingsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeReservedDBInstancesOfferingsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesOfferingsInput) (*request.Request, *rds.DescribeReservedDBInstancesOfferingsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesOfferingsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeReservedDBInstancesOfferingsInput) *rds.DescribeReservedDBInstancesOfferingsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeReservedDBInstancesOfferingsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstancesOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeReservedDBInstancesOfferingsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesOfferingsInput, ...request.Option) (*rds.DescribeReservedDBInstancesOfferingsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesOfferingsInput, ...request.Option) *rds.DescribeReservedDBInstancesOfferingsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeReservedDBInstancesOfferingsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeReservedDBInstancesOfferingsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstancesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeReservedDBInstancesPages(_a0 *rds.DescribeReservedDBInstancesInput, _a1 func(*rds.DescribeReservedDBInstancesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesInput, func(*rds.DescribeReservedDBInstancesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedDBInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeReservedDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 func(*rds.DescribeReservedDBInstancesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesInput, func(*rds.DescribeReservedDBInstancesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeReservedDBInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeReservedDBInstancesRequest(_a0 *rds.DescribeReservedDBInstancesInput) (*request.Request, *rds.DescribeReservedDBInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeReservedDBInstancesOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesInput) (*request.Request, *rds.DescribeReservedDBInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeReservedDBInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeReservedDBInstancesInput) *rds.DescribeReservedDBInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeReservedDBInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeReservedDBInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeReservedDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeReservedDBInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesInput, ...request.Option) (*rds.DescribeReservedDBInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeReservedDBInstancesInput, ...request.Option) *rds.DescribeReservedDBInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeReservedDBInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeReservedDBInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSourceRegions provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeSourceRegions(_a0 *rds.DescribeSourceRegionsInput) (*rds.DescribeSourceRegionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeSourceRegionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeSourceRegionsInput) (*rds.DescribeSourceRegionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeSourceRegionsInput) *rds.DescribeSourceRegionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeSourceRegionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeSourceRegionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeSourceRegionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DescribeSourceRegionsPages(_a0 *rds.DescribeSourceRegionsInput, _a1 func(*rds.DescribeSourceRegionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeSourceRegionsInput, func(*rds.DescribeSourceRegionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSourceRegionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DescribeSourceRegionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 func(*rds.DescribeSourceRegionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeSourceRegionsInput, func(*rds.DescribeSourceRegionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DescribeSourceRegionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeSourceRegionsRequest(_a0 *rds.DescribeSourceRegionsInput) (*request.Request, *rds.DescribeSourceRegionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeSourceRegionsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeSourceRegionsInput) (*request.Request, *rds.DescribeSourceRegionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeSourceRegionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeSourceRegionsInput) *rds.DescribeSourceRegionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeSourceRegionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeSourceRegionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeSourceRegionsWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 ...request.Option) (*rds.DescribeSourceRegionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeSourceRegionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeSourceRegionsInput, ...request.Option) (*rds.DescribeSourceRegionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeSourceRegionsInput, ...request.Option) *rds.DescribeSourceRegionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeSourceRegionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeSourceRegionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeValidDBInstanceModifications provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeValidDBInstanceModifications(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*rds.DescribeValidDBInstanceModificationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DescribeValidDBInstanceModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeValidDBInstanceModificationsInput) (*rds.DescribeValidDBInstanceModificationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeValidDBInstanceModificationsInput) *rds.DescribeValidDBInstanceModificationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeValidDBInstanceModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeValidDBInstanceModificationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeValidDBInstanceModificationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DescribeValidDBInstanceModificationsRequest(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*request.Request, *rds.DescribeValidDBInstanceModificationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DescribeValidDBInstanceModificationsOutput
- if rf, ok := ret.Get(0).(func(*rds.DescribeValidDBInstanceModificationsInput) (*request.Request, *rds.DescribeValidDBInstanceModificationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DescribeValidDBInstanceModificationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DescribeValidDBInstanceModificationsInput) *rds.DescribeValidDBInstanceModificationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DescribeValidDBInstanceModificationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeValidDBInstanceModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DescribeValidDBInstanceModificationsWithContext(_a0 context.Context, _a1 *rds.DescribeValidDBInstanceModificationsInput, _a2 ...request.Option) (*rds.DescribeValidDBInstanceModificationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DescribeValidDBInstanceModificationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeValidDBInstanceModificationsInput, ...request.Option) (*rds.DescribeValidDBInstanceModificationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeValidDBInstanceModificationsInput, ...request.Option) *rds.DescribeValidDBInstanceModificationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DescribeValidDBInstanceModificationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeValidDBInstanceModificationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DownloadDBLogFilePortion provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DownloadDBLogFilePortion(_a0 *rds.DownloadDBLogFilePortionInput) (*rds.DownloadDBLogFilePortionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DownloadDBLogFilePortionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.DownloadDBLogFilePortionInput) (*rds.DownloadDBLogFilePortionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DownloadDBLogFilePortionInput) *rds.DownloadDBLogFilePortionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DownloadDBLogFilePortionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DownloadDBLogFilePortionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DownloadDBLogFilePortionPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRDS) DownloadDBLogFilePortionPages(_a0 *rds.DownloadDBLogFilePortionInput, _a1 func(*rds.DownloadDBLogFilePortionOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DownloadDBLogFilePortionInput, func(*rds.DownloadDBLogFilePortionOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DownloadDBLogFilePortionPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRDS) DownloadDBLogFilePortionPagesWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 func(*rds.DownloadDBLogFilePortionOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DownloadDBLogFilePortionInput, func(*rds.DownloadDBLogFilePortionOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DownloadDBLogFilePortionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) DownloadDBLogFilePortionRequest(_a0 *rds.DownloadDBLogFilePortionInput) (*request.Request, *rds.DownloadDBLogFilePortionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DownloadDBLogFilePortionOutput
- if rf, ok := ret.Get(0).(func(*rds.DownloadDBLogFilePortionInput) (*request.Request, *rds.DownloadDBLogFilePortionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.DownloadDBLogFilePortionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.DownloadDBLogFilePortionInput) *rds.DownloadDBLogFilePortionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DownloadDBLogFilePortionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DownloadDBLogFilePortionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) DownloadDBLogFilePortionWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 ...request.Option) (*rds.DownloadDBLogFilePortionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DownloadDBLogFilePortionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DownloadDBLogFilePortionInput, ...request.Option) (*rds.DownloadDBLogFilePortionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DownloadDBLogFilePortionInput, ...request.Option) *rds.DownloadDBLogFilePortionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DownloadDBLogFilePortionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.DownloadDBLogFilePortionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) FailoverDBCluster(_a0 *rds.FailoverDBClusterInput) (*rds.FailoverDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.FailoverDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.FailoverDBClusterInput) (*rds.FailoverDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.FailoverDBClusterInput) *rds.FailoverDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.FailoverDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.FailoverDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) FailoverDBClusterRequest(_a0 *rds.FailoverDBClusterInput) (*request.Request, *rds.FailoverDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.FailoverDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.FailoverDBClusterInput) (*request.Request, *rds.FailoverDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.FailoverDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.FailoverDBClusterInput) *rds.FailoverDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.FailoverDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// FailoverDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) FailoverDBClusterWithContext(_a0 context.Context, _a1 *rds.FailoverDBClusterInput, _a2 ...request.Option) (*rds.FailoverDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.FailoverDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.FailoverDBClusterInput, ...request.Option) (*rds.FailoverDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.FailoverDBClusterInput, ...request.Option) *rds.FailoverDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.FailoverDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.FailoverDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverGlobalCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) FailoverGlobalCluster(_a0 *rds.FailoverGlobalClusterInput) (*rds.FailoverGlobalClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.FailoverGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) (*rds.FailoverGlobalClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) *rds.FailoverGlobalClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.FailoverGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.FailoverGlobalClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// FailoverGlobalClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) FailoverGlobalClusterRequest(_a0 *rds.FailoverGlobalClusterInput) (*request.Request, *rds.FailoverGlobalClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.FailoverGlobalClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) (*request.Request, *rds.FailoverGlobalClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.FailoverGlobalClusterInput) *rds.FailoverGlobalClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.FailoverGlobalClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// FailoverGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) FailoverGlobalClusterWithContext(_a0 context.Context, _a1 *rds.FailoverGlobalClusterInput, _a2 ...request.Option) (*rds.FailoverGlobalClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.FailoverGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.FailoverGlobalClusterInput, ...request.Option) (*rds.FailoverGlobalClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.FailoverGlobalClusterInput, ...request.Option) *rds.FailoverGlobalClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.FailoverGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.FailoverGlobalClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ListTagsForResource(_a0 *rds.ListTagsForResourceInput) (*rds.ListTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ListTagsForResourceInput) (*rds.ListTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ListTagsForResourceInput) *rds.ListTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ListTagsForResourceRequest(_a0 *rds.ListTagsForResourceInput) (*request.Request, *rds.ListTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ListTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*rds.ListTagsForResourceInput) (*request.Request, *rds.ListTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ListTagsForResourceInput) *rds.ListTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ListTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ListTagsForResourceWithContext(_a0 context.Context, _a1 *rds.ListTagsForResourceInput, _a2 ...request.Option) (*rds.ListTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ListTagsForResourceInput, ...request.Option) (*rds.ListTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ListTagsForResourceInput, ...request.Option) *rds.ListTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyActivityStream provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyActivityStream(_a0 *rds.ModifyActivityStreamInput) (*rds.ModifyActivityStreamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyActivityStreamInput) (*rds.ModifyActivityStreamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyActivityStreamInput) *rds.ModifyActivityStreamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyActivityStreamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyActivityStreamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyActivityStreamRequest(_a0 *rds.ModifyActivityStreamInput) (*request.Request, *rds.ModifyActivityStreamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyActivityStreamOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyActivityStreamInput) (*request.Request, *rds.ModifyActivityStreamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyActivityStreamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyActivityStreamInput) *rds.ModifyActivityStreamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyActivityStreamOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyActivityStreamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyActivityStreamWithContext(_a0 context.Context, _a1 *rds.ModifyActivityStreamInput, _a2 ...request.Option) (*rds.ModifyActivityStreamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyActivityStreamInput, ...request.Option) (*rds.ModifyActivityStreamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyActivityStreamInput, ...request.Option) *rds.ModifyActivityStreamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyActivityStreamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCertificates provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCertificates(_a0 *rds.ModifyCertificatesInput) (*rds.ModifyCertificatesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyCertificatesInput) (*rds.ModifyCertificatesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCertificatesInput) *rds.ModifyCertificatesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCertificatesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCertificatesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCertificatesRequest(_a0 *rds.ModifyCertificatesInput) (*request.Request, *rds.ModifyCertificatesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyCertificatesOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyCertificatesInput) (*request.Request, *rds.ModifyCertificatesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCertificatesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCertificatesInput) *rds.ModifyCertificatesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyCertificatesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyCertificatesWithContext(_a0 context.Context, _a1 *rds.ModifyCertificatesInput, _a2 ...request.Option) (*rds.ModifyCertificatesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyCertificatesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCertificatesInput, ...request.Option) (*rds.ModifyCertificatesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCertificatesInput, ...request.Option) *rds.ModifyCertificatesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCertificatesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyCertificatesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCurrentDBClusterCapacity provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacity(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*rds.ModifyCurrentDBClusterCapacityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyCurrentDBClusterCapacityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyCurrentDBClusterCapacityInput) (*rds.ModifyCurrentDBClusterCapacityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCurrentDBClusterCapacityInput) *rds.ModifyCurrentDBClusterCapacityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCurrentDBClusterCapacityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCurrentDBClusterCapacityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCurrentDBClusterCapacityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacityRequest(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*request.Request, *rds.ModifyCurrentDBClusterCapacityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyCurrentDBClusterCapacityOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyCurrentDBClusterCapacityInput) (*request.Request, *rds.ModifyCurrentDBClusterCapacityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCurrentDBClusterCapacityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCurrentDBClusterCapacityInput) *rds.ModifyCurrentDBClusterCapacityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyCurrentDBClusterCapacityOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCurrentDBClusterCapacityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacityWithContext(_a0 context.Context, _a1 *rds.ModifyCurrentDBClusterCapacityInput, _a2 ...request.Option) (*rds.ModifyCurrentDBClusterCapacityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyCurrentDBClusterCapacityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCurrentDBClusterCapacityInput, ...request.Option) (*rds.ModifyCurrentDBClusterCapacityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCurrentDBClusterCapacityInput, ...request.Option) *rds.ModifyCurrentDBClusterCapacityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCurrentDBClusterCapacityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyCurrentDBClusterCapacityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCustomDBEngineVersion provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCustomDBEngineVersion(_a0 *rds.ModifyCustomDBEngineVersionInput) (*rds.ModifyCustomDBEngineVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyCustomDBEngineVersionInput) (*rds.ModifyCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCustomDBEngineVersionInput) *rds.ModifyCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCustomDBEngineVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyCustomDBEngineVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyCustomDBEngineVersionRequest(_a0 *rds.ModifyCustomDBEngineVersionInput) (*request.Request, *rds.ModifyCustomDBEngineVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyCustomDBEngineVersionOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyCustomDBEngineVersionInput) (*request.Request, *rds.ModifyCustomDBEngineVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyCustomDBEngineVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyCustomDBEngineVersionInput) *rds.ModifyCustomDBEngineVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyCustomDBEngineVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyCustomDBEngineVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyCustomDBEngineVersionWithContext(_a0 context.Context, _a1 *rds.ModifyCustomDBEngineVersionInput, _a2 ...request.Option) (*rds.ModifyCustomDBEngineVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyCustomDBEngineVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCustomDBEngineVersionInput, ...request.Option) (*rds.ModifyCustomDBEngineVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyCustomDBEngineVersionInput, ...request.Option) *rds.ModifyCustomDBEngineVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyCustomDBEngineVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyCustomDBEngineVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBCluster(_a0 *rds.ModifyDBClusterInput) (*rds.ModifyDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterInput) (*rds.ModifyDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterInput) *rds.ModifyDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterEndpoint(_a0 *rds.ModifyDBClusterEndpointInput) (*rds.ModifyDBClusterEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterEndpointInput) (*rds.ModifyDBClusterEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterEndpointInput) *rds.ModifyDBClusterEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterEndpointRequest(_a0 *rds.ModifyDBClusterEndpointInput) (*request.Request, *rds.ModifyDBClusterEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBClusterEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterEndpointInput) (*request.Request, *rds.ModifyDBClusterEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterEndpointInput) *rds.ModifyDBClusterEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBClusterEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterEndpointInput, _a2 ...request.Option) (*rds.ModifyDBClusterEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBClusterEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterEndpointInput, ...request.Option) (*rds.ModifyDBClusterEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterEndpointInput, ...request.Option) *rds.ModifyDBClusterEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBClusterEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterParameterGroup(_a0 *rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DBClusterParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterParameterGroupInput) *rds.DBClusterParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterParameterGroupRequest(_a0 *rds.ModifyDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DBClusterParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterParameterGroupInput) *rds.DBClusterParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DBClusterParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterParameterGroupInput, ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterParameterGroupInput, ...request.Option) *rds.DBClusterParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBClusterParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterRequest(_a0 *rds.ModifyDBClusterInput) (*request.Request, *rds.ModifyDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterInput) (*request.Request, *rds.ModifyDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterInput) *rds.ModifyDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterSnapshotAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttribute(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBClusterSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterSnapshotAttributeInput) (*rds.ModifyDBClusterSnapshotAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterSnapshotAttributeInput) *rds.ModifyDBClusterSnapshotAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterSnapshotAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterSnapshotAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttributeRequest(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *rds.ModifyDBClusterSnapshotAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBClusterSnapshotAttributeOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *rds.ModifyDBClusterSnapshotAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBClusterSnapshotAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBClusterSnapshotAttributeInput) *rds.ModifyDBClusterSnapshotAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBClusterSnapshotAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBClusterSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterSnapshotAttributeInput, ...request.Option) (*rds.ModifyDBClusterSnapshotAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterSnapshotAttributeInput, ...request.Option) *rds.ModifyDBClusterSnapshotAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBClusterSnapshotAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBClusterWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterInput, _a2 ...request.Option) (*rds.ModifyDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterInput, ...request.Option) (*rds.ModifyDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBClusterInput, ...request.Option) *rds.ModifyDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBInstance(_a0 *rds.ModifyDBInstanceInput) (*rds.ModifyDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBInstanceInput) (*rds.ModifyDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBInstanceInput) *rds.ModifyDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBInstanceRequest(_a0 *rds.ModifyDBInstanceInput) (*request.Request, *rds.ModifyDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBInstanceInput) (*request.Request, *rds.ModifyDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBInstanceInput) *rds.ModifyDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBInstanceWithContext(_a0 context.Context, _a1 *rds.ModifyDBInstanceInput, _a2 ...request.Option) (*rds.ModifyDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBInstanceInput, ...request.Option) (*rds.ModifyDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBInstanceInput, ...request.Option) *rds.ModifyDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBParameterGroup(_a0 *rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DBParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBParameterGroupInput) *rds.DBParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBParameterGroupRequest(_a0 *rds.ModifyDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DBParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBParameterGroupInput) *rds.DBParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DBParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBParameterGroupInput, ...request.Option) (*rds.DBParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBParameterGroupInput, ...request.Option) *rds.DBParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxy provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxy(_a0 *rds.ModifyDBProxyInput) (*rds.ModifyDBProxyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyInput) (*rds.ModifyDBProxyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyInput) *rds.ModifyDBProxyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxyEndpoint(_a0 *rds.ModifyDBProxyEndpointInput) (*rds.ModifyDBProxyEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) (*rds.ModifyDBProxyEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) *rds.ModifyDBProxyEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxyEndpointRequest(_a0 *rds.ModifyDBProxyEndpointInput) (*request.Request, *rds.ModifyDBProxyEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBProxyEndpointOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) (*request.Request, *rds.ModifyDBProxyEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyEndpointInput) *rds.ModifyDBProxyEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBProxyEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyEndpointInput, _a2 ...request.Option) (*rds.ModifyDBProxyEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBProxyEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyEndpointInput, ...request.Option) (*rds.ModifyDBProxyEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyEndpointInput, ...request.Option) *rds.ModifyDBProxyEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBProxyEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxyRequest(_a0 *rds.ModifyDBProxyInput) (*request.Request, *rds.ModifyDBProxyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBProxyOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyInput) (*request.Request, *rds.ModifyDBProxyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyInput) *rds.ModifyDBProxyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBProxyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyTargetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxyTargetGroup(_a0 *rds.ModifyDBProxyTargetGroupInput) (*rds.ModifyDBProxyTargetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBProxyTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyTargetGroupInput) (*rds.ModifyDBProxyTargetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyTargetGroupInput) *rds.ModifyDBProxyTargetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyTargetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyTargetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBProxyTargetGroupRequest(_a0 *rds.ModifyDBProxyTargetGroupInput) (*request.Request, *rds.ModifyDBProxyTargetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBProxyTargetGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyTargetGroupInput) (*request.Request, *rds.ModifyDBProxyTargetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyTargetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyTargetGroupInput) *rds.ModifyDBProxyTargetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBProxyTargetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyTargetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBProxyTargetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyTargetGroupInput, _a2 ...request.Option) (*rds.ModifyDBProxyTargetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBProxyTargetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyTargetGroupInput, ...request.Option) (*rds.ModifyDBProxyTargetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyTargetGroupInput, ...request.Option) *rds.ModifyDBProxyTargetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyTargetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBProxyTargetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBProxyWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyInput, _a2 ...request.Option) (*rds.ModifyDBProxyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBProxyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyInput, ...request.Option) (*rds.ModifyDBProxyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyInput, ...request.Option) *rds.ModifyDBProxyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBProxyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBProxyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSnapshot(_a0 *rds.ModifyDBSnapshotInput) (*rds.ModifyDBSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotInput) (*rds.ModifyDBSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotInput) *rds.ModifyDBSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshotAttribute provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSnapshotAttribute(_a0 *rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotAttributeInput) *rds.ModifyDBSnapshotAttributeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSnapshotAttributeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshotAttributeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSnapshotAttributeRequest(_a0 *rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBSnapshotAttributeOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotAttributeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSnapshotAttributeInput) *rds.ModifyDBSnapshotAttributeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBSnapshotAttributeOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotAttributeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBSnapshotAttributeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSnapshotAttributeInput, ...request.Option) (*rds.ModifyDBSnapshotAttributeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSnapshotAttributeInput, ...request.Option) *rds.ModifyDBSnapshotAttributeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSnapshotAttributeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBSnapshotAttributeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSnapshotRequest(_a0 *rds.ModifyDBSnapshotInput) (*request.Request, *rds.ModifyDBSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotInput) (*request.Request, *rds.ModifyDBSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSnapshotInput) *rds.ModifyDBSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSnapshotInput, ...request.Option) (*rds.ModifyDBSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSnapshotInput, ...request.Option) *rds.ModifyDBSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSubnetGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSubnetGroup(_a0 *rds.ModifyDBSubnetGroupInput) (*rds.ModifyDBSubnetGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSubnetGroupInput) (*rds.ModifyDBSubnetGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSubnetGroupInput) *rds.ModifyDBSubnetGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSubnetGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyDBSubnetGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyDBSubnetGroupRequest(_a0 *rds.ModifyDBSubnetGroupInput) (*request.Request, *rds.ModifyDBSubnetGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyDBSubnetGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSubnetGroupInput) (*request.Request, *rds.ModifyDBSubnetGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyDBSubnetGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyDBSubnetGroupInput) *rds.ModifyDBSubnetGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyDBSubnetGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBSubnetGroupInput, _a2 ...request.Option) (*rds.ModifyDBSubnetGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyDBSubnetGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSubnetGroupInput, ...request.Option) (*rds.ModifyDBSubnetGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBSubnetGroupInput, ...request.Option) *rds.ModifyDBSubnetGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyDBSubnetGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBSubnetGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyEventSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyEventSubscription(_a0 *rds.ModifyEventSubscriptionInput) (*rds.ModifyEventSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyEventSubscriptionInput) (*rds.ModifyEventSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyEventSubscriptionInput) *rds.ModifyEventSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyEventSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyEventSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyEventSubscriptionRequest(_a0 *rds.ModifyEventSubscriptionInput) (*request.Request, *rds.ModifyEventSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyEventSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyEventSubscriptionInput) (*request.Request, *rds.ModifyEventSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyEventSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyEventSubscriptionInput) *rds.ModifyEventSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyEventSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.ModifyEventSubscriptionInput, _a2 ...request.Option) (*rds.ModifyEventSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyEventSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyEventSubscriptionInput, ...request.Option) (*rds.ModifyEventSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyEventSubscriptionInput, ...request.Option) *rds.ModifyEventSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyEventSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyEventSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyGlobalCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyGlobalCluster(_a0 *rds.ModifyGlobalClusterInput) (*rds.ModifyGlobalClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyGlobalClusterInput) (*rds.ModifyGlobalClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyGlobalClusterInput) *rds.ModifyGlobalClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyGlobalClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyGlobalClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyGlobalClusterRequest(_a0 *rds.ModifyGlobalClusterInput) (*request.Request, *rds.ModifyGlobalClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyGlobalClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyGlobalClusterInput) (*request.Request, *rds.ModifyGlobalClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyGlobalClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyGlobalClusterInput) *rds.ModifyGlobalClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyGlobalClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyGlobalClusterWithContext(_a0 context.Context, _a1 *rds.ModifyGlobalClusterInput, _a2 ...request.Option) (*rds.ModifyGlobalClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyGlobalClusterInput, ...request.Option) (*rds.ModifyGlobalClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyGlobalClusterInput, ...request.Option) *rds.ModifyGlobalClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyGlobalClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyOptionGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyOptionGroup(_a0 *rds.ModifyOptionGroupInput) (*rds.ModifyOptionGroupOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.ModifyOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ModifyOptionGroupInput) (*rds.ModifyOptionGroupOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyOptionGroupInput) *rds.ModifyOptionGroupOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyOptionGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ModifyOptionGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ModifyOptionGroupRequest(_a0 *rds.ModifyOptionGroupInput) (*request.Request, *rds.ModifyOptionGroupOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.ModifyOptionGroupOutput
- if rf, ok := ret.Get(0).(func(*rds.ModifyOptionGroupInput) (*request.Request, *rds.ModifyOptionGroupOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ModifyOptionGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ModifyOptionGroupInput) *rds.ModifyOptionGroupOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.ModifyOptionGroupOutput)
- }
- }
-
- return r0, r1
-}
-
-// ModifyOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ModifyOptionGroupWithContext(_a0 context.Context, _a1 *rds.ModifyOptionGroupInput, _a2 ...request.Option) (*rds.ModifyOptionGroupOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.ModifyOptionGroupOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyOptionGroupInput, ...request.Option) (*rds.ModifyOptionGroupOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyOptionGroupInput, ...request.Option) *rds.ModifyOptionGroupOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.ModifyOptionGroupOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyOptionGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PromoteReadReplica provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PromoteReadReplica(_a0 *rds.PromoteReadReplicaInput) (*rds.PromoteReadReplicaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.PromoteReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaInput) (*rds.PromoteReadReplicaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaInput) *rds.PromoteReadReplicaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PromoteReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PromoteReadReplicaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PromoteReadReplicaDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PromoteReadReplicaDBCluster(_a0 *rds.PromoteReadReplicaDBClusterInput) (*rds.PromoteReadReplicaDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.PromoteReadReplicaDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaDBClusterInput) (*rds.PromoteReadReplicaDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaDBClusterInput) *rds.PromoteReadReplicaDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PromoteReadReplicaDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PromoteReadReplicaDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PromoteReadReplicaDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PromoteReadReplicaDBClusterRequest(_a0 *rds.PromoteReadReplicaDBClusterInput) (*request.Request, *rds.PromoteReadReplicaDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.PromoteReadReplicaDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaDBClusterInput) (*request.Request, *rds.PromoteReadReplicaDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PromoteReadReplicaDBClusterInput) *rds.PromoteReadReplicaDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.PromoteReadReplicaDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// PromoteReadReplicaDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) PromoteReadReplicaDBClusterWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaDBClusterInput, _a2 ...request.Option) (*rds.PromoteReadReplicaDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.PromoteReadReplicaDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PromoteReadReplicaDBClusterInput, ...request.Option) (*rds.PromoteReadReplicaDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PromoteReadReplicaDBClusterInput, ...request.Option) *rds.PromoteReadReplicaDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PromoteReadReplicaDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.PromoteReadReplicaDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PromoteReadReplicaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PromoteReadReplicaRequest(_a0 *rds.PromoteReadReplicaInput) (*request.Request, *rds.PromoteReadReplicaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.PromoteReadReplicaOutput
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaInput) (*request.Request, *rds.PromoteReadReplicaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PromoteReadReplicaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PromoteReadReplicaInput) *rds.PromoteReadReplicaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.PromoteReadReplicaOutput)
- }
- }
-
- return r0, r1
-}
-
-// PromoteReadReplicaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) PromoteReadReplicaWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaInput, _a2 ...request.Option) (*rds.PromoteReadReplicaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.PromoteReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PromoteReadReplicaInput, ...request.Option) (*rds.PromoteReadReplicaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PromoteReadReplicaInput, ...request.Option) *rds.PromoteReadReplicaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PromoteReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.PromoteReadReplicaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedDBInstancesOffering provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PurchaseReservedDBInstancesOffering(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.PurchaseReservedDBInstancesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.PurchaseReservedDBInstancesOfferingInput) (*rds.PurchaseReservedDBInstancesOfferingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PurchaseReservedDBInstancesOfferingInput) *rds.PurchaseReservedDBInstancesOfferingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PurchaseReservedDBInstancesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PurchaseReservedDBInstancesOfferingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurchaseReservedDBInstancesOfferingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) PurchaseReservedDBInstancesOfferingRequest(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*request.Request, *rds.PurchaseReservedDBInstancesOfferingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.PurchaseReservedDBInstancesOfferingOutput
- if rf, ok := ret.Get(0).(func(*rds.PurchaseReservedDBInstancesOfferingInput) (*request.Request, *rds.PurchaseReservedDBInstancesOfferingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.PurchaseReservedDBInstancesOfferingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.PurchaseReservedDBInstancesOfferingInput) *rds.PurchaseReservedDBInstancesOfferingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.PurchaseReservedDBInstancesOfferingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurchaseReservedDBInstancesOfferingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) PurchaseReservedDBInstancesOfferingWithContext(_a0 context.Context, _a1 *rds.PurchaseReservedDBInstancesOfferingInput, _a2 ...request.Option) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.PurchaseReservedDBInstancesOfferingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PurchaseReservedDBInstancesOfferingInput, ...request.Option) (*rds.PurchaseReservedDBInstancesOfferingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.PurchaseReservedDBInstancesOfferingInput, ...request.Option) *rds.PurchaseReservedDBInstancesOfferingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.PurchaseReservedDBInstancesOfferingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.PurchaseReservedDBInstancesOfferingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RebootDBCluster(_a0 *rds.RebootDBClusterInput) (*rds.RebootDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RebootDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RebootDBClusterInput) (*rds.RebootDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RebootDBClusterInput) *rds.RebootDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RebootDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RebootDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RebootDBClusterRequest(_a0 *rds.RebootDBClusterInput) (*request.Request, *rds.RebootDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RebootDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.RebootDBClusterInput) (*request.Request, *rds.RebootDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RebootDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RebootDBClusterInput) *rds.RebootDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RebootDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// RebootDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RebootDBClusterWithContext(_a0 context.Context, _a1 *rds.RebootDBClusterInput, _a2 ...request.Option) (*rds.RebootDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RebootDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RebootDBClusterInput, ...request.Option) (*rds.RebootDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RebootDBClusterInput, ...request.Option) *rds.RebootDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RebootDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RebootDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RebootDBInstance(_a0 *rds.RebootDBInstanceInput) (*rds.RebootDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RebootDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RebootDBInstanceInput) (*rds.RebootDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RebootDBInstanceInput) *rds.RebootDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RebootDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RebootDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RebootDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RebootDBInstanceRequest(_a0 *rds.RebootDBInstanceInput) (*request.Request, *rds.RebootDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RebootDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.RebootDBInstanceInput) (*request.Request, *rds.RebootDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RebootDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RebootDBInstanceInput) *rds.RebootDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RebootDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// RebootDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RebootDBInstanceWithContext(_a0 context.Context, _a1 *rds.RebootDBInstanceInput, _a2 ...request.Option) (*rds.RebootDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RebootDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RebootDBInstanceInput, ...request.Option) (*rds.RebootDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RebootDBInstanceInput, ...request.Option) *rds.RebootDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RebootDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RebootDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterDBProxyTargets provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RegisterDBProxyTargets(_a0 *rds.RegisterDBProxyTargetsInput) (*rds.RegisterDBProxyTargetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RegisterDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RegisterDBProxyTargetsInput) (*rds.RegisterDBProxyTargetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RegisterDBProxyTargetsInput) *rds.RegisterDBProxyTargetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RegisterDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RegisterDBProxyTargetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RegisterDBProxyTargetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RegisterDBProxyTargetsRequest(_a0 *rds.RegisterDBProxyTargetsInput) (*request.Request, *rds.RegisterDBProxyTargetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RegisterDBProxyTargetsOutput
- if rf, ok := ret.Get(0).(func(*rds.RegisterDBProxyTargetsInput) (*request.Request, *rds.RegisterDBProxyTargetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RegisterDBProxyTargetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RegisterDBProxyTargetsInput) *rds.RegisterDBProxyTargetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RegisterDBProxyTargetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// RegisterDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RegisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.RegisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.RegisterDBProxyTargetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RegisterDBProxyTargetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RegisterDBProxyTargetsInput, ...request.Option) (*rds.RegisterDBProxyTargetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RegisterDBProxyTargetsInput, ...request.Option) *rds.RegisterDBProxyTargetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RegisterDBProxyTargetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RegisterDBProxyTargetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveFromGlobalCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveFromGlobalCluster(_a0 *rds.RemoveFromGlobalClusterInput) (*rds.RemoveFromGlobalClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RemoveFromGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RemoveFromGlobalClusterInput) (*rds.RemoveFromGlobalClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveFromGlobalClusterInput) *rds.RemoveFromGlobalClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveFromGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveFromGlobalClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveFromGlobalClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveFromGlobalClusterRequest(_a0 *rds.RemoveFromGlobalClusterInput) (*request.Request, *rds.RemoveFromGlobalClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RemoveFromGlobalClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.RemoveFromGlobalClusterInput) (*request.Request, *rds.RemoveFromGlobalClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveFromGlobalClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveFromGlobalClusterInput) *rds.RemoveFromGlobalClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RemoveFromGlobalClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveFromGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RemoveFromGlobalClusterWithContext(_a0 context.Context, _a1 *rds.RemoveFromGlobalClusterInput, _a2 ...request.Option) (*rds.RemoveFromGlobalClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RemoveFromGlobalClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveFromGlobalClusterInput, ...request.Option) (*rds.RemoveFromGlobalClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveFromGlobalClusterInput, ...request.Option) *rds.RemoveFromGlobalClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveFromGlobalClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RemoveFromGlobalClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveRoleFromDBCluster(_a0 *rds.RemoveRoleFromDBClusterInput) (*rds.RemoveRoleFromDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RemoveRoleFromDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBClusterInput) (*rds.RemoveRoleFromDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBClusterInput) *rds.RemoveRoleFromDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveRoleFromDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveRoleFromDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveRoleFromDBClusterRequest(_a0 *rds.RemoveRoleFromDBClusterInput) (*request.Request, *rds.RemoveRoleFromDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RemoveRoleFromDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBClusterInput) (*request.Request, *rds.RemoveRoleFromDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveRoleFromDBClusterInput) *rds.RemoveRoleFromDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RemoveRoleFromDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RemoveRoleFromDBClusterWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBClusterInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RemoveRoleFromDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveRoleFromDBClusterInput, ...request.Option) (*rds.RemoveRoleFromDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveRoleFromDBClusterInput, ...request.Option) *rds.RemoveRoleFromDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveRoleFromDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RemoveRoleFromDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveRoleFromDBInstance(_a0 *rds.RemoveRoleFromDBInstanceInput) (*rds.RemoveRoleFromDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RemoveRoleFromDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBInstanceInput) (*rds.RemoveRoleFromDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBInstanceInput) *rds.RemoveRoleFromDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveRoleFromDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveRoleFromDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveRoleFromDBInstanceRequest(_a0 *rds.RemoveRoleFromDBInstanceInput) (*request.Request, *rds.RemoveRoleFromDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RemoveRoleFromDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBInstanceInput) (*request.Request, *rds.RemoveRoleFromDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveRoleFromDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveRoleFromDBInstanceInput) *rds.RemoveRoleFromDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RemoveRoleFromDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveRoleFromDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RemoveRoleFromDBInstanceWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBInstanceInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RemoveRoleFromDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveRoleFromDBInstanceInput, ...request.Option) (*rds.RemoveRoleFromDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveRoleFromDBInstanceInput, ...request.Option) *rds.RemoveRoleFromDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveRoleFromDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RemoveRoleFromDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveSourceIdentifierFromSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscription(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RemoveSourceIdentifierFromSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) *rds.RemoveSourceIdentifierFromSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveSourceIdentifierFromSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveSourceIdentifierFromSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscriptionRequest(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*request.Request, *rds.RemoveSourceIdentifierFromSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RemoveSourceIdentifierFromSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) (*request.Request, *rds.RemoveSourceIdentifierFromSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveSourceIdentifierFromSubscriptionInput) *rds.RemoveSourceIdentifierFromSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RemoveSourceIdentifierFromSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveSourceIdentifierFromSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscriptionWithContext(_a0 context.Context, _a1 *rds.RemoveSourceIdentifierFromSubscriptionInput, _a2 ...request.Option) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RemoveSourceIdentifierFromSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveSourceIdentifierFromSubscriptionInput, ...request.Option) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveSourceIdentifierFromSubscriptionInput, ...request.Option) *rds.RemoveSourceIdentifierFromSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveSourceIdentifierFromSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RemoveSourceIdentifierFromSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResource provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveTagsFromResource(_a0 *rds.RemoveTagsFromResourceInput) (*rds.RemoveTagsFromResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RemoveTagsFromResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RemoveTagsFromResourceInput) (*rds.RemoveTagsFromResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveTagsFromResourceInput) *rds.RemoveTagsFromResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveTagsFromResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveTagsFromResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RemoveTagsFromResourceRequest(_a0 *rds.RemoveTagsFromResourceInput) (*request.Request, *rds.RemoveTagsFromResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RemoveTagsFromResourceOutput
- if rf, ok := ret.Get(0).(func(*rds.RemoveTagsFromResourceInput) (*request.Request, *rds.RemoveTagsFromResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RemoveTagsFromResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RemoveTagsFromResourceInput) *rds.RemoveTagsFromResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RemoveTagsFromResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemoveTagsFromResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RemoveTagsFromResourceWithContext(_a0 context.Context, _a1 *rds.RemoveTagsFromResourceInput, _a2 ...request.Option) (*rds.RemoveTagsFromResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RemoveTagsFromResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveTagsFromResourceInput, ...request.Option) (*rds.RemoveTagsFromResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RemoveTagsFromResourceInput, ...request.Option) *rds.RemoveTagsFromResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RemoveTagsFromResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RemoveTagsFromResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetDBClusterParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ResetDBClusterParameterGroup(_a0 *rds.ResetDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DBClusterParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ResetDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ResetDBClusterParameterGroupInput) *rds.DBClusterParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ResetDBClusterParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetDBClusterParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ResetDBClusterParameterGroupRequest(_a0 *rds.ResetDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DBClusterParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*rds.ResetDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ResetDBClusterParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ResetDBClusterParameterGroupInput) *rds.DBClusterParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ResetDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ResetDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DBClusterParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ResetDBClusterParameterGroupInput, ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ResetDBClusterParameterGroupInput, ...request.Option) *rds.DBClusterParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBClusterParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ResetDBClusterParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetDBParameterGroup provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ResetDBParameterGroup(_a0 *rds.ResetDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.DBParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.ResetDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ResetDBParameterGroupInput) *rds.DBParameterGroupNameMessage); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ResetDBParameterGroupInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ResetDBParameterGroupRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) ResetDBParameterGroupRequest(_a0 *rds.ResetDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.DBParameterGroupNameMessage
- if rf, ok := ret.Get(0).(func(*rds.ResetDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.ResetDBParameterGroupInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.ResetDBParameterGroupInput) *rds.DBParameterGroupNameMessage); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- return r0, r1
-}
-
-// ResetDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) ResetDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.DBParameterGroupNameMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ResetDBParameterGroupInput, ...request.Option) (*rds.DBParameterGroupNameMessage, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.ResetDBParameterGroupInput, ...request.Option) *rds.DBParameterGroupNameMessage); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.DBParameterGroupNameMessage)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.ResetDBParameterGroupInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromS3 provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterFromS3(_a0 *rds.RestoreDBClusterFromS3Input) (*rds.RestoreDBClusterFromS3Output, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBClusterFromS3Output
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromS3Input) (*rds.RestoreDBClusterFromS3Output, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromS3Input) *rds.RestoreDBClusterFromS3Output); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterFromS3Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterFromS3Input) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromS3Request provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterFromS3Request(_a0 *rds.RestoreDBClusterFromS3Input) (*request.Request, *rds.RestoreDBClusterFromS3Output) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBClusterFromS3Output
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromS3Input) (*request.Request, *rds.RestoreDBClusterFromS3Output)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromS3Input) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterFromS3Input) *rds.RestoreDBClusterFromS3Output); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBClusterFromS3Output)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromS3WithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBClusterFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromS3Input, _a2 ...request.Option) (*rds.RestoreDBClusterFromS3Output, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBClusterFromS3Output
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterFromS3Input, ...request.Option) (*rds.RestoreDBClusterFromS3Output, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterFromS3Input, ...request.Option) *rds.RestoreDBClusterFromS3Output); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterFromS3Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBClusterFromS3Input, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterFromSnapshot(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*rds.RestoreDBClusterFromSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBClusterFromSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromSnapshotInput) (*rds.RestoreDBClusterFromSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromSnapshotInput) *rds.RestoreDBClusterFromSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterFromSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterFromSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterFromSnapshotRequest(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*request.Request, *rds.RestoreDBClusterFromSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBClusterFromSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromSnapshotInput) (*request.Request, *rds.RestoreDBClusterFromSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterFromSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterFromSnapshotInput) *rds.RestoreDBClusterFromSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBClusterFromSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterFromSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBClusterFromSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBClusterFromSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBClusterFromSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterFromSnapshotInput, ...request.Option) (*rds.RestoreDBClusterFromSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterFromSnapshotInput, ...request.Option) *rds.RestoreDBClusterFromSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterFromSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBClusterFromSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterToPointInTime provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterToPointInTime(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*rds.RestoreDBClusterToPointInTimeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBClusterToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterToPointInTimeInput) (*rds.RestoreDBClusterToPointInTimeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterToPointInTimeInput) *rds.RestoreDBClusterToPointInTimeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterToPointInTimeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterToPointInTimeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBClusterToPointInTimeRequest(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*request.Request, *rds.RestoreDBClusterToPointInTimeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBClusterToPointInTimeOutput
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterToPointInTimeInput) (*request.Request, *rds.RestoreDBClusterToPointInTimeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBClusterToPointInTimeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBClusterToPointInTimeInput) *rds.RestoreDBClusterToPointInTimeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBClusterToPointInTimeOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBClusterToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBClusterToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBClusterToPointInTimeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBClusterToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterToPointInTimeInput, ...request.Option) (*rds.RestoreDBClusterToPointInTimeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBClusterToPointInTimeInput, ...request.Option) *rds.RestoreDBClusterToPointInTimeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBClusterToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBClusterToPointInTimeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromDBSnapshot provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshot(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBInstanceFromDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) *rds.RestoreDBInstanceFromDBSnapshotOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceFromDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromDBSnapshotRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshotRequest(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*request.Request, *rds.RestoreDBInstanceFromDBSnapshotOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBInstanceFromDBSnapshotOutput
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) (*request.Request, *rds.RestoreDBInstanceFromDBSnapshotOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceFromDBSnapshotInput) *rds.RestoreDBInstanceFromDBSnapshotOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBInstanceFromDBSnapshotOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromDBSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBInstanceFromDBSnapshotOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceFromDBSnapshotInput, ...request.Option) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceFromDBSnapshotInput, ...request.Option) *rds.RestoreDBInstanceFromDBSnapshotOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceFromDBSnapshotOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBInstanceFromDBSnapshotInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromS3 provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceFromS3(_a0 *rds.RestoreDBInstanceFromS3Input) (*rds.RestoreDBInstanceFromS3Output, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBInstanceFromS3Output
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromS3Input) (*rds.RestoreDBInstanceFromS3Output, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromS3Input) *rds.RestoreDBInstanceFromS3Output); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceFromS3Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceFromS3Input) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromS3Request provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceFromS3Request(_a0 *rds.RestoreDBInstanceFromS3Input) (*request.Request, *rds.RestoreDBInstanceFromS3Output) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBInstanceFromS3Output
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromS3Input) (*request.Request, *rds.RestoreDBInstanceFromS3Output)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceFromS3Input) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceFromS3Input) *rds.RestoreDBInstanceFromS3Output); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBInstanceFromS3Output)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceFromS3WithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBInstanceFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromS3Input, _a2 ...request.Option) (*rds.RestoreDBInstanceFromS3Output, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBInstanceFromS3Output
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceFromS3Input, ...request.Option) (*rds.RestoreDBInstanceFromS3Output, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceFromS3Input, ...request.Option) *rds.RestoreDBInstanceFromS3Output); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceFromS3Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBInstanceFromS3Input, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceToPointInTime provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceToPointInTime(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*rds.RestoreDBInstanceToPointInTimeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RestoreDBInstanceToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceToPointInTimeInput) (*rds.RestoreDBInstanceToPointInTimeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceToPointInTimeInput) *rds.RestoreDBInstanceToPointInTimeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceToPointInTimeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceToPointInTimeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RestoreDBInstanceToPointInTimeRequest(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*request.Request, *rds.RestoreDBInstanceToPointInTimeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RestoreDBInstanceToPointInTimeOutput
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceToPointInTimeInput) (*request.Request, *rds.RestoreDBInstanceToPointInTimeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RestoreDBInstanceToPointInTimeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RestoreDBInstanceToPointInTimeInput) *rds.RestoreDBInstanceToPointInTimeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RestoreDBInstanceToPointInTimeOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreDBInstanceToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RestoreDBInstanceToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBInstanceToPointInTimeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RestoreDBInstanceToPointInTimeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceToPointInTimeInput, ...request.Option) (*rds.RestoreDBInstanceToPointInTimeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RestoreDBInstanceToPointInTimeInput, ...request.Option) *rds.RestoreDBInstanceToPointInTimeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RestoreDBInstanceToPointInTimeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RestoreDBInstanceToPointInTimeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeDBSecurityGroupIngress provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RevokeDBSecurityGroupIngress(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*rds.RevokeDBSecurityGroupIngressOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.RevokeDBSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.RevokeDBSecurityGroupIngressInput) (*rds.RevokeDBSecurityGroupIngressOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RevokeDBSecurityGroupIngressInput) *rds.RevokeDBSecurityGroupIngressOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RevokeDBSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RevokeDBSecurityGroupIngressInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RevokeDBSecurityGroupIngressRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) RevokeDBSecurityGroupIngressRequest(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*request.Request, *rds.RevokeDBSecurityGroupIngressOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.RevokeDBSecurityGroupIngressOutput
- if rf, ok := ret.Get(0).(func(*rds.RevokeDBSecurityGroupIngressInput) (*request.Request, *rds.RevokeDBSecurityGroupIngressOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.RevokeDBSecurityGroupIngressInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.RevokeDBSecurityGroupIngressInput) *rds.RevokeDBSecurityGroupIngressOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.RevokeDBSecurityGroupIngressOutput)
- }
- }
-
- return r0, r1
-}
-
-// RevokeDBSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) RevokeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.RevokeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.RevokeDBSecurityGroupIngressOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.RevokeDBSecurityGroupIngressOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RevokeDBSecurityGroupIngressInput, ...request.Option) (*rds.RevokeDBSecurityGroupIngressOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.RevokeDBSecurityGroupIngressInput, ...request.Option) *rds.RevokeDBSecurityGroupIngressOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.RevokeDBSecurityGroupIngressOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.RevokeDBSecurityGroupIngressInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartActivityStream provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartActivityStream(_a0 *rds.StartActivityStreamInput) (*rds.StartActivityStreamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StartActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StartActivityStreamInput) (*rds.StartActivityStreamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartActivityStreamInput) *rds.StartActivityStreamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartActivityStreamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartActivityStreamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartActivityStreamRequest(_a0 *rds.StartActivityStreamInput) (*request.Request, *rds.StartActivityStreamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StartActivityStreamOutput
- if rf, ok := ret.Get(0).(func(*rds.StartActivityStreamInput) (*request.Request, *rds.StartActivityStreamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartActivityStreamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartActivityStreamInput) *rds.StartActivityStreamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StartActivityStreamOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartActivityStreamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StartActivityStreamWithContext(_a0 context.Context, _a1 *rds.StartActivityStreamInput, _a2 ...request.Option) (*rds.StartActivityStreamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StartActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartActivityStreamInput, ...request.Option) (*rds.StartActivityStreamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartActivityStreamInput, ...request.Option) *rds.StartActivityStreamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StartActivityStreamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBCluster(_a0 *rds.StartDBClusterInput) (*rds.StartDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StartDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StartDBClusterInput) (*rds.StartDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBClusterInput) *rds.StartDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBClusterRequest(_a0 *rds.StartDBClusterInput) (*request.Request, *rds.StartDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StartDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.StartDBClusterInput) (*request.Request, *rds.StartDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBClusterInput) *rds.StartDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StartDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StartDBClusterWithContext(_a0 context.Context, _a1 *rds.StartDBClusterInput, _a2 ...request.Option) (*rds.StartDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StartDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBClusterInput, ...request.Option) (*rds.StartDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBClusterInput, ...request.Option) *rds.StartDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StartDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBInstance(_a0 *rds.StartDBInstanceInput) (*rds.StartDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StartDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceInput) (*rds.StartDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceInput) *rds.StartDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBInstanceAutomatedBackupsReplication provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplication(_a0 *rds.StartDBInstanceAutomatedBackupsReplicationInput) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StartDBInstanceAutomatedBackupsReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBInstanceAutomatedBackupsReplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplicationRequest(_a0 *rds.StartDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StartDBInstanceAutomatedBackupsReplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StartDBInstanceAutomatedBackupsReplicationOutput
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StartDBInstanceAutomatedBackupsReplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartDBInstanceAutomatedBackupsReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplicationWithContext(_a0 context.Context, _a1 *rds.StartDBInstanceAutomatedBackupsReplicationInput, _a2 ...request.Option) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StartDBInstanceAutomatedBackupsReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBInstanceAutomatedBackupsReplicationInput, ...request.Option) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBInstanceAutomatedBackupsReplicationInput, ...request.Option) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StartDBInstanceAutomatedBackupsReplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartDBInstanceRequest(_a0 *rds.StartDBInstanceInput) (*request.Request, *rds.StartDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StartDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceInput) (*request.Request, *rds.StartDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceInput) *rds.StartDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StartDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StartDBInstanceWithContext(_a0 context.Context, _a1 *rds.StartDBInstanceInput, _a2 ...request.Option) (*rds.StartDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StartDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBInstanceInput, ...request.Option) (*rds.StartDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBInstanceInput, ...request.Option) *rds.StartDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StartDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartExportTask provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartExportTask(_a0 *rds.StartExportTaskInput) (*rds.StartExportTaskOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StartExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StartExportTaskInput) (*rds.StartExportTaskOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartExportTaskInput) *rds.StartExportTaskOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartExportTaskInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StartExportTaskRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StartExportTaskRequest(_a0 *rds.StartExportTaskInput) (*request.Request, *rds.StartExportTaskOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StartExportTaskOutput
- if rf, ok := ret.Get(0).(func(*rds.StartExportTaskInput) (*request.Request, *rds.StartExportTaskOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StartExportTaskInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StartExportTaskInput) *rds.StartExportTaskOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StartExportTaskOutput)
- }
- }
-
- return r0, r1
-}
-
-// StartExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StartExportTaskWithContext(_a0 context.Context, _a1 *rds.StartExportTaskInput, _a2 ...request.Option) (*rds.StartExportTaskOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StartExportTaskOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartExportTaskInput, ...request.Option) (*rds.StartExportTaskOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StartExportTaskInput, ...request.Option) *rds.StartExportTaskOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StartExportTaskOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StartExportTaskInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopActivityStream provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopActivityStream(_a0 *rds.StopActivityStreamInput) (*rds.StopActivityStreamOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StopActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StopActivityStreamInput) (*rds.StopActivityStreamOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopActivityStreamInput) *rds.StopActivityStreamOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopActivityStreamInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopActivityStreamRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopActivityStreamRequest(_a0 *rds.StopActivityStreamInput) (*request.Request, *rds.StopActivityStreamOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StopActivityStreamOutput
- if rf, ok := ret.Get(0).(func(*rds.StopActivityStreamInput) (*request.Request, *rds.StopActivityStreamOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopActivityStreamInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopActivityStreamInput) *rds.StopActivityStreamOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StopActivityStreamOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopActivityStreamWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StopActivityStreamWithContext(_a0 context.Context, _a1 *rds.StopActivityStreamInput, _a2 ...request.Option) (*rds.StopActivityStreamOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StopActivityStreamOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopActivityStreamInput, ...request.Option) (*rds.StopActivityStreamOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopActivityStreamInput, ...request.Option) *rds.StopActivityStreamOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopActivityStreamOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StopActivityStreamInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBCluster provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBCluster(_a0 *rds.StopDBClusterInput) (*rds.StopDBClusterOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StopDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StopDBClusterInput) (*rds.StopDBClusterOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBClusterInput) *rds.StopDBClusterOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBClusterInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBClusterRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBClusterRequest(_a0 *rds.StopDBClusterInput) (*request.Request, *rds.StopDBClusterOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StopDBClusterOutput
- if rf, ok := ret.Get(0).(func(*rds.StopDBClusterInput) (*request.Request, *rds.StopDBClusterOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBClusterInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBClusterInput) *rds.StopDBClusterOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StopDBClusterOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StopDBClusterWithContext(_a0 context.Context, _a1 *rds.StopDBClusterInput, _a2 ...request.Option) (*rds.StopDBClusterOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StopDBClusterOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBClusterInput, ...request.Option) (*rds.StopDBClusterOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBClusterInput, ...request.Option) *rds.StopDBClusterOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBClusterOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StopDBClusterInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBInstance(_a0 *rds.StopDBInstanceInput) (*rds.StopDBInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StopDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceInput) (*rds.StopDBInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceInput) *rds.StopDBInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBInstanceAutomatedBackupsReplication provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplication(_a0 *rds.StopDBInstanceAutomatedBackupsReplicationInput) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.StopDBInstanceAutomatedBackupsReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBInstanceAutomatedBackupsReplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplicationRequest(_a0 *rds.StopDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StopDBInstanceAutomatedBackupsReplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StopDBInstanceAutomatedBackupsReplicationOutput
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StopDBInstanceAutomatedBackupsReplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopDBInstanceAutomatedBackupsReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplicationWithContext(_a0 context.Context, _a1 *rds.StopDBInstanceAutomatedBackupsReplicationInput, _a2 ...request.Option) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StopDBInstanceAutomatedBackupsReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBInstanceAutomatedBackupsReplicationInput, ...request.Option) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBInstanceAutomatedBackupsReplicationInput, ...request.Option) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StopDBInstanceAutomatedBackupsReplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// StopDBInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) StopDBInstanceRequest(_a0 *rds.StopDBInstanceInput) (*request.Request, *rds.StopDBInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.StopDBInstanceOutput
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceInput) (*request.Request, *rds.StopDBInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceInput) *rds.StopDBInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.StopDBInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// StopDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) StopDBInstanceWithContext(_a0 context.Context, _a1 *rds.StopDBInstanceInput, _a2 ...request.Option) (*rds.StopDBInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.StopDBInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBInstanceInput, ...request.Option) (*rds.StopDBInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBInstanceInput, ...request.Option) *rds.StopDBInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.StopDBInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.StopDBInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SwitchoverReadReplica provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) SwitchoverReadReplica(_a0 *rds.SwitchoverReadReplicaInput) (*rds.SwitchoverReadReplicaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *rds.SwitchoverReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*rds.SwitchoverReadReplicaInput) (*rds.SwitchoverReadReplicaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.SwitchoverReadReplicaInput) *rds.SwitchoverReadReplicaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.SwitchoverReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.SwitchoverReadReplicaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SwitchoverReadReplicaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) SwitchoverReadReplicaRequest(_a0 *rds.SwitchoverReadReplicaInput) (*request.Request, *rds.SwitchoverReadReplicaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *rds.SwitchoverReadReplicaOutput
- if rf, ok := ret.Get(0).(func(*rds.SwitchoverReadReplicaInput) (*request.Request, *rds.SwitchoverReadReplicaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*rds.SwitchoverReadReplicaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*rds.SwitchoverReadReplicaInput) *rds.SwitchoverReadReplicaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*rds.SwitchoverReadReplicaOutput)
- }
- }
-
- return r0, r1
-}
-
-// SwitchoverReadReplicaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) SwitchoverReadReplicaWithContext(_a0 context.Context, _a1 *rds.SwitchoverReadReplicaInput, _a2 ...request.Option) (*rds.SwitchoverReadReplicaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *rds.SwitchoverReadReplicaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.SwitchoverReadReplicaInput, ...request.Option) (*rds.SwitchoverReadReplicaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *rds.SwitchoverReadReplicaInput, ...request.Option) *rds.SwitchoverReadReplicaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*rds.SwitchoverReadReplicaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *rds.SwitchoverReadReplicaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilDBClusterAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBClusterAvailable(_a0 *rds.DescribeDBClustersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBClusterAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClustersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBClusterDeleted(_a0 *rds.DescribeDBClustersInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClustersInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBClusterDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClustersInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterSnapshotAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotAvailable(_a0 *rds.DescribeDBClusterSnapshotsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterSnapshotAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterSnapshotDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotDeleted(_a0 *rds.DescribeDBClusterSnapshotsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBClusterSnapshotsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBClusterSnapshotDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBClusterSnapshotsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBInstanceAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBInstanceAvailable(_a0 *rds.DescribeDBInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBInstanceAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBInstanceAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBInstanceDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBInstanceDeleted(_a0 *rds.DescribeDBInstancesInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBInstancesInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBInstanceDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBInstanceDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBInstancesInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBSnapshotAvailable provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBSnapshotAvailable(_a0 *rds.DescribeDBSnapshotsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBSnapshotAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBSnapshotDeleted provides a mock function with given fields: _a0
-func (_m *MockFakeRDS) WaitUntilDBSnapshotDeleted(_a0 *rds.DescribeDBSnapshotsInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*rds.DescribeDBSnapshotsInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilDBSnapshotDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRDS) WaitUntilDBSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBSnapshotsInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeRDS interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeRDS creates a new instance of MockFakeRDS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeRDS(t mockConstructorTestingTNewMockFakeRDS) *MockFakeRDS {
- mock := &MockFakeRDS{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeRequestFailure.go b/test/aws/mock_FakeRequestFailure.go
deleted file mode 100644
index 104abf419..000000000
--- a/test/aws/mock_FakeRequestFailure.go
+++ /dev/null
@@ -1,123 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockFakeRequestFailure is an autogenerated mock type for the FakeRequestFailure type
-type MockFakeRequestFailure struct {
- mock.Mock
-}
-
-// Code provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) Code() string {
- ret := _m.Called()
-
- var r0 string
- if rf, ok := ret.Get(0).(func() string); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
-
-// Error provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) Error() string {
- ret := _m.Called()
-
- var r0 string
- if rf, ok := ret.Get(0).(func() string); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
-
-// HostID provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) HostID() string {
- ret := _m.Called()
-
- var r0 string
- if rf, ok := ret.Get(0).(func() string); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
-
-// Message provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) Message() string {
- ret := _m.Called()
-
- var r0 string
- if rf, ok := ret.Get(0).(func() string); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
-
-// OrigErr provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) OrigErr() error {
- ret := _m.Called()
-
- var r0 error
- if rf, ok := ret.Get(0).(func() error); ok {
- r0 = rf()
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// RequestID provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) RequestID() string {
- ret := _m.Called()
-
- var r0 string
- if rf, ok := ret.Get(0).(func() string); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(string)
- }
-
- return r0
-}
-
-// StatusCode provides a mock function with given fields:
-func (_m *MockFakeRequestFailure) StatusCode() int {
- ret := _m.Called()
-
- var r0 int
- if rf, ok := ret.Get(0).(func() int); ok {
- r0 = rf()
- } else {
- r0 = ret.Get(0).(int)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeRequestFailure interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeRequestFailure creates a new instance of MockFakeRequestFailure. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeRequestFailure(t mockConstructorTestingTNewMockFakeRequestFailure) *MockFakeRequestFailure {
- mock := &MockFakeRequestFailure{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeRoute53.go b/test/aws/mock_FakeRoute53.go
deleted file mode 100644
index 30f67ac6e..000000000
--- a/test/aws/mock_FakeRoute53.go
+++ /dev/null
@@ -1,6402 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- request "github.com/aws/aws-sdk-go/aws/request"
- mock "github.com/stretchr/testify/mock"
-
- route53 "github.com/aws/aws-sdk-go/service/route53"
-)
-
-// MockFakeRoute53 is an autogenerated mock type for the FakeRoute53 type
-type MockFakeRoute53 struct {
- mock.Mock
-}
-
-// ActivateKeySigningKey provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ActivateKeySigningKey(_a0 *route53.ActivateKeySigningKeyInput) (*route53.ActivateKeySigningKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ActivateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) (*route53.ActivateKeySigningKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) *route53.ActivateKeySigningKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ActivateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ActivateKeySigningKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ActivateKeySigningKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ActivateKeySigningKeyRequest(_a0 *route53.ActivateKeySigningKeyInput) (*request.Request, *route53.ActivateKeySigningKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ActivateKeySigningKeyOutput
- if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) (*request.Request, *route53.ActivateKeySigningKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ActivateKeySigningKeyInput) *route53.ActivateKeySigningKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ActivateKeySigningKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ActivateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ActivateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.ActivateKeySigningKeyInput, _a2 ...request.Option) (*route53.ActivateKeySigningKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ActivateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ActivateKeySigningKeyInput, ...request.Option) (*route53.ActivateKeySigningKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ActivateKeySigningKeyInput, ...request.Option) *route53.ActivateKeySigningKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ActivateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ActivateKeySigningKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateVPCWithHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) AssociateVPCWithHostedZone(_a0 *route53.AssociateVPCWithHostedZoneInput) (*route53.AssociateVPCWithHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.AssociateVPCWithHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.AssociateVPCWithHostedZoneInput) (*route53.AssociateVPCWithHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.AssociateVPCWithHostedZoneInput) *route53.AssociateVPCWithHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.AssociateVPCWithHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.AssociateVPCWithHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AssociateVPCWithHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) AssociateVPCWithHostedZoneRequest(_a0 *route53.AssociateVPCWithHostedZoneInput) (*request.Request, *route53.AssociateVPCWithHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.AssociateVPCWithHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.AssociateVPCWithHostedZoneInput) (*request.Request, *route53.AssociateVPCWithHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.AssociateVPCWithHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.AssociateVPCWithHostedZoneInput) *route53.AssociateVPCWithHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.AssociateVPCWithHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// AssociateVPCWithHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) AssociateVPCWithHostedZoneWithContext(_a0 context.Context, _a1 *route53.AssociateVPCWithHostedZoneInput, _a2 ...request.Option) (*route53.AssociateVPCWithHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.AssociateVPCWithHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.AssociateVPCWithHostedZoneInput, ...request.Option) (*route53.AssociateVPCWithHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.AssociateVPCWithHostedZoneInput, ...request.Option) *route53.AssociateVPCWithHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.AssociateVPCWithHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.AssociateVPCWithHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeCidrCollection provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeCidrCollection(_a0 *route53.ChangeCidrCollectionInput) (*route53.ChangeCidrCollectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ChangeCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ChangeCidrCollectionInput) (*route53.ChangeCidrCollectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeCidrCollectionInput) *route53.ChangeCidrCollectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeCidrCollectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeCidrCollectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeCidrCollectionRequest(_a0 *route53.ChangeCidrCollectionInput) (*request.Request, *route53.ChangeCidrCollectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ChangeCidrCollectionOutput
- if rf, ok := ret.Get(0).(func(*route53.ChangeCidrCollectionInput) (*request.Request, *route53.ChangeCidrCollectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeCidrCollectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeCidrCollectionInput) *route53.ChangeCidrCollectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ChangeCidrCollectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangeCidrCollectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ChangeCidrCollectionWithContext(_a0 context.Context, _a1 *route53.ChangeCidrCollectionInput, _a2 ...request.Option) (*route53.ChangeCidrCollectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ChangeCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeCidrCollectionInput, ...request.Option) (*route53.ChangeCidrCollectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeCidrCollectionInput, ...request.Option) *route53.ChangeCidrCollectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ChangeCidrCollectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeResourceRecordSets provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeResourceRecordSets(_a0 *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ChangeResourceRecordSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeResourceRecordSetsInput) *route53.ChangeResourceRecordSetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeResourceRecordSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeResourceRecordSetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeResourceRecordSetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeResourceRecordSetsRequest(_a0 *route53.ChangeResourceRecordSetsInput) (*request.Request, *route53.ChangeResourceRecordSetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ChangeResourceRecordSetsOutput
- if rf, ok := ret.Get(0).(func(*route53.ChangeResourceRecordSetsInput) (*request.Request, *route53.ChangeResourceRecordSetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeResourceRecordSetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeResourceRecordSetsInput) *route53.ChangeResourceRecordSetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ChangeResourceRecordSetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangeResourceRecordSetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ChangeResourceRecordSetsWithContext(_a0 context.Context, _a1 *route53.ChangeResourceRecordSetsInput, _a2 ...request.Option) (*route53.ChangeResourceRecordSetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ChangeResourceRecordSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeResourceRecordSetsInput, ...request.Option) (*route53.ChangeResourceRecordSetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeResourceRecordSetsInput, ...request.Option) *route53.ChangeResourceRecordSetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeResourceRecordSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ChangeResourceRecordSetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeTagsForResource(_a0 *route53.ChangeTagsForResourceInput) (*route53.ChangeTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ChangeTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ChangeTagsForResourceInput) (*route53.ChangeTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeTagsForResourceInput) *route53.ChangeTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ChangeTagsForResourceRequest(_a0 *route53.ChangeTagsForResourceInput) (*request.Request, *route53.ChangeTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ChangeTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*route53.ChangeTagsForResourceInput) (*request.Request, *route53.ChangeTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ChangeTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ChangeTagsForResourceInput) *route53.ChangeTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ChangeTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangeTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ChangeTagsForResourceWithContext(_a0 context.Context, _a1 *route53.ChangeTagsForResourceInput, _a2 ...request.Option) (*route53.ChangeTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ChangeTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeTagsForResourceInput, ...request.Option) (*route53.ChangeTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ChangeTagsForResourceInput, ...request.Option) *route53.ChangeTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ChangeTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ChangeTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCidrCollection provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateCidrCollection(_a0 *route53.CreateCidrCollectionInput) (*route53.CreateCidrCollectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateCidrCollectionInput) (*route53.CreateCidrCollectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateCidrCollectionInput) *route53.CreateCidrCollectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateCidrCollectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateCidrCollectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateCidrCollectionRequest(_a0 *route53.CreateCidrCollectionInput) (*request.Request, *route53.CreateCidrCollectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateCidrCollectionOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateCidrCollectionInput) (*request.Request, *route53.CreateCidrCollectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateCidrCollectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateCidrCollectionInput) *route53.CreateCidrCollectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateCidrCollectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateCidrCollectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateCidrCollectionWithContext(_a0 context.Context, _a1 *route53.CreateCidrCollectionInput, _a2 ...request.Option) (*route53.CreateCidrCollectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateCidrCollectionInput, ...request.Option) (*route53.CreateCidrCollectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateCidrCollectionInput, ...request.Option) *route53.CreateCidrCollectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateCidrCollectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateHealthCheck provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateHealthCheck(_a0 *route53.CreateHealthCheckInput) (*route53.CreateHealthCheckOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateHealthCheckInput) (*route53.CreateHealthCheckOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateHealthCheckInput) *route53.CreateHealthCheckOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateHealthCheckInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateHealthCheckRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateHealthCheckRequest(_a0 *route53.CreateHealthCheckInput) (*request.Request, *route53.CreateHealthCheckOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateHealthCheckOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateHealthCheckInput) (*request.Request, *route53.CreateHealthCheckOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateHealthCheckInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateHealthCheckInput) *route53.CreateHealthCheckOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateHealthCheckOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateHealthCheckWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateHealthCheckWithContext(_a0 context.Context, _a1 *route53.CreateHealthCheckInput, _a2 ...request.Option) (*route53.CreateHealthCheckOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateHealthCheckInput, ...request.Option) (*route53.CreateHealthCheckOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateHealthCheckInput, ...request.Option) *route53.CreateHealthCheckOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateHealthCheckInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateHostedZone(_a0 *route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateHostedZoneInput) *route53.CreateHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateHostedZoneRequest(_a0 *route53.CreateHostedZoneInput) (*request.Request, *route53.CreateHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateHostedZoneInput) (*request.Request, *route53.CreateHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateHostedZoneInput) *route53.CreateHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateHostedZoneWithContext(_a0 context.Context, _a1 *route53.CreateHostedZoneInput, _a2 ...request.Option) (*route53.CreateHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateHostedZoneInput, ...request.Option) (*route53.CreateHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateHostedZoneInput, ...request.Option) *route53.CreateHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeySigningKey provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateKeySigningKey(_a0 *route53.CreateKeySigningKeyInput) (*route53.CreateKeySigningKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) (*route53.CreateKeySigningKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) *route53.CreateKeySigningKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateKeySigningKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateKeySigningKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateKeySigningKeyRequest(_a0 *route53.CreateKeySigningKeyInput) (*request.Request, *route53.CreateKeySigningKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateKeySigningKeyOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) (*request.Request, *route53.CreateKeySigningKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateKeySigningKeyInput) *route53.CreateKeySigningKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateKeySigningKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.CreateKeySigningKeyInput, _a2 ...request.Option) (*route53.CreateKeySigningKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateKeySigningKeyInput, ...request.Option) (*route53.CreateKeySigningKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateKeySigningKeyInput, ...request.Option) *route53.CreateKeySigningKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateKeySigningKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateQueryLoggingConfig provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateQueryLoggingConfig(_a0 *route53.CreateQueryLoggingConfigInput) (*route53.CreateQueryLoggingConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateQueryLoggingConfigInput) (*route53.CreateQueryLoggingConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateQueryLoggingConfigInput) *route53.CreateQueryLoggingConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateQueryLoggingConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateQueryLoggingConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateQueryLoggingConfigRequest(_a0 *route53.CreateQueryLoggingConfigInput) (*request.Request, *route53.CreateQueryLoggingConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateQueryLoggingConfigOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateQueryLoggingConfigInput) (*request.Request, *route53.CreateQueryLoggingConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateQueryLoggingConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateQueryLoggingConfigInput) *route53.CreateQueryLoggingConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateQueryLoggingConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateQueryLoggingConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateQueryLoggingConfigWithContext(_a0 context.Context, _a1 *route53.CreateQueryLoggingConfigInput, _a2 ...request.Option) (*route53.CreateQueryLoggingConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateQueryLoggingConfigInput, ...request.Option) (*route53.CreateQueryLoggingConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateQueryLoggingConfigInput, ...request.Option) *route53.CreateQueryLoggingConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateQueryLoggingConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReusableDelegationSet provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateReusableDelegationSet(_a0 *route53.CreateReusableDelegationSetInput) (*route53.CreateReusableDelegationSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateReusableDelegationSetInput) (*route53.CreateReusableDelegationSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateReusableDelegationSetInput) *route53.CreateReusableDelegationSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateReusableDelegationSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateReusableDelegationSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateReusableDelegationSetRequest(_a0 *route53.CreateReusableDelegationSetInput) (*request.Request, *route53.CreateReusableDelegationSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateReusableDelegationSetOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateReusableDelegationSetInput) (*request.Request, *route53.CreateReusableDelegationSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateReusableDelegationSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateReusableDelegationSetInput) *route53.CreateReusableDelegationSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateReusableDelegationSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateReusableDelegationSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateReusableDelegationSetWithContext(_a0 context.Context, _a1 *route53.CreateReusableDelegationSetInput, _a2 ...request.Option) (*route53.CreateReusableDelegationSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateReusableDelegationSetInput, ...request.Option) (*route53.CreateReusableDelegationSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateReusableDelegationSetInput, ...request.Option) *route53.CreateReusableDelegationSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateReusableDelegationSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicy(_a0 *route53.CreateTrafficPolicyInput) (*route53.CreateTrafficPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInput) (*route53.CreateTrafficPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInput) *route53.CreateTrafficPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicyInstance(_a0 *route53.CreateTrafficPolicyInstanceInput) (*route53.CreateTrafficPolicyInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInstanceInput) (*route53.CreateTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInstanceInput) *route53.CreateTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicyInstanceRequest(_a0 *route53.CreateTrafficPolicyInstanceInput) (*request.Request, *route53.CreateTrafficPolicyInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateTrafficPolicyInstanceOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInstanceInput) (*request.Request, *route53.CreateTrafficPolicyInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyInstanceInput) *route53.CreateTrafficPolicyInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateTrafficPolicyInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateTrafficPolicyInstanceWithContext(_a0 context.Context, _a1 *route53.CreateTrafficPolicyInstanceInput, _a2 ...request.Option) (*route53.CreateTrafficPolicyInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyInstanceInput, ...request.Option) (*route53.CreateTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyInstanceInput, ...request.Option) *route53.CreateTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateTrafficPolicyInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicyRequest(_a0 *route53.CreateTrafficPolicyInput) (*request.Request, *route53.CreateTrafficPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateTrafficPolicyOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInput) (*request.Request, *route53.CreateTrafficPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyInput) *route53.CreateTrafficPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateTrafficPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyVersion provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicyVersion(_a0 *route53.CreateTrafficPolicyVersionInput) (*route53.CreateTrafficPolicyVersionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateTrafficPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyVersionInput) (*route53.CreateTrafficPolicyVersionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyVersionInput) *route53.CreateTrafficPolicyVersionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyVersionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyVersionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateTrafficPolicyVersionRequest(_a0 *route53.CreateTrafficPolicyVersionInput) (*request.Request, *route53.CreateTrafficPolicyVersionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateTrafficPolicyVersionOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyVersionInput) (*request.Request, *route53.CreateTrafficPolicyVersionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateTrafficPolicyVersionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateTrafficPolicyVersionInput) *route53.CreateTrafficPolicyVersionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateTrafficPolicyVersionOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyVersionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateTrafficPolicyVersionWithContext(_a0 context.Context, _a1 *route53.CreateTrafficPolicyVersionInput, _a2 ...request.Option) (*route53.CreateTrafficPolicyVersionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateTrafficPolicyVersionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyVersionInput, ...request.Option) (*route53.CreateTrafficPolicyVersionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyVersionInput, ...request.Option) *route53.CreateTrafficPolicyVersionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyVersionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateTrafficPolicyVersionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTrafficPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateTrafficPolicyWithContext(_a0 context.Context, _a1 *route53.CreateTrafficPolicyInput, _a2 ...request.Option) (*route53.CreateTrafficPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyInput, ...request.Option) (*route53.CreateTrafficPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateTrafficPolicyInput, ...request.Option) *route53.CreateTrafficPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateTrafficPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVPCAssociationAuthorization provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateVPCAssociationAuthorization(_a0 *route53.CreateVPCAssociationAuthorizationInput) (*route53.CreateVPCAssociationAuthorizationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.CreateVPCAssociationAuthorizationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.CreateVPCAssociationAuthorizationInput) (*route53.CreateVPCAssociationAuthorizationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateVPCAssociationAuthorizationInput) *route53.CreateVPCAssociationAuthorizationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateVPCAssociationAuthorizationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateVPCAssociationAuthorizationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateVPCAssociationAuthorizationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) CreateVPCAssociationAuthorizationRequest(_a0 *route53.CreateVPCAssociationAuthorizationInput) (*request.Request, *route53.CreateVPCAssociationAuthorizationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.CreateVPCAssociationAuthorizationOutput
- if rf, ok := ret.Get(0).(func(*route53.CreateVPCAssociationAuthorizationInput) (*request.Request, *route53.CreateVPCAssociationAuthorizationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.CreateVPCAssociationAuthorizationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.CreateVPCAssociationAuthorizationInput) *route53.CreateVPCAssociationAuthorizationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.CreateVPCAssociationAuthorizationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateVPCAssociationAuthorizationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) CreateVPCAssociationAuthorizationWithContext(_a0 context.Context, _a1 *route53.CreateVPCAssociationAuthorizationInput, _a2 ...request.Option) (*route53.CreateVPCAssociationAuthorizationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.CreateVPCAssociationAuthorizationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateVPCAssociationAuthorizationInput, ...request.Option) (*route53.CreateVPCAssociationAuthorizationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateVPCAssociationAuthorizationInput, ...request.Option) *route53.CreateVPCAssociationAuthorizationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.CreateVPCAssociationAuthorizationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateVPCAssociationAuthorizationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateKeySigningKey provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeactivateKeySigningKey(_a0 *route53.DeactivateKeySigningKeyInput) (*route53.DeactivateKeySigningKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeactivateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) (*route53.DeactivateKeySigningKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) *route53.DeactivateKeySigningKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeactivateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeactivateKeySigningKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeactivateKeySigningKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeactivateKeySigningKeyRequest(_a0 *route53.DeactivateKeySigningKeyInput) (*request.Request, *route53.DeactivateKeySigningKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeactivateKeySigningKeyOutput
- if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) (*request.Request, *route53.DeactivateKeySigningKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeactivateKeySigningKeyInput) *route53.DeactivateKeySigningKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeactivateKeySigningKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeactivateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeactivateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.DeactivateKeySigningKeyInput, _a2 ...request.Option) (*route53.DeactivateKeySigningKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeactivateKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) (*route53.DeactivateKeySigningKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) *route53.DeactivateKeySigningKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeactivateKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCidrCollection provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteCidrCollection(_a0 *route53.DeleteCidrCollectionInput) (*route53.DeleteCidrCollectionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteCidrCollectionInput) (*route53.DeleteCidrCollectionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteCidrCollectionInput) *route53.DeleteCidrCollectionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteCidrCollectionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteCidrCollectionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteCidrCollectionRequest(_a0 *route53.DeleteCidrCollectionInput) (*request.Request, *route53.DeleteCidrCollectionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteCidrCollectionOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteCidrCollectionInput) (*request.Request, *route53.DeleteCidrCollectionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteCidrCollectionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteCidrCollectionInput) *route53.DeleteCidrCollectionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteCidrCollectionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteCidrCollectionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteCidrCollectionWithContext(_a0 context.Context, _a1 *route53.DeleteCidrCollectionInput, _a2 ...request.Option) (*route53.DeleteCidrCollectionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteCidrCollectionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteCidrCollectionInput, ...request.Option) (*route53.DeleteCidrCollectionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteCidrCollectionInput, ...request.Option) *route53.DeleteCidrCollectionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteCidrCollectionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteCidrCollectionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteHealthCheck provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteHealthCheck(_a0 *route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteHealthCheckInput) *route53.DeleteHealthCheckOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteHealthCheckInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteHealthCheckRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteHealthCheckRequest(_a0 *route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteHealthCheckOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteHealthCheckInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteHealthCheckInput) *route53.DeleteHealthCheckOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteHealthCheckOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteHealthCheckWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteHealthCheckWithContext(_a0 context.Context, _a1 *route53.DeleteHealthCheckInput, _a2 ...request.Option) (*route53.DeleteHealthCheckOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteHealthCheckInput, ...request.Option) (*route53.DeleteHealthCheckOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteHealthCheckInput, ...request.Option) *route53.DeleteHealthCheckOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteHealthCheckInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteHostedZone(_a0 *route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteHostedZoneInput) *route53.DeleteHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteHostedZoneRequest(_a0 *route53.DeleteHostedZoneInput) (*request.Request, *route53.DeleteHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteHostedZoneInput) (*request.Request, *route53.DeleteHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteHostedZoneInput) *route53.DeleteHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteHostedZoneWithContext(_a0 context.Context, _a1 *route53.DeleteHostedZoneInput, _a2 ...request.Option) (*route53.DeleteHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteHostedZoneInput, ...request.Option) (*route53.DeleteHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteHostedZoneInput, ...request.Option) *route53.DeleteHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeySigningKey provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteKeySigningKey(_a0 *route53.DeleteKeySigningKeyInput) (*route53.DeleteKeySigningKeyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) (*route53.DeleteKeySigningKeyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) *route53.DeleteKeySigningKeyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteKeySigningKeyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteKeySigningKeyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteKeySigningKeyRequest(_a0 *route53.DeleteKeySigningKeyInput) (*request.Request, *route53.DeleteKeySigningKeyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteKeySigningKeyOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) (*request.Request, *route53.DeleteKeySigningKeyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteKeySigningKeyInput) *route53.DeleteKeySigningKeyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteKeySigningKeyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.DeleteKeySigningKeyInput, _a2 ...request.Option) (*route53.DeleteKeySigningKeyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteKeySigningKeyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteKeySigningKeyInput, ...request.Option) (*route53.DeleteKeySigningKeyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteKeySigningKeyInput, ...request.Option) *route53.DeleteKeySigningKeyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteKeySigningKeyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteKeySigningKeyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueryLoggingConfig provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteQueryLoggingConfig(_a0 *route53.DeleteQueryLoggingConfigInput) (*route53.DeleteQueryLoggingConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteQueryLoggingConfigInput) (*route53.DeleteQueryLoggingConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteQueryLoggingConfigInput) *route53.DeleteQueryLoggingConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteQueryLoggingConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueryLoggingConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteQueryLoggingConfigRequest(_a0 *route53.DeleteQueryLoggingConfigInput) (*request.Request, *route53.DeleteQueryLoggingConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteQueryLoggingConfigOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteQueryLoggingConfigInput) (*request.Request, *route53.DeleteQueryLoggingConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteQueryLoggingConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteQueryLoggingConfigInput) *route53.DeleteQueryLoggingConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteQueryLoggingConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteQueryLoggingConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteQueryLoggingConfigWithContext(_a0 context.Context, _a1 *route53.DeleteQueryLoggingConfigInput, _a2 ...request.Option) (*route53.DeleteQueryLoggingConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteQueryLoggingConfigInput, ...request.Option) (*route53.DeleteQueryLoggingConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteQueryLoggingConfigInput, ...request.Option) *route53.DeleteQueryLoggingConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteQueryLoggingConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteReusableDelegationSet provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteReusableDelegationSet(_a0 *route53.DeleteReusableDelegationSetInput) (*route53.DeleteReusableDelegationSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteReusableDelegationSetInput) (*route53.DeleteReusableDelegationSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteReusableDelegationSetInput) *route53.DeleteReusableDelegationSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteReusableDelegationSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteReusableDelegationSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteReusableDelegationSetRequest(_a0 *route53.DeleteReusableDelegationSetInput) (*request.Request, *route53.DeleteReusableDelegationSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteReusableDelegationSetOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteReusableDelegationSetInput) (*request.Request, *route53.DeleteReusableDelegationSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteReusableDelegationSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteReusableDelegationSetInput) *route53.DeleteReusableDelegationSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteReusableDelegationSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteReusableDelegationSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteReusableDelegationSetWithContext(_a0 context.Context, _a1 *route53.DeleteReusableDelegationSetInput, _a2 ...request.Option) (*route53.DeleteReusableDelegationSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteReusableDelegationSetInput, ...request.Option) (*route53.DeleteReusableDelegationSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteReusableDelegationSetInput, ...request.Option) *route53.DeleteReusableDelegationSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteReusableDelegationSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteTrafficPolicy(_a0 *route53.DeleteTrafficPolicyInput) (*route53.DeleteTrafficPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInput) (*route53.DeleteTrafficPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInput) *route53.DeleteTrafficPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteTrafficPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicyInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteTrafficPolicyInstance(_a0 *route53.DeleteTrafficPolicyInstanceInput) (*route53.DeleteTrafficPolicyInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInstanceInput) (*route53.DeleteTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInstanceInput) *route53.DeleteTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteTrafficPolicyInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicyInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteTrafficPolicyInstanceRequest(_a0 *route53.DeleteTrafficPolicyInstanceInput) (*request.Request, *route53.DeleteTrafficPolicyInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteTrafficPolicyInstanceOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInstanceInput) (*request.Request, *route53.DeleteTrafficPolicyInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteTrafficPolicyInstanceInput) *route53.DeleteTrafficPolicyInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteTrafficPolicyInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicyInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteTrafficPolicyInstanceWithContext(_a0 context.Context, _a1 *route53.DeleteTrafficPolicyInstanceInput, _a2 ...request.Option) (*route53.DeleteTrafficPolicyInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteTrafficPolicyInstanceInput, ...request.Option) (*route53.DeleteTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteTrafficPolicyInstanceInput, ...request.Option) *route53.DeleteTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteTrafficPolicyInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteTrafficPolicyRequest(_a0 *route53.DeleteTrafficPolicyInput) (*request.Request, *route53.DeleteTrafficPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteTrafficPolicyOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInput) (*request.Request, *route53.DeleteTrafficPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteTrafficPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteTrafficPolicyInput) *route53.DeleteTrafficPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteTrafficPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTrafficPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteTrafficPolicyWithContext(_a0 context.Context, _a1 *route53.DeleteTrafficPolicyInput, _a2 ...request.Option) (*route53.DeleteTrafficPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteTrafficPolicyInput, ...request.Option) (*route53.DeleteTrafficPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteTrafficPolicyInput, ...request.Option) *route53.DeleteTrafficPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteTrafficPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVPCAssociationAuthorization provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteVPCAssociationAuthorization(_a0 *route53.DeleteVPCAssociationAuthorizationInput) (*route53.DeleteVPCAssociationAuthorizationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DeleteVPCAssociationAuthorizationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DeleteVPCAssociationAuthorizationInput) (*route53.DeleteVPCAssociationAuthorizationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteVPCAssociationAuthorizationInput) *route53.DeleteVPCAssociationAuthorizationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteVPCAssociationAuthorizationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteVPCAssociationAuthorizationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteVPCAssociationAuthorizationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DeleteVPCAssociationAuthorizationRequest(_a0 *route53.DeleteVPCAssociationAuthorizationInput) (*request.Request, *route53.DeleteVPCAssociationAuthorizationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DeleteVPCAssociationAuthorizationOutput
- if rf, ok := ret.Get(0).(func(*route53.DeleteVPCAssociationAuthorizationInput) (*request.Request, *route53.DeleteVPCAssociationAuthorizationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DeleteVPCAssociationAuthorizationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DeleteVPCAssociationAuthorizationInput) *route53.DeleteVPCAssociationAuthorizationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DeleteVPCAssociationAuthorizationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteVPCAssociationAuthorizationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DeleteVPCAssociationAuthorizationWithContext(_a0 context.Context, _a1 *route53.DeleteVPCAssociationAuthorizationInput, _a2 ...request.Option) (*route53.DeleteVPCAssociationAuthorizationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DeleteVPCAssociationAuthorizationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteVPCAssociationAuthorizationInput, ...request.Option) (*route53.DeleteVPCAssociationAuthorizationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteVPCAssociationAuthorizationInput, ...request.Option) *route53.DeleteVPCAssociationAuthorizationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DeleteVPCAssociationAuthorizationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteVPCAssociationAuthorizationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableHostedZoneDNSSEC provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DisableHostedZoneDNSSEC(_a0 *route53.DisableHostedZoneDNSSECInput) (*route53.DisableHostedZoneDNSSECOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DisableHostedZoneDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) (*route53.DisableHostedZoneDNSSECOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) *route53.DisableHostedZoneDNSSECOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DisableHostedZoneDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DisableHostedZoneDNSSECInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisableHostedZoneDNSSECRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DisableHostedZoneDNSSECRequest(_a0 *route53.DisableHostedZoneDNSSECInput) (*request.Request, *route53.DisableHostedZoneDNSSECOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DisableHostedZoneDNSSECOutput
- if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) (*request.Request, *route53.DisableHostedZoneDNSSECOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DisableHostedZoneDNSSECInput) *route53.DisableHostedZoneDNSSECOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DisableHostedZoneDNSSECOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisableHostedZoneDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DisableHostedZoneDNSSECWithContext(_a0 context.Context, _a1 *route53.DisableHostedZoneDNSSECInput, _a2 ...request.Option) (*route53.DisableHostedZoneDNSSECOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DisableHostedZoneDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DisableHostedZoneDNSSECInput, ...request.Option) (*route53.DisableHostedZoneDNSSECOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DisableHostedZoneDNSSECInput, ...request.Option) *route53.DisableHostedZoneDNSSECOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DisableHostedZoneDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DisableHostedZoneDNSSECInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateVPCFromHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DisassociateVPCFromHostedZone(_a0 *route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.DisassociateVPCFromHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DisassociateVPCFromHostedZoneInput) *route53.DisassociateVPCFromHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DisassociateVPCFromHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DisassociateVPCFromHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DisassociateVPCFromHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) DisassociateVPCFromHostedZoneRequest(_a0 *route53.DisassociateVPCFromHostedZoneInput) (*request.Request, *route53.DisassociateVPCFromHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.DisassociateVPCFromHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.DisassociateVPCFromHostedZoneInput) (*request.Request, *route53.DisassociateVPCFromHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.DisassociateVPCFromHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.DisassociateVPCFromHostedZoneInput) *route53.DisassociateVPCFromHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.DisassociateVPCFromHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// DisassociateVPCFromHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) DisassociateVPCFromHostedZoneWithContext(_a0 context.Context, _a1 *route53.DisassociateVPCFromHostedZoneInput, _a2 ...request.Option) (*route53.DisassociateVPCFromHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.DisassociateVPCFromHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DisassociateVPCFromHostedZoneInput, ...request.Option) (*route53.DisassociateVPCFromHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.DisassociateVPCFromHostedZoneInput, ...request.Option) *route53.DisassociateVPCFromHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.DisassociateVPCFromHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.DisassociateVPCFromHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableHostedZoneDNSSEC provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) EnableHostedZoneDNSSEC(_a0 *route53.EnableHostedZoneDNSSECInput) (*route53.EnableHostedZoneDNSSECOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.EnableHostedZoneDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) (*route53.EnableHostedZoneDNSSECOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) *route53.EnableHostedZoneDNSSECOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.EnableHostedZoneDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.EnableHostedZoneDNSSECInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// EnableHostedZoneDNSSECRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) EnableHostedZoneDNSSECRequest(_a0 *route53.EnableHostedZoneDNSSECInput) (*request.Request, *route53.EnableHostedZoneDNSSECOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.EnableHostedZoneDNSSECOutput
- if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) (*request.Request, *route53.EnableHostedZoneDNSSECOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.EnableHostedZoneDNSSECInput) *route53.EnableHostedZoneDNSSECOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.EnableHostedZoneDNSSECOutput)
- }
- }
-
- return r0, r1
-}
-
-// EnableHostedZoneDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) EnableHostedZoneDNSSECWithContext(_a0 context.Context, _a1 *route53.EnableHostedZoneDNSSECInput, _a2 ...request.Option) (*route53.EnableHostedZoneDNSSECOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.EnableHostedZoneDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.EnableHostedZoneDNSSECInput, ...request.Option) (*route53.EnableHostedZoneDNSSECOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.EnableHostedZoneDNSSECInput, ...request.Option) *route53.EnableHostedZoneDNSSECOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.EnableHostedZoneDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.EnableHostedZoneDNSSECInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountLimit provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetAccountLimit(_a0 *route53.GetAccountLimitInput) (*route53.GetAccountLimitOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetAccountLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetAccountLimitInput) (*route53.GetAccountLimitOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetAccountLimitInput) *route53.GetAccountLimitOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetAccountLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetAccountLimitInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccountLimitRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetAccountLimitRequest(_a0 *route53.GetAccountLimitInput) (*request.Request, *route53.GetAccountLimitOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetAccountLimitOutput
- if rf, ok := ret.Get(0).(func(*route53.GetAccountLimitInput) (*request.Request, *route53.GetAccountLimitOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetAccountLimitInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetAccountLimitInput) *route53.GetAccountLimitOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetAccountLimitOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccountLimitWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetAccountLimitWithContext(_a0 context.Context, _a1 *route53.GetAccountLimitInput, _a2 ...request.Option) (*route53.GetAccountLimitOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetAccountLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetAccountLimitInput, ...request.Option) (*route53.GetAccountLimitOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetAccountLimitInput, ...request.Option) *route53.GetAccountLimitOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetAccountLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetAccountLimitInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetChange provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetChange(_a0 *route53.GetChangeInput) (*route53.GetChangeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetChangeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetChangeInput) (*route53.GetChangeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetChangeInput) *route53.GetChangeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetChangeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetChangeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetChangeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetChangeRequest(_a0 *route53.GetChangeInput) (*request.Request, *route53.GetChangeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetChangeOutput
- if rf, ok := ret.Get(0).(func(*route53.GetChangeInput) (*request.Request, *route53.GetChangeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetChangeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetChangeInput) *route53.GetChangeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetChangeOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetChangeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetChangeWithContext(_a0 context.Context, _a1 *route53.GetChangeInput, _a2 ...request.Option) (*route53.GetChangeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetChangeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetChangeInput, ...request.Option) (*route53.GetChangeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetChangeInput, ...request.Option) *route53.GetChangeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetChangeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetChangeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCheckerIpRanges provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetCheckerIpRanges(_a0 *route53.GetCheckerIpRangesInput) (*route53.GetCheckerIpRangesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetCheckerIpRangesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetCheckerIpRangesInput) (*route53.GetCheckerIpRangesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetCheckerIpRangesInput) *route53.GetCheckerIpRangesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetCheckerIpRangesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetCheckerIpRangesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetCheckerIpRangesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetCheckerIpRangesRequest(_a0 *route53.GetCheckerIpRangesInput) (*request.Request, *route53.GetCheckerIpRangesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetCheckerIpRangesOutput
- if rf, ok := ret.Get(0).(func(*route53.GetCheckerIpRangesInput) (*request.Request, *route53.GetCheckerIpRangesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetCheckerIpRangesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetCheckerIpRangesInput) *route53.GetCheckerIpRangesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetCheckerIpRangesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetCheckerIpRangesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetCheckerIpRangesWithContext(_a0 context.Context, _a1 *route53.GetCheckerIpRangesInput, _a2 ...request.Option) (*route53.GetCheckerIpRangesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetCheckerIpRangesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetCheckerIpRangesInput, ...request.Option) (*route53.GetCheckerIpRangesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetCheckerIpRangesInput, ...request.Option) *route53.GetCheckerIpRangesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetCheckerIpRangesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetCheckerIpRangesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDNSSEC provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetDNSSEC(_a0 *route53.GetDNSSECInput) (*route53.GetDNSSECOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) (*route53.GetDNSSECOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) *route53.GetDNSSECOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetDNSSECInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDNSSECRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetDNSSECRequest(_a0 *route53.GetDNSSECInput) (*request.Request, *route53.GetDNSSECOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetDNSSECOutput
- if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) (*request.Request, *route53.GetDNSSECOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetDNSSECInput) *route53.GetDNSSECOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetDNSSECOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetDNSSECWithContext(_a0 context.Context, _a1 *route53.GetDNSSECInput, _a2 ...request.Option) (*route53.GetDNSSECOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetDNSSECOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetDNSSECInput, ...request.Option) (*route53.GetDNSSECOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetDNSSECInput, ...request.Option) *route53.GetDNSSECOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetDNSSECOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetDNSSECInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGeoLocation provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetGeoLocation(_a0 *route53.GetGeoLocationInput) (*route53.GetGeoLocationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetGeoLocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetGeoLocationInput) (*route53.GetGeoLocationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetGeoLocationInput) *route53.GetGeoLocationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetGeoLocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetGeoLocationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetGeoLocationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetGeoLocationRequest(_a0 *route53.GetGeoLocationInput) (*request.Request, *route53.GetGeoLocationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetGeoLocationOutput
- if rf, ok := ret.Get(0).(func(*route53.GetGeoLocationInput) (*request.Request, *route53.GetGeoLocationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetGeoLocationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetGeoLocationInput) *route53.GetGeoLocationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetGeoLocationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetGeoLocationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetGeoLocationWithContext(_a0 context.Context, _a1 *route53.GetGeoLocationInput, _a2 ...request.Option) (*route53.GetGeoLocationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetGeoLocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetGeoLocationInput, ...request.Option) (*route53.GetGeoLocationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetGeoLocationInput, ...request.Option) *route53.GetGeoLocationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetGeoLocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetGeoLocationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheck provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheck(_a0 *route53.GetHealthCheckInput) (*route53.GetHealthCheckOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckInput) (*route53.GetHealthCheckOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckInput) *route53.GetHealthCheckOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckCount provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckCount(_a0 *route53.GetHealthCheckCountInput) (*route53.GetHealthCheckCountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHealthCheckCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckCountInput) (*route53.GetHealthCheckCountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckCountInput) *route53.GetHealthCheckCountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckCountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckCountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckCountRequest(_a0 *route53.GetHealthCheckCountInput) (*request.Request, *route53.GetHealthCheckCountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHealthCheckCountOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckCountInput) (*request.Request, *route53.GetHealthCheckCountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckCountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckCountInput) *route53.GetHealthCheckCountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHealthCheckCountOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHealthCheckCountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHealthCheckCountWithContext(_a0 context.Context, _a1 *route53.GetHealthCheckCountInput, _a2 ...request.Option) (*route53.GetHealthCheckCountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHealthCheckCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckCountInput, ...request.Option) (*route53.GetHealthCheckCountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckCountInput, ...request.Option) *route53.GetHealthCheckCountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHealthCheckCountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckLastFailureReason provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckLastFailureReason(_a0 *route53.GetHealthCheckLastFailureReasonInput) (*route53.GetHealthCheckLastFailureReasonOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHealthCheckLastFailureReasonOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckLastFailureReasonInput) (*route53.GetHealthCheckLastFailureReasonOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckLastFailureReasonInput) *route53.GetHealthCheckLastFailureReasonOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckLastFailureReasonOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckLastFailureReasonInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckLastFailureReasonRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckLastFailureReasonRequest(_a0 *route53.GetHealthCheckLastFailureReasonInput) (*request.Request, *route53.GetHealthCheckLastFailureReasonOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHealthCheckLastFailureReasonOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckLastFailureReasonInput) (*request.Request, *route53.GetHealthCheckLastFailureReasonOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckLastFailureReasonInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckLastFailureReasonInput) *route53.GetHealthCheckLastFailureReasonOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHealthCheckLastFailureReasonOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHealthCheckLastFailureReasonWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHealthCheckLastFailureReasonWithContext(_a0 context.Context, _a1 *route53.GetHealthCheckLastFailureReasonInput, _a2 ...request.Option) (*route53.GetHealthCheckLastFailureReasonOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHealthCheckLastFailureReasonOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckLastFailureReasonInput, ...request.Option) (*route53.GetHealthCheckLastFailureReasonOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckLastFailureReasonInput, ...request.Option) *route53.GetHealthCheckLastFailureReasonOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckLastFailureReasonOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHealthCheckLastFailureReasonInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckRequest(_a0 *route53.GetHealthCheckInput) (*request.Request, *route53.GetHealthCheckOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHealthCheckOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckInput) (*request.Request, *route53.GetHealthCheckOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckInput) *route53.GetHealthCheckOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHealthCheckOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHealthCheckStatus provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckStatus(_a0 *route53.GetHealthCheckStatusInput) (*route53.GetHealthCheckStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHealthCheckStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckStatusInput) (*route53.GetHealthCheckStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckStatusInput) *route53.GetHealthCheckStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHealthCheckStatusRequest(_a0 *route53.GetHealthCheckStatusInput) (*request.Request, *route53.GetHealthCheckStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHealthCheckStatusOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckStatusInput) (*request.Request, *route53.GetHealthCheckStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHealthCheckStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHealthCheckStatusInput) *route53.GetHealthCheckStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHealthCheckStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHealthCheckStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHealthCheckStatusWithContext(_a0 context.Context, _a1 *route53.GetHealthCheckStatusInput, _a2 ...request.Option) (*route53.GetHealthCheckStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHealthCheckStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckStatusInput, ...request.Option) (*route53.GetHealthCheckStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckStatusInput, ...request.Option) *route53.GetHealthCheckStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHealthCheckStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHealthCheckWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHealthCheckWithContext(_a0 context.Context, _a1 *route53.GetHealthCheckInput, _a2 ...request.Option) (*route53.GetHealthCheckOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckInput, ...request.Option) (*route53.GetHealthCheckOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHealthCheckInput, ...request.Option) *route53.GetHealthCheckOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHealthCheckInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZone(_a0 *route53.GetHostedZoneInput) (*route53.GetHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneInput) (*route53.GetHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneInput) *route53.GetHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZoneCount provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZoneCount(_a0 *route53.GetHostedZoneCountInput) (*route53.GetHostedZoneCountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHostedZoneCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneCountInput) (*route53.GetHostedZoneCountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneCountInput) *route53.GetHostedZoneCountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneCountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZoneCountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZoneCountRequest(_a0 *route53.GetHostedZoneCountInput) (*request.Request, *route53.GetHostedZoneCountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHostedZoneCountOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneCountInput) (*request.Request, *route53.GetHostedZoneCountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneCountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneCountInput) *route53.GetHostedZoneCountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHostedZoneCountOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHostedZoneCountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHostedZoneCountWithContext(_a0 context.Context, _a1 *route53.GetHostedZoneCountInput, _a2 ...request.Option) (*route53.GetHostedZoneCountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHostedZoneCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneCountInput, ...request.Option) (*route53.GetHostedZoneCountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneCountInput, ...request.Option) *route53.GetHostedZoneCountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHostedZoneCountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZoneLimit provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZoneLimit(_a0 *route53.GetHostedZoneLimitInput) (*route53.GetHostedZoneLimitOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetHostedZoneLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneLimitInput) (*route53.GetHostedZoneLimitOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneLimitInput) *route53.GetHostedZoneLimitOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneLimitInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZoneLimitRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZoneLimitRequest(_a0 *route53.GetHostedZoneLimitInput) (*request.Request, *route53.GetHostedZoneLimitOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHostedZoneLimitOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneLimitInput) (*request.Request, *route53.GetHostedZoneLimitOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneLimitInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneLimitInput) *route53.GetHostedZoneLimitOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHostedZoneLimitOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHostedZoneLimitWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHostedZoneLimitWithContext(_a0 context.Context, _a1 *route53.GetHostedZoneLimitInput, _a2 ...request.Option) (*route53.GetHostedZoneLimitOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHostedZoneLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneLimitInput, ...request.Option) (*route53.GetHostedZoneLimitOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneLimitInput, ...request.Option) *route53.GetHostedZoneLimitOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHostedZoneLimitInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetHostedZoneRequest(_a0 *route53.GetHostedZoneInput) (*request.Request, *route53.GetHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneInput) (*request.Request, *route53.GetHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetHostedZoneInput) *route53.GetHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetHostedZoneWithContext(_a0 context.Context, _a1 *route53.GetHostedZoneInput, _a2 ...request.Option) (*route53.GetHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneInput, ...request.Option) (*route53.GetHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetHostedZoneInput, ...request.Option) *route53.GetHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueryLoggingConfig provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetQueryLoggingConfig(_a0 *route53.GetQueryLoggingConfigInput) (*route53.GetQueryLoggingConfigOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetQueryLoggingConfigInput) (*route53.GetQueryLoggingConfigOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetQueryLoggingConfigInput) *route53.GetQueryLoggingConfigOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetQueryLoggingConfigInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueryLoggingConfigRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetQueryLoggingConfigRequest(_a0 *route53.GetQueryLoggingConfigInput) (*request.Request, *route53.GetQueryLoggingConfigOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetQueryLoggingConfigOutput
- if rf, ok := ret.Get(0).(func(*route53.GetQueryLoggingConfigInput) (*request.Request, *route53.GetQueryLoggingConfigOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetQueryLoggingConfigInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetQueryLoggingConfigInput) *route53.GetQueryLoggingConfigOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetQueryLoggingConfigOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetQueryLoggingConfigWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetQueryLoggingConfigWithContext(_a0 context.Context, _a1 *route53.GetQueryLoggingConfigInput, _a2 ...request.Option) (*route53.GetQueryLoggingConfigOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetQueryLoggingConfigOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetQueryLoggingConfigInput, ...request.Option) (*route53.GetQueryLoggingConfigOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetQueryLoggingConfigInput, ...request.Option) *route53.GetQueryLoggingConfigOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetQueryLoggingConfigOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetQueryLoggingConfigInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSet provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetReusableDelegationSet(_a0 *route53.GetReusableDelegationSetInput) (*route53.GetReusableDelegationSetOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetInput) (*route53.GetReusableDelegationSetOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetInput) *route53.GetReusableDelegationSetOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetReusableDelegationSetInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSetLimit provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetReusableDelegationSetLimit(_a0 *route53.GetReusableDelegationSetLimitInput) (*route53.GetReusableDelegationSetLimitOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetReusableDelegationSetLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetLimitInput) (*route53.GetReusableDelegationSetLimitOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetLimitInput) *route53.GetReusableDelegationSetLimitOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetReusableDelegationSetLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetReusableDelegationSetLimitInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSetLimitRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetReusableDelegationSetLimitRequest(_a0 *route53.GetReusableDelegationSetLimitInput) (*request.Request, *route53.GetReusableDelegationSetLimitOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetReusableDelegationSetLimitOutput
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetLimitInput) (*request.Request, *route53.GetReusableDelegationSetLimitOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetLimitInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetReusableDelegationSetLimitInput) *route53.GetReusableDelegationSetLimitOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetReusableDelegationSetLimitOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSetLimitWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetReusableDelegationSetLimitWithContext(_a0 context.Context, _a1 *route53.GetReusableDelegationSetLimitInput, _a2 ...request.Option) (*route53.GetReusableDelegationSetLimitOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetReusableDelegationSetLimitOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetReusableDelegationSetLimitInput, ...request.Option) (*route53.GetReusableDelegationSetLimitOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetReusableDelegationSetLimitInput, ...request.Option) *route53.GetReusableDelegationSetLimitOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetReusableDelegationSetLimitOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetReusableDelegationSetLimitInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSetRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetReusableDelegationSetRequest(_a0 *route53.GetReusableDelegationSetInput) (*request.Request, *route53.GetReusableDelegationSetOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetReusableDelegationSetOutput
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetInput) (*request.Request, *route53.GetReusableDelegationSetOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetReusableDelegationSetInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetReusableDelegationSetInput) *route53.GetReusableDelegationSetOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetReusableDelegationSetOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetReusableDelegationSetWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetReusableDelegationSetWithContext(_a0 context.Context, _a1 *route53.GetReusableDelegationSetInput, _a2 ...request.Option) (*route53.GetReusableDelegationSetOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetReusableDelegationSetOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetReusableDelegationSetInput, ...request.Option) (*route53.GetReusableDelegationSetOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetReusableDelegationSetInput, ...request.Option) *route53.GetReusableDelegationSetOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetReusableDelegationSetOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetReusableDelegationSetInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicy(_a0 *route53.GetTrafficPolicyInput) (*route53.GetTrafficPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInput) (*route53.GetTrafficPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInput) *route53.GetTrafficPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicyInstance(_a0 *route53.GetTrafficPolicyInstanceInput) (*route53.GetTrafficPolicyInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceInput) (*route53.GetTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceInput) *route53.GetTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstanceCount provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicyInstanceCount(_a0 *route53.GetTrafficPolicyInstanceCountInput) (*route53.GetTrafficPolicyInstanceCountOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.GetTrafficPolicyInstanceCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceCountInput) (*route53.GetTrafficPolicyInstanceCountOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceCountInput) *route53.GetTrafficPolicyInstanceCountOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyInstanceCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInstanceCountInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstanceCountRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicyInstanceCountRequest(_a0 *route53.GetTrafficPolicyInstanceCountInput) (*request.Request, *route53.GetTrafficPolicyInstanceCountOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetTrafficPolicyInstanceCountOutput
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceCountInput) (*request.Request, *route53.GetTrafficPolicyInstanceCountOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceCountInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInstanceCountInput) *route53.GetTrafficPolicyInstanceCountOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetTrafficPolicyInstanceCountOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstanceCountWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetTrafficPolicyInstanceCountWithContext(_a0 context.Context, _a1 *route53.GetTrafficPolicyInstanceCountInput, _a2 ...request.Option) (*route53.GetTrafficPolicyInstanceCountOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetTrafficPolicyInstanceCountOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInstanceCountInput, ...request.Option) (*route53.GetTrafficPolicyInstanceCountOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInstanceCountInput, ...request.Option) *route53.GetTrafficPolicyInstanceCountOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyInstanceCountOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetTrafficPolicyInstanceCountInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicyInstanceRequest(_a0 *route53.GetTrafficPolicyInstanceInput) (*request.Request, *route53.GetTrafficPolicyInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetTrafficPolicyInstanceOutput
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceInput) (*request.Request, *route53.GetTrafficPolicyInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInstanceInput) *route53.GetTrafficPolicyInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetTrafficPolicyInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetTrafficPolicyInstanceWithContext(_a0 context.Context, _a1 *route53.GetTrafficPolicyInstanceInput, _a2 ...request.Option) (*route53.GetTrafficPolicyInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInstanceInput, ...request.Option) (*route53.GetTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInstanceInput, ...request.Option) *route53.GetTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetTrafficPolicyInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) GetTrafficPolicyRequest(_a0 *route53.GetTrafficPolicyInput) (*request.Request, *route53.GetTrafficPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.GetTrafficPolicyOutput
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInput) (*request.Request, *route53.GetTrafficPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.GetTrafficPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.GetTrafficPolicyInput) *route53.GetTrafficPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.GetTrafficPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTrafficPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) GetTrafficPolicyWithContext(_a0 context.Context, _a1 *route53.GetTrafficPolicyInput, _a2 ...request.Option) (*route53.GetTrafficPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.GetTrafficPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInput, ...request.Option) (*route53.GetTrafficPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetTrafficPolicyInput, ...request.Option) *route53.GetTrafficPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.GetTrafficPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.GetTrafficPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrBlocks provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrBlocks(_a0 *route53.ListCidrBlocksInput) (*route53.ListCidrBlocksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListCidrBlocksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrBlocksInput) (*route53.ListCidrBlocksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrBlocksInput) *route53.ListCidrBlocksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrBlocksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrBlocksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrBlocksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListCidrBlocksPages(_a0 *route53.ListCidrBlocksInput, _a1 func(*route53.ListCidrBlocksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrBlocksInput, func(*route53.ListCidrBlocksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrBlocksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListCidrBlocksPagesWithContext(_a0 context.Context, _a1 *route53.ListCidrBlocksInput, _a2 func(*route53.ListCidrBlocksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrBlocksInput, func(*route53.ListCidrBlocksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrBlocksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrBlocksRequest(_a0 *route53.ListCidrBlocksInput) (*request.Request, *route53.ListCidrBlocksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListCidrBlocksOutput
- if rf, ok := ret.Get(0).(func(*route53.ListCidrBlocksInput) (*request.Request, *route53.ListCidrBlocksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrBlocksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrBlocksInput) *route53.ListCidrBlocksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListCidrBlocksOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCidrBlocksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListCidrBlocksWithContext(_a0 context.Context, _a1 *route53.ListCidrBlocksInput, _a2 ...request.Option) (*route53.ListCidrBlocksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListCidrBlocksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrBlocksInput, ...request.Option) (*route53.ListCidrBlocksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrBlocksInput, ...request.Option) *route53.ListCidrBlocksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrBlocksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListCidrBlocksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrCollections provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrCollections(_a0 *route53.ListCidrCollectionsInput) (*route53.ListCidrCollectionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListCidrCollectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrCollectionsInput) (*route53.ListCidrCollectionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrCollectionsInput) *route53.ListCidrCollectionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrCollectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrCollectionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrCollectionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListCidrCollectionsPages(_a0 *route53.ListCidrCollectionsInput, _a1 func(*route53.ListCidrCollectionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrCollectionsInput, func(*route53.ListCidrCollectionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrCollectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListCidrCollectionsPagesWithContext(_a0 context.Context, _a1 *route53.ListCidrCollectionsInput, _a2 func(*route53.ListCidrCollectionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrCollectionsInput, func(*route53.ListCidrCollectionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrCollectionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrCollectionsRequest(_a0 *route53.ListCidrCollectionsInput) (*request.Request, *route53.ListCidrCollectionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListCidrCollectionsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListCidrCollectionsInput) (*request.Request, *route53.ListCidrCollectionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrCollectionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrCollectionsInput) *route53.ListCidrCollectionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListCidrCollectionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCidrCollectionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListCidrCollectionsWithContext(_a0 context.Context, _a1 *route53.ListCidrCollectionsInput, _a2 ...request.Option) (*route53.ListCidrCollectionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListCidrCollectionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrCollectionsInput, ...request.Option) (*route53.ListCidrCollectionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrCollectionsInput, ...request.Option) *route53.ListCidrCollectionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrCollectionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListCidrCollectionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrLocations provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrLocations(_a0 *route53.ListCidrLocationsInput) (*route53.ListCidrLocationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListCidrLocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrLocationsInput) (*route53.ListCidrLocationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrLocationsInput) *route53.ListCidrLocationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrLocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrLocationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListCidrLocationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListCidrLocationsPages(_a0 *route53.ListCidrLocationsInput, _a1 func(*route53.ListCidrLocationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListCidrLocationsInput, func(*route53.ListCidrLocationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrLocationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListCidrLocationsPagesWithContext(_a0 context.Context, _a1 *route53.ListCidrLocationsInput, _a2 func(*route53.ListCidrLocationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrLocationsInput, func(*route53.ListCidrLocationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListCidrLocationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListCidrLocationsRequest(_a0 *route53.ListCidrLocationsInput) (*request.Request, *route53.ListCidrLocationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListCidrLocationsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListCidrLocationsInput) (*request.Request, *route53.ListCidrLocationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListCidrLocationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListCidrLocationsInput) *route53.ListCidrLocationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListCidrLocationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListCidrLocationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListCidrLocationsWithContext(_a0 context.Context, _a1 *route53.ListCidrLocationsInput, _a2 ...request.Option) (*route53.ListCidrLocationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListCidrLocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrLocationsInput, ...request.Option) (*route53.ListCidrLocationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListCidrLocationsInput, ...request.Option) *route53.ListCidrLocationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListCidrLocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListCidrLocationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGeoLocations provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListGeoLocations(_a0 *route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListGeoLocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListGeoLocationsInput) *route53.ListGeoLocationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListGeoLocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListGeoLocationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListGeoLocationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListGeoLocationsRequest(_a0 *route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListGeoLocationsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListGeoLocationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListGeoLocationsInput) *route53.ListGeoLocationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListGeoLocationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListGeoLocationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListGeoLocationsWithContext(_a0 context.Context, _a1 *route53.ListGeoLocationsInput, _a2 ...request.Option) (*route53.ListGeoLocationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListGeoLocationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListGeoLocationsInput, ...request.Option) (*route53.ListGeoLocationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListGeoLocationsInput, ...request.Option) *route53.ListGeoLocationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListGeoLocationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListGeoLocationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHealthChecks provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHealthChecks(_a0 *route53.ListHealthChecksInput) (*route53.ListHealthChecksOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListHealthChecksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListHealthChecksInput) (*route53.ListHealthChecksOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHealthChecksInput) *route53.ListHealthChecksOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHealthChecksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHealthChecksInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHealthChecksPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListHealthChecksPages(_a0 *route53.ListHealthChecksInput, _a1 func(*route53.ListHealthChecksOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListHealthChecksInput, func(*route53.ListHealthChecksOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListHealthChecksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListHealthChecksPagesWithContext(_a0 context.Context, _a1 *route53.ListHealthChecksInput, _a2 func(*route53.ListHealthChecksOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHealthChecksInput, func(*route53.ListHealthChecksOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListHealthChecksRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHealthChecksRequest(_a0 *route53.ListHealthChecksInput) (*request.Request, *route53.ListHealthChecksOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListHealthChecksOutput
- if rf, ok := ret.Get(0).(func(*route53.ListHealthChecksInput) (*request.Request, *route53.ListHealthChecksOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHealthChecksInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHealthChecksInput) *route53.ListHealthChecksOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListHealthChecksOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListHealthChecksWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListHealthChecksWithContext(_a0 context.Context, _a1 *route53.ListHealthChecksInput, _a2 ...request.Option) (*route53.ListHealthChecksOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListHealthChecksOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHealthChecksInput, ...request.Option) (*route53.ListHealthChecksOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHealthChecksInput, ...request.Option) *route53.ListHealthChecksOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHealthChecksOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListHealthChecksInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZones provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZones(_a0 *route53.ListHostedZonesInput) (*route53.ListHostedZonesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListHostedZonesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesInput) (*route53.ListHostedZonesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesInput) *route53.ListHostedZonesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByName provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZonesByName(_a0 *route53.ListHostedZonesByNameInput) (*route53.ListHostedZonesByNameOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListHostedZonesByNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByNameInput) (*route53.ListHostedZonesByNameOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByNameInput) *route53.ListHostedZonesByNameOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesByNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesByNameInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByNameRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZonesByNameRequest(_a0 *route53.ListHostedZonesByNameInput) (*request.Request, *route53.ListHostedZonesByNameOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListHostedZonesByNameOutput
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByNameInput) (*request.Request, *route53.ListHostedZonesByNameOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByNameInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesByNameInput) *route53.ListHostedZonesByNameOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListHostedZonesByNameOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByNameWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListHostedZonesByNameWithContext(_a0 context.Context, _a1 *route53.ListHostedZonesByNameInput, _a2 ...request.Option) (*route53.ListHostedZonesByNameOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListHostedZonesByNameOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesByNameInput, ...request.Option) (*route53.ListHostedZonesByNameOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesByNameInput, ...request.Option) *route53.ListHostedZonesByNameOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesByNameOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListHostedZonesByNameInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByVPC provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZonesByVPC(_a0 *route53.ListHostedZonesByVPCInput) (*route53.ListHostedZonesByVPCOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListHostedZonesByVPCOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByVPCInput) (*route53.ListHostedZonesByVPCOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByVPCInput) *route53.ListHostedZonesByVPCOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesByVPCOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesByVPCInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByVPCRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZonesByVPCRequest(_a0 *route53.ListHostedZonesByVPCInput) (*request.Request, *route53.ListHostedZonesByVPCOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListHostedZonesByVPCOutput
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByVPCInput) (*request.Request, *route53.ListHostedZonesByVPCOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesByVPCInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesByVPCInput) *route53.ListHostedZonesByVPCOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListHostedZonesByVPCOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListHostedZonesByVPCWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListHostedZonesByVPCWithContext(_a0 context.Context, _a1 *route53.ListHostedZonesByVPCInput, _a2 ...request.Option) (*route53.ListHostedZonesByVPCOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListHostedZonesByVPCOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesByVPCInput, ...request.Option) (*route53.ListHostedZonesByVPCOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesByVPCInput, ...request.Option) *route53.ListHostedZonesByVPCOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesByVPCOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListHostedZonesByVPCInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListHostedZonesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListHostedZonesPages(_a0 *route53.ListHostedZonesInput, _a1 func(*route53.ListHostedZonesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesInput, func(*route53.ListHostedZonesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListHostedZonesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListHostedZonesPagesWithContext(_a0 context.Context, _a1 *route53.ListHostedZonesInput, _a2 func(*route53.ListHostedZonesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesInput, func(*route53.ListHostedZonesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListHostedZonesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListHostedZonesRequest(_a0 *route53.ListHostedZonesInput) (*request.Request, *route53.ListHostedZonesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListHostedZonesOutput
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesInput) (*request.Request, *route53.ListHostedZonesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListHostedZonesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListHostedZonesInput) *route53.ListHostedZonesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListHostedZonesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListHostedZonesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListHostedZonesWithContext(_a0 context.Context, _a1 *route53.ListHostedZonesInput, _a2 ...request.Option) (*route53.ListHostedZonesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListHostedZonesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesInput, ...request.Option) (*route53.ListHostedZonesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListHostedZonesInput, ...request.Option) *route53.ListHostedZonesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListHostedZonesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListHostedZonesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueryLoggingConfigs provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListQueryLoggingConfigs(_a0 *route53.ListQueryLoggingConfigsInput) (*route53.ListQueryLoggingConfigsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListQueryLoggingConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListQueryLoggingConfigsInput) (*route53.ListQueryLoggingConfigsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListQueryLoggingConfigsInput) *route53.ListQueryLoggingConfigsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListQueryLoggingConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListQueryLoggingConfigsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueryLoggingConfigsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListQueryLoggingConfigsPages(_a0 *route53.ListQueryLoggingConfigsInput, _a1 func(*route53.ListQueryLoggingConfigsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListQueryLoggingConfigsInput, func(*route53.ListQueryLoggingConfigsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueryLoggingConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListQueryLoggingConfigsPagesWithContext(_a0 context.Context, _a1 *route53.ListQueryLoggingConfigsInput, _a2 func(*route53.ListQueryLoggingConfigsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListQueryLoggingConfigsInput, func(*route53.ListQueryLoggingConfigsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueryLoggingConfigsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListQueryLoggingConfigsRequest(_a0 *route53.ListQueryLoggingConfigsInput) (*request.Request, *route53.ListQueryLoggingConfigsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListQueryLoggingConfigsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListQueryLoggingConfigsInput) (*request.Request, *route53.ListQueryLoggingConfigsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListQueryLoggingConfigsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListQueryLoggingConfigsInput) *route53.ListQueryLoggingConfigsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListQueryLoggingConfigsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListQueryLoggingConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListQueryLoggingConfigsWithContext(_a0 context.Context, _a1 *route53.ListQueryLoggingConfigsInput, _a2 ...request.Option) (*route53.ListQueryLoggingConfigsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListQueryLoggingConfigsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListQueryLoggingConfigsInput, ...request.Option) (*route53.ListQueryLoggingConfigsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListQueryLoggingConfigsInput, ...request.Option) *route53.ListQueryLoggingConfigsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListQueryLoggingConfigsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListQueryLoggingConfigsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResourceRecordSets provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListResourceRecordSets(_a0 *route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListResourceRecordSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListResourceRecordSetsInput) *route53.ListResourceRecordSetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListResourceRecordSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListResourceRecordSetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListResourceRecordSetsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeRoute53) ListResourceRecordSetsPages(_a0 *route53.ListResourceRecordSetsInput, _a1 func(*route53.ListResourceRecordSetsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.ListResourceRecordSetsInput, func(*route53.ListResourceRecordSetsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListResourceRecordSetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeRoute53) ListResourceRecordSetsPagesWithContext(_a0 context.Context, _a1 *route53.ListResourceRecordSetsInput, _a2 func(*route53.ListResourceRecordSetsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListResourceRecordSetsInput, func(*route53.ListResourceRecordSetsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListResourceRecordSetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListResourceRecordSetsRequest(_a0 *route53.ListResourceRecordSetsInput) (*request.Request, *route53.ListResourceRecordSetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListResourceRecordSetsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListResourceRecordSetsInput) (*request.Request, *route53.ListResourceRecordSetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListResourceRecordSetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListResourceRecordSetsInput) *route53.ListResourceRecordSetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListResourceRecordSetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListResourceRecordSetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListResourceRecordSetsWithContext(_a0 context.Context, _a1 *route53.ListResourceRecordSetsInput, _a2 ...request.Option) (*route53.ListResourceRecordSetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListResourceRecordSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListResourceRecordSetsInput, ...request.Option) (*route53.ListResourceRecordSetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListResourceRecordSetsInput, ...request.Option) *route53.ListResourceRecordSetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListResourceRecordSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListResourceRecordSetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListReusableDelegationSets provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListReusableDelegationSets(_a0 *route53.ListReusableDelegationSetsInput) (*route53.ListReusableDelegationSetsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListReusableDelegationSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListReusableDelegationSetsInput) (*route53.ListReusableDelegationSetsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListReusableDelegationSetsInput) *route53.ListReusableDelegationSetsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListReusableDelegationSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListReusableDelegationSetsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListReusableDelegationSetsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListReusableDelegationSetsRequest(_a0 *route53.ListReusableDelegationSetsInput) (*request.Request, *route53.ListReusableDelegationSetsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListReusableDelegationSetsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListReusableDelegationSetsInput) (*request.Request, *route53.ListReusableDelegationSetsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListReusableDelegationSetsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListReusableDelegationSetsInput) *route53.ListReusableDelegationSetsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListReusableDelegationSetsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListReusableDelegationSetsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListReusableDelegationSetsWithContext(_a0 context.Context, _a1 *route53.ListReusableDelegationSetsInput, _a2 ...request.Option) (*route53.ListReusableDelegationSetsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListReusableDelegationSetsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListReusableDelegationSetsInput, ...request.Option) (*route53.ListReusableDelegationSetsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListReusableDelegationSetsInput, ...request.Option) *route53.ListReusableDelegationSetsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListReusableDelegationSetsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListReusableDelegationSetsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTagsForResource(_a0 *route53.ListTagsForResourceInput) (*route53.ListTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourceInput) (*route53.ListTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourceInput) *route53.ListTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTagsForResourceRequest(_a0 *route53.ListTagsForResourceInput) (*request.Request, *route53.ListTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourceInput) (*request.Request, *route53.ListTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTagsForResourceInput) *route53.ListTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTagsForResourceWithContext(_a0 context.Context, _a1 *route53.ListTagsForResourceInput, _a2 ...request.Option) (*route53.ListTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTagsForResourceInput, ...request.Option) (*route53.ListTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTagsForResourceInput, ...request.Option) *route53.ListTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResources provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTagsForResources(_a0 *route53.ListTagsForResourcesInput) (*route53.ListTagsForResourcesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTagsForResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourcesInput) (*route53.ListTagsForResourcesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourcesInput) *route53.ListTagsForResourcesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTagsForResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTagsForResourcesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourcesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTagsForResourcesRequest(_a0 *route53.ListTagsForResourcesInput) (*request.Request, *route53.ListTagsForResourcesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTagsForResourcesOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourcesInput) (*request.Request, *route53.ListTagsForResourcesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTagsForResourcesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTagsForResourcesInput) *route53.ListTagsForResourcesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTagsForResourcesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourcesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTagsForResourcesWithContext(_a0 context.Context, _a1 *route53.ListTagsForResourcesInput, _a2 ...request.Option) (*route53.ListTagsForResourcesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTagsForResourcesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTagsForResourcesInput, ...request.Option) (*route53.ListTagsForResourcesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTagsForResourcesInput, ...request.Option) *route53.ListTagsForResourcesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTagsForResourcesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTagsForResourcesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicies provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicies(_a0 *route53.ListTrafficPoliciesInput) (*route53.ListTrafficPoliciesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTrafficPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPoliciesInput) (*route53.ListTrafficPoliciesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPoliciesInput) *route53.ListTrafficPoliciesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPoliciesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPoliciesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPoliciesRequest(_a0 *route53.ListTrafficPoliciesInput) (*request.Request, *route53.ListTrafficPoliciesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTrafficPoliciesOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPoliciesInput) (*request.Request, *route53.ListTrafficPoliciesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPoliciesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPoliciesInput) *route53.ListTrafficPoliciesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTrafficPoliciesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrafficPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTrafficPoliciesWithContext(_a0 context.Context, _a1 *route53.ListTrafficPoliciesInput, _a2 ...request.Option) (*route53.ListTrafficPoliciesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTrafficPoliciesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPoliciesInput, ...request.Option) (*route53.ListTrafficPoliciesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPoliciesInput, ...request.Option) *route53.ListTrafficPoliciesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPoliciesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTrafficPoliciesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstances provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstances(_a0 *route53.ListTrafficPolicyInstancesInput) (*route53.ListTrafficPolicyInstancesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTrafficPolicyInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesInput) (*route53.ListTrafficPolicyInstancesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesInput) *route53.ListTrafficPolicyInstancesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByHostedZone provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByHostedZone(_a0 *route53.ListTrafficPolicyInstancesByHostedZoneInput) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTrafficPolicyInstancesByHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) *route53.ListTrafficPolicyInstancesByHostedZoneOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesByHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByHostedZoneRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByHostedZoneRequest(_a0 *route53.ListTrafficPolicyInstancesByHostedZoneInput) (*request.Request, *route53.ListTrafficPolicyInstancesByHostedZoneOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTrafficPolicyInstancesByHostedZoneOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) (*request.Request, *route53.ListTrafficPolicyInstancesByHostedZoneOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesByHostedZoneInput) *route53.ListTrafficPolicyInstancesByHostedZoneOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTrafficPolicyInstancesByHostedZoneOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByHostedZoneWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByHostedZoneWithContext(_a0 context.Context, _a1 *route53.ListTrafficPolicyInstancesByHostedZoneInput, _a2 ...request.Option) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTrafficPolicyInstancesByHostedZoneOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesByHostedZoneInput, ...request.Option) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesByHostedZoneInput, ...request.Option) *route53.ListTrafficPolicyInstancesByHostedZoneOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesByHostedZoneOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTrafficPolicyInstancesByHostedZoneInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByPolicy(_a0 *route53.ListTrafficPolicyInstancesByPolicyInput) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTrafficPolicyInstancesByPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) *route53.ListTrafficPolicyInstancesByPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesByPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByPolicyRequest(_a0 *route53.ListTrafficPolicyInstancesByPolicyInput) (*request.Request, *route53.ListTrafficPolicyInstancesByPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTrafficPolicyInstancesByPolicyOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) (*request.Request, *route53.ListTrafficPolicyInstancesByPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesByPolicyInput) *route53.ListTrafficPolicyInstancesByPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTrafficPolicyInstancesByPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesByPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesByPolicyWithContext(_a0 context.Context, _a1 *route53.ListTrafficPolicyInstancesByPolicyInput, _a2 ...request.Option) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTrafficPolicyInstancesByPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesByPolicyInput, ...request.Option) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesByPolicyInput, ...request.Option) *route53.ListTrafficPolicyInstancesByPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesByPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTrafficPolicyInstancesByPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesRequest(_a0 *route53.ListTrafficPolicyInstancesInput) (*request.Request, *route53.ListTrafficPolicyInstancesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTrafficPolicyInstancesOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesInput) (*request.Request, *route53.ListTrafficPolicyInstancesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyInstancesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyInstancesInput) *route53.ListTrafficPolicyInstancesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTrafficPolicyInstancesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTrafficPolicyInstancesWithContext(_a0 context.Context, _a1 *route53.ListTrafficPolicyInstancesInput, _a2 ...request.Option) (*route53.ListTrafficPolicyInstancesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTrafficPolicyInstancesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesInput, ...request.Option) (*route53.ListTrafficPolicyInstancesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyInstancesInput, ...request.Option) *route53.ListTrafficPolicyInstancesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyInstancesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTrafficPolicyInstancesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyVersions provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyVersions(_a0 *route53.ListTrafficPolicyVersionsInput) (*route53.ListTrafficPolicyVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListTrafficPolicyVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyVersionsInput) (*route53.ListTrafficPolicyVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyVersionsInput) *route53.ListTrafficPolicyVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListTrafficPolicyVersionsRequest(_a0 *route53.ListTrafficPolicyVersionsInput) (*request.Request, *route53.ListTrafficPolicyVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListTrafficPolicyVersionsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyVersionsInput) (*request.Request, *route53.ListTrafficPolicyVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListTrafficPolicyVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListTrafficPolicyVersionsInput) *route53.ListTrafficPolicyVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListTrafficPolicyVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTrafficPolicyVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListTrafficPolicyVersionsWithContext(_a0 context.Context, _a1 *route53.ListTrafficPolicyVersionsInput, _a2 ...request.Option) (*route53.ListTrafficPolicyVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListTrafficPolicyVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyVersionsInput, ...request.Option) (*route53.ListTrafficPolicyVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListTrafficPolicyVersionsInput, ...request.Option) *route53.ListTrafficPolicyVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListTrafficPolicyVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListTrafficPolicyVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVPCAssociationAuthorizations provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListVPCAssociationAuthorizations(_a0 *route53.ListVPCAssociationAuthorizationsInput) (*route53.ListVPCAssociationAuthorizationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.ListVPCAssociationAuthorizationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.ListVPCAssociationAuthorizationsInput) (*route53.ListVPCAssociationAuthorizationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListVPCAssociationAuthorizationsInput) *route53.ListVPCAssociationAuthorizationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListVPCAssociationAuthorizationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListVPCAssociationAuthorizationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListVPCAssociationAuthorizationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) ListVPCAssociationAuthorizationsRequest(_a0 *route53.ListVPCAssociationAuthorizationsInput) (*request.Request, *route53.ListVPCAssociationAuthorizationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.ListVPCAssociationAuthorizationsOutput
- if rf, ok := ret.Get(0).(func(*route53.ListVPCAssociationAuthorizationsInput) (*request.Request, *route53.ListVPCAssociationAuthorizationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.ListVPCAssociationAuthorizationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.ListVPCAssociationAuthorizationsInput) *route53.ListVPCAssociationAuthorizationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.ListVPCAssociationAuthorizationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListVPCAssociationAuthorizationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) ListVPCAssociationAuthorizationsWithContext(_a0 context.Context, _a1 *route53.ListVPCAssociationAuthorizationsInput, _a2 ...request.Option) (*route53.ListVPCAssociationAuthorizationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.ListVPCAssociationAuthorizationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListVPCAssociationAuthorizationsInput, ...request.Option) (*route53.ListVPCAssociationAuthorizationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.ListVPCAssociationAuthorizationsInput, ...request.Option) *route53.ListVPCAssociationAuthorizationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.ListVPCAssociationAuthorizationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.ListVPCAssociationAuthorizationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestDNSAnswer provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) TestDNSAnswer(_a0 *route53.TestDNSAnswerInput) (*route53.TestDNSAnswerOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.TestDNSAnswerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.TestDNSAnswerInput) (*route53.TestDNSAnswerOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.TestDNSAnswerInput) *route53.TestDNSAnswerOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.TestDNSAnswerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.TestDNSAnswerInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TestDNSAnswerRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) TestDNSAnswerRequest(_a0 *route53.TestDNSAnswerInput) (*request.Request, *route53.TestDNSAnswerOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.TestDNSAnswerOutput
- if rf, ok := ret.Get(0).(func(*route53.TestDNSAnswerInput) (*request.Request, *route53.TestDNSAnswerOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.TestDNSAnswerInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.TestDNSAnswerInput) *route53.TestDNSAnswerOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.TestDNSAnswerOutput)
- }
- }
-
- return r0, r1
-}
-
-// TestDNSAnswerWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) TestDNSAnswerWithContext(_a0 context.Context, _a1 *route53.TestDNSAnswerInput, _a2 ...request.Option) (*route53.TestDNSAnswerOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.TestDNSAnswerOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.TestDNSAnswerInput, ...request.Option) (*route53.TestDNSAnswerOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.TestDNSAnswerInput, ...request.Option) *route53.TestDNSAnswerOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.TestDNSAnswerOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.TestDNSAnswerInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateHealthCheck provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateHealthCheck(_a0 *route53.UpdateHealthCheckInput) (*route53.UpdateHealthCheckOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.UpdateHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.UpdateHealthCheckInput) (*route53.UpdateHealthCheckOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateHealthCheckInput) *route53.UpdateHealthCheckOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateHealthCheckInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateHealthCheckRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateHealthCheckRequest(_a0 *route53.UpdateHealthCheckInput) (*request.Request, *route53.UpdateHealthCheckOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.UpdateHealthCheckOutput
- if rf, ok := ret.Get(0).(func(*route53.UpdateHealthCheckInput) (*request.Request, *route53.UpdateHealthCheckOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateHealthCheckInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateHealthCheckInput) *route53.UpdateHealthCheckOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.UpdateHealthCheckOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateHealthCheckWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) UpdateHealthCheckWithContext(_a0 context.Context, _a1 *route53.UpdateHealthCheckInput, _a2 ...request.Option) (*route53.UpdateHealthCheckOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.UpdateHealthCheckOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateHealthCheckInput, ...request.Option) (*route53.UpdateHealthCheckOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateHealthCheckInput, ...request.Option) *route53.UpdateHealthCheckOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateHealthCheckOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.UpdateHealthCheckInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateHostedZoneComment provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateHostedZoneComment(_a0 *route53.UpdateHostedZoneCommentInput) (*route53.UpdateHostedZoneCommentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.UpdateHostedZoneCommentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.UpdateHostedZoneCommentInput) (*route53.UpdateHostedZoneCommentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateHostedZoneCommentInput) *route53.UpdateHostedZoneCommentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateHostedZoneCommentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateHostedZoneCommentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateHostedZoneCommentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateHostedZoneCommentRequest(_a0 *route53.UpdateHostedZoneCommentInput) (*request.Request, *route53.UpdateHostedZoneCommentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.UpdateHostedZoneCommentOutput
- if rf, ok := ret.Get(0).(func(*route53.UpdateHostedZoneCommentInput) (*request.Request, *route53.UpdateHostedZoneCommentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateHostedZoneCommentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateHostedZoneCommentInput) *route53.UpdateHostedZoneCommentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.UpdateHostedZoneCommentOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateHostedZoneCommentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) UpdateHostedZoneCommentWithContext(_a0 context.Context, _a1 *route53.UpdateHostedZoneCommentInput, _a2 ...request.Option) (*route53.UpdateHostedZoneCommentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.UpdateHostedZoneCommentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateHostedZoneCommentInput, ...request.Option) (*route53.UpdateHostedZoneCommentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateHostedZoneCommentInput, ...request.Option) *route53.UpdateHostedZoneCommentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateHostedZoneCommentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.UpdateHostedZoneCommentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyComment provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateTrafficPolicyComment(_a0 *route53.UpdateTrafficPolicyCommentInput) (*route53.UpdateTrafficPolicyCommentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.UpdateTrafficPolicyCommentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyCommentInput) (*route53.UpdateTrafficPolicyCommentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyCommentInput) *route53.UpdateTrafficPolicyCommentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateTrafficPolicyCommentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateTrafficPolicyCommentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyCommentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateTrafficPolicyCommentRequest(_a0 *route53.UpdateTrafficPolicyCommentInput) (*request.Request, *route53.UpdateTrafficPolicyCommentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.UpdateTrafficPolicyCommentOutput
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyCommentInput) (*request.Request, *route53.UpdateTrafficPolicyCommentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyCommentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateTrafficPolicyCommentInput) *route53.UpdateTrafficPolicyCommentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.UpdateTrafficPolicyCommentOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyCommentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) UpdateTrafficPolicyCommentWithContext(_a0 context.Context, _a1 *route53.UpdateTrafficPolicyCommentInput, _a2 ...request.Option) (*route53.UpdateTrafficPolicyCommentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.UpdateTrafficPolicyCommentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateTrafficPolicyCommentInput, ...request.Option) (*route53.UpdateTrafficPolicyCommentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateTrafficPolicyCommentInput, ...request.Option) *route53.UpdateTrafficPolicyCommentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateTrafficPolicyCommentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.UpdateTrafficPolicyCommentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyInstance provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateTrafficPolicyInstance(_a0 *route53.UpdateTrafficPolicyInstanceInput) (*route53.UpdateTrafficPolicyInstanceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *route53.UpdateTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyInstanceInput) (*route53.UpdateTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyInstanceInput) *route53.UpdateTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateTrafficPolicyInstanceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyInstanceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) UpdateTrafficPolicyInstanceRequest(_a0 *route53.UpdateTrafficPolicyInstanceInput) (*request.Request, *route53.UpdateTrafficPolicyInstanceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *route53.UpdateTrafficPolicyInstanceOutput
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyInstanceInput) (*request.Request, *route53.UpdateTrafficPolicyInstanceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*route53.UpdateTrafficPolicyInstanceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*route53.UpdateTrafficPolicyInstanceInput) *route53.UpdateTrafficPolicyInstanceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*route53.UpdateTrafficPolicyInstanceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateTrafficPolicyInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) UpdateTrafficPolicyInstanceWithContext(_a0 context.Context, _a1 *route53.UpdateTrafficPolicyInstanceInput, _a2 ...request.Option) (*route53.UpdateTrafficPolicyInstanceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *route53.UpdateTrafficPolicyInstanceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateTrafficPolicyInstanceInput, ...request.Option) (*route53.UpdateTrafficPolicyInstanceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *route53.UpdateTrafficPolicyInstanceInput, ...request.Option) *route53.UpdateTrafficPolicyInstanceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*route53.UpdateTrafficPolicyInstanceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *route53.UpdateTrafficPolicyInstanceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilResourceRecordSetsChanged provides a mock function with given fields: _a0
-func (_m *MockFakeRoute53) WaitUntilResourceRecordSetsChanged(_a0 *route53.GetChangeInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*route53.GetChangeInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilResourceRecordSetsChangedWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeRoute53) WaitUntilResourceRecordSetsChangedWithContext(_a0 context.Context, _a1 *route53.GetChangeInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *route53.GetChangeInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-type mockConstructorTestingTNewMockFakeRoute53 interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeRoute53 creates a new instance of MockFakeRoute53. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeRoute53(t mockConstructorTestingTNewMockFakeRoute53) *MockFakeRoute53 {
- mock := &MockFakeRoute53{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeS3.go b/test/aws/mock_FakeS3.go
deleted file mode 100644
index ff2ef25f3..000000000
--- a/test/aws/mock_FakeS3.go
+++ /dev/null
@@ -1,8786 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- request "github.com/aws/aws-sdk-go/aws/request"
- mock "github.com/stretchr/testify/mock"
-
- s3 "github.com/aws/aws-sdk-go/service/s3"
-)
-
-// MockFakeS3 is an autogenerated mock type for the FakeS3 type
-type MockFakeS3 struct {
- mock.Mock
-}
-
-// AbortMultipartUpload provides a mock function with given fields: _a0
-func (_m *MockFakeS3) AbortMultipartUpload(_a0 *s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.AbortMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.AbortMultipartUploadInput) *s3.AbortMultipartUploadOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.AbortMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.AbortMultipartUploadInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AbortMultipartUploadRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) AbortMultipartUploadRequest(_a0 *s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.AbortMultipartUploadOutput
- if rf, ok := ret.Get(0).(func(*s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.AbortMultipartUploadInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.AbortMultipartUploadInput) *s3.AbortMultipartUploadOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.AbortMultipartUploadOutput)
- }
- }
-
- return r0, r1
-}
-
-// AbortMultipartUploadWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) AbortMultipartUploadWithContext(_a0 context.Context, _a1 *s3.AbortMultipartUploadInput, _a2 ...request.Option) (*s3.AbortMultipartUploadOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.AbortMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.AbortMultipartUploadInput, ...request.Option) (*s3.AbortMultipartUploadOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.AbortMultipartUploadInput, ...request.Option) *s3.AbortMultipartUploadOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.AbortMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.AbortMultipartUploadInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteMultipartUpload provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CompleteMultipartUpload(_a0 *s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.CompleteMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CompleteMultipartUploadInput) *s3.CompleteMultipartUploadOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CompleteMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CompleteMultipartUploadInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CompleteMultipartUploadRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CompleteMultipartUploadRequest(_a0 *s3.CompleteMultipartUploadInput) (*request.Request, *s3.CompleteMultipartUploadOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.CompleteMultipartUploadOutput
- if rf, ok := ret.Get(0).(func(*s3.CompleteMultipartUploadInput) (*request.Request, *s3.CompleteMultipartUploadOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CompleteMultipartUploadInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CompleteMultipartUploadInput) *s3.CompleteMultipartUploadOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.CompleteMultipartUploadOutput)
- }
- }
-
- return r0, r1
-}
-
-// CompleteMultipartUploadWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) CompleteMultipartUploadWithContext(_a0 context.Context, _a1 *s3.CompleteMultipartUploadInput, _a2 ...request.Option) (*s3.CompleteMultipartUploadOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.CompleteMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CompleteMultipartUploadInput, ...request.Option) (*s3.CompleteMultipartUploadOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CompleteMultipartUploadInput, ...request.Option) *s3.CompleteMultipartUploadOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CompleteMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.CompleteMultipartUploadInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CopyObject(_a0 *s3.CopyObjectInput) (*s3.CopyObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.CopyObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.CopyObjectInput) (*s3.CopyObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CopyObjectInput) *s3.CopyObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CopyObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CopyObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CopyObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CopyObjectRequest(_a0 *s3.CopyObjectInput) (*request.Request, *s3.CopyObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.CopyObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.CopyObjectInput) (*request.Request, *s3.CopyObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CopyObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CopyObjectInput) *s3.CopyObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.CopyObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// CopyObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) CopyObjectWithContext(_a0 context.Context, _a1 *s3.CopyObjectInput, _a2 ...request.Option) (*s3.CopyObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.CopyObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CopyObjectInput, ...request.Option) (*s3.CopyObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CopyObjectInput, ...request.Option) *s3.CopyObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CopyObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.CopyObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CreateBucket(_a0 *s3.CreateBucketInput) (*s3.CreateBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.CreateBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.CreateBucketInput) (*s3.CreateBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CreateBucketInput) *s3.CreateBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CreateBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CreateBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CreateBucketRequest(_a0 *s3.CreateBucketInput) (*request.Request, *s3.CreateBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.CreateBucketOutput
- if rf, ok := ret.Get(0).(func(*s3.CreateBucketInput) (*request.Request, *s3.CreateBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CreateBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CreateBucketInput) *s3.CreateBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.CreateBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) CreateBucketWithContext(_a0 context.Context, _a1 *s3.CreateBucketInput, _a2 ...request.Option) (*s3.CreateBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.CreateBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CreateBucketInput, ...request.Option) (*s3.CreateBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CreateBucketInput, ...request.Option) *s3.CreateBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CreateBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.CreateBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMultipartUpload provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CreateMultipartUpload(_a0 *s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.CreateMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CreateMultipartUploadInput) *s3.CreateMultipartUploadOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CreateMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CreateMultipartUploadInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMultipartUploadRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) CreateMultipartUploadRequest(_a0 *s3.CreateMultipartUploadInput) (*request.Request, *s3.CreateMultipartUploadOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.CreateMultipartUploadOutput
- if rf, ok := ret.Get(0).(func(*s3.CreateMultipartUploadInput) (*request.Request, *s3.CreateMultipartUploadOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.CreateMultipartUploadInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.CreateMultipartUploadInput) *s3.CreateMultipartUploadOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.CreateMultipartUploadOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateMultipartUploadWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) CreateMultipartUploadWithContext(_a0 context.Context, _a1 *s3.CreateMultipartUploadInput, _a2 ...request.Option) (*s3.CreateMultipartUploadOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.CreateMultipartUploadOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CreateMultipartUploadInput, ...request.Option) (*s3.CreateMultipartUploadOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.CreateMultipartUploadInput, ...request.Option) *s3.CreateMultipartUploadOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.CreateMultipartUploadOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.CreateMultipartUploadInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucket(_a0 *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInput) *s3.DeleteBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketAnalyticsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketAnalyticsConfiguration(_a0 *s3.DeleteBucketAnalyticsConfigurationInput) (*s3.DeleteBucketAnalyticsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketAnalyticsConfigurationInput) (*s3.DeleteBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketAnalyticsConfigurationInput) *s3.DeleteBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketAnalyticsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketAnalyticsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketAnalyticsConfigurationRequest(_a0 *s3.DeleteBucketAnalyticsConfigurationInput) (*request.Request, *s3.DeleteBucketAnalyticsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketAnalyticsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketAnalyticsConfigurationInput) (*request.Request, *s3.DeleteBucketAnalyticsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketAnalyticsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketAnalyticsConfigurationInput) *s3.DeleteBucketAnalyticsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketAnalyticsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketAnalyticsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketAnalyticsConfigurationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketAnalyticsConfigurationInput, _a2 ...request.Option) (*s3.DeleteBucketAnalyticsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketAnalyticsConfigurationInput, ...request.Option) (*s3.DeleteBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketAnalyticsConfigurationInput, ...request.Option) *s3.DeleteBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketAnalyticsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketCors provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketCors(_a0 *s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketCorsInput) *s3.DeleteBucketCorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketCorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketCorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketCorsRequest(_a0 *s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketCorsOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketCorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketCorsInput) *s3.DeleteBucketCorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketCorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketCorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketCorsWithContext(_a0 context.Context, _a1 *s3.DeleteBucketCorsInput, _a2 ...request.Option) (*s3.DeleteBucketCorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketCorsInput, ...request.Option) (*s3.DeleteBucketCorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketCorsInput, ...request.Option) *s3.DeleteBucketCorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketCorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketEncryption provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketEncryption(_a0 *s3.DeleteBucketEncryptionInput) (*s3.DeleteBucketEncryptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketEncryptionInput) (*s3.DeleteBucketEncryptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketEncryptionInput) *s3.DeleteBucketEncryptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketEncryptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketEncryptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketEncryptionRequest(_a0 *s3.DeleteBucketEncryptionInput) (*request.Request, *s3.DeleteBucketEncryptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketEncryptionOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketEncryptionInput) (*request.Request, *s3.DeleteBucketEncryptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketEncryptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketEncryptionInput) *s3.DeleteBucketEncryptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketEncryptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketEncryptionWithContext(_a0 context.Context, _a1 *s3.DeleteBucketEncryptionInput, _a2 ...request.Option) (*s3.DeleteBucketEncryptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketEncryptionInput, ...request.Option) (*s3.DeleteBucketEncryptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketEncryptionInput, ...request.Option) *s3.DeleteBucketEncryptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketEncryptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfiguration(_a0 *s3.DeleteBucketIntelligentTieringConfigurationInput) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfigurationRequest(_a0 *s3.DeleteBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.DeleteBucketIntelligentTieringConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketIntelligentTieringConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.DeleteBucketIntelligentTieringConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketInventoryConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketInventoryConfiguration(_a0 *s3.DeleteBucketInventoryConfigurationInput) (*s3.DeleteBucketInventoryConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInventoryConfigurationInput) (*s3.DeleteBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInventoryConfigurationInput) *s3.DeleteBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketInventoryConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketInventoryConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketInventoryConfigurationRequest(_a0 *s3.DeleteBucketInventoryConfigurationInput) (*request.Request, *s3.DeleteBucketInventoryConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketInventoryConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInventoryConfigurationInput) (*request.Request, *s3.DeleteBucketInventoryConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInventoryConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketInventoryConfigurationInput) *s3.DeleteBucketInventoryConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketInventoryConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketInventoryConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketInventoryConfigurationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketInventoryConfigurationInput, _a2 ...request.Option) (*s3.DeleteBucketInventoryConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketInventoryConfigurationInput, ...request.Option) (*s3.DeleteBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketInventoryConfigurationInput, ...request.Option) *s3.DeleteBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketInventoryConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycle provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketLifecycle(_a0 *s3.DeleteBucketLifecycleInput) (*s3.DeleteBucketLifecycleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketLifecycleInput) (*s3.DeleteBucketLifecycleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketLifecycleInput) *s3.DeleteBucketLifecycleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketLifecycleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketLifecycleRequest(_a0 *s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketLifecycleOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketLifecycleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketLifecycleInput) *s3.DeleteBucketLifecycleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketLifecycleOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketLifecycleWithContext(_a0 context.Context, _a1 *s3.DeleteBucketLifecycleInput, _a2 ...request.Option) (*s3.DeleteBucketLifecycleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketLifecycleInput, ...request.Option) (*s3.DeleteBucketLifecycleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketLifecycleInput, ...request.Option) *s3.DeleteBucketLifecycleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketLifecycleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketMetricsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketMetricsConfiguration(_a0 *s3.DeleteBucketMetricsConfigurationInput) (*s3.DeleteBucketMetricsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketMetricsConfigurationInput) (*s3.DeleteBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketMetricsConfigurationInput) *s3.DeleteBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketMetricsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketMetricsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketMetricsConfigurationRequest(_a0 *s3.DeleteBucketMetricsConfigurationInput) (*request.Request, *s3.DeleteBucketMetricsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketMetricsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketMetricsConfigurationInput) (*request.Request, *s3.DeleteBucketMetricsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketMetricsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketMetricsConfigurationInput) *s3.DeleteBucketMetricsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketMetricsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketMetricsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketMetricsConfigurationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketMetricsConfigurationInput, _a2 ...request.Option) (*s3.DeleteBucketMetricsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketMetricsConfigurationInput, ...request.Option) (*s3.DeleteBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketMetricsConfigurationInput, ...request.Option) *s3.DeleteBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketMetricsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketOwnershipControls provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketOwnershipControls(_a0 *s3.DeleteBucketOwnershipControlsInput) (*s3.DeleteBucketOwnershipControlsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) (*s3.DeleteBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) *s3.DeleteBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketOwnershipControlsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketOwnershipControlsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketOwnershipControlsRequest(_a0 *s3.DeleteBucketOwnershipControlsInput) (*request.Request, *s3.DeleteBucketOwnershipControlsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketOwnershipControlsOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) (*request.Request, *s3.DeleteBucketOwnershipControlsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketOwnershipControlsInput) *s3.DeleteBucketOwnershipControlsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketOwnershipControlsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.DeleteBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.DeleteBucketOwnershipControlsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) (*s3.DeleteBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) *s3.DeleteBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketPolicy(_a0 *s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketPolicyInput) *s3.DeleteBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketPolicyRequest(_a0 *s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketPolicyInput) *s3.DeleteBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketPolicyWithContext(_a0 context.Context, _a1 *s3.DeleteBucketPolicyInput, _a2 ...request.Option) (*s3.DeleteBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketPolicyInput, ...request.Option) (*s3.DeleteBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketPolicyInput, ...request.Option) *s3.DeleteBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketReplication provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketReplication(_a0 *s3.DeleteBucketReplicationInput) (*s3.DeleteBucketReplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketReplicationInput) (*s3.DeleteBucketReplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketReplicationInput) *s3.DeleteBucketReplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketReplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketReplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketReplicationRequest(_a0 *s3.DeleteBucketReplicationInput) (*request.Request, *s3.DeleteBucketReplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketReplicationOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketReplicationInput) (*request.Request, *s3.DeleteBucketReplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketReplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketReplicationInput) *s3.DeleteBucketReplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketReplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketReplicationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketReplicationInput, _a2 ...request.Option) (*s3.DeleteBucketReplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketReplicationInput, ...request.Option) (*s3.DeleteBucketReplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketReplicationInput, ...request.Option) *s3.DeleteBucketReplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketReplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketRequest(_a0 *s3.DeleteBucketInput) (*request.Request, *s3.DeleteBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInput) (*request.Request, *s3.DeleteBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketInput) *s3.DeleteBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketTagging(_a0 *s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketTaggingInput) *s3.DeleteBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketTaggingRequest(_a0 *s3.DeleteBucketTaggingInput) (*request.Request, *s3.DeleteBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketTaggingInput) (*request.Request, *s3.DeleteBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketTaggingInput) *s3.DeleteBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketTaggingWithContext(_a0 context.Context, _a1 *s3.DeleteBucketTaggingInput, _a2 ...request.Option) (*s3.DeleteBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketTaggingInput, ...request.Option) (*s3.DeleteBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketTaggingInput, ...request.Option) *s3.DeleteBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketWebsite provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketWebsite(_a0 *s3.DeleteBucketWebsiteInput) (*s3.DeleteBucketWebsiteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketWebsiteInput) (*s3.DeleteBucketWebsiteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketWebsiteInput) *s3.DeleteBucketWebsiteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketWebsiteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketWebsiteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteBucketWebsiteRequest(_a0 *s3.DeleteBucketWebsiteInput) (*request.Request, *s3.DeleteBucketWebsiteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteBucketWebsiteOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketWebsiteInput) (*request.Request, *s3.DeleteBucketWebsiteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteBucketWebsiteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteBucketWebsiteInput) *s3.DeleteBucketWebsiteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteBucketWebsiteOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketWebsiteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketWebsiteWithContext(_a0 context.Context, _a1 *s3.DeleteBucketWebsiteInput, _a2 ...request.Option) (*s3.DeleteBucketWebsiteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketWebsiteInput, ...request.Option) (*s3.DeleteBucketWebsiteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketWebsiteInput, ...request.Option) *s3.DeleteBucketWebsiteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketWebsiteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteBucketWithContext(_a0 context.Context, _a1 *s3.DeleteBucketInput, _a2 ...request.Option) (*s3.DeleteBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketInput, ...request.Option) (*s3.DeleteBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketInput, ...request.Option) *s3.DeleteBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObject(_a0 *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectInput) *s3.DeleteObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObjectRequest(_a0 *s3.DeleteObjectInput) (*request.Request, *s3.DeleteObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectInput) (*request.Request, *s3.DeleteObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectInput) *s3.DeleteObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteObjectTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObjectTagging(_a0 *s3.DeleteObjectTaggingInput) (*s3.DeleteObjectTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectTaggingInput) (*s3.DeleteObjectTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectTaggingInput) *s3.DeleteObjectTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObjectTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObjectTaggingRequest(_a0 *s3.DeleteObjectTaggingInput) (*request.Request, *s3.DeleteObjectTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteObjectTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectTaggingInput) (*request.Request, *s3.DeleteObjectTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectTaggingInput) *s3.DeleteObjectTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteObjectTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteObjectTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteObjectTaggingWithContext(_a0 context.Context, _a1 *s3.DeleteObjectTaggingInput, _a2 ...request.Option) (*s3.DeleteObjectTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectTaggingInput, ...request.Option) (*s3.DeleteObjectTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectTaggingInput, ...request.Option) *s3.DeleteObjectTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteObjectTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteObjectWithContext(_a0 context.Context, _a1 *s3.DeleteObjectInput, _a2 ...request.Option) (*s3.DeleteObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectInput, ...request.Option) (*s3.DeleteObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectInput, ...request.Option) *s3.DeleteObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObjects provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObjects(_a0 *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeleteObjectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectsInput) *s3.DeleteObjectsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteObjectsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeleteObjectsRequest(_a0 *s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeleteObjectsOutput
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeleteObjectsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeleteObjectsInput) *s3.DeleteObjectsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeleteObjectsOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteObjectsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeleteObjectsWithContext(_a0 context.Context, _a1 *s3.DeleteObjectsInput, _a2 ...request.Option) (*s3.DeleteObjectsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeleteObjectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectsInput, ...request.Option) (*s3.DeleteObjectsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteObjectsInput, ...request.Option) *s3.DeleteObjectsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeleteObjectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteObjectsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeletePublicAccessBlock(_a0 *s3.DeletePublicAccessBlockInput) (*s3.DeletePublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.DeletePublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.DeletePublicAccessBlockInput) (*s3.DeletePublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeletePublicAccessBlockInput) *s3.DeletePublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeletePublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeletePublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) DeletePublicAccessBlockRequest(_a0 *s3.DeletePublicAccessBlockInput) (*request.Request, *s3.DeletePublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.DeletePublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3.DeletePublicAccessBlockInput) (*request.Request, *s3.DeletePublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.DeletePublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.DeletePublicAccessBlockInput) *s3.DeletePublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.DeletePublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) DeletePublicAccessBlockWithContext(_a0 context.Context, _a1 *s3.DeletePublicAccessBlockInput, _a2 ...request.Option) (*s3.DeletePublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.DeletePublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeletePublicAccessBlockInput, ...request.Option) (*s3.DeletePublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.DeletePublicAccessBlockInput, ...request.Option) *s3.DeletePublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.DeletePublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.DeletePublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAccelerateConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAccelerateConfiguration(_a0 *s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketAccelerateConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAccelerateConfigurationInput) *s3.GetBucketAccelerateConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAccelerateConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAccelerateConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAccelerateConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAccelerateConfigurationRequest(_a0 *s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketAccelerateConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAccelerateConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAccelerateConfigurationInput) *s3.GetBucketAccelerateConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketAccelerateConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketAccelerateConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketAccelerateConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketAccelerateConfigurationInput, _a2 ...request.Option) (*s3.GetBucketAccelerateConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketAccelerateConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAccelerateConfigurationInput, ...request.Option) (*s3.GetBucketAccelerateConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAccelerateConfigurationInput, ...request.Option) *s3.GetBucketAccelerateConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAccelerateConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketAccelerateConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAcl provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAcl(_a0 *s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAclInput) *s3.GetBucketAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAclRequest(_a0 *s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketAclOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAclInput) *s3.GetBucketAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketAclWithContext(_a0 context.Context, _a1 *s3.GetBucketAclInput, _a2 ...request.Option) (*s3.GetBucketAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAclInput, ...request.Option) (*s3.GetBucketAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAclInput, ...request.Option) *s3.GetBucketAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAnalyticsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAnalyticsConfiguration(_a0 *s3.GetBucketAnalyticsConfigurationInput) (*s3.GetBucketAnalyticsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAnalyticsConfigurationInput) (*s3.GetBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAnalyticsConfigurationInput) *s3.GetBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAnalyticsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketAnalyticsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketAnalyticsConfigurationRequest(_a0 *s3.GetBucketAnalyticsConfigurationInput) (*request.Request, *s3.GetBucketAnalyticsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketAnalyticsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAnalyticsConfigurationInput) (*request.Request, *s3.GetBucketAnalyticsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketAnalyticsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketAnalyticsConfigurationInput) *s3.GetBucketAnalyticsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketAnalyticsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketAnalyticsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketAnalyticsConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketAnalyticsConfigurationInput, _a2 ...request.Option) (*s3.GetBucketAnalyticsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAnalyticsConfigurationInput, ...request.Option) (*s3.GetBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketAnalyticsConfigurationInput, ...request.Option) *s3.GetBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketAnalyticsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketCors provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketCors(_a0 *s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketCorsInput) *s3.GetBucketCorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketCorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketCorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketCorsRequest(_a0 *s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketCorsOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketCorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketCorsInput) *s3.GetBucketCorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketCorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketCorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketCorsWithContext(_a0 context.Context, _a1 *s3.GetBucketCorsInput, _a2 ...request.Option) (*s3.GetBucketCorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketCorsInput, ...request.Option) (*s3.GetBucketCorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketCorsInput, ...request.Option) *s3.GetBucketCorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketCorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketEncryption provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketEncryption(_a0 *s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketEncryptionInput) *s3.GetBucketEncryptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketEncryptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketEncryptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketEncryptionRequest(_a0 *s3.GetBucketEncryptionInput) (*request.Request, *s3.GetBucketEncryptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketEncryptionOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketEncryptionInput) (*request.Request, *s3.GetBucketEncryptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketEncryptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketEncryptionInput) *s3.GetBucketEncryptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketEncryptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketEncryptionWithContext(_a0 context.Context, _a1 *s3.GetBucketEncryptionInput, _a2 ...request.Option) (*s3.GetBucketEncryptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketEncryptionInput, ...request.Option) (*s3.GetBucketEncryptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketEncryptionInput, ...request.Option) *s3.GetBucketEncryptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketEncryptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketIntelligentTieringConfiguration(_a0 *s3.GetBucketIntelligentTieringConfigurationInput) (*s3.GetBucketIntelligentTieringConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) (*s3.GetBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *s3.GetBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketIntelligentTieringConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketIntelligentTieringConfigurationRequest(_a0 *s3.GetBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.GetBucketIntelligentTieringConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketIntelligentTieringConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.GetBucketIntelligentTieringConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *s3.GetBucketIntelligentTieringConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.GetBucketIntelligentTieringConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.GetBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.GetBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketInventoryConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketInventoryConfiguration(_a0 *s3.GetBucketInventoryConfigurationInput) (*s3.GetBucketInventoryConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketInventoryConfigurationInput) (*s3.GetBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketInventoryConfigurationInput) *s3.GetBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketInventoryConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketInventoryConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketInventoryConfigurationRequest(_a0 *s3.GetBucketInventoryConfigurationInput) (*request.Request, *s3.GetBucketInventoryConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketInventoryConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketInventoryConfigurationInput) (*request.Request, *s3.GetBucketInventoryConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketInventoryConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketInventoryConfigurationInput) *s3.GetBucketInventoryConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketInventoryConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketInventoryConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketInventoryConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketInventoryConfigurationInput, _a2 ...request.Option) (*s3.GetBucketInventoryConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketInventoryConfigurationInput, ...request.Option) (*s3.GetBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketInventoryConfigurationInput, ...request.Option) *s3.GetBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketInventoryConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycle provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLifecycle(_a0 *s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleInput) *s3.GetBucketLifecycleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLifecycleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLifecycleConfiguration(_a0 *s3.GetBucketLifecycleConfigurationInput) (*s3.GetBucketLifecycleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleConfigurationInput) (*s3.GetBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleConfigurationInput) *s3.GetBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLifecycleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLifecycleConfigurationRequest(_a0 *s3.GetBucketLifecycleConfigurationInput) (*request.Request, *s3.GetBucketLifecycleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketLifecycleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleConfigurationInput) (*request.Request, *s3.GetBucketLifecycleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLifecycleConfigurationInput) *s3.GetBucketLifecycleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketLifecycleConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketLifecycleConfigurationInput, _a2 ...request.Option) (*s3.GetBucketLifecycleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLifecycleConfigurationInput, ...request.Option) (*s3.GetBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLifecycleConfigurationInput, ...request.Option) *s3.GetBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketLifecycleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLifecycleRequest(_a0 *s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketLifecycleOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLifecycleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLifecycleInput) *s3.GetBucketLifecycleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketLifecycleOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketLifecycleWithContext(_a0 context.Context, _a1 *s3.GetBucketLifecycleInput, _a2 ...request.Option) (*s3.GetBucketLifecycleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLifecycleInput, ...request.Option) (*s3.GetBucketLifecycleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLifecycleInput, ...request.Option) *s3.GetBucketLifecycleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketLifecycleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLocation provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLocation(_a0 *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketLocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLocationInput) *s3.GetBucketLocationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLocationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLocationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLocationRequest(_a0 *s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketLocationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLocationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLocationInput) *s3.GetBucketLocationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketLocationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketLocationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketLocationWithContext(_a0 context.Context, _a1 *s3.GetBucketLocationInput, _a2 ...request.Option) (*s3.GetBucketLocationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketLocationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLocationInput, ...request.Option) (*s3.GetBucketLocationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLocationInput, ...request.Option) *s3.GetBucketLocationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLocationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketLocationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLogging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLogging(_a0 *s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLoggingInput) *s3.GetBucketLoggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLoggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLoggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketLoggingRequest(_a0 *s3.GetBucketLoggingInput) (*request.Request, *s3.GetBucketLoggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketLoggingOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLoggingInput) (*request.Request, *s3.GetBucketLoggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketLoggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketLoggingInput) *s3.GetBucketLoggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketLoggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketLoggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketLoggingWithContext(_a0 context.Context, _a1 *s3.GetBucketLoggingInput, _a2 ...request.Option) (*s3.GetBucketLoggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLoggingInput, ...request.Option) (*s3.GetBucketLoggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketLoggingInput, ...request.Option) *s3.GetBucketLoggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketLoggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketMetricsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketMetricsConfiguration(_a0 *s3.GetBucketMetricsConfigurationInput) (*s3.GetBucketMetricsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketMetricsConfigurationInput) (*s3.GetBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketMetricsConfigurationInput) *s3.GetBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketMetricsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketMetricsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketMetricsConfigurationRequest(_a0 *s3.GetBucketMetricsConfigurationInput) (*request.Request, *s3.GetBucketMetricsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketMetricsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketMetricsConfigurationInput) (*request.Request, *s3.GetBucketMetricsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketMetricsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketMetricsConfigurationInput) *s3.GetBucketMetricsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketMetricsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketMetricsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketMetricsConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketMetricsConfigurationInput, _a2 ...request.Option) (*s3.GetBucketMetricsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketMetricsConfigurationInput, ...request.Option) (*s3.GetBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketMetricsConfigurationInput, ...request.Option) *s3.GetBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketMetricsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketNotification provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketNotification(_a0 *s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfigurationDeprecated, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.NotificationConfigurationDeprecated
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfigurationDeprecated, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) *s3.NotificationConfigurationDeprecated); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.NotificationConfigurationDeprecated)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketNotificationConfigurationRequest) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketNotificationConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketNotificationConfiguration(_a0 *s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfiguration, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.NotificationConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfiguration, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) *s3.NotificationConfiguration); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.NotificationConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketNotificationConfigurationRequest) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketNotificationConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketNotificationConfigurationRequest(_a0 *s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfiguration) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.NotificationConfiguration
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfiguration)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketNotificationConfigurationRequest) *s3.NotificationConfiguration); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.NotificationConfiguration)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketNotificationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketNotificationConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketNotificationConfigurationRequest, _a2 ...request.Option) (*s3.NotificationConfiguration, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.NotificationConfiguration
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) (*s3.NotificationConfiguration, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) *s3.NotificationConfiguration); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.NotificationConfiguration)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketNotificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketNotificationRequest(_a0 *s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfigurationDeprecated) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.NotificationConfigurationDeprecated
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) (*request.Request, *s3.NotificationConfigurationDeprecated)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketNotificationConfigurationRequest) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketNotificationConfigurationRequest) *s3.NotificationConfigurationDeprecated); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.NotificationConfigurationDeprecated)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketNotificationWithContext(_a0 context.Context, _a1 *s3.GetBucketNotificationConfigurationRequest, _a2 ...request.Option) (*s3.NotificationConfigurationDeprecated, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.NotificationConfigurationDeprecated
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) (*s3.NotificationConfigurationDeprecated, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) *s3.NotificationConfigurationDeprecated); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.NotificationConfigurationDeprecated)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketNotificationConfigurationRequest, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketOwnershipControls provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketOwnershipControls(_a0 *s3.GetBucketOwnershipControlsInput) (*s3.GetBucketOwnershipControlsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) (*s3.GetBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) *s3.GetBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketOwnershipControlsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketOwnershipControlsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketOwnershipControlsRequest(_a0 *s3.GetBucketOwnershipControlsInput) (*request.Request, *s3.GetBucketOwnershipControlsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketOwnershipControlsOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) (*request.Request, *s3.GetBucketOwnershipControlsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketOwnershipControlsInput) *s3.GetBucketOwnershipControlsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketOwnershipControlsOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.GetBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.GetBucketOwnershipControlsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) (*s3.GetBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) *s3.GetBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketPolicy(_a0 *s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyInput) *s3.GetBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketPolicyRequest(_a0 *s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketPolicyInput) *s3.GetBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyStatus provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketPolicyStatus(_a0 *s3.GetBucketPolicyStatusInput) (*s3.GetBucketPolicyStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyStatusInput) (*s3.GetBucketPolicyStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyStatusInput) *s3.GetBucketPolicyStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketPolicyStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketPolicyStatusRequest(_a0 *s3.GetBucketPolicyStatusInput) (*request.Request, *s3.GetBucketPolicyStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketPolicyStatusOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyStatusInput) (*request.Request, *s3.GetBucketPolicyStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketPolicyStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketPolicyStatusInput) *s3.GetBucketPolicyStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketPolicyStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketPolicyStatusWithContext(_a0 context.Context, _a1 *s3.GetBucketPolicyStatusInput, _a2 ...request.Option) (*s3.GetBucketPolicyStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketPolicyStatusInput, ...request.Option) (*s3.GetBucketPolicyStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketPolicyStatusInput, ...request.Option) *s3.GetBucketPolicyStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketPolicyStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketPolicyWithContext(_a0 context.Context, _a1 *s3.GetBucketPolicyInput, _a2 ...request.Option) (*s3.GetBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketPolicyInput, ...request.Option) (*s3.GetBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketPolicyInput, ...request.Option) *s3.GetBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketReplication provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketReplication(_a0 *s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketReplicationInput) *s3.GetBucketReplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketReplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketReplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketReplicationRequest(_a0 *s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketReplicationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketReplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketReplicationInput) *s3.GetBucketReplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketReplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketReplicationWithContext(_a0 context.Context, _a1 *s3.GetBucketReplicationInput, _a2 ...request.Option) (*s3.GetBucketReplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketReplicationInput, ...request.Option) (*s3.GetBucketReplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketReplicationInput, ...request.Option) *s3.GetBucketReplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketReplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketRequestPayment provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketRequestPayment(_a0 *s3.GetBucketRequestPaymentInput) (*s3.GetBucketRequestPaymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketRequestPaymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketRequestPaymentInput) (*s3.GetBucketRequestPaymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketRequestPaymentInput) *s3.GetBucketRequestPaymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketRequestPaymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketRequestPaymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketRequestPaymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketRequestPaymentRequest(_a0 *s3.GetBucketRequestPaymentInput) (*request.Request, *s3.GetBucketRequestPaymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketRequestPaymentOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketRequestPaymentInput) (*request.Request, *s3.GetBucketRequestPaymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketRequestPaymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketRequestPaymentInput) *s3.GetBucketRequestPaymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketRequestPaymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketRequestPaymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketRequestPaymentWithContext(_a0 context.Context, _a1 *s3.GetBucketRequestPaymentInput, _a2 ...request.Option) (*s3.GetBucketRequestPaymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketRequestPaymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketRequestPaymentInput, ...request.Option) (*s3.GetBucketRequestPaymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketRequestPaymentInput, ...request.Option) *s3.GetBucketRequestPaymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketRequestPaymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketRequestPaymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketTagging(_a0 *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketTaggingInput) *s3.GetBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketTaggingRequest(_a0 *s3.GetBucketTaggingInput) (*request.Request, *s3.GetBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketTaggingInput) (*request.Request, *s3.GetBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketTaggingInput) *s3.GetBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketTaggingWithContext(_a0 context.Context, _a1 *s3.GetBucketTaggingInput, _a2 ...request.Option) (*s3.GetBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketTaggingInput, ...request.Option) (*s3.GetBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketTaggingInput, ...request.Option) *s3.GetBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketVersioning provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketVersioning(_a0 *s3.GetBucketVersioningInput) (*s3.GetBucketVersioningOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketVersioningInput) (*s3.GetBucketVersioningOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketVersioningInput) *s3.GetBucketVersioningOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketVersioningInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketVersioningRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketVersioningRequest(_a0 *s3.GetBucketVersioningInput) (*request.Request, *s3.GetBucketVersioningOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketVersioningOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketVersioningInput) (*request.Request, *s3.GetBucketVersioningOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketVersioningInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketVersioningInput) *s3.GetBucketVersioningOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketVersioningOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketVersioningWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketVersioningWithContext(_a0 context.Context, _a1 *s3.GetBucketVersioningInput, _a2 ...request.Option) (*s3.GetBucketVersioningOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketVersioningInput, ...request.Option) (*s3.GetBucketVersioningOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketVersioningInput, ...request.Option) *s3.GetBucketVersioningOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketVersioningInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketWebsite provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketWebsite(_a0 *s3.GetBucketWebsiteInput) (*s3.GetBucketWebsiteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetBucketWebsiteInput) (*s3.GetBucketWebsiteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketWebsiteInput) *s3.GetBucketWebsiteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketWebsiteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketWebsiteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetBucketWebsiteRequest(_a0 *s3.GetBucketWebsiteInput) (*request.Request, *s3.GetBucketWebsiteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetBucketWebsiteOutput
- if rf, ok := ret.Get(0).(func(*s3.GetBucketWebsiteInput) (*request.Request, *s3.GetBucketWebsiteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetBucketWebsiteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetBucketWebsiteInput) *s3.GetBucketWebsiteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetBucketWebsiteOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketWebsiteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetBucketWebsiteWithContext(_a0 context.Context, _a1 *s3.GetBucketWebsiteInput, _a2 ...request.Option) (*s3.GetBucketWebsiteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketWebsiteInput, ...request.Option) (*s3.GetBucketWebsiteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketWebsiteInput, ...request.Option) *s3.GetBucketWebsiteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketWebsiteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObject(_a0 *s3.GetObjectInput) (*s3.GetObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectInput) (*s3.GetObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectInput) *s3.GetObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectAcl provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectAcl(_a0 *s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAclInput) *s3.GetObjectAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectAclRequest(_a0 *s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectAclOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectAclInput) *s3.GetObjectAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectAclWithContext(_a0 context.Context, _a1 *s3.GetObjectAclInput, _a2 ...request.Option) (*s3.GetObjectAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectAclInput, ...request.Option) (*s3.GetObjectAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectAclInput, ...request.Option) *s3.GetObjectAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectAttributes(_a0 *s3.GetObjectAttributesInput) (*s3.GetObjectAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAttributesInput) (*s3.GetObjectAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAttributesInput) *s3.GetObjectAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectAttributesRequest(_a0 *s3.GetObjectAttributesInput) (*request.Request, *s3.GetObjectAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectAttributesOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAttributesInput) (*request.Request, *s3.GetObjectAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectAttributesInput) *s3.GetObjectAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectAttributesWithContext(_a0 context.Context, _a1 *s3.GetObjectAttributesInput, _a2 ...request.Option) (*s3.GetObjectAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectAttributesInput, ...request.Option) (*s3.GetObjectAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectAttributesInput, ...request.Option) *s3.GetObjectAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectLegalHold provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectLegalHold(_a0 *s3.GetObjectLegalHoldInput) (*s3.GetObjectLegalHoldOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectLegalHoldOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLegalHoldInput) (*s3.GetObjectLegalHoldOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLegalHoldInput) *s3.GetObjectLegalHoldOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectLegalHoldOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectLegalHoldInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectLegalHoldRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectLegalHoldRequest(_a0 *s3.GetObjectLegalHoldInput) (*request.Request, *s3.GetObjectLegalHoldOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectLegalHoldOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLegalHoldInput) (*request.Request, *s3.GetObjectLegalHoldOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLegalHoldInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectLegalHoldInput) *s3.GetObjectLegalHoldOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectLegalHoldOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectLegalHoldWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectLegalHoldWithContext(_a0 context.Context, _a1 *s3.GetObjectLegalHoldInput, _a2 ...request.Option) (*s3.GetObjectLegalHoldOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectLegalHoldOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectLegalHoldInput, ...request.Option) (*s3.GetObjectLegalHoldOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectLegalHoldInput, ...request.Option) *s3.GetObjectLegalHoldOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectLegalHoldOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectLegalHoldInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectLockConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectLockConfiguration(_a0 *s3.GetObjectLockConfigurationInput) (*s3.GetObjectLockConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectLockConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLockConfigurationInput) (*s3.GetObjectLockConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLockConfigurationInput) *s3.GetObjectLockConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectLockConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectLockConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectLockConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectLockConfigurationRequest(_a0 *s3.GetObjectLockConfigurationInput) (*request.Request, *s3.GetObjectLockConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectLockConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLockConfigurationInput) (*request.Request, *s3.GetObjectLockConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectLockConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectLockConfigurationInput) *s3.GetObjectLockConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectLockConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectLockConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectLockConfigurationWithContext(_a0 context.Context, _a1 *s3.GetObjectLockConfigurationInput, _a2 ...request.Option) (*s3.GetObjectLockConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectLockConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectLockConfigurationInput, ...request.Option) (*s3.GetObjectLockConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectLockConfigurationInput, ...request.Option) *s3.GetObjectLockConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectLockConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectLockConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectRequest(_a0 *s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectInput) *s3.GetObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectRetention provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectRetention(_a0 *s3.GetObjectRetentionInput) (*s3.GetObjectRetentionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectRetentionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectRetentionInput) (*s3.GetObjectRetentionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectRetentionInput) *s3.GetObjectRetentionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectRetentionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectRetentionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectRetentionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectRetentionRequest(_a0 *s3.GetObjectRetentionInput) (*request.Request, *s3.GetObjectRetentionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectRetentionOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectRetentionInput) (*request.Request, *s3.GetObjectRetentionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectRetentionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectRetentionInput) *s3.GetObjectRetentionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectRetentionOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectRetentionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectRetentionWithContext(_a0 context.Context, _a1 *s3.GetObjectRetentionInput, _a2 ...request.Option) (*s3.GetObjectRetentionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectRetentionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectRetentionInput, ...request.Option) (*s3.GetObjectRetentionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectRetentionInput, ...request.Option) *s3.GetObjectRetentionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectRetentionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectRetentionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectTagging(_a0 *s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTaggingInput) *s3.GetObjectTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectTaggingRequest(_a0 *s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectTaggingInput) *s3.GetObjectTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectTaggingWithContext(_a0 context.Context, _a1 *s3.GetObjectTaggingInput, _a2 ...request.Option) (*s3.GetObjectTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectTaggingInput, ...request.Option) (*s3.GetObjectTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectTaggingInput, ...request.Option) *s3.GetObjectTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectTorrent provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectTorrent(_a0 *s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetObjectTorrentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTorrentInput) *s3.GetObjectTorrentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectTorrentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectTorrentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectTorrentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetObjectTorrentRequest(_a0 *s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetObjectTorrentOutput
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetObjectTorrentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetObjectTorrentInput) *s3.GetObjectTorrentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetObjectTorrentOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetObjectTorrentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectTorrentWithContext(_a0 context.Context, _a1 *s3.GetObjectTorrentInput, _a2 ...request.Option) (*s3.GetObjectTorrentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectTorrentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectTorrentInput, ...request.Option) (*s3.GetObjectTorrentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectTorrentInput, ...request.Option) *s3.GetObjectTorrentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectTorrentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectTorrentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetObjectWithContext(_a0 context.Context, _a1 *s3.GetObjectInput, _a2 ...request.Option) (*s3.GetObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectInput, ...request.Option) (*s3.GetObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectInput, ...request.Option) *s3.GetObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetPublicAccessBlock(_a0 *s3.GetPublicAccessBlockInput) (*s3.GetPublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.GetPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.GetPublicAccessBlockInput) (*s3.GetPublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetPublicAccessBlockInput) *s3.GetPublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetPublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) GetPublicAccessBlockRequest(_a0 *s3.GetPublicAccessBlockInput) (*request.Request, *s3.GetPublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.GetPublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3.GetPublicAccessBlockInput) (*request.Request, *s3.GetPublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.GetPublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.GetPublicAccessBlockInput) *s3.GetPublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.GetPublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) GetPublicAccessBlockWithContext(_a0 context.Context, _a1 *s3.GetPublicAccessBlockInput, _a2 ...request.Option) (*s3.GetPublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.GetPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetPublicAccessBlockInput, ...request.Option) (*s3.GetPublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.GetPublicAccessBlockInput, ...request.Option) *s3.GetPublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.GetPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.GetPublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// HeadBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3) HeadBucket(_a0 *s3.HeadBucketInput) (*s3.HeadBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.HeadBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) (*s3.HeadBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) *s3.HeadBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.HeadBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.HeadBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// HeadBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) HeadBucketRequest(_a0 *s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.HeadBucketOutput
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.HeadBucketInput) *s3.HeadBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.HeadBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// HeadBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) HeadBucketWithContext(_a0 context.Context, _a1 *s3.HeadBucketInput, _a2 ...request.Option) (*s3.HeadBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.HeadBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadBucketInput, ...request.Option) (*s3.HeadBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadBucketInput, ...request.Option) *s3.HeadBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.HeadBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.HeadBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// HeadObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) HeadObject(_a0 *s3.HeadObjectInput) (*s3.HeadObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.HeadObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) (*s3.HeadObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) *s3.HeadObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.HeadObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.HeadObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// HeadObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) HeadObjectRequest(_a0 *s3.HeadObjectInput) (*request.Request, *s3.HeadObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.HeadObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) (*request.Request, *s3.HeadObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.HeadObjectInput) *s3.HeadObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.HeadObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// HeadObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) HeadObjectWithContext(_a0 context.Context, _a1 *s3.HeadObjectInput, _a2 ...request.Option) (*s3.HeadObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.HeadObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadObjectInput, ...request.Option) (*s3.HeadObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadObjectInput, ...request.Option) *s3.HeadObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.HeadObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.HeadObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketAnalyticsConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketAnalyticsConfigurations(_a0 *s3.ListBucketAnalyticsConfigurationsInput) (*s3.ListBucketAnalyticsConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListBucketAnalyticsConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListBucketAnalyticsConfigurationsInput) (*s3.ListBucketAnalyticsConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketAnalyticsConfigurationsInput) *s3.ListBucketAnalyticsConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketAnalyticsConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketAnalyticsConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketAnalyticsConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketAnalyticsConfigurationsRequest(_a0 *s3.ListBucketAnalyticsConfigurationsInput) (*request.Request, *s3.ListBucketAnalyticsConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListBucketAnalyticsConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListBucketAnalyticsConfigurationsInput) (*request.Request, *s3.ListBucketAnalyticsConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketAnalyticsConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketAnalyticsConfigurationsInput) *s3.ListBucketAnalyticsConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListBucketAnalyticsConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBucketAnalyticsConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListBucketAnalyticsConfigurationsWithContext(_a0 context.Context, _a1 *s3.ListBucketAnalyticsConfigurationsInput, _a2 ...request.Option) (*s3.ListBucketAnalyticsConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListBucketAnalyticsConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketAnalyticsConfigurationsInput, ...request.Option) (*s3.ListBucketAnalyticsConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketAnalyticsConfigurationsInput, ...request.Option) *s3.ListBucketAnalyticsConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketAnalyticsConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketAnalyticsConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketIntelligentTieringConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurations(_a0 *s3.ListBucketIntelligentTieringConfigurationsInput) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListBucketIntelligentTieringConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketIntelligentTieringConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketIntelligentTieringConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurationsRequest(_a0 *s3.ListBucketIntelligentTieringConfigurationsInput) (*request.Request, *s3.ListBucketIntelligentTieringConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListBucketIntelligentTieringConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) (*request.Request, *s3.ListBucketIntelligentTieringConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListBucketIntelligentTieringConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBucketIntelligentTieringConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurationsWithContext(_a0 context.Context, _a1 *s3.ListBucketIntelligentTieringConfigurationsInput, _a2 ...request.Option) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListBucketIntelligentTieringConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketIntelligentTieringConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketInventoryConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketInventoryConfigurations(_a0 *s3.ListBucketInventoryConfigurationsInput) (*s3.ListBucketInventoryConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListBucketInventoryConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListBucketInventoryConfigurationsInput) (*s3.ListBucketInventoryConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketInventoryConfigurationsInput) *s3.ListBucketInventoryConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketInventoryConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketInventoryConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketInventoryConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketInventoryConfigurationsRequest(_a0 *s3.ListBucketInventoryConfigurationsInput) (*request.Request, *s3.ListBucketInventoryConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListBucketInventoryConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListBucketInventoryConfigurationsInput) (*request.Request, *s3.ListBucketInventoryConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketInventoryConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketInventoryConfigurationsInput) *s3.ListBucketInventoryConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListBucketInventoryConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBucketInventoryConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListBucketInventoryConfigurationsWithContext(_a0 context.Context, _a1 *s3.ListBucketInventoryConfigurationsInput, _a2 ...request.Option) (*s3.ListBucketInventoryConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListBucketInventoryConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketInventoryConfigurationsInput, ...request.Option) (*s3.ListBucketInventoryConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketInventoryConfigurationsInput, ...request.Option) *s3.ListBucketInventoryConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketInventoryConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketInventoryConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketMetricsConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketMetricsConfigurations(_a0 *s3.ListBucketMetricsConfigurationsInput) (*s3.ListBucketMetricsConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListBucketMetricsConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListBucketMetricsConfigurationsInput) (*s3.ListBucketMetricsConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketMetricsConfigurationsInput) *s3.ListBucketMetricsConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketMetricsConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketMetricsConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketMetricsConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketMetricsConfigurationsRequest(_a0 *s3.ListBucketMetricsConfigurationsInput) (*request.Request, *s3.ListBucketMetricsConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListBucketMetricsConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListBucketMetricsConfigurationsInput) (*request.Request, *s3.ListBucketMetricsConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketMetricsConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketMetricsConfigurationsInput) *s3.ListBucketMetricsConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListBucketMetricsConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBucketMetricsConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListBucketMetricsConfigurationsWithContext(_a0 context.Context, _a1 *s3.ListBucketMetricsConfigurationsInput, _a2 ...request.Option) (*s3.ListBucketMetricsConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListBucketMetricsConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketMetricsConfigurationsInput, ...request.Option) (*s3.ListBucketMetricsConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketMetricsConfigurationsInput, ...request.Option) *s3.ListBucketMetricsConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketMetricsConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketMetricsConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBuckets provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBuckets(_a0 *s3.ListBucketsInput) (*s3.ListBucketsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListBucketsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListBucketsInput) (*s3.ListBucketsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketsInput) *s3.ListBucketsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListBucketsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListBucketsRequest(_a0 *s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListBucketsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListBucketsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListBucketsInput) *s3.ListBucketsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListBucketsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListBucketsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListBucketsWithContext(_a0 context.Context, _a1 *s3.ListBucketsInput, _a2 ...request.Option) (*s3.ListBucketsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListBucketsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketsInput, ...request.Option) (*s3.ListBucketsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketsInput, ...request.Option) *s3.ListBucketsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListBucketsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMultipartUploads provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListMultipartUploads(_a0 *s3.ListMultipartUploadsInput) (*s3.ListMultipartUploadsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListMultipartUploadsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListMultipartUploadsInput) (*s3.ListMultipartUploadsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListMultipartUploadsInput) *s3.ListMultipartUploadsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListMultipartUploadsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListMultipartUploadsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMultipartUploadsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3) ListMultipartUploadsPages(_a0 *s3.ListMultipartUploadsInput, _a1 func(*s3.ListMultipartUploadsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.ListMultipartUploadsInput, func(*s3.ListMultipartUploadsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMultipartUploadsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3) ListMultipartUploadsPagesWithContext(_a0 context.Context, _a1 *s3.ListMultipartUploadsInput, _a2 func(*s3.ListMultipartUploadsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListMultipartUploadsInput, func(*s3.ListMultipartUploadsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMultipartUploadsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListMultipartUploadsRequest(_a0 *s3.ListMultipartUploadsInput) (*request.Request, *s3.ListMultipartUploadsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListMultipartUploadsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListMultipartUploadsInput) (*request.Request, *s3.ListMultipartUploadsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListMultipartUploadsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListMultipartUploadsInput) *s3.ListMultipartUploadsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListMultipartUploadsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListMultipartUploadsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListMultipartUploadsWithContext(_a0 context.Context, _a1 *s3.ListMultipartUploadsInput, _a2 ...request.Option) (*s3.ListMultipartUploadsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListMultipartUploadsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListMultipartUploadsInput, ...request.Option) (*s3.ListMultipartUploadsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListMultipartUploadsInput, ...request.Option) *s3.ListMultipartUploadsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListMultipartUploadsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListMultipartUploadsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjectVersions provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjectVersions(_a0 *s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListObjectVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectVersionsInput) *s3.ListObjectVersionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectVersionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjectVersionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3) ListObjectVersionsPages(_a0 *s3.ListObjectVersionsInput, _a1 func(*s3.ListObjectVersionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectVersionsInput, func(*s3.ListObjectVersionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3) ListObjectVersionsPagesWithContext(_a0 context.Context, _a1 *s3.ListObjectVersionsInput, _a2 func(*s3.ListObjectVersionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectVersionsInput, func(*s3.ListObjectVersionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectVersionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjectVersionsRequest(_a0 *s3.ListObjectVersionsInput) (*request.Request, *s3.ListObjectVersionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListObjectVersionsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListObjectVersionsInput) (*request.Request, *s3.ListObjectVersionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectVersionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectVersionsInput) *s3.ListObjectVersionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListObjectVersionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListObjectVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListObjectVersionsWithContext(_a0 context.Context, _a1 *s3.ListObjectVersionsInput, _a2 ...request.Option) (*s3.ListObjectVersionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListObjectVersionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectVersionsInput, ...request.Option) (*s3.ListObjectVersionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectVersionsInput, ...request.Option) *s3.ListObjectVersionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectVersionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListObjectVersionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjects provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjects(_a0 *s3.ListObjectsInput) (*s3.ListObjectsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListObjectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsInput) (*s3.ListObjectsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsInput) *s3.ListObjectsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjectsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3) ListObjectsPages(_a0 *s3.ListObjectsInput, _a1 func(*s3.ListObjectsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3) ListObjectsPagesWithContext(_a0 context.Context, _a1 *s3.ListObjectsInput, _a2 func(*s3.ListObjectsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjectsRequest(_a0 *s3.ListObjectsInput) (*request.Request, *s3.ListObjectsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListObjectsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsInput) (*request.Request, *s3.ListObjectsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectsInput) *s3.ListObjectsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListObjectsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListObjectsV2 provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjectsV2(_a0 *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListObjectsV2Output
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsV2Input) *s3.ListObjectsV2Output); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectsV2Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectsV2Input) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjectsV2Pages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3) ListObjectsV2Pages(_a0 *s3.ListObjectsV2Input, _a1 func(*s3.ListObjectsV2Output, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectsV2PagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3) ListObjectsV2PagesWithContext(_a0 context.Context, _a1 *s3.ListObjectsV2Input, _a2 func(*s3.ListObjectsV2Output, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListObjectsV2Request provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListObjectsV2Request(_a0 *s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListObjectsV2Output
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListObjectsV2Input) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListObjectsV2Input) *s3.ListObjectsV2Output); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListObjectsV2Output)
- }
- }
-
- return r0, r1
-}
-
-// ListObjectsV2WithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListObjectsV2WithContext(_a0 context.Context, _a1 *s3.ListObjectsV2Input, _a2 ...request.Option) (*s3.ListObjectsV2Output, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListObjectsV2Output
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsV2Input, ...request.Option) (*s3.ListObjectsV2Output, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsV2Input, ...request.Option) *s3.ListObjectsV2Output); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectsV2Output)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListObjectsV2Input, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListObjectsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListObjectsWithContext(_a0 context.Context, _a1 *s3.ListObjectsInput, _a2 ...request.Option) (*s3.ListObjectsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListObjectsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsInput, ...request.Option) (*s3.ListObjectsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListObjectsInput, ...request.Option) *s3.ListObjectsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListObjectsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListObjectsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListParts provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListParts(_a0 *s3.ListPartsInput) (*s3.ListPartsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.ListPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.ListPartsInput) (*s3.ListPartsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListPartsInput) *s3.ListPartsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListPartsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPartsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3) ListPartsPages(_a0 *s3.ListPartsInput, _a1 func(*s3.ListPartsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPartsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3) ListPartsPagesWithContext(_a0 context.Context, _a1 *s3.ListPartsInput, _a2 func(*s3.ListPartsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPartsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) ListPartsRequest(_a0 *s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.ListPartsOutput
- if rf, ok := ret.Get(0).(func(*s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.ListPartsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.ListPartsInput) *s3.ListPartsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.ListPartsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPartsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) ListPartsWithContext(_a0 context.Context, _a1 *s3.ListPartsInput, _a2 ...request.Option) (*s3.ListPartsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.ListPartsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListPartsInput, ...request.Option) (*s3.ListPartsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.ListPartsInput, ...request.Option) *s3.ListPartsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.ListPartsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.ListPartsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAccelerateConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAccelerateConfiguration(_a0 *s3.PutBucketAccelerateConfigurationInput) (*s3.PutBucketAccelerateConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketAccelerateConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAccelerateConfigurationInput) (*s3.PutBucketAccelerateConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAccelerateConfigurationInput) *s3.PutBucketAccelerateConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAccelerateConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAccelerateConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAccelerateConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAccelerateConfigurationRequest(_a0 *s3.PutBucketAccelerateConfigurationInput) (*request.Request, *s3.PutBucketAccelerateConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketAccelerateConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAccelerateConfigurationInput) (*request.Request, *s3.PutBucketAccelerateConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAccelerateConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAccelerateConfigurationInput) *s3.PutBucketAccelerateConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketAccelerateConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketAccelerateConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketAccelerateConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketAccelerateConfigurationInput, _a2 ...request.Option) (*s3.PutBucketAccelerateConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketAccelerateConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAccelerateConfigurationInput, ...request.Option) (*s3.PutBucketAccelerateConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAccelerateConfigurationInput, ...request.Option) *s3.PutBucketAccelerateConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAccelerateConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketAccelerateConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAcl provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAcl(_a0 *s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAclInput) *s3.PutBucketAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAclRequest(_a0 *s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketAclOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAclInput) *s3.PutBucketAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketAclWithContext(_a0 context.Context, _a1 *s3.PutBucketAclInput, _a2 ...request.Option) (*s3.PutBucketAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAclInput, ...request.Option) (*s3.PutBucketAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAclInput, ...request.Option) *s3.PutBucketAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAnalyticsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAnalyticsConfiguration(_a0 *s3.PutBucketAnalyticsConfigurationInput) (*s3.PutBucketAnalyticsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAnalyticsConfigurationInput) (*s3.PutBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAnalyticsConfigurationInput) *s3.PutBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAnalyticsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketAnalyticsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketAnalyticsConfigurationRequest(_a0 *s3.PutBucketAnalyticsConfigurationInput) (*request.Request, *s3.PutBucketAnalyticsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketAnalyticsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAnalyticsConfigurationInput) (*request.Request, *s3.PutBucketAnalyticsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketAnalyticsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketAnalyticsConfigurationInput) *s3.PutBucketAnalyticsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketAnalyticsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketAnalyticsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketAnalyticsConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketAnalyticsConfigurationInput, _a2 ...request.Option) (*s3.PutBucketAnalyticsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketAnalyticsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAnalyticsConfigurationInput, ...request.Option) (*s3.PutBucketAnalyticsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketAnalyticsConfigurationInput, ...request.Option) *s3.PutBucketAnalyticsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketAnalyticsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketAnalyticsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketCors provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketCors(_a0 *s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketCorsInput) *s3.PutBucketCorsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketCorsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketCorsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketCorsRequest(_a0 *s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketCorsOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketCorsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketCorsInput) *s3.PutBucketCorsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketCorsOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketCorsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketCorsWithContext(_a0 context.Context, _a1 *s3.PutBucketCorsInput, _a2 ...request.Option) (*s3.PutBucketCorsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketCorsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketCorsInput, ...request.Option) (*s3.PutBucketCorsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketCorsInput, ...request.Option) *s3.PutBucketCorsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketCorsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketCorsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketEncryption provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketEncryption(_a0 *s3.PutBucketEncryptionInput) (*s3.PutBucketEncryptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketEncryptionInput) (*s3.PutBucketEncryptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketEncryptionInput) *s3.PutBucketEncryptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketEncryptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketEncryptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketEncryptionRequest(_a0 *s3.PutBucketEncryptionInput) (*request.Request, *s3.PutBucketEncryptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketEncryptionOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketEncryptionInput) (*request.Request, *s3.PutBucketEncryptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketEncryptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketEncryptionInput) *s3.PutBucketEncryptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketEncryptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketEncryptionWithContext(_a0 context.Context, _a1 *s3.PutBucketEncryptionInput, _a2 ...request.Option) (*s3.PutBucketEncryptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketEncryptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketEncryptionInput, ...request.Option) (*s3.PutBucketEncryptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketEncryptionInput, ...request.Option) *s3.PutBucketEncryptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketEncryptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketEncryptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketIntelligentTieringConfiguration(_a0 *s3.PutBucketIntelligentTieringConfigurationInput) (*s3.PutBucketIntelligentTieringConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) (*s3.PutBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *s3.PutBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketIntelligentTieringConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketIntelligentTieringConfigurationRequest(_a0 *s3.PutBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.PutBucketIntelligentTieringConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketIntelligentTieringConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.PutBucketIntelligentTieringConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *s3.PutBucketIntelligentTieringConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.PutBucketIntelligentTieringConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketIntelligentTieringConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) (*s3.PutBucketIntelligentTieringConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.PutBucketIntelligentTieringConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketIntelligentTieringConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketInventoryConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketInventoryConfiguration(_a0 *s3.PutBucketInventoryConfigurationInput) (*s3.PutBucketInventoryConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketInventoryConfigurationInput) (*s3.PutBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketInventoryConfigurationInput) *s3.PutBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketInventoryConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketInventoryConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketInventoryConfigurationRequest(_a0 *s3.PutBucketInventoryConfigurationInput) (*request.Request, *s3.PutBucketInventoryConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketInventoryConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketInventoryConfigurationInput) (*request.Request, *s3.PutBucketInventoryConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketInventoryConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketInventoryConfigurationInput) *s3.PutBucketInventoryConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketInventoryConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketInventoryConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketInventoryConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketInventoryConfigurationInput, _a2 ...request.Option) (*s3.PutBucketInventoryConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketInventoryConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketInventoryConfigurationInput, ...request.Option) (*s3.PutBucketInventoryConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketInventoryConfigurationInput, ...request.Option) *s3.PutBucketInventoryConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketInventoryConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketInventoryConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycle provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLifecycle(_a0 *s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleInput) *s3.PutBucketLifecycleOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLifecycleInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLifecycleConfiguration(_a0 *s3.PutBucketLifecycleConfigurationInput) (*s3.PutBucketLifecycleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleConfigurationInput) (*s3.PutBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleConfigurationInput) *s3.PutBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLifecycleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLifecycleConfigurationRequest(_a0 *s3.PutBucketLifecycleConfigurationInput) (*request.Request, *s3.PutBucketLifecycleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketLifecycleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleConfigurationInput) (*request.Request, *s3.PutBucketLifecycleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLifecycleConfigurationInput) *s3.PutBucketLifecycleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketLifecycleConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketLifecycleConfigurationInput, _a2 ...request.Option) (*s3.PutBucketLifecycleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLifecycleConfigurationInput, ...request.Option) (*s3.PutBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLifecycleConfigurationInput, ...request.Option) *s3.PutBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketLifecycleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLifecycleRequest(_a0 *s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketLifecycleOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLifecycleInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLifecycleInput) *s3.PutBucketLifecycleOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketLifecycleOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketLifecycleWithContext(_a0 context.Context, _a1 *s3.PutBucketLifecycleInput, _a2 ...request.Option) (*s3.PutBucketLifecycleOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketLifecycleOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLifecycleInput, ...request.Option) (*s3.PutBucketLifecycleOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLifecycleInput, ...request.Option) *s3.PutBucketLifecycleOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLifecycleOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketLifecycleInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLogging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLogging(_a0 *s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLoggingInput) *s3.PutBucketLoggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLoggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLoggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketLoggingRequest(_a0 *s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketLoggingOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketLoggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketLoggingInput) *s3.PutBucketLoggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketLoggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketLoggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketLoggingWithContext(_a0 context.Context, _a1 *s3.PutBucketLoggingInput, _a2 ...request.Option) (*s3.PutBucketLoggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketLoggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLoggingInput, ...request.Option) (*s3.PutBucketLoggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketLoggingInput, ...request.Option) *s3.PutBucketLoggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketLoggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketLoggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketMetricsConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketMetricsConfiguration(_a0 *s3.PutBucketMetricsConfigurationInput) (*s3.PutBucketMetricsConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketMetricsConfigurationInput) (*s3.PutBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketMetricsConfigurationInput) *s3.PutBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketMetricsConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketMetricsConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketMetricsConfigurationRequest(_a0 *s3.PutBucketMetricsConfigurationInput) (*request.Request, *s3.PutBucketMetricsConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketMetricsConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketMetricsConfigurationInput) (*request.Request, *s3.PutBucketMetricsConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketMetricsConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketMetricsConfigurationInput) *s3.PutBucketMetricsConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketMetricsConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketMetricsConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketMetricsConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketMetricsConfigurationInput, _a2 ...request.Option) (*s3.PutBucketMetricsConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketMetricsConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketMetricsConfigurationInput, ...request.Option) (*s3.PutBucketMetricsConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketMetricsConfigurationInput, ...request.Option) *s3.PutBucketMetricsConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketMetricsConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketMetricsConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketNotification provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketNotification(_a0 *s3.PutBucketNotificationInput) (*s3.PutBucketNotificationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationInput) (*s3.PutBucketNotificationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationInput) *s3.PutBucketNotificationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketNotificationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketNotificationConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketNotificationConfiguration(_a0 *s3.PutBucketNotificationConfigurationInput) (*s3.PutBucketNotificationConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationConfigurationInput) (*s3.PutBucketNotificationConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationConfigurationInput) *s3.PutBucketNotificationConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketNotificationConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketNotificationConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketNotificationConfigurationRequest(_a0 *s3.PutBucketNotificationConfigurationInput) (*request.Request, *s3.PutBucketNotificationConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketNotificationConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationConfigurationInput) (*request.Request, *s3.PutBucketNotificationConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketNotificationConfigurationInput) *s3.PutBucketNotificationConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketNotificationConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketNotificationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketNotificationConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketNotificationConfigurationInput, _a2 ...request.Option) (*s3.PutBucketNotificationConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketNotificationConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketNotificationConfigurationInput, ...request.Option) (*s3.PutBucketNotificationConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketNotificationConfigurationInput, ...request.Option) *s3.PutBucketNotificationConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketNotificationConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketNotificationConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketNotificationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketNotificationRequest(_a0 *s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketNotificationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketNotificationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketNotificationInput) *s3.PutBucketNotificationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketNotificationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketNotificationWithContext(_a0 context.Context, _a1 *s3.PutBucketNotificationInput, _a2 ...request.Option) (*s3.PutBucketNotificationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketNotificationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketNotificationInput, ...request.Option) (*s3.PutBucketNotificationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketNotificationInput, ...request.Option) *s3.PutBucketNotificationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketNotificationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketNotificationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketOwnershipControls provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketOwnershipControls(_a0 *s3.PutBucketOwnershipControlsInput) (*s3.PutBucketOwnershipControlsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) (*s3.PutBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) *s3.PutBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketOwnershipControlsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketOwnershipControlsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketOwnershipControlsRequest(_a0 *s3.PutBucketOwnershipControlsInput) (*request.Request, *s3.PutBucketOwnershipControlsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketOwnershipControlsOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) (*request.Request, *s3.PutBucketOwnershipControlsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketOwnershipControlsInput) *s3.PutBucketOwnershipControlsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketOwnershipControlsOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.PutBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.PutBucketOwnershipControlsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketOwnershipControlsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) (*s3.PutBucketOwnershipControlsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) *s3.PutBucketOwnershipControlsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketOwnershipControlsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketPolicy(_a0 *s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketPolicyInput) *s3.PutBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketPolicyRequest(_a0 *s3.PutBucketPolicyInput) (*request.Request, *s3.PutBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketPolicyInput) (*request.Request, *s3.PutBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketPolicyInput) *s3.PutBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketPolicyWithContext(_a0 context.Context, _a1 *s3.PutBucketPolicyInput, _a2 ...request.Option) (*s3.PutBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketPolicyInput, ...request.Option) (*s3.PutBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketPolicyInput, ...request.Option) *s3.PutBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketReplication provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketReplication(_a0 *s3.PutBucketReplicationInput) (*s3.PutBucketReplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketReplicationInput) (*s3.PutBucketReplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketReplicationInput) *s3.PutBucketReplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketReplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketReplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketReplicationRequest(_a0 *s3.PutBucketReplicationInput) (*request.Request, *s3.PutBucketReplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketReplicationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketReplicationInput) (*request.Request, *s3.PutBucketReplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketReplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketReplicationInput) *s3.PutBucketReplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketReplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketReplicationWithContext(_a0 context.Context, _a1 *s3.PutBucketReplicationInput, _a2 ...request.Option) (*s3.PutBucketReplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketReplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketReplicationInput, ...request.Option) (*s3.PutBucketReplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketReplicationInput, ...request.Option) *s3.PutBucketReplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketReplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketReplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketRequestPayment provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketRequestPayment(_a0 *s3.PutBucketRequestPaymentInput) (*s3.PutBucketRequestPaymentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketRequestPaymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketRequestPaymentInput) (*s3.PutBucketRequestPaymentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketRequestPaymentInput) *s3.PutBucketRequestPaymentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketRequestPaymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketRequestPaymentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketRequestPaymentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketRequestPaymentRequest(_a0 *s3.PutBucketRequestPaymentInput) (*request.Request, *s3.PutBucketRequestPaymentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketRequestPaymentOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketRequestPaymentInput) (*request.Request, *s3.PutBucketRequestPaymentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketRequestPaymentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketRequestPaymentInput) *s3.PutBucketRequestPaymentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketRequestPaymentOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketRequestPaymentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketRequestPaymentWithContext(_a0 context.Context, _a1 *s3.PutBucketRequestPaymentInput, _a2 ...request.Option) (*s3.PutBucketRequestPaymentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketRequestPaymentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketRequestPaymentInput, ...request.Option) (*s3.PutBucketRequestPaymentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketRequestPaymentInput, ...request.Option) *s3.PutBucketRequestPaymentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketRequestPaymentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketRequestPaymentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketTagging(_a0 *s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketTaggingInput) *s3.PutBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketTaggingRequest(_a0 *s3.PutBucketTaggingInput) (*request.Request, *s3.PutBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketTaggingInput) (*request.Request, *s3.PutBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketTaggingInput) *s3.PutBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketTaggingWithContext(_a0 context.Context, _a1 *s3.PutBucketTaggingInput, _a2 ...request.Option) (*s3.PutBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketTaggingInput, ...request.Option) (*s3.PutBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketTaggingInput, ...request.Option) *s3.PutBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketVersioning provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketVersioning(_a0 *s3.PutBucketVersioningInput) (*s3.PutBucketVersioningOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketVersioningInput) (*s3.PutBucketVersioningOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketVersioningInput) *s3.PutBucketVersioningOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketVersioningInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketVersioningRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketVersioningRequest(_a0 *s3.PutBucketVersioningInput) (*request.Request, *s3.PutBucketVersioningOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketVersioningOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketVersioningInput) (*request.Request, *s3.PutBucketVersioningOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketVersioningInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketVersioningInput) *s3.PutBucketVersioningOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketVersioningOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketVersioningWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketVersioningWithContext(_a0 context.Context, _a1 *s3.PutBucketVersioningInput, _a2 ...request.Option) (*s3.PutBucketVersioningOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketVersioningInput, ...request.Option) (*s3.PutBucketVersioningOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketVersioningInput, ...request.Option) *s3.PutBucketVersioningOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketVersioningInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketWebsite provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketWebsite(_a0 *s3.PutBucketWebsiteInput) (*s3.PutBucketWebsiteOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutBucketWebsiteInput) (*s3.PutBucketWebsiteOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketWebsiteInput) *s3.PutBucketWebsiteOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketWebsiteInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketWebsiteRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutBucketWebsiteRequest(_a0 *s3.PutBucketWebsiteInput) (*request.Request, *s3.PutBucketWebsiteOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutBucketWebsiteOutput
- if rf, ok := ret.Get(0).(func(*s3.PutBucketWebsiteInput) (*request.Request, *s3.PutBucketWebsiteOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutBucketWebsiteInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutBucketWebsiteInput) *s3.PutBucketWebsiteOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutBucketWebsiteOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketWebsiteWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutBucketWebsiteWithContext(_a0 context.Context, _a1 *s3.PutBucketWebsiteInput, _a2 ...request.Option) (*s3.PutBucketWebsiteOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutBucketWebsiteOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketWebsiteInput, ...request.Option) (*s3.PutBucketWebsiteOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketWebsiteInput, ...request.Option) *s3.PutBucketWebsiteOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutBucketWebsiteOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketWebsiteInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObject(_a0 *s3.PutObjectInput) (*s3.PutObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectInput) (*s3.PutObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectInput) *s3.PutObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectAcl provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectAcl(_a0 *s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectAclInput) *s3.PutObjectAclOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectAclInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectAclRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectAclRequest(_a0 *s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectAclOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectAclInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectAclInput) *s3.PutObjectAclOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectAclOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectAclWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectAclWithContext(_a0 context.Context, _a1 *s3.PutObjectAclInput, _a2 ...request.Option) (*s3.PutObjectAclOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectAclOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectAclInput, ...request.Option) (*s3.PutObjectAclOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectAclInput, ...request.Option) *s3.PutObjectAclOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectAclOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectAclInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectLegalHold provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectLegalHold(_a0 *s3.PutObjectLegalHoldInput) (*s3.PutObjectLegalHoldOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectLegalHoldOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLegalHoldInput) (*s3.PutObjectLegalHoldOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLegalHoldInput) *s3.PutObjectLegalHoldOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectLegalHoldOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectLegalHoldInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectLegalHoldRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectLegalHoldRequest(_a0 *s3.PutObjectLegalHoldInput) (*request.Request, *s3.PutObjectLegalHoldOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectLegalHoldOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLegalHoldInput) (*request.Request, *s3.PutObjectLegalHoldOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLegalHoldInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectLegalHoldInput) *s3.PutObjectLegalHoldOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectLegalHoldOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectLegalHoldWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectLegalHoldWithContext(_a0 context.Context, _a1 *s3.PutObjectLegalHoldInput, _a2 ...request.Option) (*s3.PutObjectLegalHoldOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectLegalHoldOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectLegalHoldInput, ...request.Option) (*s3.PutObjectLegalHoldOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectLegalHoldInput, ...request.Option) *s3.PutObjectLegalHoldOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectLegalHoldOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectLegalHoldInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectLockConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectLockConfiguration(_a0 *s3.PutObjectLockConfigurationInput) (*s3.PutObjectLockConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectLockConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLockConfigurationInput) (*s3.PutObjectLockConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLockConfigurationInput) *s3.PutObjectLockConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectLockConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectLockConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectLockConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectLockConfigurationRequest(_a0 *s3.PutObjectLockConfigurationInput) (*request.Request, *s3.PutObjectLockConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectLockConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLockConfigurationInput) (*request.Request, *s3.PutObjectLockConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectLockConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectLockConfigurationInput) *s3.PutObjectLockConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectLockConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectLockConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectLockConfigurationWithContext(_a0 context.Context, _a1 *s3.PutObjectLockConfigurationInput, _a2 ...request.Option) (*s3.PutObjectLockConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectLockConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectLockConfigurationInput, ...request.Option) (*s3.PutObjectLockConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectLockConfigurationInput, ...request.Option) *s3.PutObjectLockConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectLockConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectLockConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectRequest(_a0 *s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectInput) *s3.PutObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectRetention provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectRetention(_a0 *s3.PutObjectRetentionInput) (*s3.PutObjectRetentionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectRetentionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectRetentionInput) (*s3.PutObjectRetentionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectRetentionInput) *s3.PutObjectRetentionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectRetentionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectRetentionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectRetentionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectRetentionRequest(_a0 *s3.PutObjectRetentionInput) (*request.Request, *s3.PutObjectRetentionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectRetentionOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectRetentionInput) (*request.Request, *s3.PutObjectRetentionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectRetentionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectRetentionInput) *s3.PutObjectRetentionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectRetentionOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectRetentionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectRetentionWithContext(_a0 context.Context, _a1 *s3.PutObjectRetentionInput, _a2 ...request.Option) (*s3.PutObjectRetentionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectRetentionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectRetentionInput, ...request.Option) (*s3.PutObjectRetentionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectRetentionInput, ...request.Option) *s3.PutObjectRetentionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectRetentionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectRetentionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectTagging(_a0 *s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectTaggingInput) *s3.PutObjectTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutObjectTaggingRequest(_a0 *s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutObjectTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutObjectTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutObjectTaggingInput) *s3.PutObjectTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutObjectTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutObjectTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectTaggingWithContext(_a0 context.Context, _a1 *s3.PutObjectTaggingInput, _a2 ...request.Option) (*s3.PutObjectTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectTaggingInput, ...request.Option) (*s3.PutObjectTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectTaggingInput, ...request.Option) *s3.PutObjectTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutObjectWithContext(_a0 context.Context, _a1 *s3.PutObjectInput, _a2 ...request.Option) (*s3.PutObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectInput, ...request.Option) (*s3.PutObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutObjectInput, ...request.Option) *s3.PutObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutPublicAccessBlock(_a0 *s3.PutPublicAccessBlockInput) (*s3.PutPublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.PutPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.PutPublicAccessBlockInput) (*s3.PutPublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutPublicAccessBlockInput) *s3.PutPublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutPublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) PutPublicAccessBlockRequest(_a0 *s3.PutPublicAccessBlockInput) (*request.Request, *s3.PutPublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.PutPublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3.PutPublicAccessBlockInput) (*request.Request, *s3.PutPublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.PutPublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.PutPublicAccessBlockInput) *s3.PutPublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.PutPublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) PutPublicAccessBlockWithContext(_a0 context.Context, _a1 *s3.PutPublicAccessBlockInput, _a2 ...request.Option) (*s3.PutPublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.PutPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutPublicAccessBlockInput, ...request.Option) (*s3.PutPublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.PutPublicAccessBlockInput, ...request.Option) *s3.PutPublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.PutPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.PutPublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreObject provides a mock function with given fields: _a0
-func (_m *MockFakeS3) RestoreObject(_a0 *s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.RestoreObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.RestoreObjectInput) *s3.RestoreObjectOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.RestoreObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.RestoreObjectInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RestoreObjectRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) RestoreObjectRequest(_a0 *s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.RestoreObjectOutput
- if rf, ok := ret.Get(0).(func(*s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.RestoreObjectInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.RestoreObjectInput) *s3.RestoreObjectOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.RestoreObjectOutput)
- }
- }
-
- return r0, r1
-}
-
-// RestoreObjectWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) RestoreObjectWithContext(_a0 context.Context, _a1 *s3.RestoreObjectInput, _a2 ...request.Option) (*s3.RestoreObjectOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.RestoreObjectOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.RestoreObjectInput, ...request.Option) (*s3.RestoreObjectOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.RestoreObjectInput, ...request.Option) *s3.RestoreObjectOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.RestoreObjectOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.RestoreObjectInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SelectObjectContent provides a mock function with given fields: _a0
-func (_m *MockFakeS3) SelectObjectContent(_a0 *s3.SelectObjectContentInput) (*s3.SelectObjectContentOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.SelectObjectContentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.SelectObjectContentInput) (*s3.SelectObjectContentOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.SelectObjectContentInput) *s3.SelectObjectContentOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.SelectObjectContentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.SelectObjectContentInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SelectObjectContentRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) SelectObjectContentRequest(_a0 *s3.SelectObjectContentInput) (*request.Request, *s3.SelectObjectContentOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.SelectObjectContentOutput
- if rf, ok := ret.Get(0).(func(*s3.SelectObjectContentInput) (*request.Request, *s3.SelectObjectContentOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.SelectObjectContentInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.SelectObjectContentInput) *s3.SelectObjectContentOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.SelectObjectContentOutput)
- }
- }
-
- return r0, r1
-}
-
-// SelectObjectContentWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) SelectObjectContentWithContext(_a0 context.Context, _a1 *s3.SelectObjectContentInput, _a2 ...request.Option) (*s3.SelectObjectContentOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.SelectObjectContentOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.SelectObjectContentInput, ...request.Option) (*s3.SelectObjectContentOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.SelectObjectContentInput, ...request.Option) *s3.SelectObjectContentOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.SelectObjectContentOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.SelectObjectContentInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadPart provides a mock function with given fields: _a0
-func (_m *MockFakeS3) UploadPart(_a0 *s3.UploadPartInput) (*s3.UploadPartOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.UploadPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.UploadPartInput) (*s3.UploadPartOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.UploadPartInput) *s3.UploadPartOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.UploadPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.UploadPartInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadPartCopy provides a mock function with given fields: _a0
-func (_m *MockFakeS3) UploadPartCopy(_a0 *s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.UploadPartCopyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.UploadPartCopyInput) *s3.UploadPartCopyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.UploadPartCopyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.UploadPartCopyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadPartCopyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) UploadPartCopyRequest(_a0 *s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.UploadPartCopyOutput
- if rf, ok := ret.Get(0).(func(*s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.UploadPartCopyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.UploadPartCopyInput) *s3.UploadPartCopyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.UploadPartCopyOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadPartCopyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) UploadPartCopyWithContext(_a0 context.Context, _a1 *s3.UploadPartCopyInput, _a2 ...request.Option) (*s3.UploadPartCopyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.UploadPartCopyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.UploadPartCopyInput, ...request.Option) (*s3.UploadPartCopyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.UploadPartCopyInput, ...request.Option) *s3.UploadPartCopyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.UploadPartCopyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.UploadPartCopyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UploadPartRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) UploadPartRequest(_a0 *s3.UploadPartInput) (*request.Request, *s3.UploadPartOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.UploadPartOutput
- if rf, ok := ret.Get(0).(func(*s3.UploadPartInput) (*request.Request, *s3.UploadPartOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.UploadPartInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.UploadPartInput) *s3.UploadPartOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.UploadPartOutput)
- }
- }
-
- return r0, r1
-}
-
-// UploadPartWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) UploadPartWithContext(_a0 context.Context, _a1 *s3.UploadPartInput, _a2 ...request.Option) (*s3.UploadPartOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.UploadPartOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.UploadPartInput, ...request.Option) (*s3.UploadPartOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.UploadPartInput, ...request.Option) *s3.UploadPartOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.UploadPartOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.UploadPartInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WaitUntilBucketExists provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WaitUntilBucketExists(_a0 *s3.HeadBucketInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilBucketExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) WaitUntilBucketExistsWithContext(_a0 context.Context, _a1 *s3.HeadBucketInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadBucketInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilBucketNotExists provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WaitUntilBucketNotExists(_a0 *s3.HeadBucketInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.HeadBucketInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilBucketNotExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) WaitUntilBucketNotExistsWithContext(_a0 context.Context, _a1 *s3.HeadBucketInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadBucketInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilObjectExists provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WaitUntilObjectExists(_a0 *s3.HeadObjectInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilObjectExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) WaitUntilObjectExistsWithContext(_a0 context.Context, _a1 *s3.HeadObjectInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadObjectInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilObjectNotExists provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WaitUntilObjectNotExists(_a0 *s3.HeadObjectInput) error {
- ret := _m.Called(_a0)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3.HeadObjectInput) error); ok {
- r0 = rf(_a0)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WaitUntilObjectNotExistsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) WaitUntilObjectNotExistsWithContext(_a0 context.Context, _a1 *s3.HeadObjectInput, _a2 ...request.WaiterOption) error {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.HeadObjectInput, ...request.WaiterOption) error); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// WriteGetObjectResponse provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WriteGetObjectResponse(_a0 *s3.WriteGetObjectResponseInput) (*s3.WriteGetObjectResponseOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3.WriteGetObjectResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) (*s3.WriteGetObjectResponseOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) *s3.WriteGetObjectResponseOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.WriteGetObjectResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.WriteGetObjectResponseInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// WriteGetObjectResponseRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3) WriteGetObjectResponseRequest(_a0 *s3.WriteGetObjectResponseInput) (*request.Request, *s3.WriteGetObjectResponseOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3.WriteGetObjectResponseOutput
- if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) (*request.Request, *s3.WriteGetObjectResponseOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3.WriteGetObjectResponseInput) *s3.WriteGetObjectResponseOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3.WriteGetObjectResponseOutput)
- }
- }
-
- return r0, r1
-}
-
-// WriteGetObjectResponseWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3) WriteGetObjectResponseWithContext(_a0 context.Context, _a1 *s3.WriteGetObjectResponseInput, _a2 ...request.Option) (*s3.WriteGetObjectResponseOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3.WriteGetObjectResponseOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3.WriteGetObjectResponseInput, ...request.Option) (*s3.WriteGetObjectResponseOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3.WriteGetObjectResponseInput, ...request.Option) *s3.WriteGetObjectResponseOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3.WriteGetObjectResponseOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3.WriteGetObjectResponseInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeS3 interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeS3 creates a new instance of MockFakeS3. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeS3(t mockConstructorTestingTNewMockFakeS3) *MockFakeS3 {
- mock := &MockFakeS3{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeS3Control.go b/test/aws/mock_FakeS3Control.go
deleted file mode 100644
index 45829c02b..000000000
--- a/test/aws/mock_FakeS3Control.go
+++ /dev/null
@@ -1,5375 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- request "github.com/aws/aws-sdk-go/aws/request"
- mock "github.com/stretchr/testify/mock"
-
- s3control "github.com/aws/aws-sdk-go/service/s3control"
-)
-
-// MockFakeS3Control is an autogenerated mock type for the FakeS3Control type
-type MockFakeS3Control struct {
- mock.Mock
-}
-
-// CreateAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateAccessPoint(_a0 *s3control.CreateAccessPointInput) (*s3control.CreateAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.CreateAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointInput) (*s3control.CreateAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointInput) *s3control.CreateAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccessPointForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateAccessPointForObjectLambda(_a0 *s3control.CreateAccessPointForObjectLambdaInput) (*s3control.CreateAccessPointForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.CreateAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointForObjectLambdaInput) (*s3control.CreateAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointForObjectLambdaInput) *s3control.CreateAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateAccessPointForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccessPointForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateAccessPointForObjectLambdaRequest(_a0 *s3control.CreateAccessPointForObjectLambdaInput) (*request.Request, *s3control.CreateAccessPointForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.CreateAccessPointForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointForObjectLambdaInput) (*request.Request, *s3control.CreateAccessPointForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateAccessPointForObjectLambdaInput) *s3control.CreateAccessPointForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.CreateAccessPointForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAccessPointForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) CreateAccessPointForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.CreateAccessPointForObjectLambdaInput, _a2 ...request.Option) (*s3control.CreateAccessPointForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.CreateAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateAccessPointForObjectLambdaInput, ...request.Option) (*s3control.CreateAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateAccessPointForObjectLambdaInput, ...request.Option) *s3control.CreateAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.CreateAccessPointForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateAccessPointRequest(_a0 *s3control.CreateAccessPointInput) (*request.Request, *s3control.CreateAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.CreateAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointInput) (*request.Request, *s3control.CreateAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateAccessPointInput) *s3control.CreateAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.CreateAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) CreateAccessPointWithContext(_a0 context.Context, _a1 *s3control.CreateAccessPointInput, _a2 ...request.Option) (*s3control.CreateAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.CreateAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateAccessPointInput, ...request.Option) (*s3control.CreateAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateAccessPointInput, ...request.Option) *s3control.CreateAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.CreateAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateBucket(_a0 *s3control.CreateBucketInput) (*s3control.CreateBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.CreateBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.CreateBucketInput) (*s3control.CreateBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateBucketInput) *s3control.CreateBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateBucketRequest(_a0 *s3control.CreateBucketInput) (*request.Request, *s3control.CreateBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.CreateBucketOutput
- if rf, ok := ret.Get(0).(func(*s3control.CreateBucketInput) (*request.Request, *s3control.CreateBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateBucketInput) *s3control.CreateBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.CreateBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) CreateBucketWithContext(_a0 context.Context, _a1 *s3control.CreateBucketInput, _a2 ...request.Option) (*s3control.CreateBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.CreateBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateBucketInput, ...request.Option) (*s3control.CreateBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateBucketInput, ...request.Option) *s3control.CreateBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.CreateBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateJob provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateJob(_a0 *s3control.CreateJobInput) (*s3control.CreateJobOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.CreateJobOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.CreateJobInput) (*s3control.CreateJobOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateJobInput) *s3control.CreateJobOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateJobOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateJobInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateJobRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateJobRequest(_a0 *s3control.CreateJobInput) (*request.Request, *s3control.CreateJobOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.CreateJobOutput
- if rf, ok := ret.Get(0).(func(*s3control.CreateJobInput) (*request.Request, *s3control.CreateJobOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateJobInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateJobInput) *s3control.CreateJobOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.CreateJobOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateJobWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) CreateJobWithContext(_a0 context.Context, _a1 *s3control.CreateJobInput, _a2 ...request.Option) (*s3control.CreateJobOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.CreateJobOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateJobInput, ...request.Option) (*s3control.CreateJobOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateJobInput, ...request.Option) *s3control.CreateJobOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateJobOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.CreateJobInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMultiRegionAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateMultiRegionAccessPoint(_a0 *s3control.CreateMultiRegionAccessPointInput) (*s3control.CreateMultiRegionAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.CreateMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.CreateMultiRegionAccessPointInput) (*s3control.CreateMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateMultiRegionAccessPointInput) *s3control.CreateMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateMultiRegionAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateMultiRegionAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) CreateMultiRegionAccessPointRequest(_a0 *s3control.CreateMultiRegionAccessPointInput) (*request.Request, *s3control.CreateMultiRegionAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.CreateMultiRegionAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.CreateMultiRegionAccessPointInput) (*request.Request, *s3control.CreateMultiRegionAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.CreateMultiRegionAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.CreateMultiRegionAccessPointInput) *s3control.CreateMultiRegionAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.CreateMultiRegionAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateMultiRegionAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) CreateMultiRegionAccessPointWithContext(_a0 context.Context, _a1 *s3control.CreateMultiRegionAccessPointInput, _a2 ...request.Option) (*s3control.CreateMultiRegionAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.CreateMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateMultiRegionAccessPointInput, ...request.Option) (*s3control.CreateMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.CreateMultiRegionAccessPointInput, ...request.Option) *s3control.CreateMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.CreateMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.CreateMultiRegionAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPoint(_a0 *s3control.DeleteAccessPointInput) (*s3control.DeleteAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointInput) (*s3control.DeleteAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointInput) *s3control.DeleteAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointForObjectLambda(_a0 *s3control.DeleteAccessPointForObjectLambdaInput) (*s3control.DeleteAccessPointForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointForObjectLambdaInput) (*s3control.DeleteAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointForObjectLambdaInput) *s3control.DeleteAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointForObjectLambdaRequest(_a0 *s3control.DeleteAccessPointForObjectLambdaInput) (*request.Request, *s3control.DeleteAccessPointForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteAccessPointForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointForObjectLambdaInput) (*request.Request, *s3control.DeleteAccessPointForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointForObjectLambdaInput) *s3control.DeleteAccessPointForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteAccessPointForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteAccessPointForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.DeleteAccessPointForObjectLambdaInput, _a2 ...request.Option) (*s3control.DeleteAccessPointForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointForObjectLambdaInput, ...request.Option) (*s3control.DeleteAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointForObjectLambdaInput, ...request.Option) *s3control.DeleteAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteAccessPointForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointPolicy(_a0 *s3control.DeleteAccessPointPolicyInput) (*s3control.DeleteAccessPointPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyInput) (*s3control.DeleteAccessPointPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyInput) *s3control.DeleteAccessPointPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicyForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointPolicyForObjectLambda(_a0 *s3control.DeleteAccessPointPolicyForObjectLambdaInput) (*s3control.DeleteAccessPointPolicyForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) (*s3control.DeleteAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) *s3control.DeleteAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicyForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointPolicyForObjectLambdaRequest(_a0 *s3control.DeleteAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.DeleteAccessPointPolicyForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteAccessPointPolicyForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.DeleteAccessPointPolicyForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointPolicyForObjectLambdaInput) *s3control.DeleteAccessPointPolicyForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicyForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteAccessPointPolicyForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.DeleteAccessPointPolicyForObjectLambdaInput, _a2 ...request.Option) (*s3control.DeleteAccessPointPolicyForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointPolicyForObjectLambdaInput, ...request.Option) (*s3control.DeleteAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointPolicyForObjectLambdaInput, ...request.Option) *s3control.DeleteAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteAccessPointPolicyForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointPolicyRequest(_a0 *s3control.DeleteAccessPointPolicyInput) (*request.Request, *s3control.DeleteAccessPointPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteAccessPointPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyInput) (*request.Request, *s3control.DeleteAccessPointPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointPolicyInput) *s3control.DeleteAccessPointPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteAccessPointPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteAccessPointPolicyWithContext(_a0 context.Context, _a1 *s3control.DeleteAccessPointPolicyInput, _a2 ...request.Option) (*s3control.DeleteAccessPointPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointPolicyInput, ...request.Option) (*s3control.DeleteAccessPointPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointPolicyInput, ...request.Option) *s3control.DeleteAccessPointPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteAccessPointPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteAccessPointRequest(_a0 *s3control.DeleteAccessPointInput) (*request.Request, *s3control.DeleteAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointInput) (*request.Request, *s3control.DeleteAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteAccessPointInput) *s3control.DeleteAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteAccessPointWithContext(_a0 context.Context, _a1 *s3control.DeleteAccessPointInput, _a2 ...request.Option) (*s3control.DeleteAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointInput, ...request.Option) (*s3control.DeleteAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteAccessPointInput, ...request.Option) *s3control.DeleteAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucket(_a0 *s3control.DeleteBucketInput) (*s3control.DeleteBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketInput) (*s3control.DeleteBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketInput) *s3control.DeleteBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketLifecycleConfiguration(_a0 *s3control.DeleteBucketLifecycleConfigurationInput) (*s3control.DeleteBucketLifecycleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketLifecycleConfigurationInput) (*s3control.DeleteBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketLifecycleConfigurationInput) *s3control.DeleteBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketLifecycleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketLifecycleConfigurationRequest(_a0 *s3control.DeleteBucketLifecycleConfigurationInput) (*request.Request, *s3control.DeleteBucketLifecycleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteBucketLifecycleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketLifecycleConfigurationInput) (*request.Request, *s3control.DeleteBucketLifecycleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketLifecycleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketLifecycleConfigurationInput) *s3control.DeleteBucketLifecycleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteBucketLifecycleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketLifecycleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteBucketLifecycleConfigurationWithContext(_a0 context.Context, _a1 *s3control.DeleteBucketLifecycleConfigurationInput, _a2 ...request.Option) (*s3control.DeleteBucketLifecycleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketLifecycleConfigurationInput, ...request.Option) (*s3control.DeleteBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketLifecycleConfigurationInput, ...request.Option) *s3control.DeleteBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteBucketLifecycleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketPolicy(_a0 *s3control.DeleteBucketPolicyInput) (*s3control.DeleteBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketPolicyInput) (*s3control.DeleteBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketPolicyInput) *s3control.DeleteBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketPolicyRequest(_a0 *s3control.DeleteBucketPolicyInput) (*request.Request, *s3control.DeleteBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketPolicyInput) (*request.Request, *s3control.DeleteBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketPolicyInput) *s3control.DeleteBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteBucketPolicyWithContext(_a0 context.Context, _a1 *s3control.DeleteBucketPolicyInput, _a2 ...request.Option) (*s3control.DeleteBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketPolicyInput, ...request.Option) (*s3control.DeleteBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketPolicyInput, ...request.Option) *s3control.DeleteBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketRequest(_a0 *s3control.DeleteBucketInput) (*request.Request, *s3control.DeleteBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteBucketOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketInput) (*request.Request, *s3control.DeleteBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketInput) *s3control.DeleteBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketTagging(_a0 *s3control.DeleteBucketTaggingInput) (*s3control.DeleteBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketTaggingInput) (*s3control.DeleteBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketTaggingInput) *s3control.DeleteBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteBucketTaggingRequest(_a0 *s3control.DeleteBucketTaggingInput) (*request.Request, *s3control.DeleteBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketTaggingInput) (*request.Request, *s3control.DeleteBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteBucketTaggingInput) *s3control.DeleteBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteBucketTaggingWithContext(_a0 context.Context, _a1 *s3control.DeleteBucketTaggingInput, _a2 ...request.Option) (*s3control.DeleteBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketTaggingInput, ...request.Option) (*s3control.DeleteBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketTaggingInput, ...request.Option) *s3control.DeleteBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteBucketWithContext(_a0 context.Context, _a1 *s3control.DeleteBucketInput, _a2 ...request.Option) (*s3control.DeleteBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketInput, ...request.Option) (*s3control.DeleteBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteBucketInput, ...request.Option) *s3control.DeleteBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteJobTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteJobTagging(_a0 *s3control.DeleteJobTaggingInput) (*s3control.DeleteJobTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteJobTaggingInput) (*s3control.DeleteJobTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteJobTaggingInput) *s3control.DeleteJobTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteJobTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteJobTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteJobTaggingRequest(_a0 *s3control.DeleteJobTaggingInput) (*request.Request, *s3control.DeleteJobTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteJobTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteJobTaggingInput) (*request.Request, *s3control.DeleteJobTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteJobTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteJobTaggingInput) *s3control.DeleteJobTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteJobTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteJobTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteJobTaggingWithContext(_a0 context.Context, _a1 *s3control.DeleteJobTaggingInput, _a2 ...request.Option) (*s3control.DeleteJobTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteJobTaggingInput, ...request.Option) (*s3control.DeleteJobTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteJobTaggingInput, ...request.Option) *s3control.DeleteJobTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteJobTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMultiRegionAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteMultiRegionAccessPoint(_a0 *s3control.DeleteMultiRegionAccessPointInput) (*s3control.DeleteMultiRegionAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteMultiRegionAccessPointInput) (*s3control.DeleteMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteMultiRegionAccessPointInput) *s3control.DeleteMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteMultiRegionAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMultiRegionAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteMultiRegionAccessPointRequest(_a0 *s3control.DeleteMultiRegionAccessPointInput) (*request.Request, *s3control.DeleteMultiRegionAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteMultiRegionAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteMultiRegionAccessPointInput) (*request.Request, *s3control.DeleteMultiRegionAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteMultiRegionAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteMultiRegionAccessPointInput) *s3control.DeleteMultiRegionAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteMultiRegionAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMultiRegionAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteMultiRegionAccessPointWithContext(_a0 context.Context, _a1 *s3control.DeleteMultiRegionAccessPointInput, _a2 ...request.Option) (*s3control.DeleteMultiRegionAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteMultiRegionAccessPointInput, ...request.Option) (*s3control.DeleteMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteMultiRegionAccessPointInput, ...request.Option) *s3control.DeleteMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteMultiRegionAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeletePublicAccessBlock(_a0 *s3control.DeletePublicAccessBlockInput) (*s3control.DeletePublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeletePublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeletePublicAccessBlockInput) (*s3control.DeletePublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeletePublicAccessBlockInput) *s3control.DeletePublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeletePublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeletePublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeletePublicAccessBlockRequest(_a0 *s3control.DeletePublicAccessBlockInput) (*request.Request, *s3control.DeletePublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeletePublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeletePublicAccessBlockInput) (*request.Request, *s3control.DeletePublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeletePublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeletePublicAccessBlockInput) *s3control.DeletePublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeletePublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeletePublicAccessBlockWithContext(_a0 context.Context, _a1 *s3control.DeletePublicAccessBlockInput, _a2 ...request.Option) (*s3control.DeletePublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeletePublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeletePublicAccessBlockInput, ...request.Option) (*s3control.DeletePublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeletePublicAccessBlockInput, ...request.Option) *s3control.DeletePublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeletePublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeletePublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteStorageLensConfiguration(_a0 *s3control.DeleteStorageLensConfigurationInput) (*s3control.DeleteStorageLensConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationInput) (*s3control.DeleteStorageLensConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationInput) *s3control.DeleteStorageLensConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteStorageLensConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteStorageLensConfigurationRequest(_a0 *s3control.DeleteStorageLensConfigurationInput) (*request.Request, *s3control.DeleteStorageLensConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteStorageLensConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationInput) (*request.Request, *s3control.DeleteStorageLensConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteStorageLensConfigurationInput) *s3control.DeleteStorageLensConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteStorageLensConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfigurationTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteStorageLensConfigurationTagging(_a0 *s3control.DeleteStorageLensConfigurationTaggingInput) (*s3control.DeleteStorageLensConfigurationTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DeleteStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) (*s3control.DeleteStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) *s3control.DeleteStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfigurationTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DeleteStorageLensConfigurationTaggingRequest(_a0 *s3control.DeleteStorageLensConfigurationTaggingInput) (*request.Request, *s3control.DeleteStorageLensConfigurationTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DeleteStorageLensConfigurationTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) (*request.Request, *s3control.DeleteStorageLensConfigurationTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DeleteStorageLensConfigurationTaggingInput) *s3control.DeleteStorageLensConfigurationTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DeleteStorageLensConfigurationTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfigurationTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteStorageLensConfigurationTaggingWithContext(_a0 context.Context, _a1 *s3control.DeleteStorageLensConfigurationTaggingInput, _a2 ...request.Option) (*s3control.DeleteStorageLensConfigurationTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteStorageLensConfigurationTaggingInput, ...request.Option) (*s3control.DeleteStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteStorageLensConfigurationTaggingInput, ...request.Option) *s3control.DeleteStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteStorageLensConfigurationTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteStorageLensConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DeleteStorageLensConfigurationWithContext(_a0 context.Context, _a1 *s3control.DeleteStorageLensConfigurationInput, _a2 ...request.Option) (*s3control.DeleteStorageLensConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DeleteStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteStorageLensConfigurationInput, ...request.Option) (*s3control.DeleteStorageLensConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DeleteStorageLensConfigurationInput, ...request.Option) *s3control.DeleteStorageLensConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DeleteStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DeleteStorageLensConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeJob provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DescribeJob(_a0 *s3control.DescribeJobInput) (*s3control.DescribeJobOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DescribeJobOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DescribeJobInput) (*s3control.DescribeJobOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DescribeJobInput) *s3control.DescribeJobOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DescribeJobOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DescribeJobInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeJobRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DescribeJobRequest(_a0 *s3control.DescribeJobInput) (*request.Request, *s3control.DescribeJobOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DescribeJobOutput
- if rf, ok := ret.Get(0).(func(*s3control.DescribeJobInput) (*request.Request, *s3control.DescribeJobOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DescribeJobInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DescribeJobInput) *s3control.DescribeJobOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DescribeJobOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeJobWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DescribeJobWithContext(_a0 context.Context, _a1 *s3control.DescribeJobInput, _a2 ...request.Option) (*s3control.DescribeJobOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DescribeJobOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DescribeJobInput, ...request.Option) (*s3control.DescribeJobOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DescribeJobInput, ...request.Option) *s3control.DescribeJobOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DescribeJobOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DescribeJobInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMultiRegionAccessPointOperation provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DescribeMultiRegionAccessPointOperation(_a0 *s3control.DescribeMultiRegionAccessPointOperationInput) (*s3control.DescribeMultiRegionAccessPointOperationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.DescribeMultiRegionAccessPointOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) (*s3control.DescribeMultiRegionAccessPointOperationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) *s3control.DescribeMultiRegionAccessPointOperationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DescribeMultiRegionAccessPointOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DescribeMultiRegionAccessPointOperationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) DescribeMultiRegionAccessPointOperationRequest(_a0 *s3control.DescribeMultiRegionAccessPointOperationInput) (*request.Request, *s3control.DescribeMultiRegionAccessPointOperationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.DescribeMultiRegionAccessPointOperationOutput
- if rf, ok := ret.Get(0).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) (*request.Request, *s3control.DescribeMultiRegionAccessPointOperationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.DescribeMultiRegionAccessPointOperationInput) *s3control.DescribeMultiRegionAccessPointOperationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.DescribeMultiRegionAccessPointOperationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DescribeMultiRegionAccessPointOperationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) DescribeMultiRegionAccessPointOperationWithContext(_a0 context.Context, _a1 *s3control.DescribeMultiRegionAccessPointOperationInput, _a2 ...request.Option) (*s3control.DescribeMultiRegionAccessPointOperationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.DescribeMultiRegionAccessPointOperationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DescribeMultiRegionAccessPointOperationInput, ...request.Option) (*s3control.DescribeMultiRegionAccessPointOperationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.DescribeMultiRegionAccessPointOperationInput, ...request.Option) *s3control.DescribeMultiRegionAccessPointOperationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.DescribeMultiRegionAccessPointOperationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.DescribeMultiRegionAccessPointOperationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPoint(_a0 *s3control.GetAccessPointInput) (*s3control.GetAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointInput) (*s3control.GetAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointInput) *s3control.GetAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointConfigurationForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointConfigurationForObjectLambda(_a0 *s3control.GetAccessPointConfigurationForObjectLambdaInput) (*s3control.GetAccessPointConfigurationForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointConfigurationForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) (*s3control.GetAccessPointConfigurationForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) *s3control.GetAccessPointConfigurationForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointConfigurationForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointConfigurationForObjectLambdaRequest(_a0 *s3control.GetAccessPointConfigurationForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointConfigurationForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointConfigurationForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointConfigurationForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointConfigurationForObjectLambdaInput) *s3control.GetAccessPointConfigurationForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointConfigurationForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointConfigurationForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointConfigurationForObjectLambdaInput, _a2 ...request.Option) (*s3control.GetAccessPointConfigurationForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointConfigurationForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointConfigurationForObjectLambdaInput, ...request.Option) (*s3control.GetAccessPointConfigurationForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointConfigurationForObjectLambdaInput, ...request.Option) *s3control.GetAccessPointConfigurationForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointConfigurationForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointForObjectLambda(_a0 *s3control.GetAccessPointForObjectLambdaInput) (*s3control.GetAccessPointForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointForObjectLambdaInput) (*s3control.GetAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointForObjectLambdaInput) *s3control.GetAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointForObjectLambdaRequest(_a0 *s3control.GetAccessPointForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointForObjectLambdaInput) *s3control.GetAccessPointForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointForObjectLambdaInput, _a2 ...request.Option) (*s3control.GetAccessPointForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointForObjectLambdaInput, ...request.Option) (*s3control.GetAccessPointForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointForObjectLambdaInput, ...request.Option) *s3control.GetAccessPointForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicy(_a0 *s3control.GetAccessPointPolicyInput) (*s3control.GetAccessPointPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyInput) (*s3control.GetAccessPointPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyInput) *s3control.GetAccessPointPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyForObjectLambda(_a0 *s3control.GetAccessPointPolicyForObjectLambdaInput) (*s3control.GetAccessPointPolicyForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) (*s3control.GetAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) *s3control.GetAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyForObjectLambdaRequest(_a0 *s3control.GetAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointPolicyForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointPolicyForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointPolicyForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyForObjectLambdaInput) *s3control.GetAccessPointPolicyForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointPolicyForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointPolicyForObjectLambdaInput, _a2 ...request.Option) (*s3control.GetAccessPointPolicyForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyForObjectLambdaInput, ...request.Option) (*s3control.GetAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyForObjectLambdaInput, ...request.Option) *s3control.GetAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointPolicyForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyRequest(_a0 *s3control.GetAccessPointPolicyInput) (*request.Request, *s3control.GetAccessPointPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyInput) (*request.Request, *s3control.GetAccessPointPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyInput) *s3control.GetAccessPointPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatus provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatus(_a0 *s3control.GetAccessPointPolicyStatusInput) (*s3control.GetAccessPointPolicyStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusInput) (*s3control.GetAccessPointPolicyStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusInput) *s3control.GetAccessPointPolicyStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatusForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatusForObjectLambda(_a0 *s3control.GetAccessPointPolicyStatusForObjectLambdaInput) (*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) (*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatusForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatusForObjectLambdaRequest(_a0 *s3control.GetAccessPointPolicyStatusForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) (*request.Request, *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyStatusForObjectLambdaInput) *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatusForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatusForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointPolicyStatusForObjectLambdaInput, _a2 ...request.Option) (*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyStatusForObjectLambdaInput, ...request.Option) (*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyStatusForObjectLambdaInput, ...request.Option) *s3control.GetAccessPointPolicyStatusForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyStatusForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointPolicyStatusForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatusRequest(_a0 *s3control.GetAccessPointPolicyStatusInput) (*request.Request, *s3control.GetAccessPointPolicyStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointPolicyStatusOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusInput) (*request.Request, *s3control.GetAccessPointPolicyStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointPolicyStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointPolicyStatusInput) *s3control.GetAccessPointPolicyStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointPolicyStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointPolicyStatusWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointPolicyStatusInput, _a2 ...request.Option) (*s3control.GetAccessPointPolicyStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyStatusInput, ...request.Option) (*s3control.GetAccessPointPolicyStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyStatusInput, ...request.Option) *s3control.GetAccessPointPolicyStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointPolicyStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointPolicyWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointPolicyInput, _a2 ...request.Option) (*s3control.GetAccessPointPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyInput, ...request.Option) (*s3control.GetAccessPointPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointPolicyInput, ...request.Option) *s3control.GetAccessPointPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetAccessPointRequest(_a0 *s3control.GetAccessPointInput) (*request.Request, *s3control.GetAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointInput) (*request.Request, *s3control.GetAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetAccessPointInput) *s3control.GetAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetAccessPointWithContext(_a0 context.Context, _a1 *s3control.GetAccessPointInput, _a2 ...request.Option) (*s3control.GetAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointInput, ...request.Option) (*s3control.GetAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetAccessPointInput, ...request.Option) *s3control.GetAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucket provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucket(_a0 *s3control.GetBucketInput) (*s3control.GetBucketOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketInput) (*s3control.GetBucketOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketInput) *s3control.GetBucketOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketLifecycleConfiguration(_a0 *s3control.GetBucketLifecycleConfigurationInput) (*s3control.GetBucketLifecycleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketLifecycleConfigurationInput) (*s3control.GetBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketLifecycleConfigurationInput) *s3control.GetBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketLifecycleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketLifecycleConfigurationRequest(_a0 *s3control.GetBucketLifecycleConfigurationInput) (*request.Request, *s3control.GetBucketLifecycleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetBucketLifecycleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketLifecycleConfigurationInput) (*request.Request, *s3control.GetBucketLifecycleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketLifecycleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketLifecycleConfigurationInput) *s3control.GetBucketLifecycleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketLifecycleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetBucketLifecycleConfigurationWithContext(_a0 context.Context, _a1 *s3control.GetBucketLifecycleConfigurationInput, _a2 ...request.Option) (*s3control.GetBucketLifecycleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketLifecycleConfigurationInput, ...request.Option) (*s3control.GetBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketLifecycleConfigurationInput, ...request.Option) *s3control.GetBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetBucketLifecycleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketPolicy(_a0 *s3control.GetBucketPolicyInput) (*s3control.GetBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketPolicyInput) (*s3control.GetBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketPolicyInput) *s3control.GetBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketPolicyRequest(_a0 *s3control.GetBucketPolicyInput) (*request.Request, *s3control.GetBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketPolicyInput) (*request.Request, *s3control.GetBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketPolicyInput) *s3control.GetBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetBucketPolicyWithContext(_a0 context.Context, _a1 *s3control.GetBucketPolicyInput, _a2 ...request.Option) (*s3control.GetBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketPolicyInput, ...request.Option) (*s3control.GetBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketPolicyInput, ...request.Option) *s3control.GetBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketRequest(_a0 *s3control.GetBucketInput) (*request.Request, *s3control.GetBucketOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetBucketOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketInput) (*request.Request, *s3control.GetBucketOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketInput) *s3control.GetBucketOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetBucketOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketTagging(_a0 *s3control.GetBucketTaggingInput) (*s3control.GetBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketTaggingInput) (*s3control.GetBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketTaggingInput) *s3control.GetBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketTaggingRequest(_a0 *s3control.GetBucketTaggingInput) (*request.Request, *s3control.GetBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketTaggingInput) (*request.Request, *s3control.GetBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketTaggingInput) *s3control.GetBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetBucketTaggingWithContext(_a0 context.Context, _a1 *s3control.GetBucketTaggingInput, _a2 ...request.Option) (*s3control.GetBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketTaggingInput, ...request.Option) (*s3control.GetBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketTaggingInput, ...request.Option) *s3control.GetBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketVersioning provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketVersioning(_a0 *s3control.GetBucketVersioningInput) (*s3control.GetBucketVersioningOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketVersioningInput) (*s3control.GetBucketVersioningOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketVersioningInput) *s3control.GetBucketVersioningOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketVersioningInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketVersioningRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetBucketVersioningRequest(_a0 *s3control.GetBucketVersioningInput) (*request.Request, *s3control.GetBucketVersioningOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetBucketVersioningOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketVersioningInput) (*request.Request, *s3control.GetBucketVersioningOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetBucketVersioningInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetBucketVersioningInput) *s3control.GetBucketVersioningOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetBucketVersioningOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetBucketVersioningWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetBucketVersioningWithContext(_a0 context.Context, _a1 *s3control.GetBucketVersioningInput, _a2 ...request.Option) (*s3control.GetBucketVersioningOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketVersioningInput, ...request.Option) (*s3control.GetBucketVersioningOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketVersioningInput, ...request.Option) *s3control.GetBucketVersioningOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetBucketVersioningInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetBucketWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetBucketWithContext(_a0 context.Context, _a1 *s3control.GetBucketInput, _a2 ...request.Option) (*s3control.GetBucketOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetBucketOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketInput, ...request.Option) (*s3control.GetBucketOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetBucketInput, ...request.Option) *s3control.GetBucketOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetBucketOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetBucketInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetJobTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetJobTagging(_a0 *s3control.GetJobTaggingInput) (*s3control.GetJobTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetJobTaggingInput) (*s3control.GetJobTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetJobTaggingInput) *s3control.GetJobTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetJobTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetJobTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetJobTaggingRequest(_a0 *s3control.GetJobTaggingInput) (*request.Request, *s3control.GetJobTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetJobTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetJobTaggingInput) (*request.Request, *s3control.GetJobTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetJobTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetJobTaggingInput) *s3control.GetJobTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetJobTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetJobTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetJobTaggingWithContext(_a0 context.Context, _a1 *s3control.GetJobTaggingInput, _a2 ...request.Option) (*s3control.GetJobTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetJobTaggingInput, ...request.Option) (*s3control.GetJobTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetJobTaggingInput, ...request.Option) *s3control.GetJobTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetJobTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPoint provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPoint(_a0 *s3control.GetMultiRegionAccessPointInput) (*s3control.GetMultiRegionAccessPointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointInput) (*s3control.GetMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointInput) *s3control.GetMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicy(_a0 *s3control.GetMultiRegionAccessPointPolicyInput) (*s3control.GetMultiRegionAccessPointPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetMultiRegionAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyInput) (*s3control.GetMultiRegionAccessPointPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyInput) *s3control.GetMultiRegionAccessPointPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicyRequest(_a0 *s3control.GetMultiRegionAccessPointPolicyInput) (*request.Request, *s3control.GetMultiRegionAccessPointPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetMultiRegionAccessPointPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyInput) (*request.Request, *s3control.GetMultiRegionAccessPointPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointPolicyInput) *s3control.GetMultiRegionAccessPointPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetMultiRegionAccessPointPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicyStatus provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicyStatus(_a0 *s3control.GetMultiRegionAccessPointPolicyStatusInput) (*s3control.GetMultiRegionAccessPointPolicyStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetMultiRegionAccessPointPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) (*s3control.GetMultiRegionAccessPointPolicyStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) *s3control.GetMultiRegionAccessPointPolicyStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicyStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicyStatusRequest(_a0 *s3control.GetMultiRegionAccessPointPolicyStatusInput) (*request.Request, *s3control.GetMultiRegionAccessPointPolicyStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetMultiRegionAccessPointPolicyStatusOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) (*request.Request, *s3control.GetMultiRegionAccessPointPolicyStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointPolicyStatusInput) *s3control.GetMultiRegionAccessPointPolicyStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetMultiRegionAccessPointPolicyStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicyStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicyStatusWithContext(_a0 context.Context, _a1 *s3control.GetMultiRegionAccessPointPolicyStatusInput, _a2 ...request.Option) (*s3control.GetMultiRegionAccessPointPolicyStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetMultiRegionAccessPointPolicyStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyStatusInput, ...request.Option) (*s3control.GetMultiRegionAccessPointPolicyStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyStatusInput, ...request.Option) *s3control.GetMultiRegionAccessPointPolicyStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointPolicyStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointPolicyWithContext(_a0 context.Context, _a1 *s3control.GetMultiRegionAccessPointPolicyInput, _a2 ...request.Option) (*s3control.GetMultiRegionAccessPointPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetMultiRegionAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyInput, ...request.Option) (*s3control.GetMultiRegionAccessPointPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyInput, ...request.Option) *s3control.GetMultiRegionAccessPointPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetMultiRegionAccessPointPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointRequest(_a0 *s3control.GetMultiRegionAccessPointInput) (*request.Request, *s3control.GetMultiRegionAccessPointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetMultiRegionAccessPointOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointInput) (*request.Request, *s3control.GetMultiRegionAccessPointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetMultiRegionAccessPointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetMultiRegionAccessPointInput) *s3control.GetMultiRegionAccessPointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetMultiRegionAccessPointOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetMultiRegionAccessPointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetMultiRegionAccessPointWithContext(_a0 context.Context, _a1 *s3control.GetMultiRegionAccessPointInput, _a2 ...request.Option) (*s3control.GetMultiRegionAccessPointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetMultiRegionAccessPointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointInput, ...request.Option) (*s3control.GetMultiRegionAccessPointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetMultiRegionAccessPointInput, ...request.Option) *s3control.GetMultiRegionAccessPointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetMultiRegionAccessPointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetMultiRegionAccessPointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetPublicAccessBlock(_a0 *s3control.GetPublicAccessBlockInput) (*s3control.GetPublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetPublicAccessBlockInput) (*s3control.GetPublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetPublicAccessBlockInput) *s3control.GetPublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetPublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetPublicAccessBlockRequest(_a0 *s3control.GetPublicAccessBlockInput) (*request.Request, *s3control.GetPublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetPublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetPublicAccessBlockInput) (*request.Request, *s3control.GetPublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetPublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetPublicAccessBlockInput) *s3control.GetPublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetPublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetPublicAccessBlockWithContext(_a0 context.Context, _a1 *s3control.GetPublicAccessBlockInput, _a2 ...request.Option) (*s3control.GetPublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetPublicAccessBlockInput, ...request.Option) (*s3control.GetPublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetPublicAccessBlockInput, ...request.Option) *s3control.GetPublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetPublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetStorageLensConfiguration(_a0 *s3control.GetStorageLensConfigurationInput) (*s3control.GetStorageLensConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationInput) (*s3control.GetStorageLensConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationInput) *s3control.GetStorageLensConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetStorageLensConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetStorageLensConfigurationRequest(_a0 *s3control.GetStorageLensConfigurationInput) (*request.Request, *s3control.GetStorageLensConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetStorageLensConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationInput) (*request.Request, *s3control.GetStorageLensConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetStorageLensConfigurationInput) *s3control.GetStorageLensConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetStorageLensConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfigurationTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetStorageLensConfigurationTagging(_a0 *s3control.GetStorageLensConfigurationTaggingInput) (*s3control.GetStorageLensConfigurationTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.GetStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationTaggingInput) (*s3control.GetStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationTaggingInput) *s3control.GetStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetStorageLensConfigurationTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfigurationTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) GetStorageLensConfigurationTaggingRequest(_a0 *s3control.GetStorageLensConfigurationTaggingInput) (*request.Request, *s3control.GetStorageLensConfigurationTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.GetStorageLensConfigurationTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationTaggingInput) (*request.Request, *s3control.GetStorageLensConfigurationTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.GetStorageLensConfigurationTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.GetStorageLensConfigurationTaggingInput) *s3control.GetStorageLensConfigurationTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.GetStorageLensConfigurationTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfigurationTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetStorageLensConfigurationTaggingWithContext(_a0 context.Context, _a1 *s3control.GetStorageLensConfigurationTaggingInput, _a2 ...request.Option) (*s3control.GetStorageLensConfigurationTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetStorageLensConfigurationTaggingInput, ...request.Option) (*s3control.GetStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetStorageLensConfigurationTaggingInput, ...request.Option) *s3control.GetStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetStorageLensConfigurationTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetStorageLensConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) GetStorageLensConfigurationWithContext(_a0 context.Context, _a1 *s3control.GetStorageLensConfigurationInput, _a2 ...request.Option) (*s3control.GetStorageLensConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.GetStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetStorageLensConfigurationInput, ...request.Option) (*s3control.GetStorageLensConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.GetStorageLensConfigurationInput, ...request.Option) *s3control.GetStorageLensConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.GetStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.GetStorageLensConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessPoints provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListAccessPoints(_a0 *s3control.ListAccessPointsInput) (*s3control.ListAccessPointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListAccessPointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsInput) (*s3control.ListAccessPointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsInput) *s3control.ListAccessPointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListAccessPointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListAccessPointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessPointsForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListAccessPointsForObjectLambda(_a0 *s3control.ListAccessPointsForObjectLambdaInput) (*s3control.ListAccessPointsForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListAccessPointsForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsForObjectLambdaInput) (*s3control.ListAccessPointsForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsForObjectLambdaInput) *s3control.ListAccessPointsForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListAccessPointsForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListAccessPointsForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessPointsForObjectLambdaPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListAccessPointsForObjectLambdaPages(_a0 *s3control.ListAccessPointsForObjectLambdaInput, _a1 func(*s3control.ListAccessPointsForObjectLambdaOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsForObjectLambdaInput, func(*s3control.ListAccessPointsForObjectLambdaOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessPointsForObjectLambdaPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListAccessPointsForObjectLambdaPagesWithContext(_a0 context.Context, _a1 *s3control.ListAccessPointsForObjectLambdaInput, _a2 func(*s3control.ListAccessPointsForObjectLambdaOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsForObjectLambdaInput, func(*s3control.ListAccessPointsForObjectLambdaOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessPointsForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListAccessPointsForObjectLambdaRequest(_a0 *s3control.ListAccessPointsForObjectLambdaInput) (*request.Request, *s3control.ListAccessPointsForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListAccessPointsForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsForObjectLambdaInput) (*request.Request, *s3control.ListAccessPointsForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListAccessPointsForObjectLambdaInput) *s3control.ListAccessPointsForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListAccessPointsForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAccessPointsForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListAccessPointsForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.ListAccessPointsForObjectLambdaInput, _a2 ...request.Option) (*s3control.ListAccessPointsForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListAccessPointsForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsForObjectLambdaInput, ...request.Option) (*s3control.ListAccessPointsForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsForObjectLambdaInput, ...request.Option) *s3control.ListAccessPointsForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListAccessPointsForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListAccessPointsForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListAccessPointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListAccessPointsPages(_a0 *s3control.ListAccessPointsInput, _a1 func(*s3control.ListAccessPointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsInput, func(*s3control.ListAccessPointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessPointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListAccessPointsPagesWithContext(_a0 context.Context, _a1 *s3control.ListAccessPointsInput, _a2 func(*s3control.ListAccessPointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsInput, func(*s3control.ListAccessPointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListAccessPointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListAccessPointsRequest(_a0 *s3control.ListAccessPointsInput) (*request.Request, *s3control.ListAccessPointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListAccessPointsOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsInput) (*request.Request, *s3control.ListAccessPointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListAccessPointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListAccessPointsInput) *s3control.ListAccessPointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListAccessPointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListAccessPointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListAccessPointsWithContext(_a0 context.Context, _a1 *s3control.ListAccessPointsInput, _a2 ...request.Option) (*s3control.ListAccessPointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListAccessPointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsInput, ...request.Option) (*s3control.ListAccessPointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListAccessPointsInput, ...request.Option) *s3control.ListAccessPointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListAccessPointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListAccessPointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListJobs provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListJobs(_a0 *s3control.ListJobsInput) (*s3control.ListJobsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListJobsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListJobsInput) (*s3control.ListJobsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListJobsInput) *s3control.ListJobsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListJobsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListJobsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListJobsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListJobsPages(_a0 *s3control.ListJobsInput, _a1 func(*s3control.ListJobsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListJobsInput, func(*s3control.ListJobsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListJobsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListJobsPagesWithContext(_a0 context.Context, _a1 *s3control.ListJobsInput, _a2 func(*s3control.ListJobsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListJobsInput, func(*s3control.ListJobsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListJobsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListJobsRequest(_a0 *s3control.ListJobsInput) (*request.Request, *s3control.ListJobsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListJobsOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListJobsInput) (*request.Request, *s3control.ListJobsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListJobsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListJobsInput) *s3control.ListJobsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListJobsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListJobsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListJobsWithContext(_a0 context.Context, _a1 *s3control.ListJobsInput, _a2 ...request.Option) (*s3control.ListJobsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListJobsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListJobsInput, ...request.Option) (*s3control.ListJobsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListJobsInput, ...request.Option) *s3control.ListJobsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListJobsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListJobsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMultiRegionAccessPoints provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListMultiRegionAccessPoints(_a0 *s3control.ListMultiRegionAccessPointsInput) (*s3control.ListMultiRegionAccessPointsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListMultiRegionAccessPointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListMultiRegionAccessPointsInput) (*s3control.ListMultiRegionAccessPointsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListMultiRegionAccessPointsInput) *s3control.ListMultiRegionAccessPointsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListMultiRegionAccessPointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListMultiRegionAccessPointsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListMultiRegionAccessPointsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListMultiRegionAccessPointsPages(_a0 *s3control.ListMultiRegionAccessPointsInput, _a1 func(*s3control.ListMultiRegionAccessPointsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListMultiRegionAccessPointsInput, func(*s3control.ListMultiRegionAccessPointsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMultiRegionAccessPointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListMultiRegionAccessPointsPagesWithContext(_a0 context.Context, _a1 *s3control.ListMultiRegionAccessPointsInput, _a2 func(*s3control.ListMultiRegionAccessPointsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListMultiRegionAccessPointsInput, func(*s3control.ListMultiRegionAccessPointsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListMultiRegionAccessPointsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListMultiRegionAccessPointsRequest(_a0 *s3control.ListMultiRegionAccessPointsInput) (*request.Request, *s3control.ListMultiRegionAccessPointsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListMultiRegionAccessPointsOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListMultiRegionAccessPointsInput) (*request.Request, *s3control.ListMultiRegionAccessPointsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListMultiRegionAccessPointsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListMultiRegionAccessPointsInput) *s3control.ListMultiRegionAccessPointsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListMultiRegionAccessPointsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListMultiRegionAccessPointsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListMultiRegionAccessPointsWithContext(_a0 context.Context, _a1 *s3control.ListMultiRegionAccessPointsInput, _a2 ...request.Option) (*s3control.ListMultiRegionAccessPointsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListMultiRegionAccessPointsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListMultiRegionAccessPointsInput, ...request.Option) (*s3control.ListMultiRegionAccessPointsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListMultiRegionAccessPointsInput, ...request.Option) *s3control.ListMultiRegionAccessPointsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListMultiRegionAccessPointsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListMultiRegionAccessPointsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRegionalBuckets provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListRegionalBuckets(_a0 *s3control.ListRegionalBucketsInput) (*s3control.ListRegionalBucketsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListRegionalBucketsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListRegionalBucketsInput) (*s3control.ListRegionalBucketsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListRegionalBucketsInput) *s3control.ListRegionalBucketsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListRegionalBucketsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListRegionalBucketsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListRegionalBucketsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListRegionalBucketsPages(_a0 *s3control.ListRegionalBucketsInput, _a1 func(*s3control.ListRegionalBucketsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListRegionalBucketsInput, func(*s3control.ListRegionalBucketsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRegionalBucketsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListRegionalBucketsPagesWithContext(_a0 context.Context, _a1 *s3control.ListRegionalBucketsInput, _a2 func(*s3control.ListRegionalBucketsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListRegionalBucketsInput, func(*s3control.ListRegionalBucketsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListRegionalBucketsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListRegionalBucketsRequest(_a0 *s3control.ListRegionalBucketsInput) (*request.Request, *s3control.ListRegionalBucketsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListRegionalBucketsOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListRegionalBucketsInput) (*request.Request, *s3control.ListRegionalBucketsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListRegionalBucketsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListRegionalBucketsInput) *s3control.ListRegionalBucketsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListRegionalBucketsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListRegionalBucketsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListRegionalBucketsWithContext(_a0 context.Context, _a1 *s3control.ListRegionalBucketsInput, _a2 ...request.Option) (*s3control.ListRegionalBucketsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListRegionalBucketsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListRegionalBucketsInput, ...request.Option) (*s3control.ListRegionalBucketsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListRegionalBucketsInput, ...request.Option) *s3control.ListRegionalBucketsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListRegionalBucketsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListRegionalBucketsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStorageLensConfigurations provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListStorageLensConfigurations(_a0 *s3control.ListStorageLensConfigurationsInput) (*s3control.ListStorageLensConfigurationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.ListStorageLensConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.ListStorageLensConfigurationsInput) (*s3control.ListStorageLensConfigurationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListStorageLensConfigurationsInput) *s3control.ListStorageLensConfigurationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListStorageLensConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListStorageLensConfigurationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListStorageLensConfigurationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeS3Control) ListStorageLensConfigurationsPages(_a0 *s3control.ListStorageLensConfigurationsInput, _a1 func(*s3control.ListStorageLensConfigurationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*s3control.ListStorageLensConfigurationsInput, func(*s3control.ListStorageLensConfigurationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStorageLensConfigurationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeS3Control) ListStorageLensConfigurationsPagesWithContext(_a0 context.Context, _a1 *s3control.ListStorageLensConfigurationsInput, _a2 func(*s3control.ListStorageLensConfigurationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListStorageLensConfigurationsInput, func(*s3control.ListStorageLensConfigurationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListStorageLensConfigurationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) ListStorageLensConfigurationsRequest(_a0 *s3control.ListStorageLensConfigurationsInput) (*request.Request, *s3control.ListStorageLensConfigurationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.ListStorageLensConfigurationsOutput
- if rf, ok := ret.Get(0).(func(*s3control.ListStorageLensConfigurationsInput) (*request.Request, *s3control.ListStorageLensConfigurationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.ListStorageLensConfigurationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.ListStorageLensConfigurationsInput) *s3control.ListStorageLensConfigurationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.ListStorageLensConfigurationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListStorageLensConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) ListStorageLensConfigurationsWithContext(_a0 context.Context, _a1 *s3control.ListStorageLensConfigurationsInput, _a2 ...request.Option) (*s3control.ListStorageLensConfigurationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.ListStorageLensConfigurationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListStorageLensConfigurationsInput, ...request.Option) (*s3control.ListStorageLensConfigurationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.ListStorageLensConfigurationsInput, ...request.Option) *s3control.ListStorageLensConfigurationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.ListStorageLensConfigurationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.ListStorageLensConfigurationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointConfigurationForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointConfigurationForObjectLambda(_a0 *s3control.PutAccessPointConfigurationForObjectLambdaInput) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutAccessPointConfigurationForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) *s3control.PutAccessPointConfigurationForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointConfigurationForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointConfigurationForObjectLambdaRequest(_a0 *s3control.PutAccessPointConfigurationForObjectLambdaInput) (*request.Request, *s3control.PutAccessPointConfigurationForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutAccessPointConfigurationForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) (*request.Request, *s3control.PutAccessPointConfigurationForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointConfigurationForObjectLambdaInput) *s3control.PutAccessPointConfigurationForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutAccessPointConfigurationForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutAccessPointConfigurationForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.PutAccessPointConfigurationForObjectLambdaInput, _a2 ...request.Option) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutAccessPointConfigurationForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointConfigurationForObjectLambdaInput, ...request.Option) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointConfigurationForObjectLambdaInput, ...request.Option) *s3control.PutAccessPointConfigurationForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointConfigurationForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutAccessPointConfigurationForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointPolicy(_a0 *s3control.PutAccessPointPolicyInput) (*s3control.PutAccessPointPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyInput) (*s3control.PutAccessPointPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyInput) *s3control.PutAccessPointPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicyForObjectLambda provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointPolicyForObjectLambda(_a0 *s3control.PutAccessPointPolicyForObjectLambdaInput) (*s3control.PutAccessPointPolicyForObjectLambdaOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) (*s3control.PutAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) *s3control.PutAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicyForObjectLambdaRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointPolicyForObjectLambdaRequest(_a0 *s3control.PutAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.PutAccessPointPolicyForObjectLambdaOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutAccessPointPolicyForObjectLambdaOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) (*request.Request, *s3control.PutAccessPointPolicyForObjectLambdaOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointPolicyForObjectLambdaInput) *s3control.PutAccessPointPolicyForObjectLambdaOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicyForObjectLambdaWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutAccessPointPolicyForObjectLambdaWithContext(_a0 context.Context, _a1 *s3control.PutAccessPointPolicyForObjectLambdaInput, _a2 ...request.Option) (*s3control.PutAccessPointPolicyForObjectLambdaOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutAccessPointPolicyForObjectLambdaOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointPolicyForObjectLambdaInput, ...request.Option) (*s3control.PutAccessPointPolicyForObjectLambdaOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointPolicyForObjectLambdaInput, ...request.Option) *s3control.PutAccessPointPolicyForObjectLambdaOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointPolicyForObjectLambdaOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutAccessPointPolicyForObjectLambdaInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutAccessPointPolicyRequest(_a0 *s3control.PutAccessPointPolicyInput) (*request.Request, *s3control.PutAccessPointPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutAccessPointPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyInput) (*request.Request, *s3control.PutAccessPointPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutAccessPointPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutAccessPointPolicyInput) *s3control.PutAccessPointPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutAccessPointPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutAccessPointPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutAccessPointPolicyWithContext(_a0 context.Context, _a1 *s3control.PutAccessPointPolicyInput, _a2 ...request.Option) (*s3control.PutAccessPointPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointPolicyInput, ...request.Option) (*s3control.PutAccessPointPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutAccessPointPolicyInput, ...request.Option) *s3control.PutAccessPointPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutAccessPointPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketLifecycleConfiguration(_a0 *s3control.PutBucketLifecycleConfigurationInput) (*s3control.PutBucketLifecycleConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketLifecycleConfigurationInput) (*s3control.PutBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketLifecycleConfigurationInput) *s3control.PutBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketLifecycleConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketLifecycleConfigurationRequest(_a0 *s3control.PutBucketLifecycleConfigurationInput) (*request.Request, *s3control.PutBucketLifecycleConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutBucketLifecycleConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketLifecycleConfigurationInput) (*request.Request, *s3control.PutBucketLifecycleConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketLifecycleConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketLifecycleConfigurationInput) *s3control.PutBucketLifecycleConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketLifecycleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutBucketLifecycleConfigurationWithContext(_a0 context.Context, _a1 *s3control.PutBucketLifecycleConfigurationInput, _a2 ...request.Option) (*s3control.PutBucketLifecycleConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutBucketLifecycleConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketLifecycleConfigurationInput, ...request.Option) (*s3control.PutBucketLifecycleConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketLifecycleConfigurationInput, ...request.Option) *s3control.PutBucketLifecycleConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketLifecycleConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutBucketLifecycleConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketPolicy(_a0 *s3control.PutBucketPolicyInput) (*s3control.PutBucketPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketPolicyInput) (*s3control.PutBucketPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketPolicyInput) *s3control.PutBucketPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketPolicyRequest(_a0 *s3control.PutBucketPolicyInput) (*request.Request, *s3control.PutBucketPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutBucketPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketPolicyInput) (*request.Request, *s3control.PutBucketPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketPolicyInput) *s3control.PutBucketPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutBucketPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutBucketPolicyWithContext(_a0 context.Context, _a1 *s3control.PutBucketPolicyInput, _a2 ...request.Option) (*s3control.PutBucketPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutBucketPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketPolicyInput, ...request.Option) (*s3control.PutBucketPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketPolicyInput, ...request.Option) *s3control.PutBucketPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutBucketPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketTagging(_a0 *s3control.PutBucketTaggingInput) (*s3control.PutBucketTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketTaggingInput) (*s3control.PutBucketTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketTaggingInput) *s3control.PutBucketTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketTaggingRequest(_a0 *s3control.PutBucketTaggingInput) (*request.Request, *s3control.PutBucketTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutBucketTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketTaggingInput) (*request.Request, *s3control.PutBucketTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketTaggingInput) *s3control.PutBucketTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutBucketTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutBucketTaggingWithContext(_a0 context.Context, _a1 *s3control.PutBucketTaggingInput, _a2 ...request.Option) (*s3control.PutBucketTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutBucketTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketTaggingInput, ...request.Option) (*s3control.PutBucketTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketTaggingInput, ...request.Option) *s3control.PutBucketTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutBucketTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketVersioning provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketVersioning(_a0 *s3control.PutBucketVersioningInput) (*s3control.PutBucketVersioningOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketVersioningInput) (*s3control.PutBucketVersioningOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketVersioningInput) *s3control.PutBucketVersioningOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketVersioningInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutBucketVersioningRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutBucketVersioningRequest(_a0 *s3control.PutBucketVersioningInput) (*request.Request, *s3control.PutBucketVersioningOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutBucketVersioningOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketVersioningInput) (*request.Request, *s3control.PutBucketVersioningOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutBucketVersioningInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutBucketVersioningInput) *s3control.PutBucketVersioningOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutBucketVersioningOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutBucketVersioningWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutBucketVersioningWithContext(_a0 context.Context, _a1 *s3control.PutBucketVersioningInput, _a2 ...request.Option) (*s3control.PutBucketVersioningOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutBucketVersioningOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketVersioningInput, ...request.Option) (*s3control.PutBucketVersioningOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutBucketVersioningInput, ...request.Option) *s3control.PutBucketVersioningOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutBucketVersioningOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutBucketVersioningInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutJobTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutJobTagging(_a0 *s3control.PutJobTaggingInput) (*s3control.PutJobTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutJobTaggingInput) (*s3control.PutJobTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutJobTaggingInput) *s3control.PutJobTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutJobTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutJobTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutJobTaggingRequest(_a0 *s3control.PutJobTaggingInput) (*request.Request, *s3control.PutJobTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutJobTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutJobTaggingInput) (*request.Request, *s3control.PutJobTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutJobTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutJobTaggingInput) *s3control.PutJobTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutJobTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutJobTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutJobTaggingWithContext(_a0 context.Context, _a1 *s3control.PutJobTaggingInput, _a2 ...request.Option) (*s3control.PutJobTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutJobTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutJobTaggingInput, ...request.Option) (*s3control.PutJobTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutJobTaggingInput, ...request.Option) *s3control.PutJobTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutJobTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutJobTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMultiRegionAccessPointPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutMultiRegionAccessPointPolicy(_a0 *s3control.PutMultiRegionAccessPointPolicyInput) (*s3control.PutMultiRegionAccessPointPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutMultiRegionAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutMultiRegionAccessPointPolicyInput) (*s3control.PutMultiRegionAccessPointPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutMultiRegionAccessPointPolicyInput) *s3control.PutMultiRegionAccessPointPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutMultiRegionAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutMultiRegionAccessPointPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutMultiRegionAccessPointPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutMultiRegionAccessPointPolicyRequest(_a0 *s3control.PutMultiRegionAccessPointPolicyInput) (*request.Request, *s3control.PutMultiRegionAccessPointPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutMultiRegionAccessPointPolicyOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutMultiRegionAccessPointPolicyInput) (*request.Request, *s3control.PutMultiRegionAccessPointPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutMultiRegionAccessPointPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutMultiRegionAccessPointPolicyInput) *s3control.PutMultiRegionAccessPointPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutMultiRegionAccessPointPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutMultiRegionAccessPointPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutMultiRegionAccessPointPolicyWithContext(_a0 context.Context, _a1 *s3control.PutMultiRegionAccessPointPolicyInput, _a2 ...request.Option) (*s3control.PutMultiRegionAccessPointPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutMultiRegionAccessPointPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutMultiRegionAccessPointPolicyInput, ...request.Option) (*s3control.PutMultiRegionAccessPointPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutMultiRegionAccessPointPolicyInput, ...request.Option) *s3control.PutMultiRegionAccessPointPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutMultiRegionAccessPointPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutMultiRegionAccessPointPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlock provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutPublicAccessBlock(_a0 *s3control.PutPublicAccessBlockInput) (*s3control.PutPublicAccessBlockOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutPublicAccessBlockInput) (*s3control.PutPublicAccessBlockOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutPublicAccessBlockInput) *s3control.PutPublicAccessBlockOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutPublicAccessBlockInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlockRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutPublicAccessBlockRequest(_a0 *s3control.PutPublicAccessBlockInput) (*request.Request, *s3control.PutPublicAccessBlockOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutPublicAccessBlockOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutPublicAccessBlockInput) (*request.Request, *s3control.PutPublicAccessBlockOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutPublicAccessBlockInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutPublicAccessBlockInput) *s3control.PutPublicAccessBlockOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutPublicAccessBlockOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutPublicAccessBlockWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutPublicAccessBlockWithContext(_a0 context.Context, _a1 *s3control.PutPublicAccessBlockInput, _a2 ...request.Option) (*s3control.PutPublicAccessBlockOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutPublicAccessBlockOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutPublicAccessBlockInput, ...request.Option) (*s3control.PutPublicAccessBlockOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutPublicAccessBlockInput, ...request.Option) *s3control.PutPublicAccessBlockOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutPublicAccessBlockOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutPublicAccessBlockInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfiguration provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutStorageLensConfiguration(_a0 *s3control.PutStorageLensConfigurationInput) (*s3control.PutStorageLensConfigurationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationInput) (*s3control.PutStorageLensConfigurationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationInput) *s3control.PutStorageLensConfigurationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutStorageLensConfigurationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfigurationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutStorageLensConfigurationRequest(_a0 *s3control.PutStorageLensConfigurationInput) (*request.Request, *s3control.PutStorageLensConfigurationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutStorageLensConfigurationOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationInput) (*request.Request, *s3control.PutStorageLensConfigurationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutStorageLensConfigurationInput) *s3control.PutStorageLensConfigurationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutStorageLensConfigurationOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfigurationTagging provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutStorageLensConfigurationTagging(_a0 *s3control.PutStorageLensConfigurationTaggingInput) (*s3control.PutStorageLensConfigurationTaggingOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.PutStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationTaggingInput) (*s3control.PutStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationTaggingInput) *s3control.PutStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutStorageLensConfigurationTaggingInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfigurationTaggingRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) PutStorageLensConfigurationTaggingRequest(_a0 *s3control.PutStorageLensConfigurationTaggingInput) (*request.Request, *s3control.PutStorageLensConfigurationTaggingOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.PutStorageLensConfigurationTaggingOutput
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationTaggingInput) (*request.Request, *s3control.PutStorageLensConfigurationTaggingOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.PutStorageLensConfigurationTaggingInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.PutStorageLensConfigurationTaggingInput) *s3control.PutStorageLensConfigurationTaggingOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.PutStorageLensConfigurationTaggingOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfigurationTaggingWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutStorageLensConfigurationTaggingWithContext(_a0 context.Context, _a1 *s3control.PutStorageLensConfigurationTaggingInput, _a2 ...request.Option) (*s3control.PutStorageLensConfigurationTaggingOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutStorageLensConfigurationTaggingOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutStorageLensConfigurationTaggingInput, ...request.Option) (*s3control.PutStorageLensConfigurationTaggingOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutStorageLensConfigurationTaggingInput, ...request.Option) *s3control.PutStorageLensConfigurationTaggingOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutStorageLensConfigurationTaggingOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutStorageLensConfigurationTaggingInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutStorageLensConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) PutStorageLensConfigurationWithContext(_a0 context.Context, _a1 *s3control.PutStorageLensConfigurationInput, _a2 ...request.Option) (*s3control.PutStorageLensConfigurationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.PutStorageLensConfigurationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutStorageLensConfigurationInput, ...request.Option) (*s3control.PutStorageLensConfigurationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.PutStorageLensConfigurationInput, ...request.Option) *s3control.PutStorageLensConfigurationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.PutStorageLensConfigurationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.PutStorageLensConfigurationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateJobPriority provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) UpdateJobPriority(_a0 *s3control.UpdateJobPriorityInput) (*s3control.UpdateJobPriorityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.UpdateJobPriorityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobPriorityInput) (*s3control.UpdateJobPriorityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobPriorityInput) *s3control.UpdateJobPriorityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.UpdateJobPriorityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.UpdateJobPriorityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateJobPriorityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) UpdateJobPriorityRequest(_a0 *s3control.UpdateJobPriorityInput) (*request.Request, *s3control.UpdateJobPriorityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.UpdateJobPriorityOutput
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobPriorityInput) (*request.Request, *s3control.UpdateJobPriorityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobPriorityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.UpdateJobPriorityInput) *s3control.UpdateJobPriorityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.UpdateJobPriorityOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateJobPriorityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) UpdateJobPriorityWithContext(_a0 context.Context, _a1 *s3control.UpdateJobPriorityInput, _a2 ...request.Option) (*s3control.UpdateJobPriorityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.UpdateJobPriorityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.UpdateJobPriorityInput, ...request.Option) (*s3control.UpdateJobPriorityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.UpdateJobPriorityInput, ...request.Option) *s3control.UpdateJobPriorityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.UpdateJobPriorityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.UpdateJobPriorityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateJobStatus provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) UpdateJobStatus(_a0 *s3control.UpdateJobStatusInput) (*s3control.UpdateJobStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *s3control.UpdateJobStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobStatusInput) (*s3control.UpdateJobStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobStatusInput) *s3control.UpdateJobStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.UpdateJobStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.UpdateJobStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateJobStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeS3Control) UpdateJobStatusRequest(_a0 *s3control.UpdateJobStatusInput) (*request.Request, *s3control.UpdateJobStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *s3control.UpdateJobStatusOutput
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobStatusInput) (*request.Request, *s3control.UpdateJobStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*s3control.UpdateJobStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*s3control.UpdateJobStatusInput) *s3control.UpdateJobStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*s3control.UpdateJobStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// UpdateJobStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeS3Control) UpdateJobStatusWithContext(_a0 context.Context, _a1 *s3control.UpdateJobStatusInput, _a2 ...request.Option) (*s3control.UpdateJobStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *s3control.UpdateJobStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.UpdateJobStatusInput, ...request.Option) (*s3control.UpdateJobStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *s3control.UpdateJobStatusInput, ...request.Option) *s3control.UpdateJobStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*s3control.UpdateJobStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *s3control.UpdateJobStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeS3Control interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeS3Control creates a new instance of MockFakeS3Control. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeS3Control(t mockConstructorTestingTNewMockFakeS3Control) *MockFakeS3Control {
- mock := &MockFakeS3Control{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeSNS.go b/test/aws/mock_FakeSNS.go
deleted file mode 100644
index 8b48ce593..000000000
--- a/test/aws/mock_FakeSNS.go
+++ /dev/null
@@ -1,3966 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- request "github.com/aws/aws-sdk-go/aws/request"
- mock "github.com/stretchr/testify/mock"
-
- sns "github.com/aws/aws-sdk-go/service/sns"
-)
-
-// MockFakeSNS is an autogenerated mock type for the FakeSNS type
-type MockFakeSNS struct {
- mock.Mock
-}
-
-// AddPermission provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) AddPermission(_a0 *sns.AddPermissionInput) (*sns.AddPermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.AddPermissionInput) (*sns.AddPermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.AddPermissionInput) *sns.AddPermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.AddPermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddPermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) AddPermissionRequest(_a0 *sns.AddPermissionInput) (*request.Request, *sns.AddPermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.AddPermissionOutput
- if rf, ok := ret.Get(0).(func(*sns.AddPermissionInput) (*request.Request, *sns.AddPermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.AddPermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.AddPermissionInput) *sns.AddPermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.AddPermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) AddPermissionWithContext(_a0 context.Context, _a1 *sns.AddPermissionInput, _a2 ...request.Option) (*sns.AddPermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.AddPermissionInput, ...request.Option) (*sns.AddPermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.AddPermissionInput, ...request.Option) *sns.AddPermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.AddPermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CheckIfPhoneNumberIsOptedOut provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CheckIfPhoneNumberIsOptedOut(_a0 *sns.CheckIfPhoneNumberIsOptedOutInput) (*sns.CheckIfPhoneNumberIsOptedOutOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.CheckIfPhoneNumberIsOptedOutOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) (*sns.CheckIfPhoneNumberIsOptedOutOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) *sns.CheckIfPhoneNumberIsOptedOutOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CheckIfPhoneNumberIsOptedOutOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CheckIfPhoneNumberIsOptedOutRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CheckIfPhoneNumberIsOptedOutRequest(_a0 *sns.CheckIfPhoneNumberIsOptedOutInput) (*request.Request, *sns.CheckIfPhoneNumberIsOptedOutOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.CheckIfPhoneNumberIsOptedOutOutput
- if rf, ok := ret.Get(0).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) (*request.Request, *sns.CheckIfPhoneNumberIsOptedOutOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CheckIfPhoneNumberIsOptedOutInput) *sns.CheckIfPhoneNumberIsOptedOutOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.CheckIfPhoneNumberIsOptedOutOutput)
- }
- }
-
- return r0, r1
-}
-
-// CheckIfPhoneNumberIsOptedOutWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) CheckIfPhoneNumberIsOptedOutWithContext(_a0 context.Context, _a1 *sns.CheckIfPhoneNumberIsOptedOutInput, _a2 ...request.Option) (*sns.CheckIfPhoneNumberIsOptedOutOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.CheckIfPhoneNumberIsOptedOutOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CheckIfPhoneNumberIsOptedOutInput, ...request.Option) (*sns.CheckIfPhoneNumberIsOptedOutOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CheckIfPhoneNumberIsOptedOutInput, ...request.Option) *sns.CheckIfPhoneNumberIsOptedOutOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CheckIfPhoneNumberIsOptedOutOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.CheckIfPhoneNumberIsOptedOutInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfirmSubscription provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ConfirmSubscription(_a0 *sns.ConfirmSubscriptionInput) (*sns.ConfirmSubscriptionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ConfirmSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ConfirmSubscriptionInput) (*sns.ConfirmSubscriptionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ConfirmSubscriptionInput) *sns.ConfirmSubscriptionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ConfirmSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ConfirmSubscriptionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ConfirmSubscriptionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ConfirmSubscriptionRequest(_a0 *sns.ConfirmSubscriptionInput) (*request.Request, *sns.ConfirmSubscriptionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ConfirmSubscriptionOutput
- if rf, ok := ret.Get(0).(func(*sns.ConfirmSubscriptionInput) (*request.Request, *sns.ConfirmSubscriptionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ConfirmSubscriptionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ConfirmSubscriptionInput) *sns.ConfirmSubscriptionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ConfirmSubscriptionOutput)
- }
- }
-
- return r0, r1
-}
-
-// ConfirmSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ConfirmSubscriptionWithContext(_a0 context.Context, _a1 *sns.ConfirmSubscriptionInput, _a2 ...request.Option) (*sns.ConfirmSubscriptionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ConfirmSubscriptionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ConfirmSubscriptionInput, ...request.Option) (*sns.ConfirmSubscriptionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ConfirmSubscriptionInput, ...request.Option) *sns.ConfirmSubscriptionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ConfirmSubscriptionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ConfirmSubscriptionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlatformApplication provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreatePlatformApplication(_a0 *sns.CreatePlatformApplicationInput) (*sns.CreatePlatformApplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.CreatePlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformApplicationInput) (*sns.CreatePlatformApplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformApplicationInput) *sns.CreatePlatformApplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreatePlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreatePlatformApplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlatformApplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreatePlatformApplicationRequest(_a0 *sns.CreatePlatformApplicationInput) (*request.Request, *sns.CreatePlatformApplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.CreatePlatformApplicationOutput
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformApplicationInput) (*request.Request, *sns.CreatePlatformApplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformApplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreatePlatformApplicationInput) *sns.CreatePlatformApplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.CreatePlatformApplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePlatformApplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) CreatePlatformApplicationWithContext(_a0 context.Context, _a1 *sns.CreatePlatformApplicationInput, _a2 ...request.Option) (*sns.CreatePlatformApplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.CreatePlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreatePlatformApplicationInput, ...request.Option) (*sns.CreatePlatformApplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreatePlatformApplicationInput, ...request.Option) *sns.CreatePlatformApplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreatePlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.CreatePlatformApplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlatformEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreatePlatformEndpoint(_a0 *sns.CreatePlatformEndpointInput) (*sns.CreatePlatformEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.CreatePlatformEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformEndpointInput) (*sns.CreatePlatformEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformEndpointInput) *sns.CreatePlatformEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreatePlatformEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreatePlatformEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreatePlatformEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreatePlatformEndpointRequest(_a0 *sns.CreatePlatformEndpointInput) (*request.Request, *sns.CreatePlatformEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.CreatePlatformEndpointOutput
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformEndpointInput) (*request.Request, *sns.CreatePlatformEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreatePlatformEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreatePlatformEndpointInput) *sns.CreatePlatformEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.CreatePlatformEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreatePlatformEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) CreatePlatformEndpointWithContext(_a0 context.Context, _a1 *sns.CreatePlatformEndpointInput, _a2 ...request.Option) (*sns.CreatePlatformEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.CreatePlatformEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreatePlatformEndpointInput, ...request.Option) (*sns.CreatePlatformEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreatePlatformEndpointInput, ...request.Option) *sns.CreatePlatformEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreatePlatformEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.CreatePlatformEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSMSSandboxPhoneNumber provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumber(_a0 *sns.CreateSMSSandboxPhoneNumberInput) (*sns.CreateSMSSandboxPhoneNumberOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.CreateSMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) (*sns.CreateSMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) *sns.CreateSMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreateSMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreateSMSSandboxPhoneNumberInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateSMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumberRequest(_a0 *sns.CreateSMSSandboxPhoneNumberInput) (*request.Request, *sns.CreateSMSSandboxPhoneNumberOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.CreateSMSSandboxPhoneNumberOutput
- if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) (*request.Request, *sns.CreateSMSSandboxPhoneNumberOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreateSMSSandboxPhoneNumberInput) *sns.CreateSMSSandboxPhoneNumberOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.CreateSMSSandboxPhoneNumberOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateSMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.CreateSMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.CreateSMSSandboxPhoneNumberOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.CreateSMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreateSMSSandboxPhoneNumberInput, ...request.Option) (*sns.CreateSMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreateSMSSandboxPhoneNumberInput, ...request.Option) *sns.CreateSMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreateSMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.CreateSMSSandboxPhoneNumberInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTopic provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreateTopic(_a0 *sns.CreateTopicInput) (*sns.CreateTopicOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.CreateTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.CreateTopicInput) (*sns.CreateTopicOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreateTopicInput) *sns.CreateTopicOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreateTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreateTopicInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateTopicRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) CreateTopicRequest(_a0 *sns.CreateTopicInput) (*request.Request, *sns.CreateTopicOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.CreateTopicOutput
- if rf, ok := ret.Get(0).(func(*sns.CreateTopicInput) (*request.Request, *sns.CreateTopicOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.CreateTopicInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.CreateTopicInput) *sns.CreateTopicOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.CreateTopicOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateTopicWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) CreateTopicWithContext(_a0 context.Context, _a1 *sns.CreateTopicInput, _a2 ...request.Option) (*sns.CreateTopicOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.CreateTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreateTopicInput, ...request.Option) (*sns.CreateTopicOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.CreateTopicInput, ...request.Option) *sns.CreateTopicOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.CreateTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.CreateTopicInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEndpoint provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteEndpoint(_a0 *sns.DeleteEndpointInput) (*sns.DeleteEndpointOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.DeleteEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.DeleteEndpointInput) (*sns.DeleteEndpointOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteEndpointInput) *sns.DeleteEndpointOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteEndpointInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteEndpointRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteEndpointRequest(_a0 *sns.DeleteEndpointInput) (*request.Request, *sns.DeleteEndpointOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.DeleteEndpointOutput
- if rf, ok := ret.Get(0).(func(*sns.DeleteEndpointInput) (*request.Request, *sns.DeleteEndpointOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteEndpointInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteEndpointInput) *sns.DeleteEndpointOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.DeleteEndpointOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) DeleteEndpointWithContext(_a0 context.Context, _a1 *sns.DeleteEndpointInput, _a2 ...request.Option) (*sns.DeleteEndpointOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.DeleteEndpointOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteEndpointInput, ...request.Option) (*sns.DeleteEndpointOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteEndpointInput, ...request.Option) *sns.DeleteEndpointOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteEndpointOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.DeleteEndpointInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePlatformApplication provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeletePlatformApplication(_a0 *sns.DeletePlatformApplicationInput) (*sns.DeletePlatformApplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.DeletePlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.DeletePlatformApplicationInput) (*sns.DeletePlatformApplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeletePlatformApplicationInput) *sns.DeletePlatformApplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeletePlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeletePlatformApplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeletePlatformApplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeletePlatformApplicationRequest(_a0 *sns.DeletePlatformApplicationInput) (*request.Request, *sns.DeletePlatformApplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.DeletePlatformApplicationOutput
- if rf, ok := ret.Get(0).(func(*sns.DeletePlatformApplicationInput) (*request.Request, *sns.DeletePlatformApplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeletePlatformApplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeletePlatformApplicationInput) *sns.DeletePlatformApplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.DeletePlatformApplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeletePlatformApplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) DeletePlatformApplicationWithContext(_a0 context.Context, _a1 *sns.DeletePlatformApplicationInput, _a2 ...request.Option) (*sns.DeletePlatformApplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.DeletePlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeletePlatformApplicationInput, ...request.Option) (*sns.DeletePlatformApplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeletePlatformApplicationInput, ...request.Option) *sns.DeletePlatformApplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeletePlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.DeletePlatformApplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSMSSandboxPhoneNumber provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumber(_a0 *sns.DeleteSMSSandboxPhoneNumberInput) (*sns.DeleteSMSSandboxPhoneNumberOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.DeleteSMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) (*sns.DeleteSMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *sns.DeleteSMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteSMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteSMSSandboxPhoneNumberInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteSMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumberRequest(_a0 *sns.DeleteSMSSandboxPhoneNumberInput) (*request.Request, *sns.DeleteSMSSandboxPhoneNumberOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.DeleteSMSSandboxPhoneNumberOutput
- if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) (*request.Request, *sns.DeleteSMSSandboxPhoneNumberOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *sns.DeleteSMSSandboxPhoneNumberOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.DeleteSMSSandboxPhoneNumberOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteSMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.DeleteSMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.DeleteSMSSandboxPhoneNumberOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.DeleteSMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteSMSSandboxPhoneNumberInput, ...request.Option) (*sns.DeleteSMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteSMSSandboxPhoneNumberInput, ...request.Option) *sns.DeleteSMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteSMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.DeleteSMSSandboxPhoneNumberInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTopic provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteTopic(_a0 *sns.DeleteTopicInput) (*sns.DeleteTopicOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.DeleteTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.DeleteTopicInput) (*sns.DeleteTopicOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteTopicInput) *sns.DeleteTopicOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteTopicInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteTopicRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) DeleteTopicRequest(_a0 *sns.DeleteTopicInput) (*request.Request, *sns.DeleteTopicOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.DeleteTopicOutput
- if rf, ok := ret.Get(0).(func(*sns.DeleteTopicInput) (*request.Request, *sns.DeleteTopicOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.DeleteTopicInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.DeleteTopicInput) *sns.DeleteTopicOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.DeleteTopicOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteTopicWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) DeleteTopicWithContext(_a0 context.Context, _a1 *sns.DeleteTopicInput, _a2 ...request.Option) (*sns.DeleteTopicOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.DeleteTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteTopicInput, ...request.Option) (*sns.DeleteTopicOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteTopicInput, ...request.Option) *sns.DeleteTopicOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.DeleteTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.DeleteTopicInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDataProtectionPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetDataProtectionPolicy(_a0 *sns.GetDataProtectionPolicyInput) (*sns.GetDataProtectionPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetDataProtectionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetDataProtectionPolicyInput) (*sns.GetDataProtectionPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetDataProtectionPolicyInput) *sns.GetDataProtectionPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetDataProtectionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetDataProtectionPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetDataProtectionPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetDataProtectionPolicyRequest(_a0 *sns.GetDataProtectionPolicyInput) (*request.Request, *sns.GetDataProtectionPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetDataProtectionPolicyOutput
- if rf, ok := ret.Get(0).(func(*sns.GetDataProtectionPolicyInput) (*request.Request, *sns.GetDataProtectionPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetDataProtectionPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetDataProtectionPolicyInput) *sns.GetDataProtectionPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetDataProtectionPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetDataProtectionPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetDataProtectionPolicyWithContext(_a0 context.Context, _a1 *sns.GetDataProtectionPolicyInput, _a2 ...request.Option) (*sns.GetDataProtectionPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetDataProtectionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetDataProtectionPolicyInput, ...request.Option) (*sns.GetDataProtectionPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetDataProtectionPolicyInput, ...request.Option) *sns.GetDataProtectionPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetDataProtectionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetDataProtectionPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEndpointAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetEndpointAttributes(_a0 *sns.GetEndpointAttributesInput) (*sns.GetEndpointAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetEndpointAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetEndpointAttributesInput) (*sns.GetEndpointAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetEndpointAttributesInput) *sns.GetEndpointAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetEndpointAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetEndpointAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetEndpointAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetEndpointAttributesRequest(_a0 *sns.GetEndpointAttributesInput) (*request.Request, *sns.GetEndpointAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetEndpointAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.GetEndpointAttributesInput) (*request.Request, *sns.GetEndpointAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetEndpointAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetEndpointAttributesInput) *sns.GetEndpointAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetEndpointAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetEndpointAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetEndpointAttributesWithContext(_a0 context.Context, _a1 *sns.GetEndpointAttributesInput, _a2 ...request.Option) (*sns.GetEndpointAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetEndpointAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetEndpointAttributesInput, ...request.Option) (*sns.GetEndpointAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetEndpointAttributesInput, ...request.Option) *sns.GetEndpointAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetEndpointAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetEndpointAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPlatformApplicationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetPlatformApplicationAttributes(_a0 *sns.GetPlatformApplicationAttributesInput) (*sns.GetPlatformApplicationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetPlatformApplicationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetPlatformApplicationAttributesInput) (*sns.GetPlatformApplicationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetPlatformApplicationAttributesInput) *sns.GetPlatformApplicationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetPlatformApplicationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetPlatformApplicationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetPlatformApplicationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetPlatformApplicationAttributesRequest(_a0 *sns.GetPlatformApplicationAttributesInput) (*request.Request, *sns.GetPlatformApplicationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetPlatformApplicationAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.GetPlatformApplicationAttributesInput) (*request.Request, *sns.GetPlatformApplicationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetPlatformApplicationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetPlatformApplicationAttributesInput) *sns.GetPlatformApplicationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetPlatformApplicationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetPlatformApplicationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetPlatformApplicationAttributesWithContext(_a0 context.Context, _a1 *sns.GetPlatformApplicationAttributesInput, _a2 ...request.Option) (*sns.GetPlatformApplicationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetPlatformApplicationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetPlatformApplicationAttributesInput, ...request.Option) (*sns.GetPlatformApplicationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetPlatformApplicationAttributesInput, ...request.Option) *sns.GetPlatformApplicationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetPlatformApplicationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetPlatformApplicationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSMSAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSMSAttributes(_a0 *sns.GetSMSAttributesInput) (*sns.GetSMSAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetSMSAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetSMSAttributesInput) (*sns.GetSMSAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSMSAttributesInput) *sns.GetSMSAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSMSAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSMSAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSMSAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSMSAttributesRequest(_a0 *sns.GetSMSAttributesInput) (*request.Request, *sns.GetSMSAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetSMSAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.GetSMSAttributesInput) (*request.Request, *sns.GetSMSAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSMSAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSMSAttributesInput) *sns.GetSMSAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetSMSAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSMSAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetSMSAttributesWithContext(_a0 context.Context, _a1 *sns.GetSMSAttributesInput, _a2 ...request.Option) (*sns.GetSMSAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetSMSAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSMSAttributesInput, ...request.Option) (*sns.GetSMSAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSMSAttributesInput, ...request.Option) *sns.GetSMSAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSMSAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetSMSAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSMSSandboxAccountStatus provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSMSSandboxAccountStatus(_a0 *sns.GetSMSSandboxAccountStatusInput) (*sns.GetSMSSandboxAccountStatusOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetSMSSandboxAccountStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) (*sns.GetSMSSandboxAccountStatusOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) *sns.GetSMSSandboxAccountStatusOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSMSSandboxAccountStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSMSSandboxAccountStatusInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSMSSandboxAccountStatusRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSMSSandboxAccountStatusRequest(_a0 *sns.GetSMSSandboxAccountStatusInput) (*request.Request, *sns.GetSMSSandboxAccountStatusOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetSMSSandboxAccountStatusOutput
- if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) (*request.Request, *sns.GetSMSSandboxAccountStatusOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSMSSandboxAccountStatusInput) *sns.GetSMSSandboxAccountStatusOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetSMSSandboxAccountStatusOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSMSSandboxAccountStatusWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetSMSSandboxAccountStatusWithContext(_a0 context.Context, _a1 *sns.GetSMSSandboxAccountStatusInput, _a2 ...request.Option) (*sns.GetSMSSandboxAccountStatusOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetSMSSandboxAccountStatusOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSMSSandboxAccountStatusInput, ...request.Option) (*sns.GetSMSSandboxAccountStatusOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSMSSandboxAccountStatusInput, ...request.Option) *sns.GetSMSSandboxAccountStatusOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSMSSandboxAccountStatusOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetSMSSandboxAccountStatusInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSubscriptionAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSubscriptionAttributes(_a0 *sns.GetSubscriptionAttributesInput) (*sns.GetSubscriptionAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetSubscriptionAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetSubscriptionAttributesInput) (*sns.GetSubscriptionAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSubscriptionAttributesInput) *sns.GetSubscriptionAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSubscriptionAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSubscriptionAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetSubscriptionAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetSubscriptionAttributesRequest(_a0 *sns.GetSubscriptionAttributesInput) (*request.Request, *sns.GetSubscriptionAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetSubscriptionAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.GetSubscriptionAttributesInput) (*request.Request, *sns.GetSubscriptionAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetSubscriptionAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetSubscriptionAttributesInput) *sns.GetSubscriptionAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetSubscriptionAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetSubscriptionAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetSubscriptionAttributesWithContext(_a0 context.Context, _a1 *sns.GetSubscriptionAttributesInput, _a2 ...request.Option) (*sns.GetSubscriptionAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetSubscriptionAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSubscriptionAttributesInput, ...request.Option) (*sns.GetSubscriptionAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSubscriptionAttributesInput, ...request.Option) *sns.GetSubscriptionAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetSubscriptionAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetSubscriptionAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTopicAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetTopicAttributes(_a0 *sns.GetTopicAttributesInput) (*sns.GetTopicAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.GetTopicAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.GetTopicAttributesInput) (*sns.GetTopicAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetTopicAttributesInput) *sns.GetTopicAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetTopicAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetTopicAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetTopicAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) GetTopicAttributesRequest(_a0 *sns.GetTopicAttributesInput) (*request.Request, *sns.GetTopicAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.GetTopicAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.GetTopicAttributesInput) (*request.Request, *sns.GetTopicAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.GetTopicAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.GetTopicAttributesInput) *sns.GetTopicAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.GetTopicAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetTopicAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) GetTopicAttributesWithContext(_a0 context.Context, _a1 *sns.GetTopicAttributesInput, _a2 ...request.Option) (*sns.GetTopicAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.GetTopicAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetTopicAttributesInput, ...request.Option) (*sns.GetTopicAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.GetTopicAttributesInput, ...request.Option) *sns.GetTopicAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.GetTopicAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.GetTopicAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEndpointsByPlatformApplication provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListEndpointsByPlatformApplication(_a0 *sns.ListEndpointsByPlatformApplicationInput) (*sns.ListEndpointsByPlatformApplicationOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListEndpointsByPlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListEndpointsByPlatformApplicationInput) (*sns.ListEndpointsByPlatformApplicationOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListEndpointsByPlatformApplicationInput) *sns.ListEndpointsByPlatformApplicationOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListEndpointsByPlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListEndpointsByPlatformApplicationInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListEndpointsByPlatformApplicationPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListEndpointsByPlatformApplicationPages(_a0 *sns.ListEndpointsByPlatformApplicationInput, _a1 func(*sns.ListEndpointsByPlatformApplicationOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListEndpointsByPlatformApplicationInput, func(*sns.ListEndpointsByPlatformApplicationOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEndpointsByPlatformApplicationPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListEndpointsByPlatformApplicationPagesWithContext(_a0 context.Context, _a1 *sns.ListEndpointsByPlatformApplicationInput, _a2 func(*sns.ListEndpointsByPlatformApplicationOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListEndpointsByPlatformApplicationInput, func(*sns.ListEndpointsByPlatformApplicationOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListEndpointsByPlatformApplicationRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListEndpointsByPlatformApplicationRequest(_a0 *sns.ListEndpointsByPlatformApplicationInput) (*request.Request, *sns.ListEndpointsByPlatformApplicationOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListEndpointsByPlatformApplicationOutput
- if rf, ok := ret.Get(0).(func(*sns.ListEndpointsByPlatformApplicationInput) (*request.Request, *sns.ListEndpointsByPlatformApplicationOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListEndpointsByPlatformApplicationInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListEndpointsByPlatformApplicationInput) *sns.ListEndpointsByPlatformApplicationOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListEndpointsByPlatformApplicationOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListEndpointsByPlatformApplicationWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListEndpointsByPlatformApplicationWithContext(_a0 context.Context, _a1 *sns.ListEndpointsByPlatformApplicationInput, _a2 ...request.Option) (*sns.ListEndpointsByPlatformApplicationOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListEndpointsByPlatformApplicationOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListEndpointsByPlatformApplicationInput, ...request.Option) (*sns.ListEndpointsByPlatformApplicationOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListEndpointsByPlatformApplicationInput, ...request.Option) *sns.ListEndpointsByPlatformApplicationOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListEndpointsByPlatformApplicationOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListEndpointsByPlatformApplicationInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginationNumbers provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListOriginationNumbers(_a0 *sns.ListOriginationNumbersInput) (*sns.ListOriginationNumbersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListOriginationNumbersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) (*sns.ListOriginationNumbersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) *sns.ListOriginationNumbersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListOriginationNumbersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListOriginationNumbersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListOriginationNumbersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListOriginationNumbersPages(_a0 *sns.ListOriginationNumbersInput, _a1 func(*sns.ListOriginationNumbersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput, func(*sns.ListOriginationNumbersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListOriginationNumbersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListOriginationNumbersPagesWithContext(_a0 context.Context, _a1 *sns.ListOriginationNumbersInput, _a2 func(*sns.ListOriginationNumbersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListOriginationNumbersInput, func(*sns.ListOriginationNumbersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListOriginationNumbersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListOriginationNumbersRequest(_a0 *sns.ListOriginationNumbersInput) (*request.Request, *sns.ListOriginationNumbersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListOriginationNumbersOutput
- if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) (*request.Request, *sns.ListOriginationNumbersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListOriginationNumbersInput) *sns.ListOriginationNumbersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListOriginationNumbersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListOriginationNumbersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListOriginationNumbersWithContext(_a0 context.Context, _a1 *sns.ListOriginationNumbersInput, _a2 ...request.Option) (*sns.ListOriginationNumbersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListOriginationNumbersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListOriginationNumbersInput, ...request.Option) (*sns.ListOriginationNumbersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListOriginationNumbersInput, ...request.Option) *sns.ListOriginationNumbersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListOriginationNumbersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListOriginationNumbersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPhoneNumbersOptedOut provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListPhoneNumbersOptedOut(_a0 *sns.ListPhoneNumbersOptedOutInput) (*sns.ListPhoneNumbersOptedOutOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListPhoneNumbersOptedOutOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListPhoneNumbersOptedOutInput) (*sns.ListPhoneNumbersOptedOutOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListPhoneNumbersOptedOutInput) *sns.ListPhoneNumbersOptedOutOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListPhoneNumbersOptedOutOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListPhoneNumbersOptedOutInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPhoneNumbersOptedOutPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListPhoneNumbersOptedOutPages(_a0 *sns.ListPhoneNumbersOptedOutInput, _a1 func(*sns.ListPhoneNumbersOptedOutOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListPhoneNumbersOptedOutInput, func(*sns.ListPhoneNumbersOptedOutOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPhoneNumbersOptedOutPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListPhoneNumbersOptedOutPagesWithContext(_a0 context.Context, _a1 *sns.ListPhoneNumbersOptedOutInput, _a2 func(*sns.ListPhoneNumbersOptedOutOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPhoneNumbersOptedOutInput, func(*sns.ListPhoneNumbersOptedOutOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPhoneNumbersOptedOutRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListPhoneNumbersOptedOutRequest(_a0 *sns.ListPhoneNumbersOptedOutInput) (*request.Request, *sns.ListPhoneNumbersOptedOutOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListPhoneNumbersOptedOutOutput
- if rf, ok := ret.Get(0).(func(*sns.ListPhoneNumbersOptedOutInput) (*request.Request, *sns.ListPhoneNumbersOptedOutOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListPhoneNumbersOptedOutInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListPhoneNumbersOptedOutInput) *sns.ListPhoneNumbersOptedOutOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListPhoneNumbersOptedOutOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPhoneNumbersOptedOutWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListPhoneNumbersOptedOutWithContext(_a0 context.Context, _a1 *sns.ListPhoneNumbersOptedOutInput, _a2 ...request.Option) (*sns.ListPhoneNumbersOptedOutOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListPhoneNumbersOptedOutOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPhoneNumbersOptedOutInput, ...request.Option) (*sns.ListPhoneNumbersOptedOutOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPhoneNumbersOptedOutInput, ...request.Option) *sns.ListPhoneNumbersOptedOutOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListPhoneNumbersOptedOutOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListPhoneNumbersOptedOutInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPlatformApplications provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListPlatformApplications(_a0 *sns.ListPlatformApplicationsInput) (*sns.ListPlatformApplicationsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListPlatformApplicationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListPlatformApplicationsInput) (*sns.ListPlatformApplicationsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListPlatformApplicationsInput) *sns.ListPlatformApplicationsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListPlatformApplicationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListPlatformApplicationsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListPlatformApplicationsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListPlatformApplicationsPages(_a0 *sns.ListPlatformApplicationsInput, _a1 func(*sns.ListPlatformApplicationsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListPlatformApplicationsInput, func(*sns.ListPlatformApplicationsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPlatformApplicationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListPlatformApplicationsPagesWithContext(_a0 context.Context, _a1 *sns.ListPlatformApplicationsInput, _a2 func(*sns.ListPlatformApplicationsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPlatformApplicationsInput, func(*sns.ListPlatformApplicationsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListPlatformApplicationsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListPlatformApplicationsRequest(_a0 *sns.ListPlatformApplicationsInput) (*request.Request, *sns.ListPlatformApplicationsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListPlatformApplicationsOutput
- if rf, ok := ret.Get(0).(func(*sns.ListPlatformApplicationsInput) (*request.Request, *sns.ListPlatformApplicationsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListPlatformApplicationsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListPlatformApplicationsInput) *sns.ListPlatformApplicationsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListPlatformApplicationsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListPlatformApplicationsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListPlatformApplicationsWithContext(_a0 context.Context, _a1 *sns.ListPlatformApplicationsInput, _a2 ...request.Option) (*sns.ListPlatformApplicationsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListPlatformApplicationsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPlatformApplicationsInput, ...request.Option) (*sns.ListPlatformApplicationsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListPlatformApplicationsInput, ...request.Option) *sns.ListPlatformApplicationsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListPlatformApplicationsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListPlatformApplicationsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSMSSandboxPhoneNumbers provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbers(_a0 *sns.ListSMSSandboxPhoneNumbersInput) (*sns.ListSMSSandboxPhoneNumbersOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListSMSSandboxPhoneNumbersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) (*sns.ListSMSSandboxPhoneNumbersOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) *sns.ListSMSSandboxPhoneNumbersOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSMSSandboxPhoneNumbersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSMSSandboxPhoneNumbersInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSMSSandboxPhoneNumbersPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersPages(_a0 *sns.ListSMSSandboxPhoneNumbersInput, _a1 func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput, func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSMSSandboxPhoneNumbersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersPagesWithContext(_a0 context.Context, _a1 *sns.ListSMSSandboxPhoneNumbersInput, _a2 func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSMSSandboxPhoneNumbersRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersRequest(_a0 *sns.ListSMSSandboxPhoneNumbersInput) (*request.Request, *sns.ListSMSSandboxPhoneNumbersOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListSMSSandboxPhoneNumbersOutput
- if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) (*request.Request, *sns.ListSMSSandboxPhoneNumbersOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSMSSandboxPhoneNumbersInput) *sns.ListSMSSandboxPhoneNumbersOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListSMSSandboxPhoneNumbersOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSMSSandboxPhoneNumbersWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersWithContext(_a0 context.Context, _a1 *sns.ListSMSSandboxPhoneNumbersInput, _a2 ...request.Option) (*sns.ListSMSSandboxPhoneNumbersOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListSMSSandboxPhoneNumbersOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, ...request.Option) (*sns.ListSMSSandboxPhoneNumbersOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, ...request.Option) *sns.ListSMSSandboxPhoneNumbersOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSMSSandboxPhoneNumbersOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSubscriptions provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSubscriptions(_a0 *sns.ListSubscriptionsInput) (*sns.ListSubscriptionsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListSubscriptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsInput) (*sns.ListSubscriptionsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsInput) *sns.ListSubscriptionsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSubscriptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSubscriptionsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSubscriptionsByTopic provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSubscriptionsByTopic(_a0 *sns.ListSubscriptionsByTopicInput) (*sns.ListSubscriptionsByTopicOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListSubscriptionsByTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsByTopicInput) (*sns.ListSubscriptionsByTopicOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsByTopicInput) *sns.ListSubscriptionsByTopicOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSubscriptionsByTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSubscriptionsByTopicInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSubscriptionsByTopicPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListSubscriptionsByTopicPages(_a0 *sns.ListSubscriptionsByTopicInput, _a1 func(*sns.ListSubscriptionsByTopicOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsByTopicInput, func(*sns.ListSubscriptionsByTopicOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSubscriptionsByTopicPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListSubscriptionsByTopicPagesWithContext(_a0 context.Context, _a1 *sns.ListSubscriptionsByTopicInput, _a2 func(*sns.ListSubscriptionsByTopicOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsByTopicInput, func(*sns.ListSubscriptionsByTopicOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSubscriptionsByTopicRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSubscriptionsByTopicRequest(_a0 *sns.ListSubscriptionsByTopicInput) (*request.Request, *sns.ListSubscriptionsByTopicOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListSubscriptionsByTopicOutput
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsByTopicInput) (*request.Request, *sns.ListSubscriptionsByTopicOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsByTopicInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSubscriptionsByTopicInput) *sns.ListSubscriptionsByTopicOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListSubscriptionsByTopicOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSubscriptionsByTopicWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListSubscriptionsByTopicWithContext(_a0 context.Context, _a1 *sns.ListSubscriptionsByTopicInput, _a2 ...request.Option) (*sns.ListSubscriptionsByTopicOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListSubscriptionsByTopicOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsByTopicInput, ...request.Option) (*sns.ListSubscriptionsByTopicOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsByTopicInput, ...request.Option) *sns.ListSubscriptionsByTopicOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSubscriptionsByTopicOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListSubscriptionsByTopicInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListSubscriptionsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListSubscriptionsPages(_a0 *sns.ListSubscriptionsInput, _a1 func(*sns.ListSubscriptionsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsInput, func(*sns.ListSubscriptionsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSubscriptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListSubscriptionsPagesWithContext(_a0 context.Context, _a1 *sns.ListSubscriptionsInput, _a2 func(*sns.ListSubscriptionsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsInput, func(*sns.ListSubscriptionsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListSubscriptionsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListSubscriptionsRequest(_a0 *sns.ListSubscriptionsInput) (*request.Request, *sns.ListSubscriptionsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListSubscriptionsOutput
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsInput) (*request.Request, *sns.ListSubscriptionsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListSubscriptionsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListSubscriptionsInput) *sns.ListSubscriptionsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListSubscriptionsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListSubscriptionsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListSubscriptionsWithContext(_a0 context.Context, _a1 *sns.ListSubscriptionsInput, _a2 ...request.Option) (*sns.ListSubscriptionsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListSubscriptionsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsInput, ...request.Option) (*sns.ListSubscriptionsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSubscriptionsInput, ...request.Option) *sns.ListSubscriptionsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListSubscriptionsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListSubscriptionsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResource provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListTagsForResource(_a0 *sns.ListTagsForResourceInput) (*sns.ListTagsForResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListTagsForResourceInput) (*sns.ListTagsForResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListTagsForResourceInput) *sns.ListTagsForResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListTagsForResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListTagsForResourceRequest(_a0 *sns.ListTagsForResourceInput) (*request.Request, *sns.ListTagsForResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListTagsForResourceOutput
- if rf, ok := ret.Get(0).(func(*sns.ListTagsForResourceInput) (*request.Request, *sns.ListTagsForResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListTagsForResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListTagsForResourceInput) *sns.ListTagsForResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListTagsForResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListTagsForResourceWithContext(_a0 context.Context, _a1 *sns.ListTagsForResourceInput, _a2 ...request.Option) (*sns.ListTagsForResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListTagsForResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListTagsForResourceInput, ...request.Option) (*sns.ListTagsForResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListTagsForResourceInput, ...request.Option) *sns.ListTagsForResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListTagsForResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListTagsForResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTopics provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListTopics(_a0 *sns.ListTopicsInput) (*sns.ListTopicsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.ListTopicsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.ListTopicsInput) (*sns.ListTopicsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListTopicsInput) *sns.ListTopicsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListTopicsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListTopicsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListTopicsPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSNS) ListTopicsPages(_a0 *sns.ListTopicsInput, _a1 func(*sns.ListTopicsOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sns.ListTopicsInput, func(*sns.ListTopicsOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTopicsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSNS) ListTopicsPagesWithContext(_a0 context.Context, _a1 *sns.ListTopicsInput, _a2 func(*sns.ListTopicsOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListTopicsInput, func(*sns.ListTopicsOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListTopicsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) ListTopicsRequest(_a0 *sns.ListTopicsInput) (*request.Request, *sns.ListTopicsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.ListTopicsOutput
- if rf, ok := ret.Get(0).(func(*sns.ListTopicsInput) (*request.Request, *sns.ListTopicsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.ListTopicsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.ListTopicsInput) *sns.ListTopicsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.ListTopicsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListTopicsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) ListTopicsWithContext(_a0 context.Context, _a1 *sns.ListTopicsInput, _a2 ...request.Option) (*sns.ListTopicsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.ListTopicsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListTopicsInput, ...request.Option) (*sns.ListTopicsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.ListTopicsInput, ...request.Option) *sns.ListTopicsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.ListTopicsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.ListTopicsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// OptInPhoneNumber provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) OptInPhoneNumber(_a0 *sns.OptInPhoneNumberInput) (*sns.OptInPhoneNumberOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.OptInPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.OptInPhoneNumberInput) (*sns.OptInPhoneNumberOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.OptInPhoneNumberInput) *sns.OptInPhoneNumberOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.OptInPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.OptInPhoneNumberInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// OptInPhoneNumberRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) OptInPhoneNumberRequest(_a0 *sns.OptInPhoneNumberInput) (*request.Request, *sns.OptInPhoneNumberOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.OptInPhoneNumberOutput
- if rf, ok := ret.Get(0).(func(*sns.OptInPhoneNumberInput) (*request.Request, *sns.OptInPhoneNumberOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.OptInPhoneNumberInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.OptInPhoneNumberInput) *sns.OptInPhoneNumberOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.OptInPhoneNumberOutput)
- }
- }
-
- return r0, r1
-}
-
-// OptInPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) OptInPhoneNumberWithContext(_a0 context.Context, _a1 *sns.OptInPhoneNumberInput, _a2 ...request.Option) (*sns.OptInPhoneNumberOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.OptInPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.OptInPhoneNumberInput, ...request.Option) (*sns.OptInPhoneNumberOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.OptInPhoneNumberInput, ...request.Option) *sns.OptInPhoneNumberOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.OptInPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.OptInPhoneNumberInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Publish provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) Publish(_a0 *sns.PublishInput) (*sns.PublishOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.PublishOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.PublishInput) (*sns.PublishOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PublishInput) *sns.PublishOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PublishOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PublishInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishBatch provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) PublishBatch(_a0 *sns.PublishBatchInput) (*sns.PublishBatchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.PublishBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.PublishBatchInput) (*sns.PublishBatchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PublishBatchInput) *sns.PublishBatchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PublishBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PublishBatchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishBatchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) PublishBatchRequest(_a0 *sns.PublishBatchInput) (*request.Request, *sns.PublishBatchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.PublishBatchOutput
- if rf, ok := ret.Get(0).(func(*sns.PublishBatchInput) (*request.Request, *sns.PublishBatchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PublishBatchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PublishBatchInput) *sns.PublishBatchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.PublishBatchOutput)
- }
- }
-
- return r0, r1
-}
-
-// PublishBatchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) PublishBatchWithContext(_a0 context.Context, _a1 *sns.PublishBatchInput, _a2 ...request.Option) (*sns.PublishBatchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.PublishBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PublishBatchInput, ...request.Option) (*sns.PublishBatchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PublishBatchInput, ...request.Option) *sns.PublishBatchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PublishBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.PublishBatchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PublishRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) PublishRequest(_a0 *sns.PublishInput) (*request.Request, *sns.PublishOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.PublishOutput
- if rf, ok := ret.Get(0).(func(*sns.PublishInput) (*request.Request, *sns.PublishOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PublishInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PublishInput) *sns.PublishOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.PublishOutput)
- }
- }
-
- return r0, r1
-}
-
-// PublishWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) PublishWithContext(_a0 context.Context, _a1 *sns.PublishInput, _a2 ...request.Option) (*sns.PublishOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.PublishOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PublishInput, ...request.Option) (*sns.PublishOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PublishInput, ...request.Option) *sns.PublishOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PublishOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.PublishInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutDataProtectionPolicy provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) PutDataProtectionPolicy(_a0 *sns.PutDataProtectionPolicyInput) (*sns.PutDataProtectionPolicyOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.PutDataProtectionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.PutDataProtectionPolicyInput) (*sns.PutDataProtectionPolicyOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PutDataProtectionPolicyInput) *sns.PutDataProtectionPolicyOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PutDataProtectionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PutDataProtectionPolicyInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PutDataProtectionPolicyRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) PutDataProtectionPolicyRequest(_a0 *sns.PutDataProtectionPolicyInput) (*request.Request, *sns.PutDataProtectionPolicyOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.PutDataProtectionPolicyOutput
- if rf, ok := ret.Get(0).(func(*sns.PutDataProtectionPolicyInput) (*request.Request, *sns.PutDataProtectionPolicyOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.PutDataProtectionPolicyInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.PutDataProtectionPolicyInput) *sns.PutDataProtectionPolicyOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.PutDataProtectionPolicyOutput)
- }
- }
-
- return r0, r1
-}
-
-// PutDataProtectionPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) PutDataProtectionPolicyWithContext(_a0 context.Context, _a1 *sns.PutDataProtectionPolicyInput, _a2 ...request.Option) (*sns.PutDataProtectionPolicyOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.PutDataProtectionPolicyOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PutDataProtectionPolicyInput, ...request.Option) (*sns.PutDataProtectionPolicyOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.PutDataProtectionPolicyInput, ...request.Option) *sns.PutDataProtectionPolicyOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.PutDataProtectionPolicyOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.PutDataProtectionPolicyInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermission provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) RemovePermission(_a0 *sns.RemovePermissionInput) (*sns.RemovePermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.RemovePermissionInput) (*sns.RemovePermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.RemovePermissionInput) *sns.RemovePermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.RemovePermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) RemovePermissionRequest(_a0 *sns.RemovePermissionInput) (*request.Request, *sns.RemovePermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.RemovePermissionOutput
- if rf, ok := ret.Get(0).(func(*sns.RemovePermissionInput) (*request.Request, *sns.RemovePermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.RemovePermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.RemovePermissionInput) *sns.RemovePermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.RemovePermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemovePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) RemovePermissionWithContext(_a0 context.Context, _a1 *sns.RemovePermissionInput, _a2 ...request.Option) (*sns.RemovePermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.RemovePermissionInput, ...request.Option) (*sns.RemovePermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.RemovePermissionInput, ...request.Option) *sns.RemovePermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.RemovePermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetEndpointAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetEndpointAttributes(_a0 *sns.SetEndpointAttributesInput) (*sns.SetEndpointAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SetEndpointAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SetEndpointAttributesInput) (*sns.SetEndpointAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetEndpointAttributesInput) *sns.SetEndpointAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetEndpointAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetEndpointAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetEndpointAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetEndpointAttributesRequest(_a0 *sns.SetEndpointAttributesInput) (*request.Request, *sns.SetEndpointAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SetEndpointAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.SetEndpointAttributesInput) (*request.Request, *sns.SetEndpointAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetEndpointAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetEndpointAttributesInput) *sns.SetEndpointAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SetEndpointAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetEndpointAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SetEndpointAttributesWithContext(_a0 context.Context, _a1 *sns.SetEndpointAttributesInput, _a2 ...request.Option) (*sns.SetEndpointAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SetEndpointAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetEndpointAttributesInput, ...request.Option) (*sns.SetEndpointAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetEndpointAttributesInput, ...request.Option) *sns.SetEndpointAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetEndpointAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SetEndpointAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetPlatformApplicationAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetPlatformApplicationAttributes(_a0 *sns.SetPlatformApplicationAttributesInput) (*sns.SetPlatformApplicationAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SetPlatformApplicationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SetPlatformApplicationAttributesInput) (*sns.SetPlatformApplicationAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetPlatformApplicationAttributesInput) *sns.SetPlatformApplicationAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetPlatformApplicationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetPlatformApplicationAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetPlatformApplicationAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetPlatformApplicationAttributesRequest(_a0 *sns.SetPlatformApplicationAttributesInput) (*request.Request, *sns.SetPlatformApplicationAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SetPlatformApplicationAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.SetPlatformApplicationAttributesInput) (*request.Request, *sns.SetPlatformApplicationAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetPlatformApplicationAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetPlatformApplicationAttributesInput) *sns.SetPlatformApplicationAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SetPlatformApplicationAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetPlatformApplicationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SetPlatformApplicationAttributesWithContext(_a0 context.Context, _a1 *sns.SetPlatformApplicationAttributesInput, _a2 ...request.Option) (*sns.SetPlatformApplicationAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SetPlatformApplicationAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetPlatformApplicationAttributesInput, ...request.Option) (*sns.SetPlatformApplicationAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetPlatformApplicationAttributesInput, ...request.Option) *sns.SetPlatformApplicationAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetPlatformApplicationAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SetPlatformApplicationAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSMSAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetSMSAttributes(_a0 *sns.SetSMSAttributesInput) (*sns.SetSMSAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SetSMSAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SetSMSAttributesInput) (*sns.SetSMSAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetSMSAttributesInput) *sns.SetSMSAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetSMSAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetSMSAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSMSAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetSMSAttributesRequest(_a0 *sns.SetSMSAttributesInput) (*request.Request, *sns.SetSMSAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SetSMSAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.SetSMSAttributesInput) (*request.Request, *sns.SetSMSAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetSMSAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetSMSAttributesInput) *sns.SetSMSAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SetSMSAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetSMSAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SetSMSAttributesWithContext(_a0 context.Context, _a1 *sns.SetSMSAttributesInput, _a2 ...request.Option) (*sns.SetSMSAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SetSMSAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetSMSAttributesInput, ...request.Option) (*sns.SetSMSAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetSMSAttributesInput, ...request.Option) *sns.SetSMSAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetSMSAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SetSMSAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSubscriptionAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetSubscriptionAttributes(_a0 *sns.SetSubscriptionAttributesInput) (*sns.SetSubscriptionAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SetSubscriptionAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SetSubscriptionAttributesInput) (*sns.SetSubscriptionAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetSubscriptionAttributesInput) *sns.SetSubscriptionAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetSubscriptionAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetSubscriptionAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetSubscriptionAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetSubscriptionAttributesRequest(_a0 *sns.SetSubscriptionAttributesInput) (*request.Request, *sns.SetSubscriptionAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SetSubscriptionAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.SetSubscriptionAttributesInput) (*request.Request, *sns.SetSubscriptionAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetSubscriptionAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetSubscriptionAttributesInput) *sns.SetSubscriptionAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SetSubscriptionAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetSubscriptionAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SetSubscriptionAttributesWithContext(_a0 context.Context, _a1 *sns.SetSubscriptionAttributesInput, _a2 ...request.Option) (*sns.SetSubscriptionAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SetSubscriptionAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetSubscriptionAttributesInput, ...request.Option) (*sns.SetSubscriptionAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetSubscriptionAttributesInput, ...request.Option) *sns.SetSubscriptionAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetSubscriptionAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SetSubscriptionAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTopicAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetTopicAttributes(_a0 *sns.SetTopicAttributesInput) (*sns.SetTopicAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SetTopicAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SetTopicAttributesInput) (*sns.SetTopicAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetTopicAttributesInput) *sns.SetTopicAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetTopicAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetTopicAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetTopicAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SetTopicAttributesRequest(_a0 *sns.SetTopicAttributesInput) (*request.Request, *sns.SetTopicAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SetTopicAttributesOutput
- if rf, ok := ret.Get(0).(func(*sns.SetTopicAttributesInput) (*request.Request, *sns.SetTopicAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SetTopicAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SetTopicAttributesInput) *sns.SetTopicAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SetTopicAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetTopicAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SetTopicAttributesWithContext(_a0 context.Context, _a1 *sns.SetTopicAttributesInput, _a2 ...request.Option) (*sns.SetTopicAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SetTopicAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetTopicAttributesInput, ...request.Option) (*sns.SetTopicAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SetTopicAttributesInput, ...request.Option) *sns.SetTopicAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SetTopicAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SetTopicAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Subscribe provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) Subscribe(_a0 *sns.SubscribeInput) (*sns.SubscribeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.SubscribeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.SubscribeInput) (*sns.SubscribeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SubscribeInput) *sns.SubscribeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SubscribeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SubscribeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SubscribeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) SubscribeRequest(_a0 *sns.SubscribeInput) (*request.Request, *sns.SubscribeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.SubscribeOutput
- if rf, ok := ret.Get(0).(func(*sns.SubscribeInput) (*request.Request, *sns.SubscribeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.SubscribeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.SubscribeInput) *sns.SubscribeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.SubscribeOutput)
- }
- }
-
- return r0, r1
-}
-
-// SubscribeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) SubscribeWithContext(_a0 context.Context, _a1 *sns.SubscribeInput, _a2 ...request.Option) (*sns.SubscribeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.SubscribeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SubscribeInput, ...request.Option) (*sns.SubscribeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.SubscribeInput, ...request.Option) *sns.SubscribeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.SubscribeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.SubscribeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResource provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) TagResource(_a0 *sns.TagResourceInput) (*sns.TagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.TagResourceInput) (*sns.TagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.TagResourceInput) *sns.TagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.TagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) TagResourceRequest(_a0 *sns.TagResourceInput) (*request.Request, *sns.TagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.TagResourceOutput
- if rf, ok := ret.Get(0).(func(*sns.TagResourceInput) (*request.Request, *sns.TagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.TagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.TagResourceInput) *sns.TagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.TagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) TagResourceWithContext(_a0 context.Context, _a1 *sns.TagResourceInput, _a2 ...request.Option) (*sns.TagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.TagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.TagResourceInput, ...request.Option) (*sns.TagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.TagResourceInput, ...request.Option) *sns.TagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.TagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.TagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Unsubscribe provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) Unsubscribe(_a0 *sns.UnsubscribeInput) (*sns.UnsubscribeOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.UnsubscribeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.UnsubscribeInput) (*sns.UnsubscribeOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.UnsubscribeInput) *sns.UnsubscribeOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.UnsubscribeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.UnsubscribeInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnsubscribeRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) UnsubscribeRequest(_a0 *sns.UnsubscribeInput) (*request.Request, *sns.UnsubscribeOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.UnsubscribeOutput
- if rf, ok := ret.Get(0).(func(*sns.UnsubscribeInput) (*request.Request, *sns.UnsubscribeOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.UnsubscribeInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.UnsubscribeInput) *sns.UnsubscribeOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.UnsubscribeOutput)
- }
- }
-
- return r0, r1
-}
-
-// UnsubscribeWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) UnsubscribeWithContext(_a0 context.Context, _a1 *sns.UnsubscribeInput, _a2 ...request.Option) (*sns.UnsubscribeOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.UnsubscribeOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.UnsubscribeInput, ...request.Option) (*sns.UnsubscribeOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.UnsubscribeInput, ...request.Option) *sns.UnsubscribeOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.UnsubscribeOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.UnsubscribeInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResource provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) UntagResource(_a0 *sns.UntagResourceInput) (*sns.UntagResourceOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.UntagResourceInput) (*sns.UntagResourceOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.UntagResourceInput) *sns.UntagResourceOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.UntagResourceInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagResourceRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) UntagResourceRequest(_a0 *sns.UntagResourceInput) (*request.Request, *sns.UntagResourceOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.UntagResourceOutput
- if rf, ok := ret.Get(0).(func(*sns.UntagResourceInput) (*request.Request, *sns.UntagResourceOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.UntagResourceInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.UntagResourceInput) *sns.UntagResourceOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.UntagResourceOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) UntagResourceWithContext(_a0 context.Context, _a1 *sns.UntagResourceInput, _a2 ...request.Option) (*sns.UntagResourceOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.UntagResourceOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.UntagResourceInput, ...request.Option) (*sns.UntagResourceOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.UntagResourceInput, ...request.Option) *sns.UntagResourceOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.UntagResourceOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.UntagResourceInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// VerifySMSSandboxPhoneNumber provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumber(_a0 *sns.VerifySMSSandboxPhoneNumberInput) (*sns.VerifySMSSandboxPhoneNumberOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sns.VerifySMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) (*sns.VerifySMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) *sns.VerifySMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.VerifySMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.VerifySMSSandboxPhoneNumberInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// VerifySMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumberRequest(_a0 *sns.VerifySMSSandboxPhoneNumberInput) (*request.Request, *sns.VerifySMSSandboxPhoneNumberOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sns.VerifySMSSandboxPhoneNumberOutput
- if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) (*request.Request, *sns.VerifySMSSandboxPhoneNumberOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sns.VerifySMSSandboxPhoneNumberInput) *sns.VerifySMSSandboxPhoneNumberOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sns.VerifySMSSandboxPhoneNumberOutput)
- }
- }
-
- return r0, r1
-}
-
-// VerifySMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.VerifySMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.VerifySMSSandboxPhoneNumberOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sns.VerifySMSSandboxPhoneNumberOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sns.VerifySMSSandboxPhoneNumberInput, ...request.Option) (*sns.VerifySMSSandboxPhoneNumberOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sns.VerifySMSSandboxPhoneNumberInput, ...request.Option) *sns.VerifySMSSandboxPhoneNumberOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sns.VerifySMSSandboxPhoneNumberOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sns.VerifySMSSandboxPhoneNumberInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeSNS interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeSNS creates a new instance of MockFakeSNS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeSNS(t mockConstructorTestingTNewMockFakeSNS) *MockFakeSNS {
- mock := &MockFakeSNS{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/mock_FakeSQS.go b/test/aws/mock_FakeSQS.go
deleted file mode 100644
index 010d2fedc..000000000
--- a/test/aws/mock_FakeSQS.go
+++ /dev/null
@@ -1,1842 +0,0 @@
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package aws
-
-import (
- context "context"
-
- request "github.com/aws/aws-sdk-go/aws/request"
- mock "github.com/stretchr/testify/mock"
-
- sqs "github.com/aws/aws-sdk-go/service/sqs"
-)
-
-// MockFakeSQS is an autogenerated mock type for the FakeSQS type
-type MockFakeSQS struct {
- mock.Mock
-}
-
-// AddPermission provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) AddPermission(_a0 *sqs.AddPermissionInput) (*sqs.AddPermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.AddPermissionInput) (*sqs.AddPermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.AddPermissionInput) *sqs.AddPermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.AddPermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// AddPermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) AddPermissionRequest(_a0 *sqs.AddPermissionInput) (*request.Request, *sqs.AddPermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.AddPermissionOutput
- if rf, ok := ret.Get(0).(func(*sqs.AddPermissionInput) (*request.Request, *sqs.AddPermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.AddPermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.AddPermissionInput) *sqs.AddPermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.AddPermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// AddPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) AddPermissionWithContext(_a0 context.Context, _a1 *sqs.AddPermissionInput, _a2 ...request.Option) (*sqs.AddPermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.AddPermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.AddPermissionInput, ...request.Option) (*sqs.AddPermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.AddPermissionInput, ...request.Option) *sqs.AddPermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.AddPermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.AddPermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibility provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ChangeMessageVisibility(_a0 *sqs.ChangeMessageVisibilityInput) (*sqs.ChangeMessageVisibilityOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ChangeMessageVisibilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityInput) (*sqs.ChangeMessageVisibilityOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityInput) *sqs.ChangeMessageVisibilityOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ChangeMessageVisibilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ChangeMessageVisibilityInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibilityBatch provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ChangeMessageVisibilityBatch(_a0 *sqs.ChangeMessageVisibilityBatchInput) (*sqs.ChangeMessageVisibilityBatchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ChangeMessageVisibilityBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityBatchInput) (*sqs.ChangeMessageVisibilityBatchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityBatchInput) *sqs.ChangeMessageVisibilityBatchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ChangeMessageVisibilityBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ChangeMessageVisibilityBatchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibilityBatchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ChangeMessageVisibilityBatchRequest(_a0 *sqs.ChangeMessageVisibilityBatchInput) (*request.Request, *sqs.ChangeMessageVisibilityBatchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ChangeMessageVisibilityBatchOutput
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityBatchInput) (*request.Request, *sqs.ChangeMessageVisibilityBatchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityBatchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ChangeMessageVisibilityBatchInput) *sqs.ChangeMessageVisibilityBatchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ChangeMessageVisibilityBatchOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibilityBatchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ChangeMessageVisibilityBatchWithContext(_a0 context.Context, _a1 *sqs.ChangeMessageVisibilityBatchInput, _a2 ...request.Option) (*sqs.ChangeMessageVisibilityBatchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ChangeMessageVisibilityBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ChangeMessageVisibilityBatchInput, ...request.Option) (*sqs.ChangeMessageVisibilityBatchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ChangeMessageVisibilityBatchInput, ...request.Option) *sqs.ChangeMessageVisibilityBatchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ChangeMessageVisibilityBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ChangeMessageVisibilityBatchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibilityRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ChangeMessageVisibilityRequest(_a0 *sqs.ChangeMessageVisibilityInput) (*request.Request, *sqs.ChangeMessageVisibilityOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ChangeMessageVisibilityOutput
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityInput) (*request.Request, *sqs.ChangeMessageVisibilityOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ChangeMessageVisibilityInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ChangeMessageVisibilityInput) *sqs.ChangeMessageVisibilityOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ChangeMessageVisibilityOutput)
- }
- }
-
- return r0, r1
-}
-
-// ChangeMessageVisibilityWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ChangeMessageVisibilityWithContext(_a0 context.Context, _a1 *sqs.ChangeMessageVisibilityInput, _a2 ...request.Option) (*sqs.ChangeMessageVisibilityOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ChangeMessageVisibilityOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ChangeMessageVisibilityInput, ...request.Option) (*sqs.ChangeMessageVisibilityOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ChangeMessageVisibilityInput, ...request.Option) *sqs.ChangeMessageVisibilityOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ChangeMessageVisibilityOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ChangeMessageVisibilityInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateQueue provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) CreateQueue(_a0 *sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.CreateQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.CreateQueueInput) *sqs.CreateQueueOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.CreateQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.CreateQueueInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CreateQueueRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) CreateQueueRequest(_a0 *sqs.CreateQueueInput) (*request.Request, *sqs.CreateQueueOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.CreateQueueOutput
- if rf, ok := ret.Get(0).(func(*sqs.CreateQueueInput) (*request.Request, *sqs.CreateQueueOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.CreateQueueInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.CreateQueueInput) *sqs.CreateQueueOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.CreateQueueOutput)
- }
- }
-
- return r0, r1
-}
-
-// CreateQueueWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) CreateQueueWithContext(_a0 context.Context, _a1 *sqs.CreateQueueInput, _a2 ...request.Option) (*sqs.CreateQueueOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.CreateQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.CreateQueueInput, ...request.Option) (*sqs.CreateQueueOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.CreateQueueInput, ...request.Option) *sqs.CreateQueueOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.CreateQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.CreateQueueInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMessage provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteMessage(_a0 *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.DeleteMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageInput) *sqs.DeleteMessageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteMessageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMessageBatch provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteMessageBatch(_a0 *sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.DeleteMessageBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageBatchInput) *sqs.DeleteMessageBatchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteMessageBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteMessageBatchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMessageBatchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteMessageBatchRequest(_a0 *sqs.DeleteMessageBatchInput) (*request.Request, *sqs.DeleteMessageBatchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.DeleteMessageBatchOutput
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageBatchInput) (*request.Request, *sqs.DeleteMessageBatchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageBatchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteMessageBatchInput) *sqs.DeleteMessageBatchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.DeleteMessageBatchOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMessageBatchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) DeleteMessageBatchWithContext(_a0 context.Context, _a1 *sqs.DeleteMessageBatchInput, _a2 ...request.Option) (*sqs.DeleteMessageBatchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.DeleteMessageBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteMessageBatchInput, ...request.Option) (*sqs.DeleteMessageBatchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteMessageBatchInput, ...request.Option) *sqs.DeleteMessageBatchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteMessageBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.DeleteMessageBatchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteMessageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteMessageRequest(_a0 *sqs.DeleteMessageInput) (*request.Request, *sqs.DeleteMessageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.DeleteMessageOutput
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageInput) (*request.Request, *sqs.DeleteMessageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteMessageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteMessageInput) *sqs.DeleteMessageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.DeleteMessageOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteMessageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) DeleteMessageWithContext(_a0 context.Context, _a1 *sqs.DeleteMessageInput, _a2 ...request.Option) (*sqs.DeleteMessageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.DeleteMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteMessageInput, ...request.Option) (*sqs.DeleteMessageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteMessageInput, ...request.Option) *sqs.DeleteMessageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.DeleteMessageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueue provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteQueue(_a0 *sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.DeleteQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteQueueInput) *sqs.DeleteQueueOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteQueueInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// DeleteQueueRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) DeleteQueueRequest(_a0 *sqs.DeleteQueueInput) (*request.Request, *sqs.DeleteQueueOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.DeleteQueueOutput
- if rf, ok := ret.Get(0).(func(*sqs.DeleteQueueInput) (*request.Request, *sqs.DeleteQueueOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.DeleteQueueInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.DeleteQueueInput) *sqs.DeleteQueueOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.DeleteQueueOutput)
- }
- }
-
- return r0, r1
-}
-
-// DeleteQueueWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) DeleteQueueWithContext(_a0 context.Context, _a1 *sqs.DeleteQueueInput, _a2 ...request.Option) (*sqs.DeleteQueueOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.DeleteQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteQueueInput, ...request.Option) (*sqs.DeleteQueueOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.DeleteQueueInput, ...request.Option) *sqs.DeleteQueueOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.DeleteQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.DeleteQueueInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueueAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) GetQueueAttributes(_a0 *sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.GetQueueAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueAttributesInput) *sqs.GetQueueAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.GetQueueAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.GetQueueAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueueAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) GetQueueAttributesRequest(_a0 *sqs.GetQueueAttributesInput) (*request.Request, *sqs.GetQueueAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.GetQueueAttributesOutput
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueAttributesInput) (*request.Request, *sqs.GetQueueAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.GetQueueAttributesInput) *sqs.GetQueueAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.GetQueueAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetQueueAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) GetQueueAttributesWithContext(_a0 context.Context, _a1 *sqs.GetQueueAttributesInput, _a2 ...request.Option) (*sqs.GetQueueAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.GetQueueAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.GetQueueAttributesInput, ...request.Option) (*sqs.GetQueueAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.GetQueueAttributesInput, ...request.Option) *sqs.GetQueueAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.GetQueueAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.GetQueueAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueueUrl provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) GetQueueUrl(_a0 *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.GetQueueUrlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueUrlInput) *sqs.GetQueueUrlOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.GetQueueUrlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.GetQueueUrlInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// GetQueueUrlRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) GetQueueUrlRequest(_a0 *sqs.GetQueueUrlInput) (*request.Request, *sqs.GetQueueUrlOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.GetQueueUrlOutput
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueUrlInput) (*request.Request, *sqs.GetQueueUrlOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.GetQueueUrlInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.GetQueueUrlInput) *sqs.GetQueueUrlOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.GetQueueUrlOutput)
- }
- }
-
- return r0, r1
-}
-
-// GetQueueUrlWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) GetQueueUrlWithContext(_a0 context.Context, _a1 *sqs.GetQueueUrlInput, _a2 ...request.Option) (*sqs.GetQueueUrlOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.GetQueueUrlOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.GetQueueUrlInput, ...request.Option) (*sqs.GetQueueUrlOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.GetQueueUrlInput, ...request.Option) *sqs.GetQueueUrlOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.GetQueueUrlOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.GetQueueUrlInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDeadLetterSourceQueues provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListDeadLetterSourceQueues(_a0 *sqs.ListDeadLetterSourceQueuesInput) (*sqs.ListDeadLetterSourceQueuesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ListDeadLetterSourceQueuesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ListDeadLetterSourceQueuesInput) (*sqs.ListDeadLetterSourceQueuesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListDeadLetterSourceQueuesInput) *sqs.ListDeadLetterSourceQueuesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListDeadLetterSourceQueuesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListDeadLetterSourceQueuesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListDeadLetterSourceQueuesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSQS) ListDeadLetterSourceQueuesPages(_a0 *sqs.ListDeadLetterSourceQueuesInput, _a1 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sqs.ListDeadLetterSourceQueuesInput, func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListDeadLetterSourceQueuesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSQS) ListDeadLetterSourceQueuesPagesWithContext(_a0 context.Context, _a1 *sqs.ListDeadLetterSourceQueuesInput, _a2 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListDeadLetterSourceQueuesInput, func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListDeadLetterSourceQueuesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListDeadLetterSourceQueuesRequest(_a0 *sqs.ListDeadLetterSourceQueuesInput) (*request.Request, *sqs.ListDeadLetterSourceQueuesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ListDeadLetterSourceQueuesOutput
- if rf, ok := ret.Get(0).(func(*sqs.ListDeadLetterSourceQueuesInput) (*request.Request, *sqs.ListDeadLetterSourceQueuesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListDeadLetterSourceQueuesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListDeadLetterSourceQueuesInput) *sqs.ListDeadLetterSourceQueuesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ListDeadLetterSourceQueuesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListDeadLetterSourceQueuesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ListDeadLetterSourceQueuesWithContext(_a0 context.Context, _a1 *sqs.ListDeadLetterSourceQueuesInput, _a2 ...request.Option) (*sqs.ListDeadLetterSourceQueuesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ListDeadLetterSourceQueuesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListDeadLetterSourceQueuesInput, ...request.Option) (*sqs.ListDeadLetterSourceQueuesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListDeadLetterSourceQueuesInput, ...request.Option) *sqs.ListDeadLetterSourceQueuesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListDeadLetterSourceQueuesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ListDeadLetterSourceQueuesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueueTags provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListQueueTags(_a0 *sqs.ListQueueTagsInput) (*sqs.ListQueueTagsOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ListQueueTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ListQueueTagsInput) (*sqs.ListQueueTagsOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListQueueTagsInput) *sqs.ListQueueTagsOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListQueueTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListQueueTagsInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueueTagsRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListQueueTagsRequest(_a0 *sqs.ListQueueTagsInput) (*request.Request, *sqs.ListQueueTagsOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ListQueueTagsOutput
- if rf, ok := ret.Get(0).(func(*sqs.ListQueueTagsInput) (*request.Request, *sqs.ListQueueTagsOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListQueueTagsInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListQueueTagsInput) *sqs.ListQueueTagsOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ListQueueTagsOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListQueueTagsWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ListQueueTagsWithContext(_a0 context.Context, _a1 *sqs.ListQueueTagsInput, _a2 ...request.Option) (*sqs.ListQueueTagsOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ListQueueTagsOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListQueueTagsInput, ...request.Option) (*sqs.ListQueueTagsOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListQueueTagsInput, ...request.Option) *sqs.ListQueueTagsOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListQueueTagsOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ListQueueTagsInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueues provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListQueues(_a0 *sqs.ListQueuesInput) (*sqs.ListQueuesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ListQueuesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ListQueuesInput) (*sqs.ListQueuesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListQueuesInput) *sqs.ListQueuesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListQueuesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListQueuesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ListQueuesPages provides a mock function with given fields: _a0, _a1
-func (_m *MockFakeSQS) ListQueuesPages(_a0 *sqs.ListQueuesInput, _a1 func(*sqs.ListQueuesOutput, bool) bool) error {
- ret := _m.Called(_a0, _a1)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(*sqs.ListQueuesInput, func(*sqs.ListQueuesOutput, bool) bool) error); ok {
- r0 = rf(_a0, _a1)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueuesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3
-func (_m *MockFakeSQS) ListQueuesPagesWithContext(_a0 context.Context, _a1 *sqs.ListQueuesInput, _a2 func(*sqs.ListQueuesOutput, bool) bool, _a3 ...request.Option) error {
- _va := make([]interface{}, len(_a3))
- for _i := range _a3 {
- _va[_i] = _a3[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1, _a2)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListQueuesInput, func(*sqs.ListQueuesOutput, bool) bool, ...request.Option) error); ok {
- r0 = rf(_a0, _a1, _a2, _a3...)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ListQueuesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ListQueuesRequest(_a0 *sqs.ListQueuesInput) (*request.Request, *sqs.ListQueuesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ListQueuesOutput
- if rf, ok := ret.Get(0).(func(*sqs.ListQueuesInput) (*request.Request, *sqs.ListQueuesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ListQueuesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ListQueuesInput) *sqs.ListQueuesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ListQueuesOutput)
- }
- }
-
- return r0, r1
-}
-
-// ListQueuesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ListQueuesWithContext(_a0 context.Context, _a1 *sqs.ListQueuesInput, _a2 ...request.Option) (*sqs.ListQueuesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ListQueuesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListQueuesInput, ...request.Option) (*sqs.ListQueuesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ListQueuesInput, ...request.Option) *sqs.ListQueuesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ListQueuesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ListQueuesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurgeQueue provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) PurgeQueue(_a0 *sqs.PurgeQueueInput) (*sqs.PurgeQueueOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.PurgeQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.PurgeQueueInput) (*sqs.PurgeQueueOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.PurgeQueueInput) *sqs.PurgeQueueOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.PurgeQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.PurgeQueueInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// PurgeQueueRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) PurgeQueueRequest(_a0 *sqs.PurgeQueueInput) (*request.Request, *sqs.PurgeQueueOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.PurgeQueueOutput
- if rf, ok := ret.Get(0).(func(*sqs.PurgeQueueInput) (*request.Request, *sqs.PurgeQueueOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.PurgeQueueInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.PurgeQueueInput) *sqs.PurgeQueueOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.PurgeQueueOutput)
- }
- }
-
- return r0, r1
-}
-
-// PurgeQueueWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) PurgeQueueWithContext(_a0 context.Context, _a1 *sqs.PurgeQueueInput, _a2 ...request.Option) (*sqs.PurgeQueueOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.PurgeQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.PurgeQueueInput, ...request.Option) (*sqs.PurgeQueueOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.PurgeQueueInput, ...request.Option) *sqs.PurgeQueueOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.PurgeQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.PurgeQueueInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReceiveMessage provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ReceiveMessage(_a0 *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.ReceiveMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ReceiveMessageInput) *sqs.ReceiveMessageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ReceiveMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ReceiveMessageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReceiveMessageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) ReceiveMessageRequest(_a0 *sqs.ReceiveMessageInput) (*request.Request, *sqs.ReceiveMessageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.ReceiveMessageOutput
- if rf, ok := ret.Get(0).(func(*sqs.ReceiveMessageInput) (*request.Request, *sqs.ReceiveMessageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.ReceiveMessageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.ReceiveMessageInput) *sqs.ReceiveMessageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.ReceiveMessageOutput)
- }
- }
-
- return r0, r1
-}
-
-// ReceiveMessageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) ReceiveMessageWithContext(_a0 context.Context, _a1 *sqs.ReceiveMessageInput, _a2 ...request.Option) (*sqs.ReceiveMessageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.ReceiveMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ReceiveMessageInput, ...request.Option) (*sqs.ReceiveMessageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.ReceiveMessageInput, ...request.Option) *sqs.ReceiveMessageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.ReceiveMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.ReceiveMessageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermission provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) RemovePermission(_a0 *sqs.RemovePermissionInput) (*sqs.RemovePermissionOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.RemovePermissionInput) (*sqs.RemovePermissionOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.RemovePermissionInput) *sqs.RemovePermissionOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.RemovePermissionInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemovePermissionRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) RemovePermissionRequest(_a0 *sqs.RemovePermissionInput) (*request.Request, *sqs.RemovePermissionOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.RemovePermissionOutput
- if rf, ok := ret.Get(0).(func(*sqs.RemovePermissionInput) (*request.Request, *sqs.RemovePermissionOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.RemovePermissionInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.RemovePermissionInput) *sqs.RemovePermissionOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.RemovePermissionOutput)
- }
- }
-
- return r0, r1
-}
-
-// RemovePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) RemovePermissionWithContext(_a0 context.Context, _a1 *sqs.RemovePermissionInput, _a2 ...request.Option) (*sqs.RemovePermissionOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.RemovePermissionOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.RemovePermissionInput, ...request.Option) (*sqs.RemovePermissionOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.RemovePermissionInput, ...request.Option) *sqs.RemovePermissionOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.RemovePermissionOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.RemovePermissionInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendMessage provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SendMessage(_a0 *sqs.SendMessageInput) (*sqs.SendMessageOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.SendMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageInput) (*sqs.SendMessageOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageInput) *sqs.SendMessageOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SendMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SendMessageInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendMessageBatch provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SendMessageBatch(_a0 *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.SendMessageBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageBatchInput) *sqs.SendMessageBatchOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SendMessageBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SendMessageBatchInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendMessageBatchRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SendMessageBatchRequest(_a0 *sqs.SendMessageBatchInput) (*request.Request, *sqs.SendMessageBatchOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.SendMessageBatchOutput
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageBatchInput) (*request.Request, *sqs.SendMessageBatchOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageBatchInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SendMessageBatchInput) *sqs.SendMessageBatchOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.SendMessageBatchOutput)
- }
- }
-
- return r0, r1
-}
-
-// SendMessageBatchWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) SendMessageBatchWithContext(_a0 context.Context, _a1 *sqs.SendMessageBatchInput, _a2 ...request.Option) (*sqs.SendMessageBatchOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.SendMessageBatchOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SendMessageBatchInput, ...request.Option) (*sqs.SendMessageBatchOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SendMessageBatchInput, ...request.Option) *sqs.SendMessageBatchOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SendMessageBatchOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.SendMessageBatchInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SendMessageRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SendMessageRequest(_a0 *sqs.SendMessageInput) (*request.Request, *sqs.SendMessageOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.SendMessageOutput
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageInput) (*request.Request, *sqs.SendMessageOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SendMessageInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SendMessageInput) *sqs.SendMessageOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.SendMessageOutput)
- }
- }
-
- return r0, r1
-}
-
-// SendMessageWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) SendMessageWithContext(_a0 context.Context, _a1 *sqs.SendMessageInput, _a2 ...request.Option) (*sqs.SendMessageOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.SendMessageOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SendMessageInput, ...request.Option) (*sqs.SendMessageOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SendMessageInput, ...request.Option) *sqs.SendMessageOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SendMessageOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.SendMessageInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetQueueAttributes provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SetQueueAttributes(_a0 *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.SetQueueAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SetQueueAttributesInput) *sqs.SetQueueAttributesOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SetQueueAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SetQueueAttributesInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// SetQueueAttributesRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) SetQueueAttributesRequest(_a0 *sqs.SetQueueAttributesInput) (*request.Request, *sqs.SetQueueAttributesOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.SetQueueAttributesOutput
- if rf, ok := ret.Get(0).(func(*sqs.SetQueueAttributesInput) (*request.Request, *sqs.SetQueueAttributesOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.SetQueueAttributesInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.SetQueueAttributesInput) *sqs.SetQueueAttributesOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.SetQueueAttributesOutput)
- }
- }
-
- return r0, r1
-}
-
-// SetQueueAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) SetQueueAttributesWithContext(_a0 context.Context, _a1 *sqs.SetQueueAttributesInput, _a2 ...request.Option) (*sqs.SetQueueAttributesOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.SetQueueAttributesOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SetQueueAttributesInput, ...request.Option) (*sqs.SetQueueAttributesOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.SetQueueAttributesInput, ...request.Option) *sqs.SetQueueAttributesOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.SetQueueAttributesOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.SetQueueAttributesInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagQueue provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) TagQueue(_a0 *sqs.TagQueueInput) (*sqs.TagQueueOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.TagQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.TagQueueInput) (*sqs.TagQueueOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.TagQueueInput) *sqs.TagQueueOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.TagQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.TagQueueInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// TagQueueRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) TagQueueRequest(_a0 *sqs.TagQueueInput) (*request.Request, *sqs.TagQueueOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.TagQueueOutput
- if rf, ok := ret.Get(0).(func(*sqs.TagQueueInput) (*request.Request, *sqs.TagQueueOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.TagQueueInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.TagQueueInput) *sqs.TagQueueOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.TagQueueOutput)
- }
- }
-
- return r0, r1
-}
-
-// TagQueueWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) TagQueueWithContext(_a0 context.Context, _a1 *sqs.TagQueueInput, _a2 ...request.Option) (*sqs.TagQueueOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.TagQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.TagQueueInput, ...request.Option) (*sqs.TagQueueOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.TagQueueInput, ...request.Option) *sqs.TagQueueOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.TagQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.TagQueueInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagQueue provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) UntagQueue(_a0 *sqs.UntagQueueInput) (*sqs.UntagQueueOutput, error) {
- ret := _m.Called(_a0)
-
- var r0 *sqs.UntagQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(*sqs.UntagQueueInput) (*sqs.UntagQueueOutput, error)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.UntagQueueInput) *sqs.UntagQueueOutput); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.UntagQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.UntagQueueInput) error); ok {
- r1 = rf(_a0)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UntagQueueRequest provides a mock function with given fields: _a0
-func (_m *MockFakeSQS) UntagQueueRequest(_a0 *sqs.UntagQueueInput) (*request.Request, *sqs.UntagQueueOutput) {
- ret := _m.Called(_a0)
-
- var r0 *request.Request
- var r1 *sqs.UntagQueueOutput
- if rf, ok := ret.Get(0).(func(*sqs.UntagQueueInput) (*request.Request, *sqs.UntagQueueOutput)); ok {
- return rf(_a0)
- }
- if rf, ok := ret.Get(0).(func(*sqs.UntagQueueInput) *request.Request); ok {
- r0 = rf(_a0)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*request.Request)
- }
- }
-
- if rf, ok := ret.Get(1).(func(*sqs.UntagQueueInput) *sqs.UntagQueueOutput); ok {
- r1 = rf(_a0)
- } else {
- if ret.Get(1) != nil {
- r1 = ret.Get(1).(*sqs.UntagQueueOutput)
- }
- }
-
- return r0, r1
-}
-
-// UntagQueueWithContext provides a mock function with given fields: _a0, _a1, _a2
-func (_m *MockFakeSQS) UntagQueueWithContext(_a0 context.Context, _a1 *sqs.UntagQueueInput, _a2 ...request.Option) (*sqs.UntagQueueOutput, error) {
- _va := make([]interface{}, len(_a2))
- for _i := range _a2 {
- _va[_i] = _a2[_i]
- }
- var _ca []interface{}
- _ca = append(_ca, _a0, _a1)
- _ca = append(_ca, _va...)
- ret := _m.Called(_ca...)
-
- var r0 *sqs.UntagQueueOutput
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.UntagQueueInput, ...request.Option) (*sqs.UntagQueueOutput, error)); ok {
- return rf(_a0, _a1, _a2...)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *sqs.UntagQueueInput, ...request.Option) *sqs.UntagQueueOutput); ok {
- r0 = rf(_a0, _a1, _a2...)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*sqs.UntagQueueOutput)
- }
- }
-
- if rf, ok := ret.Get(1).(func(context.Context, *sqs.UntagQueueInput, ...request.Option) error); ok {
- r1 = rf(_a0, _a1, _a2...)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-type mockConstructorTestingTNewMockFakeSQS interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockFakeSQS creates a new instance of MockFakeSQS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewMockFakeSQS(t mockConstructorTestingTNewMockFakeSQS) *MockFakeSQS {
- mock := &MockFakeSQS{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/test/aws/rds.go b/test/aws/rds.go
deleted file mode 100644
index 941731171..000000000
--- a/test/aws/rds.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/rds/rdsiface"
-
-type FakeRDS interface {
- rdsiface.RDSAPI
-}
diff --git a/test/aws/route53.go b/test/aws/route53.go
deleted file mode 100644
index 3b59c178b..000000000
--- a/test/aws/route53.go
+++ /dev/null
@@ -1,7 +0,0 @@
-package aws
-
-import "github.com/aws/aws-sdk-go/service/route53/route53iface"
-
-type FakeRoute53 interface {
- route53iface.Route53API
-}
diff --git a/test/aws/s3.go b/test/aws/s3.go
deleted file mode 100644
index e4d4e6a80..000000000
--- a/test/aws/s3.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/s3"
- "github.com/aws/aws-sdk-go/service/s3/s3iface"
- "github.com/aws/aws-sdk-go/service/s3control/s3controliface"
-)
-
-type FakeS3 interface {
- s3iface.S3API
-}
-
-type FakeS3Control interface {
- s3controliface.S3ControlAPI
-}
-
-type FakeRequestFailure interface {
- s3.RequestFailure
-}
diff --git a/test/aws/sns.go b/test/aws/sns.go
deleted file mode 100644
index c7df047c1..000000000
--- a/test/aws/sns.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/sns/snsiface"
-)
-
-type FakeSNS interface {
- snsiface.SNSAPI
-}
diff --git a/test/aws/sqs.go b/test/aws/sqs.go
deleted file mode 100644
index ec3696c7c..000000000
--- a/test/aws/sqs.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-import (
- "github.com/aws/aws-sdk-go/service/sqs/sqsiface"
-)
-
-type FakeSQS interface {
- sqsiface.SQSAPI
-}
diff --git a/test/build.go b/test/build.go
deleted file mode 100644
index 010cc1ec3..000000000
--- a/test/build.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package test
-
-type Build struct{}
-
-func (b Build) IsRelease() bool {
- return false
-}
-
-func (b Build) IsUsageReportingEnabled() bool {
- return false
-}
diff --git a/test/command.go b/test/command.go
deleted file mode 100644
index e5b7a4e44..000000000
--- a/test/command.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package test
-
-import (
- "bytes"
-
- "github.com/spf13/cobra"
-)
-
-func Execute(cmd *cobra.Command, args ...string) (output string, err error) {
- _, output, err = ExecuteC(cmd, args...)
- return output, err
-}
-
-func ExecuteC(cmd *cobra.Command, args ...string) (c *cobra.Command, output string, err error) {
- buf := new(bytes.Buffer)
- cmd.SetOut(buf)
- cmd.SetErr(buf)
- cmd.SetArgs(args)
-
- c, err = cmd.ExecuteC()
-
- return c, buf.String(), err
-}
diff --git a/test/cty_test_diff.go b/test/cty_test_diff.go
deleted file mode 100644
index 8d292dded..000000000
--- a/test/cty_test_diff.go
+++ /dev/null
@@ -1,88 +0,0 @@
-package test
-
-import (
- "fmt"
- "strings"
- "testing"
-
- "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/test/goldenfile"
-
- "github.com/zclconf/go-cty/cty/json"
-
- "github.com/snyk/driftctl/enumeration/resource"
-
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/r3labs/diff/v2"
- "github.com/zclconf/go-cty/cty"
- "github.com/zclconf/go-cty/cty/gocty"
-)
-
-func doTestDiff(got []*resource.Resource, dirName string, provider terraform.TerraformProvider, deserializer *resource.Deserializer, shouldUpdate bool) (diff.Changelog, error) {
- resources := make(map[string][]resource.Attributes)
-
- for _, r := range got {
- res, exist := resources[r.ResourceType()]
-
- if !exist {
- resources[r.ResourceType()] = []resource.Attributes{*r.Attributes()}
- continue
- }
-
- resources[r.ResourceType()] = append(res, *r.Attributes())
- }
-
- expectedResources := []*resource.Resource{}
- for ty, resList := range resources {
- resGoldenName := goldenfile.ResultsFilename
- if len(resources) > 1 {
- resGoldenName = fmt.Sprintf("results.%s.golden.json", ty)
- }
- ctyType := cty.List(provider.Schema()[ty].Block.ImpliedType())
- if shouldUpdate {
- ctVal, err := gocty.ToCtyValue(resList, ctyType)
- if err != nil {
- panic(err)
- }
- unm, err := json.Marshal(ctVal, ctyType)
- if err != nil {
- panic(err)
- }
- goldenfile.WriteFile(dirName, unm, resGoldenName)
- }
- file := goldenfile.ReadFile(dirName, resGoldenName)
- decodedJson, err := json.Unmarshal(file, ctyType)
- if err != nil {
- panic(err)
- }
- decodedResources, err := deserializer.Deserialize(ty, decodedJson.AsValueSlice())
- if err != nil {
- panic(err)
- }
- expectedResources = append(expectedResources, decodedResources...)
- }
-
- differ, err := diff.NewDiffer(diff.SliceOrdering(true))
- if err != nil {
- panic(err)
- }
-
- got = resource.Sort(got)
- expectedResources = resource.Sort(expectedResources)
-
- return differ.Diff(got, expectedResources)
-}
-
-// CtyTestDiff Deprecated
-func CtyTestDiff(got []*resource.Resource, dirName string, provider terraform.TerraformProvider, deserializer *resource.Deserializer, shouldUpdate bool, t *testing.T) {
- changelog, err := doTestDiff(got, dirName, provider, deserializer, shouldUpdate)
- if err != nil {
- panic(err)
- }
- if len(changelog) > 0 {
- for _, change := range changelog {
- t.Errorf("%s got = %v, want %v", strings.Join(change.Path, "."), awsutil.Prettify(change.From), awsutil.Prettify(change.To))
- }
- }
-}
diff --git a/test/files.go b/test/files.go
deleted file mode 100644
index bc3487d1b..000000000
--- a/test/files.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package test
-
-import (
- "os"
- "path"
- "runtime"
-)
-
-func WriteTestFile(p string, content []byte) error {
- _, filename, _, _ := runtime.Caller(1)
- return os.WriteFile(path.Join(path.Dir(filename), p), content, 0644)
-}
-
-func ReadTestFile(p string) ([]byte, error) {
- _, filename, _, _ := runtime.Caller(1)
- return os.ReadFile(path.Join(path.Dir(filename), p))
-}
diff --git a/test/goldenfile/goldenfile.go b/test/goldenfile/goldenfile.go
deleted file mode 100644
index ae4f1e2fb..000000000
--- a/test/goldenfile/goldenfile.go
+++ /dev/null
@@ -1,137 +0,0 @@
-package goldenfile
-
-import (
- "bytes"
- "encoding/json"
- "flag"
- "fmt"
- "os"
- "path"
- "path/filepath"
- "runtime"
- "strings"
-
- "github.com/sirupsen/logrus"
-)
-
-const (
- GoldenFilePath = "test"
- ResultsFilename = "results.golden.json"
-)
-
-var (
- _, b, _, _ = runtime.Caller(0)
-
- // Root folder of this project
- Root = filepath.Join(filepath.Dir(b), "../..")
-)
-
-var Update = flag.String("update", "", "name of test to update")
-
-func ReadRootFile(p string, name string) []byte {
- p = path.Join(path.Join(Root, GoldenFilePath), p)
-
- _, err := os.Stat(path.Join(p, ResultsFilename))
- if os.IsNotExist(err) && name == ResultsFilename {
- return []byte("[]")
- }
-
- content, err := os.ReadFile(fmt.Sprintf("%s%c%s", p, os.PathSeparator, sanitizeName(name)))
- if err != nil {
- panic(err)
- }
- return content
-}
-
-func WriteRootFile(p string, content []byte, name string) {
- output := content
-
- // Avoid creating golden files for empty results
- if name == ResultsFilename && string(output) == "[]" {
- return
- }
-
- p = path.Join(path.Join(Root, GoldenFilePath), p)
- if err := os.MkdirAll(p, os.ModePerm); err != nil {
- panic(err)
- }
- var indentBuffer bytes.Buffer
- err := json.Indent(&indentBuffer, output, "", " ")
- if err == nil {
- output = indentBuffer.Bytes()
- }
- if err != nil {
- logrus.Error(err)
- }
-
- if err := os.WriteFile(fmt.Sprintf("%s%c%s", p, os.PathSeparator, sanitizeName(name)), output, os.ModePerm); err != nil {
- panic(err)
- }
-}
-
-func ReadFile(p string, name string) []byte {
- p = path.Join(GoldenFilePath, p)
-
- _, err := os.Stat(path.Join(p, ResultsFilename))
- if os.IsNotExist(err) && name == ResultsFilename {
- return []byte("[]")
- }
-
- content, err := os.ReadFile(fmt.Sprintf("%s%c%s", p, os.PathSeparator, sanitizeName(name)))
- if err != nil {
- panic(err)
- }
- return content
-}
-
-func WriteFile(p string, content []byte, name string) {
- output := content
-
- // Avoid creating golden files for empty results
- if name == ResultsFilename && string(output) == "[]" {
- return
- }
-
- p = path.Join(GoldenFilePath, p)
- if err := os.MkdirAll(p, os.ModePerm); err != nil {
- panic(err)
- }
- var indentBuffer bytes.Buffer
- err := json.Indent(&indentBuffer, output, "", " ")
- if err == nil {
- output = indentBuffer.Bytes()
- }
- if err != nil {
- logrus.Error(err)
- }
-
- if err := os.WriteFile(fmt.Sprintf("%s%c%s", p, os.PathSeparator, sanitizeName(name)), output, os.ModePerm); err != nil {
- panic(err)
- }
-}
-
-// Remove forbidden characters like / in file name
-func sanitizeName(name string) string {
- substitution := "_"
- replacer := strings.NewReplacer(
- "/", substitution,
- "\\", substitution,
- "<", substitution,
- ">", substitution,
- ":", substitution,
- "\"", substitution,
- "|", substitution,
- "?", substitution,
- "*", substitution,
- )
- return replacer.Replace(name)
-}
-
-func FileExists(dirname, f string) bool {
- fileName := path.Join(GoldenFilePath, dirname, sanitizeName(f))
- info, err := os.Stat(fileName)
- if os.IsNotExist(err) {
- return false
- }
- return !info.IsDir()
-}
diff --git a/test/google/asset.go b/test/google/asset.go
deleted file mode 100644
index 26f094533..000000000
--- a/test/google/asset.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package google
-
-import (
- "context"
- "net"
-
- asset "cloud.google.com/go/asset/apiv1"
- assetpb "cloud.google.com/go/asset/apiv1/assetpb"
- "google.golang.org/api/option"
- "google.golang.org/grpc"
- "google.golang.org/grpc/credentials/insecure"
-)
-
-type FakeAssetServer struct {
- SearchAllResourcesResults []*assetpb.ResourceSearchResult
- ListAssetsResults []*assetpb.Asset
- err error
- assetpb.UnimplementedAssetServiceServer
-}
-
-func (s *FakeAssetServer) SearchAllResources(context.Context, *assetpb.SearchAllResourcesRequest) (*assetpb.SearchAllResourcesResponse, error) {
- return &assetpb.SearchAllResourcesResponse{Results: s.SearchAllResourcesResults}, s.err
-}
-
-func (s *FakeAssetServer) ListAssets(context.Context, *assetpb.ListAssetsRequest) (*assetpb.ListAssetsResponse, error) {
- return &assetpb.ListAssetsResponse{Assets: s.ListAssetsResults}, s.err
-}
-
-func NewFakeAssertServerWithList(listResults []*assetpb.Asset, err error) (*asset.Client, error) {
- return newAssetClient(&FakeAssetServer{ListAssetsResults: listResults, err: err})
-}
-
-func NewFakeAssetServer(searchResults []*assetpb.ResourceSearchResult, err error) (*asset.Client, error) {
- return newAssetClient(&FakeAssetServer{SearchAllResourcesResults: searchResults, err: err})
-}
-
-func newAssetClient(fakeServer *FakeAssetServer) (*asset.Client, error) {
- ctx := context.Background()
- l, err := net.Listen("tcp", "localhost:0")
- if err != nil {
- return nil, err
- }
- gsrv := grpc.NewServer()
- assetpb.RegisterAssetServiceServer(gsrv, fakeServer)
- fakeServerAddr := l.Addr().String()
- go func() {
- if err := gsrv.Serve(l); err != nil {
- panic(err)
- }
- }()
- // Create a client.
- client, err := asset.NewClient(ctx,
- option.WithEndpoint(fakeServerAddr),
- option.WithoutAuthentication(),
- option.WithGRPCDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
- )
- if err != nil {
- return nil, err
- }
- return client, nil
-}
diff --git a/test/google/storage.go b/test/google/storage.go
deleted file mode 100644
index 8f2d59c15..000000000
--- a/test/google/storage.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package google
-
-import (
- "context"
- "net/http"
- "net/http/httptest"
- "net/url"
- "os"
-
- "cloud.google.com/go/storage"
-)
-
-type FakeStorageServer struct {
- routes map[string]http.HandlerFunc
-}
-
-func (s *FakeStorageServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- for path, handler := range s.routes {
- if path == r.RequestURI {
- handler(w, r)
- return
- }
- }
- w.WriteHeader(http.StatusNotFound)
-}
-
-func NewFakeStorageServer(routes map[string]http.HandlerFunc) (*storage.Client, *httptest.Server, error) {
- return newStorageClient(&FakeStorageServer{routes: routes})
-}
-
-func newStorageClient(fakeServer *FakeStorageServer) (*storage.Client, *httptest.Server, error) {
- ts := httptest.NewServer(fakeServer)
- listenUrl, err := url.Parse(ts.URL)
- if err != nil {
- return nil, nil, err
- }
-
- _ = os.Setenv("STORAGE_EMULATOR_HOST", listenUrl.Host)
- defer os.Setenv("STORAGE_EMULATOR_HOST", "")
-
- client, err := storage.NewClient(context.Background())
- if err != nil {
- return nil, nil, err
- }
- return client, ts, nil
-}
diff --git a/test/mocks/MockBuild.go b/test/mocks/MockBuild.go
deleted file mode 100644
index ed4cd3a59..000000000
--- a/test/mocks/MockBuild.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package mocks
-
-type MockBuild struct {
- Release bool
- UsageReporting bool
-}
-
-func (m MockBuild) IsRelease() bool {
- return m.Release
-}
-
-func (m MockBuild) IsUsageReportingEnabled() bool {
- return m.UsageReporting
-}
diff --git a/test/mocks/MockGoldenTerraformProvider.go b/test/mocks/MockGoldenTerraformProvider.go
deleted file mode 100644
index c821ddc2f..000000000
--- a/test/mocks/MockGoldenTerraformProvider.go
+++ /dev/null
@@ -1,193 +0,0 @@
-package mocks
-
-import (
- gojson "encoding/json"
- "errors"
- "fmt"
- "sort"
-
- terraform2 "github.com/snyk/driftctl/enumeration/terraform"
-
- "github.com/snyk/driftctl/test/goldenfile"
-
- "github.com/hashicorp/terraform/providers"
- "github.com/zclconf/go-cty/cty"
- ctyjson "github.com/zclconf/go-cty/cty/json"
-)
-
-type MockedGoldenTFProvider struct {
- name string
- providerName string
- providerVersion string
- realProvider terraform2.TerraformProvider
- update bool
-}
-
-func NewMockedGoldenTFProvider(name, providerName, providerVersion string, realProvider terraform2.TerraformProvider, update bool) *MockedGoldenTFProvider {
- return &MockedGoldenTFProvider{
- name: name,
- providerName: providerName,
- providerVersion: providerVersion,
- realProvider: realProvider,
- update: update}
-}
-
-func (m *MockedGoldenTFProvider) Schema() map[string]providers.Schema {
- if m.update {
- schema := m.realProvider.Schema()
- m.writeSchema(schema)
- return schema
- }
- return m.readSchema()
-}
-
-func (m *MockedGoldenTFProvider) ReadResource(args terraform2.ReadResourceArgs) (*cty.Value, error) {
- if m.update {
- readResource, err := m.realProvider.ReadResource(args)
- m.writeReadResource(args, readResource, err)
- return readResource, err
- }
-
- return m.readReadResource(args)
-}
-
-func (m *MockedGoldenTFProvider) writeSchema(schema map[string]providers.Schema) {
- marshal, err := gojson.Marshal(schema)
- if err != nil {
- panic(err)
- }
- schemaPath := m.getSchemaPath()
- goldenfile.WriteRootFile(schemaPath, marshal, "schema.json")
-}
-
-func (m *MockedGoldenTFProvider) getSchemaPath() string {
- schemaPath := fmt.Sprintf("schemas/%s/%s", m.providerName, m.providerVersion)
- return schemaPath
-}
-
-func (m *MockedGoldenTFProvider) readSchema() map[string]providers.Schema {
- schemaPath := m.getSchemaPath()
-
- content := goldenfile.ReadRootFile(schemaPath, "schema.json")
- var schema map[string]providers.Schema
- if err := gojson.Unmarshal(content, &schema); err != nil {
- panic(err)
- }
- return schema
-}
-
-func (m *MockedGoldenTFProvider) writeReadResource(args terraform2.ReadResourceArgs, readResource *cty.Value, err error) {
- var readRes = ReadResource{
- Value: readResource,
- Err: err,
- }
-
- marshalled, err := gojson.Marshal(&readRes)
- if err != nil {
- panic(err)
- }
- fileName := getFileName(args)
- goldenfile.WriteFile(m.name, marshalled, fileName)
-}
-
-func (m *MockedGoldenTFProvider) readReadResource(args terraform2.ReadResourceArgs) (*cty.Value, error) {
- fileName := getFileName(args)
- // TODO I'm putting this here for compatibility reason...
- if !goldenfile.FileExists(m.name, fileName) {
- fileName = fmt.Sprintf("%s-%s.res.golden.json", args.Ty, args.ID)
- }
-
- content := goldenfile.ReadFile(m.name, fileName)
- var readRes ReadResource
- if err := gojson.Unmarshal(content, &readRes); err != nil {
- panic(err)
- }
- return readRes.Value, readRes.Err
-}
-
-type ReadResource struct {
- Value *cty.Value
- Err error
-}
-
-func (m *ReadResource) UnmarshalJSON(bytes []byte) error {
- var unm struct {
- Typ []byte
- Val []byte
- Err *string
- }
- if err := gojson.Unmarshal(bytes, &unm); err != nil {
- return err
- }
- if unm.Typ != nil {
- unmarshalType, err := ctyjson.UnmarshalType(unm.Typ)
- if err != nil {
- return err
- }
- if unm.Val != nil {
- unmarshal, err := ctyjson.Unmarshal(unm.Val, unmarshalType)
- if err != nil {
- return err
- }
- m.Value = &unmarshal
- }
- }
- if unm.Err != nil {
- m.Err = errors.New(*unm.Err)
- }
- return nil
-}
-
-func (m *ReadResource) MarshalJSON() ([]byte, error) {
- var unm struct {
- Typ []byte
- Val []byte
- Err *string
- }
- if m.Value != nil {
- var err error
- unm.Typ, err = ctyjson.MarshalType(m.Value.Type())
- if err != nil {
- return nil, err
- }
- unm.Val, err = ctyjson.Marshal(*m.Value, m.Value.Type())
- if err != nil {
- return nil, err
- }
- }
- if m.Err != nil {
- e := m.Err.Error()
- unm.Err = &e
- }
- return gojson.Marshal(unm)
-}
-
-func getFileName(args terraform2.ReadResourceArgs) string {
- suffix := getFileNameSuffix(args)
- fileName := fmt.Sprintf("%s-%s%s.res.golden.json", args.Ty, args.ID, suffix)
- return fileName
-}
-
-func getFileNameSuffix(args terraform2.ReadResourceArgs) string {
- suffix := ""
- keys := make([]string, 0, len(args.Attributes))
- for k := range args.Attributes {
- keys = append(keys, k)
- }
- sort.Strings(keys)
-
- for _, k := range keys {
- suffix = fmt.Sprintf("%s-%s", suffix, args.Attributes[k])
- }
- return suffix
-}
-
-func (p MockedGoldenTFProvider) Cleanup() {}
-
-func (p *MockedGoldenTFProvider) Name() string {
- return p.realProvider.Name()
-}
-
-func (p *MockedGoldenTFProvider) Version() string {
- return p.realProvider.Version()
-}
diff --git a/test/mocks/StateVersions.go b/test/mocks/StateVersions.go
deleted file mode 100644
index 36a83f004..000000000
--- a/test/mocks/StateVersions.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by mockery v2.9.4. DO NOT EDIT.
-
-package mocks
-
-import (
- context "context"
-
- mock "github.com/stretchr/testify/mock"
-
- tfe "github.com/hashicorp/go-tfe"
-)
-
-// StateVersions is an autogenerated mock type for the StateVersions type
-type StateVersions struct {
- mock.Mock
-}
-
-// Create provides a mock function with given fields: ctx, workspaceID, options
-func (_m *StateVersions) Create(ctx context.Context, workspaceID string, options tfe.StateVersionCreateOptions) (*tfe.StateVersion, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.StateVersion
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.StateVersionCreateOptions) *tfe.StateVersion); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersion)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.StateVersionCreateOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Current provides a mock function with given fields: ctx, workspaceID
-func (_m *StateVersions) Current(ctx context.Context, workspaceID string) (*tfe.StateVersion, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.StateVersion
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.StateVersion); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersion)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// CurrentWithOptions provides a mock function with given fields: ctx, workspaceID, options
-func (_m *StateVersions) CurrentWithOptions(ctx context.Context, workspaceID string, options *tfe.StateVersionCurrentOptions) (*tfe.StateVersion, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.StateVersion
- if rf, ok := ret.Get(0).(func(context.Context, string, *tfe.StateVersionCurrentOptions) *tfe.StateVersion); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersion)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, *tfe.StateVersionCurrentOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Download provides a mock function with given fields: ctx, url
-func (_m *StateVersions) Download(ctx context.Context, url string) ([]byte, error) {
- ret := _m.Called(ctx, url)
-
- var r0 []byte
- if rf, ok := ret.Get(0).(func(context.Context, string) []byte); ok {
- r0 = rf(ctx, url)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]byte)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, url)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// List provides a mock function with given fields: ctx, options
-func (_m *StateVersions) List(ctx context.Context, options tfe.StateVersionListOptions) (*tfe.StateVersionList, error) {
- ret := _m.Called(ctx, options)
-
- var r0 *tfe.StateVersionList
- if rf, ok := ret.Get(0).(func(context.Context, tfe.StateVersionListOptions) *tfe.StateVersionList); ok {
- r0 = rf(ctx, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersionList)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, tfe.StateVersionListOptions) error); ok {
- r1 = rf(ctx, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Outputs provides a mock function with given fields: ctx, svID, options
-func (_m *StateVersions) Outputs(ctx context.Context, svID string, options tfe.StateVersionOutputsListOptions) ([]*tfe.StateVersionOutput, error) {
- ret := _m.Called(ctx, svID, options)
-
- var r0 []*tfe.StateVersionOutput
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.StateVersionOutputsListOptions) []*tfe.StateVersionOutput); ok {
- r0 = rf(ctx, svID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*tfe.StateVersionOutput)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.StateVersionOutputsListOptions) error); ok {
- r1 = rf(ctx, svID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Read provides a mock function with given fields: ctx, svID
-func (_m *StateVersions) Read(ctx context.Context, svID string) (*tfe.StateVersion, error) {
- ret := _m.Called(ctx, svID)
-
- var r0 *tfe.StateVersion
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.StateVersion); ok {
- r0 = rf(ctx, svID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersion)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, svID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReadWithOptions provides a mock function with given fields: ctx, svID, options
-func (_m *StateVersions) ReadWithOptions(ctx context.Context, svID string, options *tfe.StateVersionReadOptions) (*tfe.StateVersion, error) {
- ret := _m.Called(ctx, svID, options)
-
- var r0 *tfe.StateVersion
- if rf, ok := ret.Get(0).(func(context.Context, string, *tfe.StateVersionReadOptions) *tfe.StateVersion); ok {
- r0 = rf(ctx, svID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.StateVersion)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, *tfe.StateVersionReadOptions) error); ok {
- r1 = rf(ctx, svID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
diff --git a/test/mocks/Workspaces.go b/test/mocks/Workspaces.go
deleted file mode 100644
index da44340b4..000000000
--- a/test/mocks/Workspaces.go
+++ /dev/null
@@ -1,529 +0,0 @@
-// Code generated by mockery v2.9.4. DO NOT EDIT.
-
-package mocks
-
-import (
- context "context"
- io "io"
-
- mock "github.com/stretchr/testify/mock"
-
- tfe "github.com/hashicorp/go-tfe"
-)
-
-// Workspaces is an autogenerated mock type for the Workspaces type
-type Workspaces struct {
- mock.Mock
-}
-
-// AddRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) AddRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceAddRemoteStateConsumersOptions) error {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceAddRemoteStateConsumersOptions) error); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// AddTags provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) AddTags(ctx context.Context, workspaceID string, options tfe.WorkspaceAddTagsOptions) error {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceAddTagsOptions) error); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// AssignSSHKey provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) AssignSSHKey(ctx context.Context, workspaceID string, options tfe.WorkspaceAssignSSHKeyOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceAssignSSHKeyOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceAssignSSHKeyOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Create provides a mock function with given fields: ctx, organization, options
-func (_m *Workspaces) Create(ctx context.Context, organization string, options tfe.WorkspaceCreateOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, organization, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceCreateOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, organization, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceCreateOptions) error); ok {
- r1 = rf(ctx, organization, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Delete provides a mock function with given fields: ctx, organization, workspace
-func (_m *Workspaces) Delete(ctx context.Context, organization string, workspace string) error {
- ret := _m.Called(ctx, organization, workspace)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
- r0 = rf(ctx, organization, workspace)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// DeleteByID provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) DeleteByID(ctx context.Context, workspaceID string) error {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// ForceUnlock provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) ForceUnlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// List provides a mock function with given fields: ctx, organization, options
-func (_m *Workspaces) List(ctx context.Context, organization string, options tfe.WorkspaceListOptions) (*tfe.WorkspaceList, error) {
- ret := _m.Called(ctx, organization, options)
-
- var r0 *tfe.WorkspaceList
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceListOptions) *tfe.WorkspaceList); ok {
- r0 = rf(ctx, organization, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.WorkspaceList)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceListOptions) error); ok {
- r1 = rf(ctx, organization, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Lock provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) Lock(ctx context.Context, workspaceID string, options tfe.WorkspaceLockOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceLockOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceLockOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Read provides a mock function with given fields: ctx, organization, workspace
-func (_m *Workspaces) Read(ctx context.Context, organization string, workspace string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, organization, workspace)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, string) *tfe.Workspace); ok {
- r0 = rf(ctx, organization, workspace)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
- r1 = rf(ctx, organization, workspace)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReadByID provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) ReadByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReadByIDWithOptions provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) ReadByIDWithOptions(ctx context.Context, workspaceID string, options *tfe.WorkspaceReadOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, *tfe.WorkspaceReadOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, *tfe.WorkspaceReadOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// ReadWithOptions provides a mock function with given fields: ctx, organization, workspace, options
-func (_m *Workspaces) ReadWithOptions(ctx context.Context, organization string, workspace string, options *tfe.WorkspaceReadOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, organization, workspace, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, string, *tfe.WorkspaceReadOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, organization, workspace, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, string, *tfe.WorkspaceReadOptions) error); ok {
- r1 = rf(ctx, organization, workspace, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Readme provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) Readme(ctx context.Context, workspaceID string) (io.Reader, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 io.Reader
- if rf, ok := ret.Get(0).(func(context.Context, string) io.Reader); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(io.Reader)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) RemoteStateConsumers(ctx context.Context, workspaceID string, options *tfe.RemoteStateConsumersListOptions) (*tfe.WorkspaceList, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.WorkspaceList
- if rf, ok := ret.Get(0).(func(context.Context, string, *tfe.RemoteStateConsumersListOptions) *tfe.WorkspaceList); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.WorkspaceList)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, *tfe.RemoteStateConsumersListOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) RemoveRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceRemoveRemoteStateConsumersOptions) error {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceRemoveRemoteStateConsumersOptions) error); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// RemoveTags provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) RemoveTags(ctx context.Context, workspaceID string, options tfe.WorkspaceRemoveTagsOptions) error {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceRemoveTagsOptions) error); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// RemoveVCSConnection provides a mock function with given fields: ctx, organization, workspace
-func (_m *Workspaces) RemoveVCSConnection(ctx context.Context, organization string, workspace string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, organization, workspace)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, string) *tfe.Workspace); ok {
- r0 = rf(ctx, organization, workspace)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
- r1 = rf(ctx, organization, workspace)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// RemoveVCSConnectionByID provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) RemoveVCSConnectionByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Tags provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) Tags(ctx context.Context, workspaceID string, options tfe.WorkspaceTagListOptions) (*tfe.TagList, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.TagList
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceTagListOptions) *tfe.TagList); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.TagList)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceTagListOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UnassignSSHKey provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) UnassignSSHKey(ctx context.Context, workspaceID string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Unlock provides a mock function with given fields: ctx, workspaceID
-func (_m *Workspaces) Unlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = rf(ctx, workspaceID)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// Update provides a mock function with given fields: ctx, organization, workspace, options
-func (_m *Workspaces) Update(ctx context.Context, organization string, workspace string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, organization, workspace, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, string, tfe.WorkspaceUpdateOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, organization, workspace, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, string, tfe.WorkspaceUpdateOptions) error); ok {
- r1 = rf(ctx, organization, workspace, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateByID provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) UpdateByID(ctx context.Context, workspaceID string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error) {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 *tfe.Workspace
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceUpdateOptions) *tfe.Workspace); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*tfe.Workspace)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func(context.Context, string, tfe.WorkspaceUpdateOptions) error); ok {
- r1 = rf(ctx, workspaceID, options)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}
-
-// UpdateRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options
-func (_m *Workspaces) UpdateRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceUpdateRemoteStateConsumersOptions) error {
- ret := _m.Called(ctx, workspaceID, options)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context, string, tfe.WorkspaceUpdateRemoteStateConsumersOptions) error); ok {
- r0 = rf(ctx, workspaceID, options)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
diff --git a/test/remote/scanner.go b/test/remote/scanner.go
deleted file mode 100644
index 63999461b..000000000
--- a/test/remote/scanner.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package remote
-
-import (
- "github.com/snyk/driftctl/enumeration/resource"
-)
-
-type SortableScanner struct {
- Scanner resource.Supplier
-}
-
-func NewSortableScanner(scanner resource.Supplier) *SortableScanner {
- return &SortableScanner{
- Scanner: scanner,
- }
-}
-
-func (s *SortableScanner) Resources() ([]*resource.Resource, error) {
- resources, err := s.Scanner.Resources()
- if err != nil {
- return nil, err
- }
- return resource.Sort(resources), nil
-}
diff --git a/test/resource/resource.go b/test/resource/resource.go
deleted file mode 100644
index 84a8492f6..000000000
--- a/test/resource/resource.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package resource_test
-
-import (
- "github.com/hashicorp/terraform/providers"
- "github.com/snyk/driftctl/pkg/resource"
- "github.com/snyk/driftctl/pkg/resource/schemas"
- testschemas "github.com/snyk/driftctl/test/schemas"
-)
-
-func InitFakeSchemaRepository(provider, version string) resource.SchemaRepositoryInterface {
- repo := schemas.NewSchemaRepository()
- schema := make(map[string]providers.Schema)
- if provider != "" {
- s, err := testschemas.ReadTestSchema(provider, version)
- if err != nil {
- // TODO HANDLER ERROR PROPERLY
- panic(err)
- }
- schema = s
- }
- _ = repo.Init(provider, version, schema)
- return repo
-}
diff --git a/test/result.go b/test/result.go
deleted file mode 100644
index c314b2792..000000000
--- a/test/result.go
+++ /dev/null
@@ -1,84 +0,0 @@
-package test
-
-import (
- "encoding/json"
- "fmt"
- "testing"
-
- "github.com/snyk/driftctl/pkg/analyser"
-
- "github.com/stretchr/testify/require"
-)
-
-type ScanResult struct {
- *require.Assertions
- *analyser.Analysis
-}
-
-func NewScanResult(t *testing.T, analysis *analyser.Analysis) *ScanResult {
- return &ScanResult{
- Assertions: require.New(t),
- Analysis: analysis,
- }
-}
-
-func (r *ScanResult) AssertResourceUnmanaged(id, ty string) {
- for _, u := range r.Unmanaged() {
- if u.ResourceType() == ty && u.ResourceId() == id {
- return
- }
- }
- r.Failf("Resource not unmanaged", "%s(%s)", id, ty)
-}
-
-func (r *ScanResult) AssertResourceDeleted(id, ty string) {
- for _, u := range r.Deleted() {
- if u.ResourceType() == ty && u.ResourceId() == id {
- return
- }
- }
- r.Failf("Resource not deleted", "%s(%s)", id, ty)
-}
-
-func (r *ScanResult) AssertCoverage(expected int) {
- r.Equal(expected, r.Coverage())
-}
-
-func (r *ScanResult) AssertDeletedCount(count int) {
- r.Equal(count, len(r.Deleted()))
-}
-
-func (r *ScanResult) AssertManagedCount(count int) {
- r.Equal(count, len(r.Managed()))
-}
-
-func (r *ScanResult) AssertUnmanagedCount(count int) {
- r.Equal(count, len(r.Unmanaged()))
-}
-
-func (r ScanResult) AssertInfrastructureIsInSync() {
- r.Equal(
- true,
- r.Analysis.IsSync(),
- fmt.Sprintf(
- "Infrastructure is not in sync: \n%s\n",
- r.printAnalysisResult(),
- ),
- )
-}
-
-func (r ScanResult) AssertInfrastructureIsNotSync() {
- r.Equal(
- false,
- r.Analysis.IsSync(),
- fmt.Sprintf(
- "Infrastructure is in sync: \n%s\n",
- r.printAnalysisResult(),
- ),
- )
-}
-
-func (r *ScanResult) printAnalysisResult() string {
- str, _ := json.MarshalIndent(r.Analysis, "", " ")
- return string(str)
-}
diff --git a/test/schemas/aws/3.19.0/schema.json b/test/schemas/aws/3.19.0/schema.json
deleted file mode 100755
index 9077e920a..000000000
--- a/test/schemas/aws/3.19.0/schema.json
+++ /dev/null
@@ -1,171757 +0,0 @@
-{
- "aws_accessanalyzer_analyzer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "analyzer_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_acm_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_authority_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_validation_options": {
- "Type": [
- "set",
- [
- "object",
- {
- "domain_name": "string",
- "resource_record_name": "string",
- "resource_record_type": "string",
- "resource_record_value": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subject_alternative_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "validation_emails": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "validation_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "options": {
- "Attributes": {
- "certificate_transparency_logging_preference": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_acm_certificate_validation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "validation_record_fqdns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_acmpca_certificate_authority": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_signing_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "not_after": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "not_before": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "permanent_deletion_time_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "serial": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "certificate_authority_configuration": {
- "Attributes": {
- "key_algorithm": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "signing_algorithm": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "subject": {
- "Attributes": {
- "common_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "country": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "distinguished_name_qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "generation_qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "given_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "initials": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "locality": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "organization": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "organizational_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pseudonym": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "surname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "title": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "revocation_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "crl_configuration": {
- "Attributes": {
- "custom_cname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expiration_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_owned_ipv4_pool": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "drop_invalid_header_fields": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_cross_zone_load_balancing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_http2": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idle_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "internal": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_logs": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "subnet_mapping": {
- "Attributes": {
- "allocation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ipv4_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb_listener": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssl_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_action": {
- "Attributes": {
- "order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authenticate_cognito": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "authenticate_oidc": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "token_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_info_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "fixed_response": {
- "Attributes": {
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "forward": {
- "Attributes": {},
- "BlockTypes": {
- "stickiness": {
- "Attributes": {
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_group": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 2,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "redirect": {
- "Attributes": {
- "host": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "read": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb_listener_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb_listener_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authenticate_cognito": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "authenticate_oidc": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "token_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_info_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "fixed_response": {
- "Attributes": {
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "forward": {
- "Attributes": {},
- "BlockTypes": {
- "stickiness": {
- "Attributes": {
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_group": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 2,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "redirect": {
- "Attributes": {
- "host": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "condition": {
- "Attributes": {},
- "BlockTypes": {
- "host_header": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_header": {
- "Attributes": {
- "http_header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_request_method": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "path_pattern": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "source_ip": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb_target_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deregistration_delay": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_multi_value_headers_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancing_algorithm_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "proxy_protocol_v2": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "slow_start": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "health_check": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "healthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "matcher": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "unhealthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "stickiness": {
- "Attributes": {
- "cookie_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_alb_target_group_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ami": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "architecture": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ena_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kernel_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "manage_ebs_snapshots": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ramdisk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sriov_net_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtualization_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ami_copy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "architecture": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ena_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kernel_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "manage_ebs_snapshots": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ramdisk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ami_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ami_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sriov_net_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtualization_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ami_from_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "architecture": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ena_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kernel_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "manage_ebs_snapshots": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ramdisk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_without_reboot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sriov_net_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtualization_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ami_launch_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_account": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cloudwatch_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttle_settings": {
- "Type": [
- "list",
- [
- "object",
- {
- "burst_limit": "number",
- "rate_limit": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_api_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_authorizer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "authorizer_credentials": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_result_ttl_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_validation_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_base_path_mapping": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "base_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_client_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expiration_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "pem_encoded_certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_deployment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invoke_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "triggers": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "variables": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_documentation_part": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "properties": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "location": {
- "Attributes": {
- "method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_documentation_version": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_domain_name": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate_upload_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudfront_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudfront_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "regional_certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regional_certificate_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regional_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "regional_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "endpoint_configuration": {
- "Attributes": {
- "types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_gateway_response": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_templates": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_integration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cache_key_parameters": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_handling": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "credentials": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_http_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "passthrough_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_templates": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_milliseconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_integration_response": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "content_handling": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_templates": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "selection_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_method": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_key_required": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_scopes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_models": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_parameters": {
- "Type": [
- "map",
- "bool"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_validator_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_method_response": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "http_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_models": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_parameters": {
- "Type": [
- "map",
- "bool"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_method_settings": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "method_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "settings": {
- "Attributes": {
- "cache_data_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_ttl_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "caching_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_trace_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "logging_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_authorization_for_cache_control": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_burst_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unauthorized_cache_control_header_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_model": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schema": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_request_validator": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "validate_request_body": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "validate_request_parameters": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_resource": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parent_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "path_part": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_rest_api": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_key_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "binary_media_types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "minimum_compression_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "endpoint_configuration": {
- "Attributes": {
- "types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_rest_api_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_stage": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_cluster_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_cluster_size": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_certificate_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "documentation_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invoke_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rest_api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "variables": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "xray_tracing_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_log_settings": {
- "Attributes": {
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_usage_plan": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "product_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "api_stages": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "quota_settings": {
- "Attributes": {
- "limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "offset": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "period": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "throttle_settings": {
- "Attributes": {
- "burst_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_usage_plan_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "usage_plan_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_api_gateway_vpc_link": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arns": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_api": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "api_key_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "credentials_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_execute_api_endpoint": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cors_configuration": {
- "Attributes": {
- "allow_credentials": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_headers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_methods": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_origins": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expose_headers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_age": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_api_mapping": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "api_mapping_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_authorizer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_credentials_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_payload_format_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_result_ttl_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_simple_responses": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_sources": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "jwt_configuration": {
- "Attributes": {
- "audience": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_deployment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_deployed": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "triggers": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_domain_name": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_mapping_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "domain_name_configuration": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "mutual_tls_authentication": {
- "Attributes": {
- "truststore_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "truststore_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_integration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_handling_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "credentials_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_response_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_subtype": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "passthrough_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "payload_format_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_templates": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_milliseconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "tls_config": {
- "Attributes": {
- "server_name_to_verify": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_integration_response": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_handling_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "integration_response_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_templates": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_model": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schema": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "api_key_required": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_scopes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorizer_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "model_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operation_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_models": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_response_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_route_response": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "model_selection_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_models": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_response_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_stage": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_deploy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_certificate_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invoke_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stage_variables": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_log_settings": {
- "Attributes": {
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "default_route_settings": {
- "Attributes": {
- "data_trace_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detailed_metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "logging_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_burst_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "route_settings": {
- "Attributes": {
- "data_trace_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detailed_metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "logging_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_burst_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throttling_rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_apigatewayv2_vpc_link": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_app_cookie_stickiness_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lb_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appautoscaling_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scalable_dimension": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "step_scaling_policy_configuration": {
- "Attributes": {
- "adjustment_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_aggregation_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_adjustment_magnitude": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "step_adjustment": {
- "Attributes": {
- "metric_interval_lower_bound": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_interval_upper_bound": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scaling_adjustment": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_tracking_scaling_policy_configuration": {
- "Attributes": {
- "disable_scale_in": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scale_in_cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scale_out_cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "customized_metric_specification": {
- "Attributes": {
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "dimensions": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "predefined_metric_specification": {
- "Attributes": {
- "predefined_metric_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appautoscaling_scheduled_action": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "end_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scalable_dimension": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "scalable_target_action": {
- "Attributes": {
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appautoscaling_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scalable_dimension": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_gateway_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_gateway_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "grpc_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "target": {
- "Attributes": {},
- "BlockTypes": {
- "virtual_service": {
- "Attributes": {
- "virtual_service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http2_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "target": {
- "Attributes": {},
- "BlockTypes": {
- "virtual_service": {
- "Attributes": {
- "virtual_service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "target": {
- "Attributes": {},
- "BlockTypes": {
- "virtual_service": {
- "Attributes": {
- "virtual_service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_mesh": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "egress_filter": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_router_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "grpc_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "weighted_target": {
- "Attributes": {
- "virtual_node": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "method_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "metadata": {
- "Attributes": {
- "invert": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "match": {
- "Attributes": {
- "exact": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regex": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "range": {
- "Attributes": {
- "end": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "retry_policy": {
- "Attributes": {
- "grpc_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_retries": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tcp_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "per_retry_timeout": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http2_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "weighted_target": {
- "Attributes": {
- "virtual_node": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scheme": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "header": {
- "Attributes": {
- "invert": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "match": {
- "Attributes": {
- "exact": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regex": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "range": {
- "Attributes": {
- "end": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "retry_policy": {
- "Attributes": {
- "http_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_retries": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tcp_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "per_retry_timeout": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "weighted_target": {
- "Attributes": {
- "virtual_node": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "match": {
- "Attributes": {
- "method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scheme": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "header": {
- "Attributes": {
- "invert": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "match": {
- "Attributes": {
- "exact": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regex": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "range": {
- "Attributes": {
- "end": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "retry_policy": {
- "Attributes": {
- "http_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_retries": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tcp_retry_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "per_retry_timeout": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tcp_route": {
- "Attributes": {},
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "weighted_target": {
- "Attributes": {
- "virtual_node": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_virtual_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "backend_defaults": {
- "Attributes": {},
- "BlockTypes": {
- "client_policy": {
- "Attributes": {},
- "BlockTypes": {
- "tls": {
- "Attributes": {
- "enforce": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ports": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "validation": {
- "Attributes": {},
- "BlockTypes": {
- "trust": {
- "Attributes": {},
- "BlockTypes": {
- "acm": {
- "Attributes": {
- "certificate_authority_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file": {
- "Attributes": {
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "listener": {
- "Attributes": {},
- "BlockTypes": {
- "connection_pool": {
- "Attributes": {},
- "BlockTypes": {
- "grpc": {
- "Attributes": {
- "max_requests": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http": {
- "Attributes": {
- "max_connections": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_pending_requests": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http2": {
- "Attributes": {
- "max_requests": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "health_check": {
- "Attributes": {
- "healthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval_millis": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_millis": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unhealthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "port_mapping": {
- "Attributes": {
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "tls": {
- "Attributes": {
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "certificate": {
- "Attributes": {},
- "BlockTypes": {
- "acm": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file": {
- "Attributes": {
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "logging": {
- "Attributes": {},
- "BlockTypes": {
- "access_log": {
- "Attributes": {},
- "BlockTypes": {
- "file": {
- "Attributes": {
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_virtual_node": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "backend": {
- "Attributes": {},
- "BlockTypes": {
- "virtual_service": {
- "Attributes": {
- "virtual_service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "client_policy": {
- "Attributes": {},
- "BlockTypes": {
- "tls": {
- "Attributes": {
- "enforce": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ports": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "validation": {
- "Attributes": {},
- "BlockTypes": {
- "trust": {
- "Attributes": {},
- "BlockTypes": {
- "acm": {
- "Attributes": {
- "certificate_authority_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file": {
- "Attributes": {
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 25
- },
- "backend_defaults": {
- "Attributes": {},
- "BlockTypes": {
- "client_policy": {
- "Attributes": {},
- "BlockTypes": {
- "tls": {
- "Attributes": {
- "enforce": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ports": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "validation": {
- "Attributes": {},
- "BlockTypes": {
- "trust": {
- "Attributes": {},
- "BlockTypes": {
- "acm": {
- "Attributes": {
- "certificate_authority_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file": {
- "Attributes": {
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "listener": {
- "Attributes": {},
- "BlockTypes": {
- "health_check": {
- "Attributes": {
- "healthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval_millis": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_millis": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unhealthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "port_mapping": {
- "Attributes": {
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {},
- "BlockTypes": {
- "grpc": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http2": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "per_request": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tcp": {
- "Attributes": {},
- "BlockTypes": {
- "idle": {
- "Attributes": {
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tls": {
- "Attributes": {
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "certificate": {
- "Attributes": {},
- "BlockTypes": {
- "acm": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file": {
- "Attributes": {
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "logging": {
- "Attributes": {},
- "BlockTypes": {
- "access_log": {
- "Attributes": {},
- "BlockTypes": {
- "file": {
- "Attributes": {
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "service_discovery": {
- "Attributes": {},
- "BlockTypes": {
- "aws_cloud_map": {
- "Attributes": {
- "attributes": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "dns": {
- "Attributes": {
- "hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_virtual_router": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "listener": {
- "Attributes": {},
- "BlockTypes": {
- "port_mapping": {
- "Attributes": {
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appmesh_virtual_service": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mesh_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spec": {
- "Attributes": {},
- "BlockTypes": {
- "provider": {
- "Attributes": {},
- "BlockTypes": {
- "virtual_node": {
- "Attributes": {
- "virtual_node_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "virtual_router": {
- "Attributes": {
- "virtual_router_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appsync_api_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expires": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appsync_datasource": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "dynamodb_config": {
- "Attributes": {
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_caller_credentials": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "elasticsearch_config": {
- "Attributes": {
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_config": {
- "Attributes": {
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda_config": {
- "Attributes": {
- "function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appsync_function": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_mapping_template": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_mapping_template": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appsync_graphql_api": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "authentication_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schema": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uris": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "xray_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "additional_authentication_provider": {
- "Attributes": {
- "authentication_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "openid_connect_config": {
- "Attributes": {
- "auth_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iat_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "user_pool_config": {
- "Attributes": {
- "app_id_client_regex": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "log_config": {
- "Attributes": {
- "cloudwatch_logs_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "exclude_verbose_content": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "field_log_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "openid_connect_config": {
- "Attributes": {
- "auth_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iat_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "user_pool_config": {
- "Attributes": {
- "app_id_client_regex": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_appsync_resolver": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kind": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_template": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_template": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "caching_config": {
- "Attributes": {
- "caching_keys": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "pipeline_config": {
- "Attributes": {
- "functions": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_athena_database": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_configuration": {
- "Attributes": {
- "encryption_option": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_athena_named_query": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "database": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "workgroup": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_athena_workgroup": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "configuration": {
- "Attributes": {
- "bytes_scanned_cutoff_per_query": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enforce_workgroup_configuration": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "publish_cloudwatch_metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "result_configuration": {
- "Attributes": {
- "output_location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_configuration": {
- "Attributes": {
- "encryption_option": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "alb_target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elb": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity_rebalance": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "desired_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_metrics": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_grace_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_instance_lifetime": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metrics_granularity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_elb_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protect_from_scale_in": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_linked_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "suspended_processes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "set",
- [
- "map",
- "string"
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "termination_policies": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_zone_identifier": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_capacity_timeout": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_elb_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "initial_lifecycle_hook": {
- "Attributes": {
- "default_result": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "heartbeat_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lifecycle_transition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_metadata": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "launch_template": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "mixed_instances_policy": {
- "Attributes": {},
- "BlockTypes": {
- "instances_distribution": {
- "Attributes": {
- "on_demand_allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_demand_base_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_demand_percentage_above_base_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_instance_pools": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_max_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "launch_template": {
- "Attributes": {},
- "BlockTypes": {
- "launch_template_specification": {
- "Attributes": {
- "launch_template_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_template_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "override": {
- "Attributes": {
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tag": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "propagate_at_launch": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_lifecycle_hook": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "autoscaling_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_result": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "heartbeat_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lifecycle_transition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_metadata": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_notification": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "notifications": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "adjustment_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "estimated_instance_warmup": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_aggregation_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_adjustment_magnitude": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scaling_adjustment": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "step_adjustment": {
- "Attributes": {
- "metric_interval_lower_bound": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_interval_upper_bound": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scaling_adjustment": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "target_tracking_configuration": {
- "Attributes": {
- "disable_scale_in": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "customized_metric_specification": {
- "Attributes": {
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "metric_dimension": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "predefined_metric_specification": {
- "Attributes": {
- "predefined_metric_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscaling_schedule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "desired_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "end_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "recurrence": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scheduled_action_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_autoscalingplans_scaling_plan": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scaling_plan_version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "application_source": {
- "Attributes": {
- "cloudformation_stack_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "tag_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 50
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "scaling_instruction": {
- "Attributes": {
- "disable_dynamic_scaling": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "predictive_scaling_max_capacity_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "predictive_scaling_max_capacity_buffer": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "predictive_scaling_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scalable_dimension": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scaling_policy_update_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scheduled_action_buffer_time": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "customized_load_metric_specification": {
- "Attributes": {
- "dimensions": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "predefined_load_metric_specification": {
- "Attributes": {
- "predefined_load_metric_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_tracking_configuration": {
- "Attributes": {
- "disable_scale_in": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "estimated_instance_warmup": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scale_in_cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scale_out_cooldown": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "customized_scaling_metric_specification": {
- "Attributes": {
- "dimensions": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "predefined_scaling_metric_specification": {
- "Attributes": {
- "predefined_scaling_metric_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_plan": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "advanced_backup_setting": {
- "Attributes": {
- "backup_options": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "rule": {
- "Attributes": {
- "completion_window": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "recovery_point_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start_window": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_vault_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "copy_action": {
- "Attributes": {
- "destination_vault_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "lifecycle": {
- "Attributes": {
- "cold_storage_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "lifecycle": {
- "Attributes": {
- "cold_storage_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_region_settings": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type_opt_in_preference": {
- "Type": [
- "map",
- "bool"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_selection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "plan_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resources": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "selection_tag": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_vault": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "recovery_points": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_vault_notifications": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "backup_vault_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_vault_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_vault_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_backup_vault_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "backup_vault_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_vault_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_batch_compute_environment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "compute_environment_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "compute_environment_name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ecs_cluster_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "compute_resources": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "desired_vcpus": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ec2_key_pair": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_vcpus": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_vcpus": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_iam_fleet_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "launch_template": {
- "Attributes": {
- "launch_template_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_template_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_batch_job_definition": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "container_properties": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "retry_strategy": {
- "Attributes": {
- "attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeout": {
- "Attributes": {
- "attempt_duration_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_batch_job_queue": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "compute_environments": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_budgets_budget": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "budget_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cost_filters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "limit_amount": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "limit_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_period_end": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_period_start": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cost_types": {
- "Attributes": {
- "include_credit": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_discount": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_other_subscription": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_recurring": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_refund": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_subscription": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_tax": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_upfront": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_amortized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_blended": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "notification": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subscriber_email_addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subscriber_sns_topic_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threshold_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloud9_environment_ec2": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "automatic_stop_time_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudformation_stack": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "capabilities": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_rollback": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_failure": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outputs": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_in_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudformation_stack_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "administration_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capabilities": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_role_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_set_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudformation_stack_set_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_overrides": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "retain_stack": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudfront_distribution": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "aliases": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "caller_reference": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_root_object": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "etag": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "in_progress_validation_batches": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_ipv6_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_modified_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "price_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retain_on_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trusted_signers": {
- "Type": [
- "list",
- [
- "object",
- {
- "enabled": "bool",
- "items": [
- "list",
- [
- "object",
- {
- "aws_account_number": "string",
- "key_pair_ids": [
- "set",
- "string"
- ]
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_deployment": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "web_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "custom_error_response": {
- "Attributes": {
- "error_caching_min_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "error_code": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_code": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_page_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "default_cache_behavior": {
- "Attributes": {
- "allowed_methods": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cached_methods": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compress": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "field_level_encryption_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "smooth_streaming": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_origin_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trusted_signers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "viewer_protocol_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_values": {
- "Attributes": {
- "headers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query_string": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query_string_cache_keys": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cookies": {
- "Attributes": {
- "forward": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "whitelisted_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "lambda_function_association": {
- "Attributes": {
- "event_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_body": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 4
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "logging_config": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_cookies": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ordered_cache_behavior": {
- "Attributes": {
- "allowed_methods": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cached_methods": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compress": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "field_level_encryption_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "smooth_streaming": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_origin_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trusted_signers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "viewer_protocol_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_values": {
- "Attributes": {
- "headers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query_string": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query_string_cache_keys": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cookies": {
- "Attributes": {
- "forward": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "whitelisted_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "lambda_function_association": {
- "Attributes": {
- "event_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_body": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 4
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "origin": {
- "Attributes": {
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "custom_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "custom_origin_config": {
- "Attributes": {
- "http_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "https_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_keepalive_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_protocol_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_read_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin_ssl_protocols": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_origin_config": {
- "Attributes": {
- "origin_access_identity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "origin_group": {
- "Attributes": {
- "origin_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "failover_criteria": {
- "Attributes": {
- "status_codes": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "member": {
- "Attributes": {
- "origin_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 2,
- "MaxItems": 2
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "restrictions": {
- "Attributes": {},
- "BlockTypes": {
- "geo_restriction": {
- "Attributes": {
- "locations": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "restriction_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "viewer_certificate": {
- "Attributes": {
- "acm_certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudfront_default_certificate": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_certificate_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "minimum_protocol_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssl_support_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudfront_origin_access_identity": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "caller_reference": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudfront_access_identity_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "etag": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_canonical_user_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudfront_public_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "caller_reference": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encoded_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "etag": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudhsm_v2_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster_certificates": {
- "Type": [
- "list",
- [
- "object",
- {
- "aws_hardware_certificate": "string",
- "cluster_certificate": "string",
- "cluster_csr": "string",
- "hsm_certificate": "string",
- "manufacturer_hardware_certificate": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hsm_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_backup_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudhsm_v2_hsm": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hsm_eni_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hsm_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hsm_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudtrail": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloud_watch_logs_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloud_watch_logs_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_log_file_validation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_logging": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "home_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_global_service_events": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_multi_region_trail": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_organization_trail": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "event_selector": {
- "Attributes": {
- "include_management_events": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_write_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "data_resource": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 5
- },
- "insight_selector": {
- "Attributes": {
- "insight_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_dashboard": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "dashboard_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dashboard_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dashboard_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_event_bus": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_event_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_bus_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statement_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "condition": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_event_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_bus_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_event_target": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_bus_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "batch_target": {
- "Attributes": {
- "array_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ecs_target": {
- "Attributes": {
- "group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_definition_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "network_configuration": {
- "Attributes": {
- "assign_public_ip": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "input_transformer": {
- "Attributes": {
- "input_paths": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_template": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_target": {
- "Attributes": {
- "partition_key_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "run_command_targets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 5
- },
- "sqs_target": {
- "Attributes": {
- "message_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_destination": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_destination_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_metric_filter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "metric_transformation": {
- "Attributes": {
- "default_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_resource_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_stream": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_log_subscription_filter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "distribution": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cloudwatch_metric_alarm": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "actions_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "alarm_actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "alarm_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "alarm_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "datapoints_to_alarm": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dimensions": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "evaluate_low_sample_count_percentiles": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "evaluation_periods": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "extended_statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "insufficient_data_actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ok_actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statistic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threshold_metric_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "treat_missing_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "metric_query": {
- "Attributes": {
- "expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "return_data": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "metric": {
- "Attributes": {
- "dimensions": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stat": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codeartifact_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "asset_size_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codeartifact_domain_permissions_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_revision": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codeartifact_repository": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "administrator_account": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "external_connections": {
- "Attributes": {
- "external_connection_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "package_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "upstream": {
- "Attributes": {
- "repository_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codeartifact_repository_permissions_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_revision": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codebuild_project": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "badge_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "badge_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "build_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "queued_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "artifacts": {
- "Attributes": {
- "artifact_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_disabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "override_artifact_name": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "packaging": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "cache": {
- "Attributes": {
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "modes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "environment": {
- "Attributes": {
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compute_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "image": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_pull_credentials_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "privileged_mode": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "environment_variable": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "registry_credential": {
- "Attributes": {
- "credential": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "credential_provider": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "logs_config": {
- "Attributes": {},
- "BlockTypes": {
- "cloudwatch_logs": {
- "Attributes": {
- "group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_logs": {
- "Attributes": {
- "encryption_disabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "secondary_artifacts": {
- "Attributes": {
- "artifact_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_disabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "override_artifact_name": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "packaging": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "secondary_sources": {
- "Attributes": {
- "buildspec": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "git_clone_depth": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "insecure_ssl": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "report_build_status": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "auth": {
- "Attributes": {
- "resource": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "git_submodules_config": {
- "Attributes": {
- "fetch_submodules": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "source": {
- "Attributes": {
- "buildspec": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "git_clone_depth": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "insecure_ssl": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "report_build_status": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "auth": {
- "Attributes": {
- "resource": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "git_submodules_config": {
- "Attributes": {
- "fetch_submodules": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "vpc_config": {
- "Attributes": {
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codebuild_report_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "export_config": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "s3_destination": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_disabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "packaging": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codebuild_source_credential": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auth_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "user_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codebuild_webhook": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "branch_filter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "payload_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "project_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "filter_group": {
- "Attributes": {},
- "BlockTypes": {
- "filter": {
- "Attributes": {
- "exclude_matched_pattern": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codecommit_repository": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "clone_url_http": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "clone_url_ssh": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_branch": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codecommit_trigger": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "configuration_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "trigger": {
- "Attributes": {
- "branches": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "events": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codedeploy_app": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "compute_platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codedeploy_deployment_config": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "compute_platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_config_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_config_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "minimum_healthy_hosts": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "traffic_routing_config": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "time_based_canary": {
- "Attributes": {
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "time_based_linear": {
- "Attributes": {
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codedeploy_deployment_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "app_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_config_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "alarm_configuration": {
- "Attributes": {
- "alarms": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_poll_alarm_failure": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "auto_rollback_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "blue_green_deployment_config": {
- "Attributes": {},
- "BlockTypes": {
- "deployment_ready_option": {
- "Attributes": {
- "action_on_timeout": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_time_in_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "green_fleet_provisioning_option": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "terminate_blue_instances_on_deployment_success": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "termination_wait_time_in_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "deployment_style": {
- "Attributes": {
- "deployment_option": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ec2_tag_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ec2_tag_set": {
- "Attributes": {},
- "BlockTypes": {
- "ec2_tag_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ecs_service": {
- "Attributes": {
- "cluster_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "load_balancer_info": {
- "Attributes": {},
- "BlockTypes": {
- "elb_info": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "target_group_info": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "target_group_pair_info": {
- "Attributes": {},
- "BlockTypes": {
- "prod_traffic_route": {
- "Attributes": {
- "listener_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "target_group": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 2
- },
- "test_traffic_route": {
- "Attributes": {
- "listener_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "on_premises_instance_tag_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "trigger_configuration": {
- "Attributes": {
- "trigger_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trigger_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trigger_target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codepipeline": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "artifact_store": {
- "Attributes": {
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_key": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "stage": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "category": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_artifacts": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_artifacts": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "run_order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 2,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codepipeline_webhook": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "authentication": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_pipeline": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authentication_configuration": {
- "Attributes": {
- "allowed_ip_range": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "filter": {
- "Attributes": {
- "json_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "match_equals": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_codestarnotifications_notification_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "detail_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_type_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "target": {
- "Attributes": {
- "address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_identity_pool": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_unauthenticated_identities": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "developer_provider_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_pool_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "openid_connect_provider_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "saml_provider_arns": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "supported_login_providers": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cognito_identity_providers": {
- "Attributes": {
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_side_token_check": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_identity_pool_roles_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "roles": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "role_mapping": {
- "Attributes": {
- "ambiguous_role_resolution": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_provider": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mapping_rule": {
- "Attributes": {
- "claim": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "match_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 25
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_identity_provider": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "attribute_mapping": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idp_identifiers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_details": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_resource_server": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope_identifiers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "scope": {
- "Attributes": {
- "scope_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 100
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_user_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "precedence": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_user_pool": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "alias_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_verified_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_verification_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_verification_subject": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_modified_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mfa_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sms_authentication_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sms_verification_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username_attributes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "account_recovery_setting": {
- "Attributes": {},
- "BlockTypes": {
- "recovery_mechanism": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "admin_create_user_config": {
- "Attributes": {
- "allow_admin_create_user_only": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "invite_message_template": {
- "Attributes": {
- "email_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_subject": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sms_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "device_configuration": {
- "Attributes": {
- "challenge_required_on_new_device": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_only_remembered_on_user_prompt": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "email_configuration": {
- "Attributes": {
- "email_sending_account": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_email_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "reply_to_email_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda_config": {
- "Attributes": {
- "create_auth_challenge": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "define_auth_challenge": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "post_authentication": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "post_confirmation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pre_authentication": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pre_sign_up": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pre_token_generation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_migration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "verify_auth_challenge_response": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "password_policy": {
- "Attributes": {
- "minimum_length": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_lowercase": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_numbers": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_symbols": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_uppercase": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "temporary_password_validity_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "schema": {
- "Attributes": {
- "attribute_data_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "developer_only_attribute": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mutable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "required": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "number_attribute_constraints": {
- "Attributes": {
- "max_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "string_attribute_constraints": {
- "Attributes": {
- "max_length": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_length": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 50
- },
- "sms_configuration": {
- "Attributes": {
- "external_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_caller_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "software_token_mfa_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "user_pool_add_ons": {
- "Attributes": {
- "advanced_security_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "username_configuration": {
- "Attributes": {
- "case_sensitive": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "verification_message_template": {
- "Attributes": {
- "default_email_option": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_message_by_link": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_subject": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email_subject_by_link": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sms_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_user_pool_client": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allowed_oauth_flows": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allowed_oauth_flows_user_pool_client": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allowed_oauth_scopes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "callback_urls": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "default_redirect_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "explicit_auth_flows": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "generate_secret": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "logout_urls": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prevent_user_existence_errors": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "refresh_token_validity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "supported_identity_providers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "write_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "analytics_configuration": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "external_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data_shared": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cognito_user_pool_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "aws_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudfront_distribution_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_aggregate_authorization": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_config_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_parameters": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_execution_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "scope": {
- "Attributes": {
- "compliance_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compliance_resource_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "source": {
- "Attributes": {
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "source_detail": {
- "Attributes": {
- "event_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_execution_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 25
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_configuration_aggregator": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "account_aggregation_source": {
- "Attributes": {
- "account_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "all_regions": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regions": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "organization_aggregation_source": {
- "Attributes": {
- "all_regions": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regions": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_configuration_recorder": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "recording_group": {
- "Attributes": {
- "all_supported": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_global_resource_types": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_configuration_recorder_status": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_delivery_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "snapshot_delivery_properties": {
- "Attributes": {
- "delivery_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_organization_custom_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "excluded_accounts": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_parameters": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_execution_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_types_scope": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_key_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_value_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "trigger_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_organization_managed_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "excluded_accounts": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_parameters": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_execution_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_types_scope": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_key_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tag_value_scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_config_remediation_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "config_rule_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "static_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 25
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_cur_report_definition": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "additional_artifacts": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "additional_schema_elements": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "refresh_closed_reports": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "report_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "report_versioning": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_customer_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datapipeline_pipeline": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_agent": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "activation_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_location_efs": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "efs_file_system_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdirectory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ec2_config": {
- "Attributes": {
- "security_group_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_location_fsx_windows_file_system": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fsx_filesystem_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "security_group_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdirectory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_location_nfs": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdirectory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "on_prem_config": {
- "Attributes": {
- "agent_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_location_s3": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdirectory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "s3_config": {
- "Attributes": {
- "bucket_access_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_location_smb": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "agent_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "server_hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdirectory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mount_options": {
- "Attributes": {
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_datasync_task": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudwatch_log_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_location_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_location_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "options": {
- "Attributes": {
- "atime": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bytes_per_second": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gid": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mtime": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "posix_permissions": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preserve_deleted_files": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preserve_devices": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uid": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "verify_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dax_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "nodes": {
- "Type": [
- "list",
- [
- "object",
- {
- "address": "string",
- "availability_zone": "string",
- "id": "string",
- "port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_factor": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "server_side_encryption": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dax_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dax_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_cluster_snapshot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_model": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_event_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_aws_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_categories": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_instance": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_major_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ca_cert_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "character_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_tags_to_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_automated_backups": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_iam_role_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_cloudwatch_logs_exports": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "final_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_database_authentication_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "latest_restorable_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_model": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "multi_az": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "option_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "performance_insights_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "performance_insights_kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "performance_insights_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replicas": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replicate_source_db": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timezone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "restore_to_point_in_time": {
- "Attributes": {
- "restore_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_instance_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_dbi_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_latest_restorable_time": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_import": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ingestion_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_instance_role_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "db_instance_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "feature_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_option_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "major_engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "option_group_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "option": {
- "Attributes": {
- "db_security_group_memberships": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "option_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_memberships": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "option_settings": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "apply_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_proxy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "debug_logging": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idle_client_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_tls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "auth": {
- "Attributes": {
- "auth_scheme": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_auth": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_proxy_default_target_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_proxy_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "connection_pool_config": {
- "Attributes": {
- "connection_borrow_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "init_query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_connections_percent": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_idle_connections_percent": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_pinning_filters": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_proxy_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "db_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_instance_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_proxy_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rds_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tracked_cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_security_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ingress": {
- "Attributes": {
- "cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_snapshot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_instance_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_model": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "option_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "read": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_db_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_network_acl": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_network_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "egress": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_code": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_type": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_no": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ingress": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_code": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_type": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_no": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_route_table": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "default_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "propagating_vgws": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_block": "string",
- "egress_only_gateway_id": "string",
- "gateway_id": "string",
- "instance_id": "string",
- "ipv6_cidr_block": "string",
- "nat_gateway_id": "string",
- "network_interface_id": "string",
- "transit_gateway_id": "string",
- "vpc_endpoint_id": "string",
- "vpc_peering_connection_id": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_security_group": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "egress": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_blocks": [
- "list",
- "string"
- ],
- "description": "string",
- "from_port": "number",
- "ipv6_cidr_blocks": [
- "list",
- "string"
- ],
- "prefix_list_ids": [
- "list",
- "string"
- ],
- "protocol": "string",
- "security_groups": [
- "set",
- "string"
- ],
- "self": "bool",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ingress": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_blocks": [
- "list",
- "string"
- ],
- "description": "string",
- "from_port": "number",
- "ipv6_cidr_blocks": [
- "list",
- "string"
- ],
- "prefix_list_ids": [
- "list",
- "string"
- ],
- "protocol": "string",
- "security_groups": [
- "set",
- "string"
- ],
- "self": "bool",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "revoke_rules_on_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_subnet": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "assign_ipv6_address_on_creation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block_association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "map_public_ip_on_launch": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_vpc": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "assign_generated_ipv6_cidr_block": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_network_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dhcp_options_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_classiclink": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_classiclink_dns_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_dns_hostnames": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_dns_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "main_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_default_vpc_dhcp_options": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name_servers": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "netbios_name_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "netbios_node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ntp_servers": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_devicefarm_project": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_directory_service_conditional_forwarder": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "directory_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_ips": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "remote_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_directory_service_directory": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "alias": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_ip_addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "edition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_sso": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "short_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "connect_settings": {
- "Attributes": {
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connect_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_dns_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_settings": {
- "Attributes": {
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_directory_service_log_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "directory_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dlm_lifecycle_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "policy_details": {
- "Attributes": {
- "resource_types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "schedule": {
- "Attributes": {
- "copy_tags": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags_to_add": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "create_rule": {
- "Attributes": {
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "times": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "retain_rule": {
- "Attributes": {
- "count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_pem": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate_wallet": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "extra_connection_attributes": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_access_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssl_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "elasticsearch_settings": {
- "Attributes": {
- "endpoint_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "error_retry_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "full_load_error_percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_access_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kafka_settings": {
- "Attributes": {
- "broker": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_settings": {
- "Attributes": {
- "message_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_access_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "mongodb_settings": {
- "Attributes": {
- "auth_mechanism": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auth_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auth_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "docs_to_investigate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "extract_doc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "nesting_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_settings": {
- "Attributes": {
- "bucket_folder": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "csv_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "csv_row_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "external_table_definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_access_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_event_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_categories": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_replication_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_major_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "multi_az": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_private_ips": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_public_ips": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_subnet_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_replication_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_subnet_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_subnet_group_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_subnet_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dms_replication_task": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cdc_start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "migration_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_instance_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_task_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_task_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_task_settings": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_endpoint_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_mappings": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_endpoint_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_docdb_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_members": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_cloudwatch_logs_exports": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "final_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "master_username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reader_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_docdb_cluster_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ca_cert_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dbi_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "promotion_tier": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "writer": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_docdb_cluster_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "apply_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_docdb_cluster_snapshot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "availability_zones": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_docdb_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_bgp_peer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_peer_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_connection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bandwidth": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "has_logical_redundancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_connection_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lag_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_gateway_association": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "allowed_prefixes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "proposal_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_gateway_association_proposal": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allowed_prefixes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associated_gateway_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_private_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mtu": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_private_virtual_interface_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_public_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_filter_prefixes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_public_virtual_interface_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_transit_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mtu": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_hosted_transit_virtual_interface_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_lag": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connections_bandwidth": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "has_logical_redundancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_private_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mtu": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_public_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_filter_prefixes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dx_transit_virtual_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bgp_auth_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dx_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "jumbo_frame_capable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mtu": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vlan": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dynamodb_global_table": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "replica": {
- "Attributes": {
- "region_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dynamodb_table": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "billing_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_view_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "write_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "attribute": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "global_secondary_index": {
- "Attributes": {
- "hash_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "non_key_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "projection_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "write_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "local_secondary_index": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "non_key_attributes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "projection_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "point_in_time_recovery": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "replica": {
- "Attributes": {
- "region_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "server_side_encryption": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ttl": {
- "Attributes": {
- "attribute_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_dynamodb_table_item": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "hash_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "item": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ebs_default_kms_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ebs_encryption_by_default": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ebs_snapshot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_encryption_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_alias": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ebs_snapshot_copy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_encryption_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_alias": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ebs_volume": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "multi_attach_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_availability_zone_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "opt_in_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_capacity_reservation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "end_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "end_date_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ephemeral_storage": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_match_criteria": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_client_vpn_authorization_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorize_all_groups": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_vpn_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_network_cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_client_vpn_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_servers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "split_tunnel": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transport_protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authentication_options": {
- "Attributes": {
- "active_directory_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_certificate_chain_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "saml_provider_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 2
- },
- "connection_log_options": {
- "Attributes": {
- "cloudwatch_log_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudwatch_log_stream": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_client_vpn_network_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_vpn_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_client_vpn_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "client_vpn_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_vpc_subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_fleet": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "excess_capacity_termination_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replace_unhealthy_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "terminate_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "terminate_instances_with_expiration": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "launch_template_config": {
- "Attributes": {},
- "BlockTypes": {
- "launch_template_specification": {
- "Attributes": {
- "launch_template_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_template_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "override": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 50
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "on_demand_options": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "spot_options": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_interruption_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_pools_to_use_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "maintenance_strategies": {
- "Attributes": {},
- "BlockTypes": {
- "capacity_rebalance": {
- "Attributes": {
- "replacement_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_capacity_specification": {
- "Attributes": {
- "default_target_capacity_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_demand_target_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_target_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "total_target_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_local_gateway_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_gateway_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_gateway_virtual_interface_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_local_gateway_route_table_vpc_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_gateway_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_tag": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_traffic_mirror_filter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_services": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_traffic_mirror_filter_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_direction": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_mirror_filter_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination_port_range": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "source_port_range": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_traffic_mirror_session": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "packet_length": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_mirror_filter_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_mirror_target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_network_id": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_traffic_mirror_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_load_balancer_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "amazon_side_asn": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "association_default_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_accept_shared_attachments": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_route_table_association": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_route_table_propagation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "propagation_default_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_ecmp_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_peering_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_peering_attachment_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "blackhole": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_route_table": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_association_route_table": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_propagation_route_table": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_route_table_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_route_table_propagation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_vpc_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "appliance_mode_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_default_route_table_association": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_default_route_table_propagation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ec2_transit_gateway_vpc_attachment_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "appliance_mode_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_support": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_default_route_table_association": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_default_route_table_propagation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecr_lifecycle_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "registry_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecr_repository": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_tag_mutability": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "registry_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_configuration": {
- "Attributes": {
- "encryption_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "image_scanning_configuration": {
- "Attributes": {
- "scan_on_push": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecr_repository_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "registry_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecs_capacity_provider": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "auto_scaling_group_provider": {
- "Attributes": {
- "auto_scaling_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "managed_termination_protection": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "managed_scaling": {
- "Attributes": {
- "maximum_scaling_step_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "minimum_scaling_step_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecs_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity_providers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_capacity_provider_strategy": {
- "Attributes": {
- "base": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity_provider": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "setting": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecs_service": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_maximum_percent": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_minimum_healthy_percent": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "desired_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_ecs_managed_tags": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_new_deployment": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_grace_period_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "propagate_tags": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scheduling_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_steady_state": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "capacity_provider_strategy": {
- "Attributes": {
- "base": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity_provider": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "deployment_controller": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "load_balancer": {
- "Attributes": {
- "container_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "container_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elb_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "network_configuration": {
- "Attributes": {
- "assign_public_ip": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ordered_placement_strategy": {
- "Attributes": {
- "field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 5
- },
- "placement_constraints": {
- "Attributes": {
- "expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- },
- "service_registries": {
- "Attributes": {
- "container_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "container_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "registry_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ecs_task_definition": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "container_definitions": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipc_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "memory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "pid_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "requires_compatibilities": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "inference_accelerator": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "placement_constraints": {
- "Attributes": {
- "expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- },
- "proxy_configuration": {
- "Attributes": {
- "container_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "volume": {
- "Attributes": {
- "host_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "docker_volume_configuration": {
- "Attributes": {
- "autoprovision": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "driver": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "driver_opts": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "labels": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "efs_volume_configuration": {
- "Attributes": {
- "file_system_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_directory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_encryption": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_encryption_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authorization_config": {
- "Attributes": {
- "access_point_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_efs_access_point": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_system_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_system_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "posix_user": {
- "Attributes": {
- "gid": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secondary_gids": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uid": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "root_directory": {
- "Attributes": {
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "creation_info": {
- "Attributes": {
- "owner_gid": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_uid": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "permissions": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_efs_file_system": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "performance_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_throughput_in_mibps": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throughput_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "lifecycle_policy": {
- "Attributes": {
- "transition_to_ia": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_efs_file_system_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "file_system_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_efs_mount_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "availability_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_system_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_system_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_target_dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_egress_only_internet_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_eip": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associate_with_private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_owned_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_owned_ipv4_pool": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_border_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ipv4_pool": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "read": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_eip_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_reassociation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_eks_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_authority": {
- "Type": [
- "list",
- [
- "object",
- {
- "data": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_cluster_log_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity": {
- "Type": [
- "list",
- [
- "object",
- {
- "oidc": [
- "list",
- [
- "object",
- {
- "issuer": "string"
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_config": {
- "Attributes": {
- "resources": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "provider": {
- "Attributes": {
- "key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kubernetes_network_config": {
- "Attributes": {
- "service_ipv4_cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- },
- "vpc_config": {
- "Attributes": {
- "cluster_security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_private_access": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_public_access": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_access_cidrs": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_eks_fargate_profile": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fargate_profile_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "pod_execution_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "selector": {
- "Attributes": {
- "labels": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_eks_node_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "ami_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disk_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_update_version": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "labels": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "release_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resources": {
- "Type": [
- "list",
- [
- "object",
- {
- "autoscaling_groups": [
- "list",
- [
- "object",
- {
- "name": "string"
- }
- ]
- ],
- "remote_access_security_group_id": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "launch_template": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "remote_access": {
- "Attributes": {
- "ec2_ssh_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "scaling_config": {
- "Attributes": {
- "desired_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastic_beanstalk_application": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "appversion_lifecycle": {
- "Attributes": {
- "delete_source_from_s3": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_age_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastic_beanstalk_application_version": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastic_beanstalk_configuration_template": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "environment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "solution_stack_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "setting": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastic_beanstalk_environment": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "all_settings": {
- "Type": [
- "set",
- [
- "object",
- {
- "name": "string",
- "namespace": "string",
- "resource": "string",
- "value": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "application": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_groups": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cname_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instances": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_configurations": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "poll_interval": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "queues": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "solution_stack_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "template_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "triggers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_ready_timeout": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "setting": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticache_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "az_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_nodes": {
- "Type": [
- "list",
- [
- "object",
- {
- "address": "string",
- "availability_zone": "string",
- "id": "string",
- "port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "num_cache_nodes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_availability_zones": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_retention_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticache_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticache_replication_group": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "at_rest_encryption_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auth_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "automatic_failover_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_endpoint_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "member_clusters": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_cache_clusters": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "primary_endpoint_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_group_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_retention_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_encryption_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cluster_mode": {
- "Attributes": {
- "num_node_groups": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replicas_per_node_group": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticache_security_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticache_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticsearch_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_policies": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "advanced_options": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elasticsearch_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kibana_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "advanced_security_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "internal_user_database_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "master_user_options": {
- "Attributes": {
- "master_user_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_user_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_user_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "cluster_config": {
- "Attributes": {
- "dedicated_master_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dedicated_master_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dedicated_master_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "warm_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "warm_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "warm_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_awareness_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "zone_awareness_config": {
- "Attributes": {
- "availability_zone_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "cognito_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "domain_endpoint_options": {
- "Attributes": {
- "enforce_https": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tls_security_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ebs_options": {
- "Attributes": {
- "ebs_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "encrypt_at_rest": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "log_publishing_options": {
- "Attributes": {
- "cloudwatch_log_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "node_to_node_encryption": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "snapshot_options": {
- "Attributes": {
- "automated_snapshot_start_hour": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- },
- "vpc_options": {
- "Attributes": {
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elasticsearch_domain_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_policies": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastictranscoder_pipeline": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "content_config": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "content_config_permissions": {
- "Attributes": {
- "access": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grantee": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grantee_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "notifications": {
- "Attributes": {
- "completed": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "error": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "progressing": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "warning": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "thumbnail_config": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "thumbnail_config_permissions": {
- "Attributes": {
- "access": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grantee": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grantee_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elastictranscoder_preset": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "container": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "video_codec_options": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "audio": {
- "Attributes": {
- "audio_packing_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bit_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "channels": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "codec": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sample_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "audio_codec_options": {
- "Attributes": {
- "bit_depth": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bit_order": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "signed": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "thumbnails": {
- "Attributes": {
- "aspect_ratio": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_height": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_width": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "padding_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resolution": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sizing_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "video": {
- "Attributes": {
- "aspect_ratio": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bit_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "codec": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "display_aspect_ratio": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fixed_gop": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "frame_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "keyframes_max_dist": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_frame_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_height": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_width": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "padding_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resolution": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sizing_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "video_watermarks": {
- "Attributes": {
- "horizontal_align": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "horizontal_offset": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_height": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_width": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "opacity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sizing_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vertical_align": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vertical_offset": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elb": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_draining": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_draining_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cross_zone_load_balancing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idle_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instances": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "internal": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_security_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_logs": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "health_check": {
- "Attributes": {
- "healthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unhealthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "listener": {
- "Attributes": {
- "instance_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lb_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lb_protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssl_certificate_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_elb_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "elb": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_emr_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "additional_info": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "applications": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "autoscaling_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "configurations": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configurations_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_ami_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_root_volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "keep_job_flow_alive_when_no_steps": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_public_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "release_label": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scale_down_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "step": {
- "Type": [
- "list",
- [
- "object",
- {
- "action_on_failure": "string",
- "hadoop_jar_step": [
- "list",
- [
- "object",
- {
- "args": [
- "list",
- "string"
- ],
- "jar": "string",
- "main_class": "string",
- "properties": [
- "map",
- "string"
- ]
- }
- ]
- ],
- "name": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "step_concurrency_level": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "termination_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "visible_to_all_users": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "bootstrap_action": {
- "Attributes": {
- "args": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "core_instance_fleet": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "instance_type_configs": {
- "Attributes": {
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_price_as_percentage_of_on_demand_price": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "configurations": {
- "Attributes": {
- "classification": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "launch_specifications": {
- "Attributes": {},
- "BlockTypes": {
- "on_demand_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "spot_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "core_instance_group": {
- "Attributes": {
- "autoscaling_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ec2_attributes": {
- "Attributes": {
- "additional_master_security_groups": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "additional_slave_security_groups": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "emr_managed_master_security_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "emr_managed_slave_security_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_access_security_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kerberos_attributes": {
- "Attributes": {
- "ad_domain_join_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "ad_domain_join_user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cross_realm_trust_principal_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "kdc_admin_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "realm": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "master_instance_fleet": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "instance_type_configs": {
- "Attributes": {
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_price_as_percentage_of_on_demand_price": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "configurations": {
- "Attributes": {
- "classification": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "launch_specifications": {
- "Attributes": {},
- "BlockTypes": {
- "on_demand_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "spot_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "master_instance_group": {
- "Attributes": {
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_emr_instance_fleet": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_on_demand_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_spot_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "instance_type_configs": {
- "Attributes": {
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_price_as_percentage_of_on_demand_price": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "configurations": {
- "Attributes": {
- "classification": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "launch_specifications": {
- "Attributes": {},
- "BlockTypes": {
- "on_demand_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "spot_specification": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_emr_instance_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "autoscaling_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bid_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configurations_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "running_instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_config": {
- "Attributes": {
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volumes_per_instance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_emr_managed_scaling_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "compute_limits": {
- "Attributes": {
- "maximum_capacity_units": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_core_capacity_units": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_ondemand_capacity_units": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "minimum_capacity_units": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unit_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_emr_security_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_flow_log": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "eni_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_destination_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": true
- },
- "max_aggregation_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_fms_admin_account": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_fsx_lustre_file_system": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_import_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "automatic_backup_retention_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_tags_to_backups": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "daily_automatic_backup_start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "drive_cache_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "export_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "import_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "imported_file_chunk_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "per_unit_storage_throughput": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "weekly_maintenance_start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_fsx_windows_file_system": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "active_directory_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "automatic_backup_retention_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_tags_to_backups": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "daily_automatic_backup_start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_file_server_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "remote_administration_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_backup": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "throughput_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "weekly_maintenance_start_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "self_managed_active_directory": {
- "Attributes": {
- "dns_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_system_administrators_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "organizational_unit_distinguished_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_gamelift_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "routing_strategy": {
- "Attributes": {
- "fleet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_gamelift_build": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operating_system": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "storage_location": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_gamelift_fleet": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "build_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ec2_instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fleet_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_paths": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_groups": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "new_game_session_protection_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operating_system": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ec2_inbound_permission": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_range": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 50
- },
- "resource_creation_limit_policy": {
- "Attributes": {
- "new_game_sessions_per_creator": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_period_in_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "runtime_configuration": {
- "Attributes": {
- "game_session_activation_timeout_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_concurrent_game_session_activations": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "server_process": {
- "Attributes": {
- "concurrent_executions": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 50
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_gamelift_game_session_queue": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "destinations": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "player_latency_policy": {
- "Attributes": {
- "maximum_individual_player_latency_milliseconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_duration_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glacier_vault": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "notification": {
- "Attributes": {
- "events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glacier_vault_lock": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "complete_lock": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_deletion_error": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vault_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_globalaccelerator_accelerator": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_sets": {
- "Type": [
- "list",
- [
- "object",
- {
- "ip_addresses": [
- "list",
- "string"
- ],
- "ip_family": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "attributes": {
- "Attributes": {
- "flow_logs_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "flow_logs_s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "flow_logs_s3_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_globalaccelerator_endpoint_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_group_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_interval_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threshold_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "traffic_dial_percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "endpoint_configuration": {
- "Attributes": {
- "client_ip_preservation_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- },
- "port_override": {
- "Attributes": {
- "endpoint_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_globalaccelerator_listener": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "accelerator_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_affinity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "port_range": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_catalog_database": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_catalog_table": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "view_expanded_text": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "view_original_text": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "partition_index": {
- "Attributes": {
- "index_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "keys": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 3
- },
- "partition_keys": {
- "Attributes": {
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "storage_descriptor": {
- "Attributes": {
- "bucket_columns": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compressed": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_buckets": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stored_as_sub_directories": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "columns": {
- "Attributes": {
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ser_de_info": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "serialization_library": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "skewed_info": {
- "Attributes": {
- "skewed_column_names": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skewed_column_value_location_maps": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skewed_column_values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sort_columns": {
- "Attributes": {
- "column": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sort_order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_classifier": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "csv_classifier": {
- "Attributes": {
- "allow_single_column": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "contains_header": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_value_trimming": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "quote_symbol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "grok_classifier": {
- "Attributes": {
- "classification": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_patterns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grok_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "json_classifier": {
- "Attributes": {
- "json_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xml_classifier": {
- "Attributes": {
- "classification": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "row_tag": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_connection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "connection_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "match_criteria": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "physical_connection_requirements": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_crawler": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "classifiers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "catalog_target": {
- "Attributes": {
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tables": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "dynamodb_target": {
- "Attributes": {
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scan_all": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scan_rate": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "jdbc_target": {
- "Attributes": {
- "connection_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "exclusions": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "mongodb_target": {
- "Attributes": {
- "connection_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scan_all": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "s3_target": {
- "Attributes": {
- "connection_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "exclusions": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "schema_change_policy": {
- "Attributes": {
- "delete_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_data_catalog_encryption_settings": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "data_catalog_encryption_settings": {
- "Attributes": {},
- "BlockTypes": {
- "connection_password_encryption": {
- "Attributes": {
- "aws_kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "return_connection_password_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "encryption_at_rest": {
- "Attributes": {
- "catalog_encryption_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sse_aws_kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_dev_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arguments": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "extra_jars_s3_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "extra_python_libs_s3_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "failure_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "glue_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_nodes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_workers": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_keys": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "worker_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "yarn_endpoint_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zeppelin_remote_spark_interpreter_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_job": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "connections": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_arguments": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "glue_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_retries": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "non_overridable_arguments": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_workers": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "worker_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "command": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "python_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "script_location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "execution_property": {
- "Attributes": {
- "max_concurrent_runs": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "notification_property": {
- "Attributes": {
- "notify_delay_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_ml_transform": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "glue_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "label_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_retries": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_workers": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schema": {
- "Type": [
- "list",
- [
- "object",
- {
- "data_type": "string",
- "name": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "worker_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "input_record_tables": {
- "Attributes": {
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "parameters": {
- "Attributes": {
- "transform_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "find_matches_parameters": {
- "Attributes": {
- "accuracy_cost_trade_off": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enforce_provided_labels": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "precision_recall_trade_off": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "primary_key_column_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_partition": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_accessed_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_analyzed_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "partition_values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "storage_descriptor": {
- "Attributes": {
- "bucket_columns": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compressed": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_buckets": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stored_as_sub_directories": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "columns": {
- "Attributes": {
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ser_de_info": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "serialization_library": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "skewed_info": {
- "Attributes": {
- "skewed_column_names": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skewed_column_value_location_maps": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skewed_column_values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sort_columns": {
- "Attributes": {
- "column": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sort_order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_registry": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "registry_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_resource_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_security_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "cloudwatch_encryption": {
- "Attributes": {
- "cloudwatch_encryption_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "job_bookmarks_encryption": {
- "Attributes": {
- "job_bookmarks_encryption_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "s3_encryption": {
- "Attributes": {
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_encryption_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_trigger": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "workflow_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "actions": {
- "Attributes": {
- "arguments": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "crawler_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "notification_property": {
- "Attributes": {
- "notify_delay_after": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "predicate": {
- "Attributes": {
- "logical": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "conditions": {
- "Attributes": {
- "crawl_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "crawler_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "logical_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_user_defined_function": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "class_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "resource_uris": {
- "Attributes": {
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 1000
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_glue_workflow": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_run_properties": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_concurrent_runs": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_detector": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "finding_publishing_frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_filter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rank": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "finding_criteria": {
- "Attributes": {},
- "BlockTypes": {
- "criterion": {
- "Attributes": {
- "equals": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "greater_than": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "greater_than_or_equal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "less_than": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "less_than_or_equal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "not_equals": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_invite_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_ipset": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "activate": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_member": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_email_notification": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invitation_message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "invite": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "relationship_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_organization_admin_account": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "admin_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_organization_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "auto_enable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_publishing_destination": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_guardduty_threatintelset": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "activate": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "detector_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "location": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_access_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "encrypted_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "pgp_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "ses_smtp_password_v4": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_account_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_alias": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_account_password_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_users_to_change_password": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expire_passwords": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hard_expiry": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_password_age": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "minimum_password_length": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password_reuse_prevention": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_lowercase_characters": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_numbers": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_symbols": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "require_uppercase_characters": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_group_membership": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "users": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_group_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_group_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_instance_profile": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_openid_connect_provider": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id_list": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "thumbprint_list": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "roles": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "users": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_role": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "assume_role_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_detach_policies": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_session_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "permissions_boundary": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_role_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_role_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_saml_provider": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "saml_metadata_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_until": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_server_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_service_linked_role": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "Delete user even if it has non-Terraform-managed IAM access keys, login profile or MFA devices",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "permissions_boundary": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "unique_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user_group_membership": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user_login_profile": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "encrypted_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password_length": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password_reset_required": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pgp_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iam_user_ssh_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_public_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_imagebuilder_component": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "change_description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "supported_os_versions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_imagebuilder_distribution_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_updated": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "distribution": {
- "Attributes": {
- "license_configuration_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ami_distribution_configuration": {
- "Attributes": {
- "ami_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_account_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "launch_permission": {
- "Attributes": {
- "user_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_imagebuilder_image_pipeline": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_last_run": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_next_run": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_updated": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "distribution_configuration_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enhanced_image_metadata_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_recipe_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "infrastructure_configuration_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "image_tests_configuration": {
- "Attributes": {
- "image_tests_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "schedule": {
- "Attributes": {
- "pipeline_execution_start_condition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_imagebuilder_image_recipe": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parent_image": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "block_device_mapping": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "no_device": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "component": {
- "Attributes": {
- "component_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_imagebuilder_infrastructure_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_created": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "date_updated": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_profile_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_pair": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "terminate_instance_on_failure": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "logging": {
- "Attributes": {},
- "BlockTypes": {
- "s3_logs": {
- "Attributes": {
- "s3_bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_inspector_assessment_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_inspector_assessment_template": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rules_package_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_inspector_resource_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_instance": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "ami": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associate_public_ip_address": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu_core_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu_threads_per_core": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_api_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "get_password_data": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hibernation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_instance_profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_initiated_shutdown_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_address_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_addresses": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "primary_network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "secondary_private_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_dest_check": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data_base64": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "credit_specification": {
- "Attributes": {
- "cpu_credits": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "no_device": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "metadata_options": {
- "Attributes": {
- "http_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_put_response_hop_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_tokens": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "network_interface": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_index": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "root_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_internet_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "active": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_pem": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "csr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_version_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_role_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "alias": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "credential_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_thing": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "attributes": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "thing_type_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_thing_principal_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "thing": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_thing_type": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deprecated": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "properties": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "searchable_attributes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_iot_topic_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_alarm": {
- "Attributes": {
- "alarm_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "cloudwatch_metric": {
- "Attributes": {
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "dynamodb": {
- "Attributes": {
- "hash_key_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_key_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "payload_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "dynamodbv2": {
- "Attributes": {
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "put_item": {
- "Attributes": {
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "elasticsearch": {
- "Attributes": {
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "error_action": {
- "Attributes": {},
- "BlockTypes": {
- "cloudwatch_alarm": {
- "Attributes": {
- "alarm_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "cloudwatch_metric": {
- "Attributes": {
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_unit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "dynamodb": {
- "Attributes": {
- "hash_key_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_key_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "payload_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_field": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "range_key_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "dynamodbv2": {
- "Attributes": {
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "put_item": {
- "Attributes": {
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "elasticsearch": {
- "Attributes": {
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "firehose": {
- "Attributes": {
- "delivery_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "separator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "iot_analytics": {
- "Attributes": {
- "channel_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "iot_events": {
- "Attributes": {
- "input_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis": {
- "Attributes": {
- "partition_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda": {
- "Attributes": {
- "function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "republish": {
- "Attributes": {
- "qos": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sns": {
- "Attributes": {
- "message_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqs": {
- "Attributes": {
- "queue_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_base64": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "step_functions": {
- "Attributes": {
- "execution_name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_machine_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "firehose": {
- "Attributes": {
- "delivery_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "separator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "iot_analytics": {
- "Attributes": {
- "channel_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "iot_events": {
- "Attributes": {
- "input_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "kinesis": {
- "Attributes": {
- "partition_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "lambda": {
- "Attributes": {
- "function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "republish": {
- "Attributes": {
- "qos": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "s3": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "sns": {
- "Attributes": {
- "message_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "sqs": {
- "Attributes": {
- "queue_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_base64": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "step_functions": {
- "Attributes": {
- "execution_name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_machine_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_key_pair": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_pair_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kinesis_analytics_application": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_update_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "inputs": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "starting_position_configuration": {
- "Type": [
- "list",
- [
- "object",
- {
- "starting_position": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_names": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "kinesis_firehose": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_stream": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "parallelism": {
- "Attributes": {
- "count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "lambda": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "schema": {
- "Attributes": {
- "record_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "record_columns": {
- "Attributes": {
- "mapping": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1000
- },
- "record_format": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mapping_parameters": {
- "Attributes": {},
- "BlockTypes": {
- "csv": {
- "Attributes": {
- "record_column_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "record_row_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "json": {
- "Attributes": {
- "record_row_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "outputs": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "kinesis_firehose": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_stream": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "schema": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 3
- },
- "reference_data_sources": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "s3": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "schema": {
- "Attributes": {
- "record_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "record_columns": {
- "Attributes": {
- "mapping": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1000
- },
- "record_format": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mapping_parameters": {
- "Attributes": {},
- "BlockTypes": {
- "csv": {
- "Attributes": {
- "record_column_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "record_row_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "json": {
- "Attributes": {
- "record_row_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kinesis_firehose_delivery_stream": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "elasticsearch_configuration": {
- "Attributes": {
- "buffering_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffering_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index_rotation_period": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retry_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_backup_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "processors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_config": {
- "Attributes": {
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "extended_s3_configuration": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "error_output_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_backup_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "data_format_conversion_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "input_format_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "deserializer": {
- "Attributes": {},
- "BlockTypes": {
- "hive_json_ser_de": {
- "Attributes": {
- "timestamp_formats": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "open_x_json_ser_de": {
- "Attributes": {
- "case_insensitive": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "column_to_json_key_mappings": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "convert_dots_in_json_keys_to_underscores": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "output_format_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "serializer": {
- "Attributes": {},
- "BlockTypes": {
- "orc_ser_de": {
- "Attributes": {
- "block_size_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bloom_filter_columns": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bloom_filter_false_positive_probability": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dictionary_key_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_padding": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "padding_tolerance": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "row_index_stride": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stripe_size_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "parquet_ser_de": {
- "Attributes": {
- "block_size_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_dictionary_compression": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_padding_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "page_size_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "writer_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "schema_configuration": {
- "Attributes": {
- "catalog_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "processors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_backup_configuration": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_endpoint_configuration": {
- "Attributes": {
- "access_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffering_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffering_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retry_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_backup_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "processors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "request_configuration": {
- "Attributes": {
- "content_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "common_attributes": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_source_configuration": {
- "Attributes": {
- "kinesis_stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "redshift_configuration": {
- "Attributes": {
- "cluster_jdbcurl": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_options": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_table_columns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "retry_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_backup_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "processors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_backup_configuration": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_configuration": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "buffer_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compression_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "server_side_encryption": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "splunk_configuration": {
- "Attributes": {
- "hec_acknowledgment_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hec_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hec_endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hec_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retry_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_backup_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_logging_options": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "processing_configuration": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "processors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameters": {
- "Attributes": {
- "parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kinesis_stream": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enforce_consumer_deletion": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "shard_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "shard_level_metrics": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kinesis_video_stream": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_retention_in_hours": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "media_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kinesisanalyticsv2_application": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_update_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "runtime_environment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_execution_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_id": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "application_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "application_code_configuration": {
- "Attributes": {
- "code_content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "code_content": {
- "Attributes": {
- "text_content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "s3_content_location": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "application_snapshot_configuration": {
- "Attributes": {
- "snapshots_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "environment_properties": {
- "Attributes": {},
- "BlockTypes": {
- "property_group": {
- "Attributes": {
- "property_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "property_map": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 50
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "flink_application_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "checkpoint_configuration": {
- "Attributes": {
- "checkpoint_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "checkpointing_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_pause_between_checkpoints": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "monitoring_configuration": {
- "Attributes": {
- "configuration_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metrics_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "parallelism_configuration": {
- "Attributes": {
- "auto_scaling_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parallelism": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parallelism_per_kpu": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sql_application_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "input": {
- "Attributes": {
- "in_app_stream_names": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "input_starting_position_configuration": {
- "Type": [
- "list",
- [
- "object",
- {
- "input_starting_position": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "input_parallelism": {
- "Attributes": {
- "count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "input_processing_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "input_lambda_processor": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "input_schema": {
- "Attributes": {
- "record_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "record_column": {
- "Attributes": {
- "mapping": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1000
- },
- "record_format": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mapping_parameters": {
- "Attributes": {},
- "BlockTypes": {
- "csv_mapping_parameters": {
- "Attributes": {
- "record_column_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "record_row_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "json_mapping_parameters": {
- "Attributes": {
- "record_row_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "kinesis_firehose_input": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_streams_input": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "output": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination_schema": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "kinesis_firehose_output": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "kinesis_streams_output": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda_output": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 3
- },
- "reference_data_source": {
- "Attributes": {
- "reference_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "table_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "reference_schema": {
- "Attributes": {
- "record_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "record_column": {
- "Attributes": {
- "mapping": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sql_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1000
- },
- "record_format": {
- "Attributes": {
- "record_format_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "mapping_parameters": {
- "Attributes": {},
- "BlockTypes": {
- "csv_mapping_parameters": {
- "Attributes": {
- "record_column_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "record_row_delimiter": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "json_mapping_parameters": {
- "Attributes": {
- "record_row_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "s3_reference_data_source": {
- "Attributes": {
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_configuration": {
- "Attributes": {
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_configuration_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "cloudwatch_logging_options": {
- "Attributes": {
- "cloudwatch_logging_option_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kms_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kms_ciphertext": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "ciphertext_blob": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "context": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "plaintext": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kms_external_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_window_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "expiration_model": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_material_base64": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "key_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_usage": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_to": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kms_grant": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "grant_creation_tokens": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grant_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "grant_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "grantee_principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operations": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retire_on_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retiring_principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "constraints": {
- "Attributes": {
- "encryption_context_equals": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encryption_context_subset": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_kms_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_master_key_spec": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_window_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_key_rotation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_usage": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invoke_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "routing_config": {
- "Attributes": {
- "additional_version_weights": {
- "Type": [
- "map",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_code_signing_config": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "config_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_modified": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "allowed_publishers": {
- "Attributes": {
- "signing_profile_version_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "policies": {
- "Attributes": {
- "untrusted_artifact_on_deployment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_event_source_mapping": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "batch_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bisect_batch_on_function_error": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_source_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_modified": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_processing_result": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_batching_window_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_record_age_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_retry_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parallelization_factor": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "starting_position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "starting_position_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "state_transition_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "uuid": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination_config": {
- "Attributes": {},
- "BlockTypes": {
- "on_failure": {
- "Attributes": {
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_function": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "code_signing_config_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filename": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "handler": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "invoke_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_modified": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "layers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "memory_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "package_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "publish": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "qualified_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reserved_concurrent_executions": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "runtime": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_object_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "signing_job_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "signing_profile_version_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_code_hash": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_code_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "dead_letter_config": {
- "Attributes": {
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "environment": {
- "Attributes": {
- "variables": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "file_system_config": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_mount_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "image_config": {
- "Attributes": {
- "command": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "entry_point": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "working_directory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- },
- "tracing_config": {
- "Attributes": {
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_config": {
- "Attributes": {
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_function_event_invoke_config": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_event_age_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_retry_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination_config": {
- "Attributes": {},
- "BlockTypes": {
- "on_failure": {
- "Attributes": {
- "destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "on_success": {
- "Attributes": {
- "destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_layer_version": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "compatible_runtimes": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filename": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "layer_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "layer_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_info": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_object_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "signing_job_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "signing_profile_version_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_code_hash": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_code_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_source_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_account": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "statement_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "statement_id_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lambda_provisioned_concurrency_config": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "provisioned_concurrent_executions": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_launch_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associate_public_ip_address": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_monitoring": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_instance_profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data_base64": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_classic_link_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_classic_link_security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "no_device": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "root_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_launch_template": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_api_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "image_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_initiated_shutdown_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kernel_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "latest_version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ram_disk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update_default_version": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "block_device_mappings": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "no_device": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "capacity_reservation_specification": {
- "Attributes": {
- "capacity_reservation_preference": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "capacity_reservation_target": {
- "Attributes": {
- "capacity_reservation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "cpu_options": {
- "Attributes": {
- "core_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "threads_per_core": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "credit_specification": {
- "Attributes": {
- "cpu_credits": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "elastic_gpu_specifications": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "elastic_inference_accelerator": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "hibernation_options": {
- "Attributes": {
- "configured": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "iam_instance_profile": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "instance_market_options": {
- "Attributes": {
- "market_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "spot_options": {
- "Attributes": {
- "block_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_interruption_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_until": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "license_specification": {
- "Attributes": {
- "license_configuration_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "metadata_options": {
- "Attributes": {
- "http_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_put_response_hop_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_tokens": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "monitoring": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "network_interfaces": {
- "Attributes": {
- "associate_public_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_on_termination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_index": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv4_address_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv4_addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_address_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "placement": {
- "Attributes": {
- "affinity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "partition_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spread_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tag_specifications": {
- "Attributes": {
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_owned_ipv4_pool": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "drop_invalid_header_fields": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_cross_zone_load_balancing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_http2": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idle_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "internal": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_logs": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "subnet_mapping": {
- "Attributes": {
- "allocation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ipv4_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_cookie_stickiness_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cookie_expiration_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lb_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_listener": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssl_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_action": {
- "Attributes": {
- "order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authenticate_cognito": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "authenticate_oidc": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "token_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_info_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "fixed_response": {
- "Attributes": {
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "forward": {
- "Attributes": {},
- "BlockTypes": {
- "stickiness": {
- "Attributes": {
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_group": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 2,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "redirect": {
- "Attributes": {
- "host": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "read": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_listener_certificate": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "certificate_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_listener_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "listener_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "order": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "authenticate_cognito": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_pool_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "authenticate_oidc": {
- "Attributes": {
- "authentication_request_extra_params": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authorization_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "issuer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_unauthenticated_request": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_cookie_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "token_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_info_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "fixed_response": {
- "Attributes": {
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "forward": {
- "Attributes": {},
- "BlockTypes": {
- "stickiness": {
- "Attributes": {
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "target_group": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 2,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "redirect": {
- "Attributes": {
- "host": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "condition": {
- "Attributes": {},
- "BlockTypes": {
- "host_header": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_header": {
- "Attributes": {
- "http_header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "http_request_method": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "path_pattern": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "source_ip": {
- "Attributes": {
- "values": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_ssl_negotiation_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lb_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "attribute": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_target_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deregistration_delay": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_multi_value_headers_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancing_algorithm_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "proxy_protocol_v2": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "slow_start": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "health_check": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "healthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "matcher": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "unhealthy_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "stickiness": {
- "Attributes": {
- "cookie_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lb_target_group_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lex_bot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "checksum": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "child_directed": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_version": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "detect_sentiment": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_model_improvements": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "failure_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "idle_session_ttl_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "locale": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "nlu_intent_confidence_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "process_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "voice_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "abort_statement": {
- "Attributes": {
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "clarification_prompt": {
- "Attributes": {
- "max_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "intent": {
- "Attributes": {
- "intent_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "intent_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 100
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lex_bot_alias": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bot_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bot_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "checksum": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "conversation_logs": {
- "Attributes": {
- "iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "log_settings": {
- "Attributes": {
- "destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lex_intent": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "checksum": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_version": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parent_intent_signature": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sample_utterances": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "conclusion_statement": {
- "Attributes": {
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "confirmation_prompt": {
- "Attributes": {
- "max_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "dialog_code_hook": {
- "Attributes": {
- "message_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "follow_up_prompt": {
- "Attributes": {},
- "BlockTypes": {
- "prompt": {
- "Attributes": {
- "max_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "rejection_statement": {
- "Attributes": {
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "fulfillment_activity": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "code_hook": {
- "Attributes": {
- "message_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "rejection_statement": {
- "Attributes": {
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "slot": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sample_utterances": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "slot_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "slot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "slot_type_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "value_elicitation_prompt": {
- "Attributes": {
- "max_attempts": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "response_card": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "message": {
- "Attributes": {
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 15
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 100
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lex_slot_type": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "checksum": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "create_version": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_updated_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value_selection_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "enumeration_value": {
- "Attributes": {
- "synonyms": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 10000
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_licensemanager_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_configuration_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_licensemanager_license_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_count_hard_limit": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_counting_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_rules": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lightsail_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lightsail_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "blueprint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundle_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "is_static_ip": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_pair_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ram_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lightsail_key_pair": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted_private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pgp_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lightsail_static_ip": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "support_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_lightsail_static_ip_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "static_ip_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_load_balancer_backend_server_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_load_balancer_listener_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_load_balancer_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_type_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "policy_attribute": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_macie_member_account_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "member_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_macie_s3_bucket_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "member_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "classification_type": {
- "Attributes": {
- "continuous": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "one_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_main_route_table_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "original_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_media_convert_queue": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "pricing_plan": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "reservation_plan_settings": {
- "Attributes": {
- "commitment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "renewal_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "reserved_slots": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_media_package_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "channel_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hls_ingest": {
- "Type": [
- "list",
- [
- "object",
- {
- "ingest_endpoints": [
- "list",
- [
- "object",
- {
- "password": "string",
- "url": "string",
- "username": "string"
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_media_store_container": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_media_store_container_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "container_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_mq_broker": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "broker_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deployment_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instances": {
- "Type": [
- "list",
- [
- "object",
- {
- "console_url": "string",
- "endpoints": [
- "list",
- "string"
- ],
- "ip_address": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "configuration": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "encryption_options": {
- "Attributes": {
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_aws_owned_key": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "logs": {
- "Attributes": {
- "audit": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "general": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "maintenance_window_start_time": {
- "Attributes": {
- "day_of_week": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_of_day": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "time_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "user": {
- "Attributes": {
- "console_access": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_mq_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "latest_revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_msk_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bootstrap_brokers": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bootstrap_brokers_sasl_scram": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bootstrap_brokers_tls": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "current_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enhanced_monitoring": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kafka_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_broker_nodes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zookeeper_connect_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "broker_node_group_info": {
- "Attributes": {
- "az_distribution": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_subnets": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "client_authentication": {
- "Attributes": {},
- "BlockTypes": {
- "sasl": {
- "Attributes": {
- "scram": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "tls": {
- "Attributes": {
- "certificate_authority_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "configuration_info": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "encryption_info": {
- "Attributes": {
- "encryption_at_rest_kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption_in_transit": {
- "Attributes": {
- "client_broker": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "in_cluster": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "logging_info": {
- "Attributes": {},
- "BlockTypes": {
- "broker_logs": {
- "Attributes": {},
- "BlockTypes": {
- "cloudwatch_logs": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "firehose": {
- "Attributes": {
- "delivery_stream": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "open_monitoring": {
- "Attributes": {},
- "BlockTypes": {
- "prometheus": {
- "Attributes": {},
- "BlockTypes": {
- "jmx_exporter": {
- "Attributes": {
- "enabled_in_broker": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "node_exporter": {
- "Attributes": {
- "enabled_in_broker": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_msk_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kafka_versions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "latest_revision": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_properties": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_msk_scram_secret_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_arn_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_nat_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocation_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_members": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_cloudwatch_logs_exports": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "final_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_database_authentication_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_roles": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "neptune_cluster_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "neptune_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reader_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_source_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_cluster_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dbi_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "neptune_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "neptune_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "promotion_tier": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "writer": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_cluster_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "apply_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_cluster_snapshot": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocated_storage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "license_model": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_cluster_snapshot_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_event_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_aws_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_categories": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "apply_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_neptune_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_network_acl": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "egress": {
- "Type": [
- "set",
- [
- "object",
- {
- "action": "string",
- "cidr_block": "string",
- "from_port": "number",
- "icmp_code": "number",
- "icmp_type": "number",
- "ipv6_cidr_block": "string",
- "protocol": "string",
- "rule_no": "number",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ingress": {
- "Type": [
- "set",
- [
- "object",
- {
- "action": "string",
- "cidr_block": "string",
- "from_port": "number",
- "icmp_code": "number",
- "icmp_type": "number",
- "ipv6_cidr_block": "string",
- "protocol": "string",
- "rule_no": "number",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_network_acl_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "egress": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "icmp_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_network_interface": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_address_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mac_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ips_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_dest_check": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "attachment": {
- "Attributes": {
- "attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_index": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_network_interface_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_index": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_network_interface_sg_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_networkfirewall_firewall": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "firewall_policy_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "firewall_policy_change_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "firewall_status": {
- "Type": [
- "list",
- [
- "object",
- {
- "sync_states": [
- "set",
- [
- "object",
- {
- "attachment": [
- "list",
- [
- "object",
- {
- "endpoint_id": "string",
- "subnet_id": "string"
- }
- ]
- ],
- "availability_zone": "string"
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_change_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "subnet_mapping": {
- "Attributes": {
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_networkfirewall_firewall_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "firewall_policy": {
- "Attributes": {
- "stateless_default_actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stateless_fragment_default_actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "stateful_rule_group_reference": {
- "Attributes": {
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "stateless_custom_action": {
- "Attributes": {
- "action_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action_definition": {
- "Attributes": {},
- "BlockTypes": {
- "publish_metric_action": {
- "Attributes": {},
- "BlockTypes": {
- "dimension": {
- "Attributes": {
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "stateless_rule_group_reference": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_networkfirewall_logging_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "firewall_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "logging_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "log_destination_config": {
- "Attributes": {
- "log_destination": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_destination_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "log_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 2
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_networkfirewall_resource_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_networkfirewall_rule_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rules": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule_group": {
- "Attributes": {},
- "BlockTypes": {
- "rule_variables": {
- "Attributes": {},
- "BlockTypes": {
- "ip_sets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set": {
- "Attributes": {
- "definition": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "port_sets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "port_set": {
- "Attributes": {
- "definition": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "rules_source": {
- "Attributes": {
- "rules_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rules_source_list": {
- "Attributes": {
- "generated_rules_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "targets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "stateful_rule": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "header": {
- "Attributes": {
- "destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "direction": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_port": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "rule_option": {
- "Attributes": {
- "keyword": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "settings": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "stateless_rules_and_custom_actions": {
- "Attributes": {},
- "BlockTypes": {
- "custom_action": {
- "Attributes": {
- "action_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action_definition": {
- "Attributes": {},
- "BlockTypes": {
- "publish_metric_action": {
- "Attributes": {},
- "BlockTypes": {
- "dimension": {
- "Attributes": {
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "stateless_rule": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule_definition": {
- "Attributes": {
- "actions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "match_attributes": {
- "Attributes": {
- "protocols": {
- "Type": [
- "set",
- "number"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination": {
- "Attributes": {
- "address_definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "destination_port": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "source": {
- "Attributes": {
- "address_definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "source_port": {
- "Attributes": {
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "tcp_flag": {
- "Attributes": {
- "flags": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "masks": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_application": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "auto_bundle_on_deploy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_flow_ruby_settings": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_source_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_source_database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_source_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_root": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domains": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_ssl": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rails_env": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "short_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "app_source": {
- "Attributes": {
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "revision": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "environment": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secure": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ssl_configuration": {
- "Attributes": {
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "chain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_custom_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "short_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_ganglia_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_haproxy_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "healthcheck_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "healthcheck_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stats_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stats_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stats_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stats_user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "agent_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ami_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "architecture": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_scaling_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_ebs": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete_eip": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ec2_instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ecs_cluster_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "infrastructure_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "last_service_error_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "layer_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "os": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "registered_by": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reported_agent_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reported_os_family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reported_os_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reported_os_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_device_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_device_volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_host_dsa_key_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_host_rsa_key_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtualization_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "root_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_java_app_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "app_server": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "app_server_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "jvm_options": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "jvm_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "jvm_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_memcached_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allocated_memory": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_mysql_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_password_on_all_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_nodejs_app_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "nodejs_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_ssh": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_sudo": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_php_app_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_rails_app_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "app_server": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundler_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "manage_bundler": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "passenger_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ruby_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rubygems_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_rds_db_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "db_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "db_user": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rds_db_instance_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_stack": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "agent_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "berkshelf_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "color": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_manager_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "configuration_manager_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_os": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_root_device_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_ssh_key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hostname_theme": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "manage_berkshelf": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_custom_cookbooks": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_opsworks_security_groups": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "custom_cookbooks_source": {
- "Attributes": {
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "revision": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_static_web_layer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_elastic_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_assign_public_ips": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_healing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_configure_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_deploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_json": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_setup_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_shutdown_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_undeploy_recipes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "drain_elb_on_shutdown": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "install_updates_on_boot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_shutdown_timeout": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stack_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "system_packages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_ebs_optimized_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_volume": {
- "Attributes": {
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mount_point": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_disks": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raid_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_opsworks_user_profile": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_self_management": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ssh_username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_organizations_account": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_user_access_to_billing": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "joined_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "joined_timestamp": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parent_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_organizations_organization": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "accounts": {
- "Type": [
- "list",
- [
- "object",
- {
- "arn": "string",
- "email": "string",
- "id": "string",
- "name": "string",
- "status": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_service_access_principals": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_policy_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "feature_set": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_account_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_account_email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "non_master_accounts": {
- "Type": [
- "list",
- [
- "object",
- {
- "arn": "string",
- "email": "string",
- "id": "string",
- "name": "string",
- "status": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "roots": {
- "Type": [
- "list",
- [
- "object",
- {
- "arn": "string",
- "id": "string",
- "name": "string",
- "policy_types": [
- "list",
- [
- "object",
- {
- "status": "string",
- "type": "string"
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_organizations_organizational_unit": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "accounts": {
- "Type": [
- "list",
- [
- "object",
- {
- "arn": "string",
- "email": "string",
- "id": "string",
- "name": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parent_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_organizations_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_organizations_policy_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_adm_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "client_secret": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_apns_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundle_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "default_authentication_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "team_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_apns_sandbox_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundle_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "default_authentication_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "team_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_apns_voip_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundle_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "default_authentication_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "team_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_apns_voip_sandbox_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bundle_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "certificate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "default_authentication_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "team_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "token_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_app": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "campaign_hook": {
- "Attributes": {
- "lambda_function_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "web_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "limits": {
- "Attributes": {
- "daily": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "maximum_duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "messages_per_second": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "total": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "quiet_time": {
- "Attributes": {
- "end": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_baidu_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_email_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "messages_per_second": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_event_stream": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_gcm_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "api_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_pinpoint_sms_channel": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "promotional_messages_per_second": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sender_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "short_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transactional_messages_per_second": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_placement_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_proxy_protocol_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_ports": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_qldb_ledger": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_quicksight_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_quicksight_user": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "aws_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "session_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ram_principal_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_share_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ram_resource_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_share_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ram_resource_share": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_external_principals": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ram_resource_share_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invitation_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "receiver_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resources": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sender_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "share_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "share_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "share_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_rds_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_major_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "backtrack_window": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "backup_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_members": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_tags_to_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_cluster_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_http_endpoint": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled_cloudwatch_logs_exports": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "final_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "global_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_database_authentication_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_roles": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "master_username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reader_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replication_source_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "restore_to_point_in_time": {
- "Attributes": {
- "restore_to_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "restore_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "use_latest_restorable_time": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "s3_import": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ingestion_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "scaling_configuration": {
- "Attributes": {
- "auto_pause": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "min_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "seconds_until_auto_pause": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_rds_cluster_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_endpoint_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "custom_endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "excluded_members": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "static_members": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_rds_cluster_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "apply_immediately": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_minor_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ca_cert_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "copy_tags_to_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "db_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dbi_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "performance_insights_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "performance_insights_kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_backup_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "promotion_tier": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "writer": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_rds_cluster_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "apply_method": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_rds_global_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "deletion_protection": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "engine_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "global_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "global_cluster_members": {
- "Type": [
- "set",
- [
- "object",
- {
- "db_cluster_arn": "string",
- "is_writer": "bool"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "global_cluster_resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_db_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_cluster": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_version_upgrade": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "automated_snapshot_retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_parameter_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_public_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_revision_number": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_subnet_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cluster_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "database_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "elastic_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enhanced_vpc_routing": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "final_snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_roles": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "master_username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "number_of_nodes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_account": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "preferred_maintenance_window": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "publicly_accessible": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_final_snapshot": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "logging": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "snapshot_copy": {
- "Attributes": {
- "destination_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "grant_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention_period": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_event_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_aws_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_categories": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "severity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sns_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_parameter_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "family": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_security_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ingress": {
- "Attributes": {
- "cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_snapshot_copy_grant": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_copy_grant_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_snapshot_schedule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "definitions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_snapshot_schedule_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cluster_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_redshift_subnet_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_resourcegroups_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "resource_query": {
- "Attributes": {
- "query": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_prefix_list_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "egress_only_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "local_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "nat_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "origin": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_peering_connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_delegation_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "reference_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_health_check": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "child_health_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "child_healthchecks": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudwatch_alarm_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudwatch_alarm_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "disabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_sni": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "failure_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fqdn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "insufficient_data_health_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "invert_healthcheck": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "measure_latency": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "reference_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_interval": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_query_log": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cloudwatch_log_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_record": {
- "Version": 2,
- "Block": {
- "Attributes": {
- "allow_overwrite": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "fqdn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "health_check_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "multivalue_answer_routing_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "records": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "set_identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "alias": {
- "Attributes": {
- "evaluate_target_health": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "failover_routing_policy": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "geolocation_routing_policy": {
- "Attributes": {
- "continent": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "country": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subdivision": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "latency_routing_policy": {
- "Attributes": {
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "weighted_routing_policy": {
- "Attributes": {
- "weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_resolver_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "direction": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_address": {
- "Attributes": {
- "ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 2,
- "MaxItems": 10
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_resolver_query_log_config": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "share_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_resolver_query_log_config_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resolver_query_log_config_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_resolver_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resolver_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "share_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "target_ip": {
- "Attributes": {
- "ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_resolver_rule_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resolver_rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_vpc_association_authorization": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_zone": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delegation_set_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "vpc": {
- "Attributes": {
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route53_zone_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owning_account": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route_table": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "propagating_vgws": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_block": "string",
- "egress_only_gateway_id": "string",
- "gateway_id": "string",
- "instance_id": "string",
- "ipv6_cidr_block": "string",
- "local_gateway_id": "string",
- "nat_gateway_id": "string",
- "network_interface_id": "string",
- "transit_gateway_id": "string",
- "vpc_endpoint_id": "string",
- "vpc_peering_connection_id": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_route_table_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_access_point": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "has_public_access_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_origin": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "public_access_block_configuration": {
- "Attributes": {
- "block_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_public_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "restrict_public_buckets": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_configuration": {
- "Attributes": {
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_account_public_access_block": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_public_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "restrict_public_buckets": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "acceleration_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "acl": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_regional_domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_payer": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "website_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "website_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cors_rule": {
- "Attributes": {
- "allowed_headers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allowed_methods": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allowed_origins": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expose_headers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_age_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "grant": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "permissions": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "lifecycle_rule": {
- "Attributes": {
- "abort_incomplete_multipart_upload_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "expiration": {
- "Attributes": {
- "date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expired_object_delete_marker": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "noncurrent_version_expiration": {
- "Attributes": {
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "noncurrent_version_transition": {
- "Attributes": {
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "transition": {
- "Attributes": {
- "date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "logging": {
- "Attributes": {
- "target_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "object_lock_configuration": {
- "Attributes": {
- "object_lock_enabled": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule": {
- "Attributes": {},
- "BlockTypes": {
- "default_retention": {
- "Attributes": {
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "years": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "replication_configuration": {
- "Attributes": {
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rules": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "replica_kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "access_control_translation": {
- "Attributes": {
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "filter": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "source_selection_criteria": {
- "Attributes": {},
- "BlockTypes": {
- "sse_kms_encrypted_objects": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "server_side_encryption_configuration": {
- "Attributes": {},
- "BlockTypes": {
- "rule": {
- "Attributes": {},
- "BlockTypes": {
- "apply_server_side_encryption_by_default": {
- "Attributes": {
- "kms_master_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sse_algorithm": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "versioning": {
- "Attributes": {
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mfa_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "website": {
- "Attributes": {
- "error_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "index_document": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "redirect_all_requests_to": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "routing_rules": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_analytics_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "filter": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "storage_class_analysis": {
- "Attributes": {},
- "BlockTypes": {
- "data_export": {
- "Attributes": {
- "output_schema_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination": {
- "Attributes": {},
- "BlockTypes": {
- "s3_bucket_destination": {
- "Attributes": {
- "bucket_account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_inventory": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "included_object_versions": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "optional_fields": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination": {
- "Attributes": {},
- "BlockTypes": {
- "bucket": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "encryption": {
- "Attributes": {},
- "BlockTypes": {
- "sse_kms": {
- "Attributes": {
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sse_s3": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "filter": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "schedule": {
- "Attributes": {
- "frequency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_metric": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "filter": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_notification": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "lambda_function": {
- "Attributes": {
- "events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "queue": {
- "Attributes": {
- "events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "queue_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "topic": {
- "Attributes": {
- "events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_suffix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_object": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "acl": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cache_control": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_base64": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_disposition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_encoding": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_language": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "etag": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metadata": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_lock_legal_hold_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_lock_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_lock_retain_until_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_side_encryption": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "website_redirect": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_ownership_controls": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule": {
- "Attributes": {
- "object_ownership": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3_bucket_public_access_block": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "block_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_public_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_public_acls": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "restrict_public_buckets": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3control_bucket": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_access_block_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3control_bucket_lifecycle_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "abort_incomplete_multipart_upload": {
- "Attributes": {
- "days_after_initiation": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "expiration": {
- "Attributes": {
- "date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expired_object_delete_marker": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "filter": {
- "Attributes": {
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3control_bucket_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_s3outposts_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interfaces": {
- "Type": [
- "set",
- [
- "object",
- {
- "network_interface_id": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_code_repository": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "code_repository_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "git_config": {
- "Attributes": {
- "branch": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "repository_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_config_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_endpoint_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "data_capture_config": {
- "Attributes": {
- "destination_s3_uri": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_capture": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "initial_sampling_percentage": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "capture_content_type_header": {
- "Attributes": {
- "csv_content_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "json_content_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "capture_options": {
- "Attributes": {
- "capture_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 2
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "production_variants": {
- "Attributes": {
- "accelerator_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "initial_instance_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "initial_variant_weight": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "model_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "variant_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_model": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_network_isolation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "execution_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "container": {
- "Attributes": {
- "container_hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "environment": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "image": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "model_data_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "image_config": {
- "Attributes": {
- "repository_access_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "primary_container": {
- "Attributes": {
- "container_hostname": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "environment": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "image": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "model_data_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "image_config": {
- "Attributes": {
- "repository_access_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "vpc_config": {
- "Attributes": {
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnets": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_notebook_instance": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "additional_code_repositories": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_code_repository": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "direct_internet_access": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lifecycle_config_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "root_access": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sagemaker_notebook_instance_lifecycle_configuration": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "on_start": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_secretsmanager_secret": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "recovery_window_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rotation_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": true
- },
- "rotation_lambda_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": true
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rotation_rules": {
- "Attributes": {
- "automatically_after_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": true,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_secretsmanager_secret_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "block_public_policy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_secretsmanager_secret_rotation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rotation_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rotation_lambda_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rotation_rules": {
- "Attributes": {
- "automatically_after_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_secretsmanager_secret_version": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_binary": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "secret_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "secret_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "version_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_stages": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_security_group": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "egress": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_blocks": [
- "list",
- "string"
- ],
- "description": "string",
- "from_port": "number",
- "ipv6_cidr_blocks": [
- "list",
- "string"
- ],
- "prefix_list_ids": [
- "list",
- "string"
- ],
- "protocol": "string",
- "security_groups": [
- "set",
- "string"
- ],
- "self": "bool",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ingress": {
- "Type": [
- "set",
- [
- "object",
- {
- "cidr_blocks": [
- "list",
- "string"
- ],
- "description": "string",
- "from_port": "number",
- "ipv6_cidr_blocks": [
- "list",
- "string"
- ],
- "prefix_list_ids": [
- "list",
- "string"
- ],
- "protocol": "string",
- "security_groups": [
- "set",
- "string"
- ],
- "self": "bool",
- "to_port": "number"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "revoke_rules_on_delete": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_security_group_rule": {
- "Version": 2,
- "Block": {
- "Attributes": {
- "cidr_blocks": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "from_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_blocks": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix_list_ids": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "self": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "to_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "Type of rule, ingress (inbound) or egress (outbound).",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_securityhub_account": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_securityhub_action_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_securityhub_member": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invite": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "master_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "member_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_securityhub_product_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "product_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_securityhub_standards_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "standards_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_serverlessapplicationrepository_cloudformation_stack": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "capabilities": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outputs": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "semantic_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_service_discovery_http_namespace": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_service_discovery_private_dns_namespace": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_service_discovery_public_dns_namespace": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hosted_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_service_discovery_service": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "namespace_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "dns_config": {
- "Attributes": {
- "namespace_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "routing_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "dns_records": {
- "Attributes": {
- "ttl": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "health_check_config": {
- "Attributes": {
- "failure_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "health_check_custom_config": {
- "Attributes": {
- "failure_threshold": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_servicecatalog_portfolio": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_time": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "provider_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_servicequotas_service_quota": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "adjustable": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "quota_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "quota_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "request_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_active_receipt_rule_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_configuration_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_domain_dkim": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "dkim_tokens": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_domain_identity": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "verification_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_domain_identity_verification": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_domain_mail_from": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "behavior_on_mx_failure": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "mail_from_domain": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_email_identity": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "email": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_event_destination": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "configuration_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "matching_types": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cloudwatch_destination": {
- "Attributes": {
- "default_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "dimension_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value_source": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "kinesis_destination": {
- "Attributes": {
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "stream_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sns_destination": {
- "Attributes": {
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_identity_notification_topic": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "include_original_headers": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_identity_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_receipt_filter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_receipt_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "after": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "recipients": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scan_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tls_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "add_header_action": {
- "Attributes": {
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "bounce_action": {
- "Attributes": {
- "message": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sender": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "smtp_reply_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "lambda_action": {
- "Attributes": {
- "function_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "invocation_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "s3_action": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "sns_action": {
- "Attributes": {
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "stop_action": {
- "Attributes": {
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "workmail_action": {
- "Attributes": {
- "organization_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_receipt_rule_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_set_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ses_template": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "html": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subject": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sfn_activity": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "creation_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sfn_state_machine": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "creation_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "definition": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_shield_protection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_signer_signing_job": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "completed_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ignore_signing_job_failure": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_invoker": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "job_owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_display_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "profile_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "profile_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "requested_by": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "revocation_record": {
- "Type": [
- "list",
- [
- "object",
- {
- "reason": "string",
- "revoked_at": "string",
- "revoked_by": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "signature_expires_at": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "signed_object": {
- "Type": [
- "list",
- [
- "object",
- {
- "s3": [
- "list",
- [
- "object",
- {
- "bucket": "string",
- "key": "string"
- }
- ]
- ]
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status_reason": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "destination": {
- "Attributes": {},
- "BlockTypes": {
- "s3": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "source": {
- "Attributes": {},
- "BlockTypes": {
- "s3": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_signer_signing_profile": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_display_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "revocation_record": {
- "Type": [
- "list",
- [
- "object",
- {
- "revocation_effective_from": "string",
- "revoked_at": "string",
- "revoked_by": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "version_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "signature_validity_period": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_signer_signing_profile_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "action": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "profile_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "profile_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "statement_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "statement_id_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_simpledb_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_snapshot_create_volume_permission": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "account_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sns_platform_application": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_delivery_failure_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_endpoint_created_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_endpoint_deleted_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "event_endpoint_updated_topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "failure_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_credential": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "platform_principal": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "success_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "success_feedback_sample_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sns_sms_preferences": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "default_sender_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_sms_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delivery_status_iam_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delivery_status_success_sampling_rate": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "monthly_spend_limit": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "usage_report_s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sns_topic": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "application_failure_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "application_success_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "application_success_feedback_sample_rate": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "delivery_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "display_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_failure_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_success_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_success_feedback_sample_rate": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_master_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_failure_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_success_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lambda_success_feedback_sample_rate": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "sqs_failure_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sqs_success_feedback_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sqs_success_feedback_sample_rate": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sns_topic_policy": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sns_topic_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "confirmation_timeout_in_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delivery_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_auto_confirms": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "filter_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "protocol": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "raw_message_delivery": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "topic_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_spot_datafeed_subscription": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_spot_fleet_request": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "allocation_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "excess_capacity_termination_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fleet_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_fleet_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_interruption_behaviour": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_pools_to_use_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "load_balancers": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "replace_unhealthy_instances": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_request_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_group_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "terminate_instances_with_expiration": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_from": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_until": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_fulfillment": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "launch_specification": {
- "Attributes": {
- "ami": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "associate_public_ip_address": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_instance_profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_instance_profile_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "root_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "launch_template_config": {
- "Attributes": {},
- "BlockTypes": {
- "launch_template_specification": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "overrides": {
- "Attributes": {
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "weighted_capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "spot_maintenance_strategies": {
- "Attributes": {},
- "BlockTypes": {
- "capacity_rebalance": {
- "Attributes": {
- "replacement_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_spot_instance_request": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "ami": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "associate_public_ip_address": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "block_duration_minutes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu_core_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cpu_threads_per_core": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "disable_api_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ebs_optimized": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "get_password_data": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "hibernation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_instance_profile": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_initiated_shutdown_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_interruption_behaviour": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_address_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_addresses": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "launch_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "monitoring": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "password_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "placement_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "primary_network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_dns": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "public_ip": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "secondary_private_ips": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_groups": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_dest_check": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_bid_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_price": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_request_state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "spot_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_data_base64": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_from": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_until": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "wait_for_fulfillment": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "credit_specification": {
- "Attributes": {
- "cpu_credits": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ebs_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "ephemeral_block_device": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "no_device": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "virtual_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "metadata_options": {
- "Attributes": {
- "http_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_put_response_hop_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "http_tokens": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "network_interface": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_index": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "root_block_device": {
- "Attributes": {
- "delete_on_termination": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iops": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sqs_queue": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "content_based_deduplication": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delay_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "fifo_queue": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_data_key_reuse_period_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_master_key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_message_size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "message_retention_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "receive_wait_time_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "redrive_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "visibility_timeout_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_sqs_queue_policy": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "queue_url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_activation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "activation_code": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "expiration_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "expired": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "iam_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "registration_count": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "registration_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_association": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "association_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "automation_target_parameter_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compliance_severity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_concurrency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_errors": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameters": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule_expression": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "output_location": {
- "Attributes": {
- "s3_bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "targets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_document": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "content": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "created_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "hash_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "latest_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "parameter": {
- "Type": [
- "list",
- [
- "object",
- {
- "default_value": "string",
- "description": "string",
- "name": "string",
- "type": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "permissions": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "platform_types": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "schema_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "attachments_source": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_maintenance_window": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allow_unassociated_targets": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cutoff": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "duration": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "end_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "schedule_timezone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "start_date": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_maintenance_window_target": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_information": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "window_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "targets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 5
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_maintenance_window_task": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_concurrency": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "max_errors": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "task_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "window_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "targets": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- },
- "task_invocation_parameters": {
- "Attributes": {},
- "BlockTypes": {
- "automation_parameters": {
- "Attributes": {
- "document_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "parameter": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "lambda_parameters": {
- "Attributes": {
- "client_context": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "payload": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "qualifier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "run_command_parameters": {
- "Attributes": {
- "comment": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_hash": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "document_hash_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_s3_bucket": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "output_s3_key_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "timeout_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "notification_config": {
- "Attributes": {
- "notification_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_events": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "parameter": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "step_functions_parameters": {
- "Attributes": {
- "input": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_parameter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "allowed_pattern": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "data_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "key_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "overwrite": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tier": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "version": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_patch_baseline": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "approved_patches": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "approved_patches_compliance_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "operating_system": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rejected_patches": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "approval_rule": {
- "Attributes": {
- "approve_after_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "compliance_level": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_non_security": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "patch_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- },
- "global_filter": {
- "Attributes": {
- "key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "values": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 4
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_patch_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "baseline_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "patch_group": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_ssm_resource_data_sync": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "s3_destination": {
- "Attributes": {
- "bucket_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sync_format": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_cache": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "disk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_cached_iscsi_volume": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "chap_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lun_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "source_volume_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size_in_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "activation_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "average_download_rate_limit_in_bits_per_sec": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "average_upload_rate_limit_in_bits_per_sec": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cloudwatch_log_group_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_ip_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_timezone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_vpc_endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "medium_changer_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "smb_guest_password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "smb_security_strategy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tape_drive_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "smb_active_directory_settings": {
- "Attributes": {
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "password": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "username": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_nfs_file_share": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "client_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_share_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "fileshare_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "guess_mime_type_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_acl": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_only": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "requester_pays": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "squash": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cache_attributes": {
- "Attributes": {
- "cache_stale_timeout_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "nfs_file_share_defaults": {
- "Attributes": {
- "directory_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_mode": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_smb_file_share": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "access_based_enumeration": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "admin_user_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "audit_destination_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "authentication": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "case_sensitivity": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "file_share_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "fileshare_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "guess_mime_type_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "invalid_user_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "location_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "object_acl": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "path": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "read_only": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "requester_pays": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "smb_acl_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "valid_user_list": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "cache_attributes": {
- "Attributes": {
- "cache_stale_timeout_in_seconds": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_stored_iscsi_volume": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "chap_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "disk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_encrypted": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "kms_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lun_number": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_port": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "preserve_existing_data": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "snapshot_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_attachment_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_size_in_bytes": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_tape_pool": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "pool_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention_lock_time_in_days": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "retention_lock_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "storage_class": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_upload_buffer": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "disk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_storagegateway_working_storage": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "disk_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_subnet": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "assign_ipv6_address_on_creation": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block_association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "map_public_ip_on_launch": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "outpost_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_swf_domain": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name_prefix": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "workflow_execution_retention_period_in_days": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_transfer_server": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "host_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": true,
- "Deprecated": false
- },
- "host_key_fingerprint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "identity_provider_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "invocation_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "logging_role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "url": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "endpoint_details": {
- "Attributes": {
- "address_allocation_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_transfer_ssh_key": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "body": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_transfer_user": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "home_directory": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "home_directory_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "role": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "server_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "user_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "home_directory_mappings": {
- "Attributes": {
- "entry": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_volume_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "device_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "force_detach": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "skip_destroy": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "volume_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc": {
- "Version": 1,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "assign_generated_ipv6_cidr_block": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_network_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "default_security_group_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dhcp_options_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_classiclink": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_classiclink_dns_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_dns_hostnames": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "enable_dns_support": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "instance_tenancy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_association_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ipv6_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "main_route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_dhcp_options": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "domain_name_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "netbios_name_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "netbios_node_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "ntp_servers": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_dhcp_options_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "dhcp_options_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_accept": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "cidr_blocks": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "dns_entry": {
- "Type": [
- "list",
- [
- "object",
- {
- "dns_name": "string",
- "hosted_zone_id": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_interface_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "policy": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "prefix_list_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "requester_managed": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "security_group_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_ids": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint_connection_notification": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "connection_events": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "connection_notification_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "notification_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_service_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint_route_table_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint_service": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "acceptance_required": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allowed_principals": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zones": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "base_endpoint_dns_names": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "gateway_load_balancer_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "manages_vpc_endpoints": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "network_load_balancer_arns": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "private_dns_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "service_type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "state": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint_service_allowed_principal": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "principal_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_service_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_endpoint_subnet_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "subnet_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_endpoint_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_ipv4_cidr_block_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_peering_connection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "accept_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_accept": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "accepter": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "requester": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "timeouts": {
- "Attributes": {
- "create": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "delete": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "update": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 1,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_peering_connection_accepter": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "accept_status": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "auto_accept": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_owner_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_region": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "peer_vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_peering_connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "accepter": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "requester": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpc_peering_connection_options": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_peering_connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "accepter": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "requester": {
- "Attributes": {
- "allow_classic_link_to_remote_vpc": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_remote_vpc_dns_resolution": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "allow_vpc_to_remote_classic_link": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpn_connection": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_gateway_configuration": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "customer_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "routes": {
- "Type": [
- "set",
- [
- "object",
- {
- "destination_cidr_block": "string",
- "source": "string",
- "state": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "static_routes_only": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_attachment_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "transit_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_bgp_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_bgp_holdtime": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_cgw_inside_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_inside_cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel1_preshared_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "tunnel1_vgw_inside_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_bgp_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_bgp_holdtime": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_cgw_inside_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_inside_cidr": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tunnel2_preshared_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": true,
- "Deprecated": false
- },
- "tunnel2_vgw_inside_address": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vgw_telemetry": {
- "Type": [
- "set",
- [
- "object",
- {
- "accepted_route_count": "number",
- "last_status_change": "string",
- "outside_ip_address": "string",
- "status": "string",
- "status_message": "string"
- }
- ]
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpn_connection_route": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "destination_cidr_block": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_connection_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpn_gateway": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "amazon_side_asn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "availability_zone": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpn_gateway_attachment": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpc_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_vpn_gateway_route_propagation": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "route_table_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vpn_gateway_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_byte_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "byte_match_tuples": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_geo_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "geo_match_constraint": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_ipset": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_descriptors": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_rate_based_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rate_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "predicates": {
- "Attributes": {
- "data_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "negated": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_regex_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "regex_match_tuple": {
- "Attributes": {
- "regex_pattern_set_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_regex_pattern_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regex_pattern_strings": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "predicates": {
- "Attributes": {
- "data_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "negated": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_rule_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "activated_rule": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_size_constraint_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "size_constraints": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_sql_injection_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "sql_injection_match_tuples": {
- "Attributes": {
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_web_acl": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "logging_configuration": {
- "Attributes": {
- "log_destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "redacted_fields": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "rules": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "override_action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_waf_xss_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "xss_match_tuples": {
- "Attributes": {
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_byte_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "byte_match_tuples": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "target_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_geo_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "geo_match_constraint": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_ipset": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_descriptor": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "value": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_rate_based_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rate_key": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rate_limit": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "predicate": {
- "Attributes": {
- "data_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "negated": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_regex_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "regex_match_tuple": {
- "Attributes": {
- "regex_pattern_set_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_regex_pattern_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "regex_pattern_strings": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_rule": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "predicate": {
- "Attributes": {
- "data_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "negated": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_rule_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "activated_rule": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_size_constraint_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "size_constraints": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_sql_injection_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "sql_injection_match_tuple": {
- "Attributes": {
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_web_acl": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "logging_configuration": {
- "Attributes": {
- "log_destination": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "redacted_fields": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "rule": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "rule_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "override_action": {
- "Attributes": {
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_web_acl_association": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "resource_arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "web_acl_id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafregional_xss_match_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "xss_match_tuple": {
- "Attributes": {
- "text_transformation": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {
- "data": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafv2_ip_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "addresses": {
- "Type": [
- "set",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "ip_address_version": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "lock_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafv2_regex_pattern_set": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lock_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "regular_expression": {
- "Attributes": {
- "regex_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 10
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafv2_rule_group": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lock_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "rule": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "allow": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "block": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "count": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "visibility_config": {
- "Attributes": {
- "cloudwatch_metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sampled_requests_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 0,
- "MaxItems": 0
- },
- "visibility_config": {
- "Attributes": {
- "cloudwatch_metrics_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "metric_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "sampled_requests_enabled": {
- "Type": "bool",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false
- }
- },
- "aws_wafv2_web_acl": {
- "Version": 0,
- "Block": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "capacity": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "description": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "id": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "lock_token": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": false,
- "Computed": true,
- "Sensitive": false,
- "Deprecated": false
- },
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "scope": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "tags": {
- "Type": [
- "map",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": false,
- "Optional": true,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "default_action": {
- "Attributes": {},
- "BlockTypes": {
- "allow": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "block": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 1
- },
- "rule": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "action": {
- "Attributes": {},
- "BlockTypes": {
- "allow": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "block": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "count": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "override_action": {
- "Attributes": {},
- "BlockTypes": {
- "count": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "none": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "managed_rule_group_statement": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "vendor_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "excluded_rule": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "or_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "not_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "and_statement": {
- "Attributes": {},
- "BlockTypes": {
- "statement": {
- "Attributes": {},
- "BlockTypes": {
- "byte_match_statement": {
- "Attributes": {
- "positional_constraint": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "search_string": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "geo_match_statement": {
- "Attributes": {
- "country_codes": {
- "Type": [
- "list",
- "string"
- ],
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "ip_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "ip_set_forwarded_ip_config": {
- "Attributes": {
- "fallback_behavior": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "header_name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "position": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "regex_pattern_set_reference_statement": {
- "Attributes": {
- "arn": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "size_constraint_statement": {
- "Attributes": {
- "comparison_operator": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "size": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "sqli_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 4,
- "MinItems": 1,
- "MaxItems": 0
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "xss_match_statement": {
- "Attributes": {},
- "BlockTypes": {
- "field_to_match": {
- "Attributes": {},
- "BlockTypes": {
- "all_query_arguments": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "body": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "method": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "query_string": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_header": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "single_query_argument": {
- "Attributes": {
- "name": {
- "Type": "string",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- }
- },
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "uri_path": {
- "Attributes": {},
- "BlockTypes": {},
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- }
- },
- "Description": "",
- "DescriptionKind": 0,
- "Deprecated": false,
- "Nesting": 3,
- "MinItems": 0,
- "MaxItems": 1
- },
- "text_transformation": {
- "Attributes": {
- "priority": {
- "Type": "number",
- "Description": "",
- "DescriptionKind": 0,
- "Required": true,
- "Optional": false,
- "Computed": false,
- "Sensitive": false,
- "Deprecated": false
- },
- "type": {
- "Type": "string",
- "Description": "",
- "Descriptio